@font-face {
    font-family: 'bornabold';
    src:
    url('../fonts/borna-bold-webfont.woff2') format('woff2'),
    url('../fonts/borna-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    }
@font-face {
    font-family: 'bornaregular';
    src:
    url('../fonts/borna-regular-webfont.woff2') format('woff2'),
    url('../fonts/borna-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    }

	
	
	:root {
	--headfont: bornabold, system-ui, sans-serif;
	--headfont-style: normal;
	--headfont-weight: 800;
	--textfont: bornaregular, 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
	--textcolor: 13, 13, 13;
	--white: 255,255,255;
	--pagemargin: 4vw;
}

  * {
	font-family: var(--textfont);
	font-weight: 300;
	font-style: normal;
	color: rgb(var(--textcolor));
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	background-color: rgb(var(--primary));
	scroll-behavior: smooth;
}

body {
  position: relative;
}


p {
    padding-bottom: 1em;
	font-size: 1rem;
}

h1,
strong,
b {
	font-weight: 700;
	font-style: normal;	
}

h1 {
	font-family: var(--headfont);
	font-style: var(--headfont-style);
	font-weight: var(--headfont-weight);	
	font-size: 6rem;
	line-height: 0.8em;
	color: #111;
	margin: 0;
	padding-top: 1.5rem;
	white-space: nowrap;
}

h2 {
	font-family: var(--textfont);
	font-size: 2em;
	color: rgb(var(--primary));
	font-weight: normal;
	margin: 0;
}

a {
	color: rgba( 81, 117, 181, 100%);
	text-decoration: none;
	transition: all 0.3s;
}

a:hover {
	color: rgba( 28, 63, 106, 100%);
}

#heroinebg {
	display: block;
	background-color: rgb(var(--secondary));
}

#heroine {
	display: none;
	height: 90svh;
	position: relative;
	background: none;
	transition: all 0.3s;
}

body.home #heroine {
	display: block;
}

body.half #heroine {
	height: 96svh;
}

body.half #heroine::before {
   content: '';
   position: fixed;
   z-index: 11;
   display: block;
   top: 0px;
   left: 0px;
   bottom: 0px;
   right: 0px;
   background-image: var(--hero);
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center center;
   background-color: rgb(var(--primary));
   transition: all 0.3s;
}

/*
body.gruene #heroine {
	background: var(--hero-ls, var(--hero)) no-repeat center center;
	background-size: cover;
	background-attachment: fixed;
	background-color: rgb(var(--primary));
}
*/

body.gruene #heroine::before {
   content: '';
   position: fixed;
   z-index: 0;
   display: block;
   top: 0px;
   left: 0px;
   bottom: 0px;
   right: 0px;
   background-image: var(--hero-ls, var(--hero));
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center top;
   transition: all 0.3s;
}

body.half #heroine::before {
   top: 48svh;
	position: absolute;
}

#heroine > span#filterspan {
	display: block;
	height: 100%;
	width: 100%;
	position: absolute;
	backdrop-filter: contrast(70%) saturate(0%) brightness(50%);
	-webkit-backdrop-filter: contrast(70%) saturate(0%) brightness(50%);
}

body.half #heroine > span#filterspan {
	height: 48svh;
	top: 48svh;
	z-index: 12;
}

body.gruene #heroine div#heads {
	/* aspect-ratio: 1 / 1; */
	min-height: 0;
	position: absolute;
	top: 42.5%;
	left: 50%;
	transform-origin: center;
	transform: translate(-50%, 0);
	z-index: 100;
	/* background: #fff; */
	text-align: center;
	padding: 3rem;
	/* border-radius: 1000px; 
	display: flex;
	flex-direction: column;
	justify-content: center;*/
}

body.half #heroine div#heads {
	background-color: rgb(var(--primary));
	width: 100%;
	height: 48svh;
	position: fixed;
	top: 0;
	left: 0;
	z-index: -10;
	padding: 2rem;
	display: flex;
	flex-direction:column;
	justify-content: center;
	z-index: 0;
}

body.half #heroine div#heads::before {
	content: url('../img/viagems.svg');
	width: 25px;
	position: absolute;
	top: 2rem;
	opacity: 0.5;
}

body.gruene #heroine div#heads h1,
body.gruene #heroine div#heads h2 {
	transform: skew(-12deg);
	display: inline-block;
}

body.gruene #heroine div#heads h1 div,
body.gruene #heroine div#heads h2 div {
	font-family: var(--headfont);
	font-style: var(--headfont-style);
	font-weight: var(--headfont-weight);
	transform: skew(12deg);
	color: #fff;
	font-weight: normal;
}

