/* ==========================================================================
   airtiger.de – Bildergalerien (neu 2026)
   Ersetzt das alte jAlbum-Layout. Dunkler Hintergrund, damit die Fotos wirken.
   Passt farblich zur Hauptseite (CSS/airtiger.css).
   ========================================================================== */

:root {
	--rot: #a3141c;
	--rot-hell: #d63a2f;
	--orange: #e8762b;
	--dunkel: #1d2228;
	--dunkel-2: #2b323a;
	--grund: #14181c;
	--kachel: #20262c;
	--text: #e9edf1;
	--text-leise: #a7b0ba;
	--schrift: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: clamp(16px, 0.45vw + 11.5px, 19px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--schrift);
	line-height: 1.5;
	color: var(--text);
	background: var(--grund);
}

a { color: #fff; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
img { max-width: 100%; height: auto; border: 0; }

.seite { max-width: 1600px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Kopf ---------- */

.g-kopf {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 18px clamp(16px, 3vw, 48px);
	background:
		linear-gradient(100deg, rgba(29,34,40,.95) 0%, rgba(29,34,40,.82) 45%, rgba(43,50,58,.4) 100%),
		var(--dunkel-2) url("../Bilder/Raven01.gif") center 40% / cover no-repeat;
	border-bottom: 4px solid var(--rot);
}
.g-kopf .titel { flex: 1; min-width: 0; }
.g-kopf .seitenname {
	margin: 0 0 2px;
	font-size: .8rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--orange);
}
.g-kopf h1 { margin: 0; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.2rem); line-height: 1.2; }
.g-kopf .beschreibung { margin: 4px 0 0; color: var(--text-leise); }
.g-logo { flex: 0 0 auto; line-height: 0; }
.g-logo img { width: clamp(110px, 11vw, 200px); }

/* ---------- Leiste unter dem Kopf ---------- */

.g-leiste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	padding: 14px clamp(16px, 3vw, 48px);
	background: var(--dunkel);
	border-bottom: 1px solid #2e353d;
}
.g-leiste .anzahl { margin-left: auto; color: var(--text-leise); font-size: .9rem; }

.knopf {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	padding: 8px 18px;
	border-radius: 999px;
	background: #2f363e;
	color: #fff;
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none;
	transition: background .15s, transform .15s;
}
.knopf:hover, .knopf:focus-visible { background: #3b444e; }
.knopf.rot { background: var(--rot); }
.knopf.rot:hover, .knopf.rot:focus-visible { background: var(--rot-hell); }
.knopf[aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* ---------- Raster mit Vorschaubildern ---------- */

.g-raster {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr));
	gap: clamp(6px, 1vw, 14px);
	padding: clamp(10px, 2vw, 32px) clamp(10px, 3vw, 48px) 40px;
	align-content: start;
}
.g-kachel {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 10px;
	background: var(--kachel);
	box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.g-kachel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease, filter .35s ease;
}
.g-kachel:hover img, .g-kachel:focus-visible img { transform: scale(1.06); filter: brightness(1.08); }

/* Video-Kennzeichnung */
.g-kachel.video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%);
	pointer-events: none;
}
.g-kachel .play {
	position: absolute;
	left: 50%; top: 50%;
	width: 58px; height: 58px;
	margin: -29px 0 0 -29px;
	border-radius: 50%;
	background: rgba(163, 20, 28, .9);
	box-shadow: 0 4px 16px rgba(0,0,0,.45);
	z-index: 1;
	transition: transform .2s;
}
.g-kachel .play::before {
	content: "";
	position: absolute;
	left: 23px; top: 17px;
	border-style: solid;
	border-width: 12px 0 12px 19px;
	border-color: transparent transparent transparent #fff;
}
.g-kachel:hover .play { transform: scale(1.1); }
.g-kachel .titel {
	position: absolute;
	left: 10px; right: 10px; bottom: 8px;
	z-index: 1;
	font-size: .85rem;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,.8);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Einzelseite (ein Bild / ein Video) ---------- */

.g-einzel {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: clamp(12px, 2vw, 32px) clamp(10px, 3vw, 48px) 40px;
}
.g-einzel figure { margin: 0; text-align: center; }
.g-einzel img, .g-einzel video {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 260px);
	width: auto;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 6px 30px rgba(0,0,0,.5);
	background: #000;
}
.g-einzel video { width: min(100%, 1100px); }
.g-einzel figcaption { margin-top: 10px; color: var(--text-leise); }
.g-blaettern { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.g-blaettern .zaehler { color: var(--text-leise); min-width: 5em; text-align: center; }

/* ---------- Fuß ---------- */

.g-fuss {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 14px clamp(16px, 3vw, 48px);
	background: var(--dunkel);
	border-top: 3px solid var(--rot);
	color: var(--text-leise);
	font-size: .88rem;
}

/* ---------- Großansicht (Lightbox) ---------- */

.lb {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 10, 12, .96);
	animation: lb-ein .2s ease-out;
}
@keyframes lb-ein { from { opacity: 0; } to { opacity: 1; } }
.lb[hidden] { display: none; }
.lb-buehne {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100vw;
	padding: 56px 70px 20px;
}
.lb-buehne img, .lb-buehne video {
	display: block;
	max-width: calc(100vw - 140px);
	max-height: calc(100vh - 120px);
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 10px 50px rgba(0,0,0,.6);
	background: #000;
}
.lb-buehne video { width: min(calc(100vw - 140px), 1280px); }
.lb-unter { margin-top: 12px; color: var(--text-leise); font-size: .92rem; text-align: center; }
.lb button {
	position: absolute;
	border: 0;
	cursor: pointer;
	color: #fff;
	background: rgba(255,255,255,.1);
	border-radius: 50%;
	width: 52px; height: 52px;
	font-size: 26px;
	line-height: 52px;
	padding: 0;
	transition: background .15s;
}
.lb button:hover { background: var(--rot); }
.lb-zu { top: 14px; right: 14px; }
.lb-zurueck { left: 12px; top: 50%; margin-top: -26px; }
.lb-weiter { right: 12px; top: 50%; margin-top: -26px; }
.lb-lade {
	position: absolute; left: 50%; top: 50%;
	width: 42px; height: 42px; margin: -21px;
	border: 4px solid rgba(255,255,255,.2);
	border-top-color: var(--orange);
	border-radius: 50%;
	animation: drehen .8s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }
body.lb-aktiv { overflow: hidden; }

/* ---------- Smartphone ---------- */

@media (max-width: 700px) {
	.g-kopf { gap: 14px; padding: 12px 16px; }
	.g-logo { order: -1; }
	.g-logo img { width: 80px; }
	.g-kopf .seitenname { font-size: .7rem; }
	.g-leiste { padding: 10px 12px; }
	.g-leiste .anzahl { width: 100%; margin: 0; }
	.knopf { padding: 6px 14px; font-size: .85rem; }
	.g-kachel { border-radius: 6px; }
	.g-kachel .play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
	.g-kachel .play::before { left: 17px; top: 12px; border-width: 10px 0 10px 15px; }
	.lb-buehne { padding: 56px 0 70px; }
	.lb-buehne img, .lb-buehne video { max-width: 100vw; max-height: calc(100vh - 150px); border-radius: 0; }
	.lb-buehne video { width: 100vw; }
	.lb-zurueck, .lb-weiter { top: auto; bottom: 12px; margin: 0; }
	.lb-zurueck { left: calc(50% - 64px); }
	.lb-weiter { right: calc(50% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