body.gruene #heroine div#heads h1 {
	font-family: var(--headfont);
	font-style: var(--headfont-style);
	font-weight: var(--headfont-weight);
	font-size: 2.5rem;
	line-height: 1.3em;
	color: rgb(var(--textcolor));
	margin: 0;
	padding-top: 1rem;
	white-space: normal;
	text-align: center;
	background: rgb(var(--primary));
	padding: .2em .3em .0em .3em;
}

body.gruene #heroine div#heads h1 span {
	font-family: var(--headfont);
	font-style: var(--headfont-style);
	font-weight: var(--headfont-weight);	
	font-size: 3rem;
	line-height: 0.5em;
	color: rgb(var(--textcolor));
	margin: 0;
	display: block;
	padding: 0 0 0.5rem 0;
	white-space: normal;
	text-align: center;
}

body.gruene #heroine div#heads h2 {
	font-size: 1.3rem;
	/*font-variant-numeric: oldstyle-nums;*/
	/* line-height: 3rem; */
	letter-spacing: 0.02rem;
	background: rgb(var(--secondary));
	padding: .1em .5em .0em .5em;
}



body.half #heroine div#heads h1 {
	font-size: 2.5rem;
	margin: 0;
	white-space: normal;
	text-align: left;
	background: none;
	padding: .2em .3em .1em .0em;
}

body.half #heroine div#heads h1 div {
	font-family: var(--headfont);
	font-style: var(--headfont-style);
	font-weight: var(--headfont-weight);
	font-size: 2.5rem;
	line-height: 1.05em;
	color: rgb(var(--white));
	margin: 0;
	white-space: normal;
	text-align: left;
	background: none;
	padding: 0;
}

body.half #heroine div#heads h2 {
	font-size: 1.3rem;
	padding: .0em .5em .1em .0em;
}

body.half #heroine div#heads h2 div {
	font-size: 1.5rem;
	font-variant-numeric: oldstyle-nums;
	letter-spacing: 0.02rem;
	color: rgb(var(--secondary));
	padding: 0;
}

section#header {
	width: 100vw;
	height: 50px;
	position: fixed;
	top: 0;
	left: 0;
	padding: 0 1rem;
	background: rgba(255,255,255,0.85);
	z-index: 1000;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

body.home section#header {
	opacity: 0;
}

section#header #homelink {
	display: block;
	height: 1.1rem;
	padding-block-start: 0.1rem;
	justify-self: start;
}

body.home section#header #homelink {
	opacity: 0.2;
}

section#header #homelink svg {
	height: 100%;
	width: auto;
}

section#header #homelink svg path {
	fill: rgb(var(--primary));
}

section#header strong {
	font-family: var(--headfont);
	font-style: var(--headfont-style);
	font-weight: var(--headfont-weight);
	font-size: 1.4rem;
	line-height: 50px;
	color: rgb(var(--primary));
	/* margin: 0 2rem 0 0;  */
}

section#header a:nth-child(2) {
	grid-column: 2;
	text-align: center;
}

div#maindiv {
	background-color: #fff;
	padding: var(--pagemargin);
	hyphens: auto;
	z-index: 10;
	position: relative;
}



div.ggpics {
	/* max-width: 950px; */
	background-color: #fff;
	padding: 0px 0vw 0px 0px;
	margin-bottom: 40px;
}

.sl-wrapper.simple-lightbox .sl-image .sl-caption {
    background: rgba(0,0,0,0.0);
	font-family: sans-serif;
	font-size: 0.6rem;
	bottom: -1rem;
	color: rgb(var(--textcolor));
	padding: 0;
}

.sl-wrapper.simple-lightbox .sl-image .sl-caption a {
	font-family: sans-serif;
	font-size: 0.6rem;
	color: rgb(var(--textcolor));
	float: right;
}


.sl-wrapper.simple-lightbox div.sl-download a {
    font-family: sans-serif;
	font-size: 0.6rem;
	color: rgb(var(--textcolor));
}

.sl-wrapper.simple-lightbox div a:hover {
	color: rgb(var(--primary)) !important;
	text-decoration: underline;
}




div#navidiv {
	position: sticky;
	top: 50px; /* overridden by JS to hide thumbs when stuck */
	z-index: 500;
	width: 100%;
	padding-top: 50px;
	background-color: rgb(var(--secondary));
}

body.home div#navidiv {
	padding-top: 0px;
}

div#navidiv a.naviscroll {
	display: none;
	justify-content: center;
	text-align: center;
	width: 2rem;
	height: 2rem;
	line-height: 2rem;
	border-radius: 8rem;
	position: absolute;
	top: 40%;
	background: #fff;
	z-index: 100000;
	font-weight: bold;
	box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
}

a#naviscroll1 {
	left: 10px;
}

a#naviscrollx {
	right: 10px;
}

@media only screen and (min-width: 500px) and (max-width: 850px) {
	div#navidiv.morethan4 a.naviscroll {
		display: flex;
	}
}




section#navi {
	scroll-margin-block-start: 50px;
	padding: var(--pagemargin) var(--pagemargin) 0 var(--pagemargin);
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	background-color: rgb(var(--primary));
}

body.half section#navi {
	background-color: rgb(var(--secondary));
}

ul#albumlinks {
	list-style: none;
	display: flex;
	gap: 10px;
}

ul#albumlinks.morethan4 {
	min-width: 900px;
}

ul#albumlinks > * {
	flex: 1;
}

ul#albumlinks li a {
	display: block;
	padding: 0;
	transition: all 0.3s;
	font-size: 1rem;
	font-size: clamp(12px, calc(0.7vw + 0.3rem), 20px);
	text-align: left;
	color: rgb(var(--textcolor));
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-bottom: clamp(4px, 1vw, 5px) solid rgb(var(--primary));
	scroll-snap-align: start;
	scroll-margin-left: var(--pagemargin);
	scroll-margin-right: var(--pagemargin);
	text-shadow: 0 0 30px rgba(0,0,0,0.4);
}

body.half ul#albumlinks li a {
	border-color: rgb(var(--white),0);
	text-transform: none;
	letter-spacing: 0em;
}

ul#albumlinks li a span {
	padding: 0.5em 0 0.5em 0;
	display: block;
	color: rgb(var(--textcolor-on-primary));
	line-height: 1.1em;
}

body.half ul#albumlinks li a span {
	color: rgb(var(--textcolor-on-secondary));
	word-break: break-word;
}

.gruene ul#albumlinks li a span {
	font-family: var(--headfont);
	font-style: var(--headfont-style);
	font-weight: var(--headfont-weight);	
}

ul#albumlinks li a:hover {
	border-color: rgb(var(--white),0.5);
}

body.half ul#albumlinks li a:hover {
	color: rgb(var(--primary), 0.5);
	border-color: rgb(var(--primary), 0.5);
}

body ul#albumlinks li a:hover img {
	transition: all 0.3s;
	opacity: 0.6;
}

ul#albumlinks li.active a {
	border-color: rgb(var(--secondary));
}

body.half ul#albumlinks li.active a {
	border-color: rgb(var(--primary));
}

ul#albumlinks li.active a span {
	/* font-weight: bold; */
	color: rgb(var(--secondary));
}

body.half ul#albumlinks li.active a span {
	/* font-weight: bold; */
	color: rgb(var(--primary));
}

body.half ul#albumlinks li a:hover span {
	color: rgb(var(--primary), 0.7);
}

ul#albumlinks li a img {
	width: 100%;
	aspect-ratio: 3 / 2;
	display: block;
	overflow: hidden;
}

body ul#albumlinks li.active a {
    pointer-events: none;
}

#disclaimer {
	position: relative;
	background: rgb(var(--white));
}

footer {
	background-color: rgb(var(--primary));
	position: relative;
}

footer #imp {
	display: flex;
	background: rgb(var(--textcolor));
	padding: 1rem;
	gap: 20px;
	align-items: center;
}

footer #imp img {
	height: 35px;
}

footer #imp span {
	color: #fff;
	font-family: sans-serif;
	font-weight: bold;
	font-size: 0.8rem;
	line-height: 1.2em;
}

footer #imp span a {
	color: #fff;
	font-family: sans-serif;
}

footer .footernav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

footer a.startLink {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgb(var(--textcolor-on-primary));
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	white-space: nowrap;
}

footer a.startLink span {
	color: rgb(var(--textcolor-on-primary));
}

footer a.nextLink {
	display: flex;
	align-items: center;
	text-align: right;
	gap: 10px;
	color: rgb(var(--textcolor-on-primary));
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

footer a.nextLink span {
	color: rgb(var(--textcolor-on-primary));
}

/* Beide Thumbs randabfallend im 3:2-Querformat */
footer a.startLink img,
footer a.nextLink img {
	height: 120px;
	aspect-ratio: 3 / 2;
	width: auto;
	object-fit: cover;
	display: block;
}







.scrolltop-wrap {
	 box-sizing: border-box;
	 position: absolute;
	 z-index: 10;
	 top: 12rem;
	 right: 1rem;
	 bottom: 0;
	 pointer-events: none;
	 backface-visibility: hidden;
}
 .scrolltop-wrap #scrolltop-bg {
	 fill: rgb(var(--primary), 0.7);
}
 .scrolltop-wrap #scrolltop-arrow {
	 fill: white;
}
 .scrolltop-wrap a:hover #scrolltop-bg {
	 fill: rgb(var(--primary));
}
 .scrolltop-wrap a:hover #scrolltop-arrow {
	 fill: white;
}

@supports (-moz-appearance: meterbar) {
	 clip: rect(0, 3rem, auto, 0);
}

 .scrolltop-wrap a {
	 position: fixed;
	 position: sticky;
	 top: -5rem;
	 width: 3rem;
	 height: 3rem;
	 margin-bottom: -5rem;
	 transform: translateY(100vh);
	 backface-visibility: hidden;
	 display: inline-block;
	 text-decoration: none;
	 user-select: none;
	 pointer-events: all;
	 outline: none;
	 overflow: hidden;
}
 .scrolltop-wrap a svg {
	 display: block;
	 border-radius: 50%;
	 width: 100%;
	 height: 100%;
}
 .scrolltop-wrap a svg path {
	 transition: all 0.1s;
}
 .scrolltop-wrap a #scrolltop-arrow {
	 transform: scale(0.66);
	 transform-origin: center;
}



 @media print {
	 .scrolltop-wrap {
		 display: none !important;
	}
}




.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 4px;
  column-gap: 2%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.grid.is-ready {
  opacity: 1;
}

.grid-item {
	display: block;
	position: relative;
	padding-bottom: 8px;
	z-index: 1;
}

.grid-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: all 0.3s;
}

.grid-item img:hover {
	outline: 8px solid rgb(var(--primary));
	cursor: zoom-in;
}


.grid-item img.lazy {
	filter: blur(20px);
  opacity: 0.3 !important;
  transform: scale(0.9) !important;
	margin-top: 50px;	
  transition: outline 0.3s, opacity 0.6s ease, transform 0.6s ease, margin 0.6s ease;
}

.grid-item img.lazy.loaded {
	filter: blur(0px);
  opacity: 1 !important;
  transform: scale(1) !important;
	margin-top: 0px;
}

.sl-overlay {
    opacity: 0.95 !important;
}


#disclaimer p {
	font-family: sans-serif;
	color: rgba(var(--textcolor),0.5);
	font-size: 0.7rem;
	text-align: center;
	line-height: 1.4em;
	background: #fff;
	padding: 2rem;
}




@media only screen and (min-width: 500px) {
	
	#heroine,
	body.gruene #heroine {
		height: 90vh;
		background: rgb(var(--primary)) var(--hero) no-repeat center center;
		background-size: cover;
		background-attachment: fixed;
	}
	
	body.half #heroinebg {
		position: fixed;
		top: 0;
	}

	body.half #heroine {
			height: 98vh;
			width: 50vw;
			background-attachment: scroll;
			/* background-position: top; */
			background-color: rgb(var(--primary));
			/* position: fixed; */
	}	

	body.half #heroine::before,
	body.gruene #heroine::before {
		display: none;
	}		

	#heroine::before {
	   display: none;
	}

	#heroine div#heads {
		top: 25%;
		/* padding: 4rem; */
	}

	body.half #heroine div#heads::before {
		width: 25px;
		right: auto;
	}
	
	body.half #heroine div#heads {
		top: 0;
		left: auto;
		height: 98vh;
		width: 50vw;
		margin-left: 50vw;
		position: absolute;
		z-index: 10;
	}	
	
	#heroine div#heads h1 {
		font-size: 5rem;
		padding: 1rem 2rem 1.5rem 1.5rem;
		padding: .2em .3em .3em .3em;
	}

	body.gruene #heroine div#heads h1 {
		font-size: 5rem;
		padding: 1rem 2rem 1.5rem 1.5rem;
		padding: .2em .3em .0em .3em;
	}	
	
	#heroine div#heads h2 {
		font-size: 2rem;
		padding: .2em .5em .1em .5em;
	}

	body.gruene #heroine div#heads h2 {
		font-size: 2rem;
		padding: .2em .5em 0em .5em;
	}	

	body.half #heroine div#heads h2 div {
		font-size: 2rem;
		padding: 0;
	}	

	section#header a strong:hover {
		color: rgb(var(--secondary));
		transition: all 0.3s;
	}	

	section#header #homelink:hover svg path {
		fill: rgb(var(--secondary));
		transition: all 0.3s;
	}
	
	ul#albumlinks li a {
		width: 100%;
	}

	div#navidiv {
		padding-top: 30px;
		display: block; /* inline-block breaks sticky positioning */
	}

	body.home div#navidiv {
		margin-block: 98vh 0px;
		display: flow-root;
		/* border-bottom: 1px solid transparent; */
	}	

	body.gruene.home div#navidiv {
		margin-block: 0vh 0px;
	}		
	
	div#navidiv a.naviscroll {
		opacity: 0.8;
	}	

	div#navidiv a.naviscroll:hover {
		transform: scale(120%);
		opacity: 1;
	}
	
	.grid {
		grid-template-columns: repeat(3, 1fr);
		column-gap: 1.6%;
	}

	.grid-item {
		padding-bottom: 12px;
	}

	body.half #heroine span#filterspan {
		height: 100%;
		top: 0;
	}

	div#maindiv {
		margin: 0;
	}
}

.grid-item.deferred {
	display: none;
}

#loadmore-wrap {
	text-align: center;
	padding: 1.5rem var(--pagemargin) 2.5rem;
	background: #fff;
}

#loadmore-btn {
	font-family: var(--textfont);
	font-size: 0.9rem;
	padding: 0.7em 2em;
	border: 2px solid rgb(var(--primary));
	border-radius: 100vw;
	background: rgb(var(--primary));
	color: rgb(var(--white));
	cursor: pointer;
	transition: all 0.3s;
	letter-spacing: 0.03em;
}

#loadmore-btn:hover {
	background: transparent;
	color: rgb(var(--primary));
}

button.toggle-btn {
	font-size: 1.8rem;
	padding-block-end: 0.1em;
	border-radius: 100vw;
	display: flex;
	height: 1.3em;
	color: #fff;
	background: rgb(0,0,0,0.7);
	border: none;
	aspect-ratio: 1 / 1;
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 100;
	align-content: center;
	flex-wrap: wrap;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s;
}

button.toggle-btn:hover {
	color: #000;
	background: rgb(255,255,255,0.9);
}

a.hidden button.toggle-btn {
	rotate: 45deg;
}

a.hidden img.lazy.loaded {
	opacity: 0.2 !important;
}




/* ============================================================
   Home-Layout "bigAlbums": großes Album-Übersichtsraster
   (kein Album vorausgewählt)
   ============================================================ */

/* Auf der Übersicht sind die horizontale Album-Navi und der
   Bildrechte-Hinweis überflüssig -> ausblenden. */
body.home.bigAlbums div#navidiv,
body.home.bigAlbums #disclaimer {
	display: none;
}

/* Bei fixiertem Hero (half-Layout ab 500px) den Platz nachbilden,
   den sonst die Navi mit margin-block:98vh reserviert. */
@media only screen and (min-width: 500px) {
	body.half.home.bigAlbums div#maindiv.albums-overview {
		margin-top: 98vh;
	}
}

.albumsgrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(10px, 2vw, 22px);
}

@media only screen and (min-width: 700px) {
	.albumsgrid { grid-template-columns: repeat(3, 1fr); }
}

@media only screen and (min-width: 1100px) {
	.albumsgrid { grid-template-columns: repeat(4, 1fr); }
}

.album-tile {
	display: flex;
	align-items: flex-end;
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: rgb(var(--primary));
	text-decoration: none;
}

.album-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease, opacity 0.3s ease;
}

.album-tile:hover img {
	transform: scale(1.05);
	opacity: 0.82;
}

.album-tile-label {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 1.6em 0.8em 0.7em 0.8em;
	font-family: var(--headfont);
	font-style: var(--headfont-style);
	font-weight: var(--headfont-weight);
	font-size: clamp(0.95rem, 1.3vw, 1.35rem);
	line-height: 1.05em;
	color: #fff;
	background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%);
	text-shadow: 0 1px 14px rgba(0,0,0,0.55);
}

/* Platzhalter-Kachel (noch kein Cover): einfarbig, nur Titel */
.album-tile.no-cover .album-tile-label {
	background: none;
	color: rgb(var(--textcolor-on-primary));
	text-shadow: none;
	padding: 0.8em;
}