/* Kino Open – Stylesheet im Look der Plakate (Film: Nachthimmel/Navy, Konzerte: Gelb/Violett)
   Mobile first. Ältere index-*.php Varianten verwenden weiterhin css.php. */

/* Plakatschrift Oswald, selbst gehostet (lateinische Teilmenge, variable Schrift; Lizenz: fonts/OFL-Oswald.txt).
   Eine Datei für beide Schnitte; index.php lädt sie mit preload vor. */
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(fonts/oswald-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(fonts/oswald-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ko-nacht: #021a3d;
	--ko-navy: #003257;
	--ko-navy-hell: #0d4a78;
	--ko-horizont: #2a6b93;
	--ko-rot: #e4000d;
	--ko-rot-dunkel: #b8000a;
	--ko-gelb: #ffd21f;
	--ko-violett: #2e2a72;
	--ko-tinte: #141414;
	--ko-linie: rgba(255, 255, 255, 0.45);
	--ko-tiefblau: #0b1d44;   /* Seitenfarbe; Kopfbild, Band und feste Navigation liegen darauf */
	--ko-ease: cubic-bezier(.22, .61, .36, 1);

	--ko-font: "Helvetica Neue", Arial, Helvetica, sans-serif;
	--ko-font-fett: "Arial Black", "Helvetica Neue", Arial, sans-serif;
	--ko-font-schmal: "Arial Narrow", "Roboto Condensed", "sans-serif-condensed", "Helvetica Neue", Arial, sans-serif;
	--ko-font-plakat: "Oswald", "Arial Narrow", sans-serif;

	--ko-breite: 880px;
	--ko-rand: 16px;

	/* Navigation */
	--nav-h: 54px;
	--nav-groesse: 16px;
	--nav-abstand: 0.1em;
	--nav-farbe: rgba(255, 255, 255, 0.86);

	/* Kopftext auf dem Desktop; --text-links ist seine linke Kante, gemessen in einem Element über die ganze
	   Breite – daran richtet sich auch die Navigation aus */
	--text-rand: 32px;
	--text-breite: 1200px;
	--text-links: max(var(--text-rand), calc((100% - var(--text-breite)) / 2 + var(--text-rand)));
}
@media (min-width: 760px) { :root { --nav-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ko-tiefblau);
	color: #fff;
	font-family: var(--ko-font);
	font-size: 16px;
	line-height: 1.45;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.ko-visually-hidden {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* =========================================================
   Kopf: Bildfolge vom Seequai, darüber Logo, Ort und Daten
   Bilder und Zeitplan der Bildfolge: ko-kopf.php; Tiefe beim Scrollen: ko-seite.js (--ko-scroll)
   ========================================================= */

.ko-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	align-items: flex-start;
	min-height: clamp(290px, 76vw, 350px);   /* Handy: kompakt – Titel plus ein Streifen Bild */
	background: var(--ko-tiefblau);
	text-align: center;
}
.ko-hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	margin: 0 auto;
	padding: calc(var(--nav-h) + 12px) var(--ko-rand) 26px;
	/* zieht beim Scrollen leicht davon und blendet aus */
	translate: 0 calc(var(--ko-scroll, 0) * -0.1px);
	opacity: calc(1 - var(--ko-scroll, 0) / 700);
}

/* Text trägt sich über Schatten statt über einen dunklen Schleier */
.ko-logo { display: inline-block; width: min(82%, 480px); filter: drop-shadow(0 2px 4px rgba(4, 12, 32, 0.5)) drop-shadow(0 4px 18px rgba(4, 12, 32, 0.55)); }
.ko-logo img { display: block; width: 100%; height: auto; }

.ko-ort {
	margin: 6px 0 0;
	font-size: clamp(17px, 4.6vw, 30px);
	letter-spacing: 0.22em;
	padding-left: 0.22em; /* optisch zentrieren */
	text-shadow: 0 1px 3px rgba(4, 12, 32, 0.75), 0 2px 14px rgba(4, 12, 32, 0.65);
}

/* Daten, Jubiläum oder Dankeszeile (ko_kopf_info_html) */
.ko-hero-info { position: relative; margin-top: 10px; }
.ko-hero-info p { margin: 0; }
.ko-hero-info .ko-ausgabe {
	display: inline-block;
	margin-top: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--ko-rot);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.ko-hero-info .ko-daten {
	margin-top: 6px;
	font-family: var(--ko-font-plakat);
	font-weight: 700;
	font-size: clamp(38px, 11vw, 72px);
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 0 rgba(4, 12, 32, 0.5), 0 6px 28px rgba(4, 12, 32, 0.75);
}
.ko-hero-info .ko-zeile {
	max-width: 34em;
	margin: 12px auto 0;
	font-size: clamp(15px, 3.8vw, 19px);
	font-weight: bold;
	line-height: 1.4;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}
.ko-zeile sub { font-size: 0.7em; }
/* Sätze als Block: zu wenig Platz → Umbruch zwischen den Sätzen, nicht mitten im Satz */
.ko-zeile span { display: inline-block; }

/* Bildebenen: blenden nacheinander über (mit leichtem Zoom), die Ebene selbst bleibt beim Scrollen etwas zurück */
.ko-kulisse {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	translate: 0 calc(var(--ko-scroll, 0) * 0.35px);
	will-change: translate;
}
/* leichter Schleier nur hinter dem Text (Handy oben, Desktop in der Mitte) */
.ko-kulisse::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 29, 68, 0.55) 0%, rgba(11, 29, 68, 0.28) 42%, rgba(11, 29, 68, 0) 68%);
}
.ko-bild {
	position: absolute;
	inset: 0;
	display: block;
	background-size: cover;
	background-position: 50% 50%;
	opacity: 0;
	animation: ko-bildfolge var(--takt) ease-in-out infinite both;
}
.ko-bild-1 { opacity: 1; animation-name: ko-bildfolge-start; }   /* das erste Bild ist beim Laden sofort da */
/* Kopf ausser Sicht: Bildfolge anhalten (spart Rechenzeit auf dem Handy) */
.ko-aus-sicht .ko-kulisse,
.ko-aus-sicht .ko-kulisse * { animation-play-state: paused !important; }

/* Auftakt nur beim ersten Seitenaufruf (der Kopf von index.php setzt danach .ko-intro-gesehen):
   Logo, Ort und Daten steigen gemeinsam als ein Block auf, das Bild setzt sich dabei ganz leicht */
@keyframes ko-titel-ein {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}
.ko-hero-inner { animation: ko-titel-ein 0.9s var(--ko-ease) 0.2s backwards; }
@keyframes ko-bild-setzen {
	from { scale: 1.04; }
	to   { scale: 1; }
}
.ko-kulisse { animation: ko-bild-setzen 1.6s var(--ko-ease) both; }
.ko-intro-gesehen .ko-hero-inner,
.ko-intro-gesehen .ko-kulisse { animation: none; }

/* Tablet/Desktop: Titelblock mittig über dem Inhalt, Bilder im Breitformat.
   Ort, Daten und Dank stehen wie auf dem Handy zentriert unter dem Logo. */
@media (min-width: 760px) {
	.ko-hero { min-height: clamp(470px, 40vw, 600px); align-items: center; }
	.ko-hero-inner {
		display: grid;
		justify-content: center;
		justify-items: center;
		max-width: var(--text-breite);
		padding: calc(var(--nav-h) + 18px) var(--text-rand) 56px;
	}
	.ko-hero-inner > * { max-width: 560px; }
	.ko-logo { width: 440px; }
	.ko-kulisse::after {
		background:
			radial-gradient(ellipse 42% 58% at 50% 55%, rgba(11, 29, 68, 0.55) 0%, rgba(11, 29, 68, 0.28) 55%, rgba(11, 29, 68, 0) 100%),
			linear-gradient(180deg, rgba(11, 29, 68, 0.3) 0%, rgba(11, 29, 68, 0) 18%);
	}
}

/* =========================================================
   Navigation: liegt oben auf dem Kopfbild, wird beim Scrollen zur festen Leiste (ko-seite.js: .ko-nav-fest)
   ========================================================= */

.ko-nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 30;
	height: var(--nav-h);
	transition: background-color .3s ease, box-shadow .3s ease;
}
/* über dem Bild nur ein schmaler, leichter Verlauf für die Lesbarkeit */
.ko-nav::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: calc(var(--nav-h) * 1.5);
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(8, 20, 48, 0.6) 0%, rgba(8, 20, 48, 0) 100%);
	transition: opacity .3s ease;
}
.ko-nav.ko-nav-fest,
.ko-nav.ko-nav-offen {
	background: var(--ko-tiefblau);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.ko-nav.ko-nav-fest::before,
.ko-nav.ko-nav-offen::before { opacity: 0; }
.ko-nav-leiste { height: var(--nav-h); }

#hauptul {
	margin: 0 auto;
	list-style: none;
}
/* Menüpunkte in der Plakatschrift, keine Pillen */
#hauptul a {
	position: relative;
	display: block;
	color: var(--nav-farbe);
	font-family: var(--ko-font-plakat);
	font-weight: normal;
	font-size: var(--nav-groesse);
	letter-spacing: var(--nav-abstand);
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	text-shadow: 0 1px 10px rgba(4, 12, 32, 0.7);
}
.ko-nav-fest #hauptul a { text-shadow: none; }
#hauptul a#selected { color: #fff; }

/* ---------- Handy: Leiste mit kleinem Logo + Burger, Menü klappt darunter auf ---------- */
@media (max-width: 759px) {
	.ko-nav-leiste {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 0 6px 0 var(--ko-rand);
	}
	.ko-nav-logo { display: block; line-height: 0; transition: opacity .25s ease, transform .25s ease, visibility .25s; }
	/* solange das grosse Logo oben sichtbar ist, bleibt das kleine verborgen */
	.ko-logo-verstecken .ko-nav-logo { opacity: 0; visibility: hidden; transform: translateY(-6px); }
	.ko-nav-logo img { height: 26px; width: auto; }

	.ko-burger {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		height: 44px;
		padding: 0 12px;
		border: 0;
		border-radius: 999px;
		background: transparent;
		color: #fff;
		font: inherit;
		font-family: var(--ko-font-plakat);
		font-weight: normal;
		font-size: var(--nav-groesse);
		letter-spacing: var(--nav-abstand);
		text-transform: uppercase;
		cursor: pointer;
	}
	.ko-burger:hover, .ko-burger:focus-visible { background: rgba(255, 255, 255, 0.12); }
	.ko-burger-icon { position: relative; width: 24px; height: 18px; }
	.ko-burger-icon span,
	.ko-burger-icon::before,
	.ko-burger-icon::after {
		content: "";
		position: absolute;
		left: 0; right: 0;
		height: 2.5px;
		border-radius: 2px;
		background: currentColor;
		transition: transform .2s ease, opacity .2s ease, top .2s ease;
	}
	.ko-burger-icon::before { top: 0; }
	.ko-burger-icon span { top: 7.75px; }
	.ko-burger-icon::after { top: 15.5px; }
	.ko-nav-offen .ko-burger-icon::before { top: 7.75px; transform: rotate(45deg); }
	.ko-nav-offen .ko-burger-icon span { opacity: 0; }
	.ko-nav-offen .ko-burger-icon::after { top: 7.75px; transform: rotate(-45deg); }

	/* Menü-Liste: ohne JavaScript immer sichtbar, mit JavaScript nur aufgeklappt */
	#hauptul { padding: 4px var(--ko-rand) 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
	.ko-nav-js #hauptul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(11, 29, 68, 0.97);
		box-shadow: 0 14px 24px rgba(0, 0, 0, 0.4);
	}
	.ko-nav-js.ko-nav-offen #hauptul { display: block; }
	#hauptul li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
	#hauptul li:last-child { border-bottom: 0; }
	#hauptul a { padding: 14px 8px 14px 14px; font-size: calc(var(--nav-groesse) + 3px); }
	/* aktive Seite mit roter Linie links */
	#hauptul a#selected { box-shadow: inset 3px 0 0 var(--ko-rot); }
	#hauptul .ko-menue-tickets a { color: #fff; }
	#hauptul .ko-menue-tickets a::after { content: " →"; color: var(--ko-rot); }
}

/* ---------- Tablet/Desktop: kleines Logo links (erscheint, sobald das grosse weggescrollt ist), Menü rechts ---------- */
@media (min-width: 760px) {
	/* Navigation auf derselben linken Kante wie der Kopftext */
	.ko-nav {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		padding: 0 var(--text-links);
	}
	.ko-nav-leiste { display: flex; align-items: center; }
	.ko-burger { display: none; }
	.ko-nav-logo { display: block; line-height: 0; transition: opacity .3s ease, transform .3s ease, visibility .3s; }
	.ko-nav-logo img { height: 30px; width: auto; }
	.ko-logo-verstecken .ko-nav-logo { opacity: 0; visibility: hidden; transform: translateY(-6px); }

	#hauptul {
		display: flex;
		align-items: center;
		gap: clamp(2px, 1vw, 10px);
		margin: 0;
		padding: 0;
	}
	#hauptul a { padding: 10px 12px; }
	#hauptul a:hover, #hauptul a:focus-visible { color: #fff; }

	/* Linie unter dem Menüpunkt: aktiv voll, beim Darüberfahren angedeutet */
	#hauptul a::after {
		content: "";
		position: absolute;
		left: 12px; right: 12px; bottom: 4px;
		height: 2px;
		border-radius: 2px;
		background: var(--ko-rot);
		transform: scaleX(0);
		transform-origin: left center;
		opacity: 0.6;
		transition: transform .25s ease, opacity .25s ease;
	}
	#hauptul a:hover::after, #hauptul a:focus-visible::after { transform: scaleX(1); }
	#hauptul a#selected::after { transform: scaleX(1); opacity: 1; }

	/* Tickets: der einzige Knopf, ganz rechts */
	#hauptul .ko-menue-tickets { order: 99; margin-left: 8px; }
	#hauptul .ko-menue-tickets a {
		padding: 9px 18px;
		border-radius: 999px;
		background: var(--ko-rot);
		color: #fff;
		box-shadow: 0 4px 14px rgba(228, 0, 13, 0.35);
		transition: background .2s ease, transform .2s ease;
	}
	#hauptul .ko-menue-tickets a::after { display: none; }
	#hauptul .ko-menue-tickets a:hover,
	#hauptul .ko-menue-tickets a:focus-visible { background: var(--ko-rot-dunkel); transform: translateY(-1px); }
	#hauptul .ko-menue-tickets a#selected { box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(228, 0, 13, 0.35); }
}

/* =========================================================
   Inhalt
   ========================================================= */

.ko-main {
	max-width: var(--ko-breite);
	margin: 0 auto;
	padding: 24px var(--ko-rand) 40px;
}

/* Programm-Seiten: Panels liegen direkt auf dem Nachthimmel */
.ko-panel { margin: 0; }

.ko-panel-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 14px;
}
.ko-panel-kopf h1 {
	margin: 0;
	font-family: var(--ko-font-plakat);
	font-weight: 700;
	font-size: clamp(26px, 7vw, 38px);
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.ko-jahrzahl { color: rgba(255, 255, 255, 0.55); }
/* das laufende Jahr steht schon im Kopf (Daten) – im Programm-Titel nur im Archiv zeigen */
.ko-jahrzahl-aktuell { display: none; }

.ko-jahr select {
	font: inherit;
	font-size: 15px;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	padding: 6px 30px 6px 12px;
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
	background-position: right 15px center, right 10px center;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}
.ko-jahr option { color: #000; }


.ko-hinweis, .ko-credit-hell { font-size: 14px; color: rgba(255, 255, 255, 0.65); margin-top: 16px; }
.ko-leer { font-size: 17px; background: rgba(255, 255, 255, 0.06); padding: 16px; border-radius: 8px; }
.ko-leer a { color: #fff; }

/* ---------- gemeinsame Zeilen-Mechanik (<details>) ---------- */

.ko-film > summary, .ko-konzert > summary {
	list-style: none;
	cursor: pointer;
	position: relative;
}
.ko-film > summary::-webkit-details-marker, .ko-konzert > summary::-webkit-details-marker { display: none; }

.ko-mehr {
	position: absolute;
	right: 2px;
	top: 50%;
	width: 28px; height: 28px;
	margin-top: -14px;
	border-radius: 50%;
	border: 2px solid currentColor;
	opacity: 0.7;
	transition: transform .2s ease, opacity .2s;
}
.ko-mehr::before, .ko-mehr::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	width: 12px; height: 2px; margin: -1px 0 0 -6px;
	background: currentColor;
}
.ko-mehr::after { transform: rotate(90deg); }
details[open] > summary .ko-mehr { transform: rotate(45deg); opacity: 1; }
summary:hover .ko-mehr { opacity: 1; }

.ko-detail { display: flex; gap: 14px; align-items: flex-start; padding: 4px 0 16px; }
.ko-detail-bild { flex: 0 0 96px; }
.ko-detail-bild img { display: block; width: 100%; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.ko-detail-text { flex: 1 1 auto; min-width: 0; font-size: 15px; }
.ko-beschreibung { margin-bottom: 12px; overflow-wrap: anywhere; }
.ko-beschreibung p { margin: 0 0 8px; }

.ko-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.ko-chips li { font-size: 13px; font-weight: bold; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }

.ko-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ko-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: bold;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background .15s, color .15s;
}
.ko-btn-rot { background: var(--ko-rot); color: #fff; }
.ko-btn-rot:hover, .ko-btn-rot:focus-visible { background: var(--ko-rot-dunkel); }
.ko-btn-hell { border-color: #fff; color: #fff; }
.ko-btn-hell:hover, .ko-btn-hell:focus-visible { background: #fff; color: var(--ko-navy); }
.ko-btn-violett { background: var(--ko-violett); color: #fff; }
.ko-btn-violett:hover, .ko-btn-violett:focus-visible { background: #1d1a52; }
.ko-btn-violett-hell { border-color: var(--ko-violett); color: var(--ko-violett); }
.ko-btn-violett-hell:hover, .ko-btn-violett-hell:focus-visible { background: var(--ko-violett); color: #fff; }

/* ---------- Film-Zeilen (Film-Plakat) ---------- */

.ko-film { border-top: 2px solid var(--ko-linie); }
.ko-liste > .ko-film:last-child { border-bottom: 2px solid var(--ko-linie); }
.ko-film > summary { padding: 10px 40px 12px 2px; display: block; }
.ko-film-kopf { display: block; font-size: clamp(15px, 4.2vw, 19px); letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.92); }
.ko-zeit { white-space: nowrap; }
.ko-film-titel {
	display: block;
	font-family: var(--ko-font-plakat);
	font-weight: 700;
	font-size: clamp(22px, 6.4vw, 34px);
	line-height: 1.12;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin-top: 1px;
	overflow-wrap: anywhere;
}
.ko-film-kurz { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.68); margin-top: 3px; }
.ko-film > summary:hover .ko-film-titel { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ko-film .ko-detail { color: rgba(255, 255, 255, 0.92); }
.ko-film-info { display: block; min-width: 0; }

/* Filmplakat immer sichtbar, links neben Zeit und Titel */
.ko-film-mit-bild > summary {
	display: grid;
	grid-template-columns: 79px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}
.ko-film-poster { display: block; line-height: 0; }
.ko-film-poster img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.ko-film-mit-bild .ko-film-titel { font-size: clamp(20px, 5.6vw, 30px); }
@media (min-width: 760px) {
	.ko-film-mit-bild > summary { grid-template-columns: 106px minmax(0, 1fr); gap: 20px; }
}

/* ---------- Konzert-Seite (Seebühnen-Plakat) ---------- */

.ko-panel-konzert {
	background: var(--ko-gelb);
	color: var(--ko-tinte);
	margin: 0 calc(-1 * var(--ko-rand));
	padding: 20px var(--ko-rand) 18px;
}
@media (min-width: 760px) {
	.ko-panel-konzert { margin: 0; border-radius: 6px; padding: 26px 28px 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
}

.ko-konzert-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 16px;
	margin-bottom: 14px;
}
.ko-konzert-kopf h1 { margin: 0; line-height: 1; }
.ko-k-h1 {
	display: block;
	font-family: var(--ko-font-plakat);
	font-weight: normal;
	font-size: clamp(40px, 12vw, 72px);
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--ko-rot);
	/* weisse Kontur + violetter Schatten wie auf dem Plakat */
	text-shadow:
		-2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
		0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff,
		4px 5px 0 var(--ko-violett);
}
.ko-k-h2 {
	display: block;
	margin-top: 6px;
	font-family: var(--ko-font-plakat);
	font-weight: normal;
	font-size: clamp(20px, 5.6vw, 32px);
	color: var(--ko-violett);
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.ko-k-h2 sub { font-size: 0.6em; }

.ko-konzert-kopf-rechts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.ko-zeitbadge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ko-rot);
	color: #fff;
	border: 2px solid #fff;
	border-radius: 8px;
	padding: 4px 12px 4px 8px;
	font-family: var(--ko-font-plakat);
	font-size: 26px;
	line-height: 1.1;
	transform: rotate(-4deg);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.ko-zeitbadge sup { font-size: 0.55em; }
.ko-uhr {
	position: relative;
	width: 22px; height: 22px;
	border: 2px solid #fff;
	border-radius: 50%;
}
.ko-uhr::before, .ko-uhr::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 2px; background: #fff; transform-origin: bottom center; }
.ko-uhr::before { height: 7px; margin-left: -1px; }
.ko-uhr::after { height: 5px; margin-left: -1px; transform: rotate(120deg); }

.ko-panel-konzert .ko-jahr select {
	color: var(--ko-violett);
	border-color: var(--ko-violett);
	background-color: rgba(255, 255, 255, 0.35);
	background-image: linear-gradient(45deg, transparent 50%, var(--ko-violett) 50%), linear-gradient(135deg, var(--ko-violett) 50%, transparent 50%);
}

/* Konzert-Zeilen */
.ko-konzert { border-top: 1px solid rgba(228, 0, 13, 0.55); color: var(--ko-tinte); }
.ko-panel-konzert .ko-liste > .ko-konzert:last-child { border-bottom: 1px solid rgba(228, 0, 13, 0.55); }
.ko-konzert > summary {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	align-items: baseline;
	gap: 0 12px;
	padding: 9px 40px 9px 0;
}
.ko-k-tag, .ko-k-zeit {
	font-family: var(--ko-font-schmal);
	font-weight: bold;
	font-size: 17px;
	text-align: right;
	white-space: nowrap;
}
.ko-k-text { display: block; }
.ko-k-name {
	font-family: var(--ko-font-fett);
	font-weight: 900;
	font-size: clamp(20px, 5.6vw, 28px);
	line-height: 1.12;
	color: var(--ko-violett);
	letter-spacing: 0.01em;
	margin-right: 10px;
	overflow-wrap: anywhere;
}
.ko-k-genre {
	display: inline-block;
	font-family: var(--ko-font-schmal);
	font-style: italic;
	font-weight: bold;
	font-size: clamp(15px, 4.2vw, 19px);
	line-height: 1.2;
}
.ko-konzert .ko-mehr { color: var(--ko-violett); }
.ko-konzert > summary:hover .ko-k-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ko-konzert .ko-detail { padding-left: 90px; }
.ko-konzert .ko-chips li { background: rgba(46, 42, 114, 0.12); }

@media (max-width: 480px) {
	.ko-konzert > summary { grid-template-columns: 1fr; padding-right: 36px; }
	.ko-k-tag { text-align: left; font-size: 15px; }
	.ko-konzert .ko-detail { padding-left: 0; }
}

.ko-konzert-fuss { margin-top: 16px; font-size: 15px; }
.ko-konzert-fuss p { margin: 0 0 8px; }
.ko-konzert-fuss a { color: var(--ko-violett); font-weight: bold; }
.ko-credit { font-style: italic; }

/* ---------- Programm: pro Abend Konzert + Film ---------- */

.ko-abende { display: grid; gap: 18px; }
.ko-abend {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.ko-abend-datum {
	margin: 0;
	padding: 10px 14px;
	font-family: var(--ko-font-plakat);
	font-weight: 700;
	font-size: clamp(18px, 5vw, 22px);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: var(--ko-rot);
}
.ko-abend .ko-konzert { background: var(--ko-gelb); border: 0; padding: 0 14px; }
.ko-abend .ko-konzert > summary { grid-template-columns: 52px minmax(0, 1fr); padding: 10px 36px 10px 0; }
.ko-abend .ko-k-zeit { text-align: left; color: var(--ko-violett); }
/* Bandname bewusst zurückhaltend: der Film bleibt der Hauptakt des Abends */
.ko-abend .ko-k-name {
	font-family: var(--ko-font);
	font-weight: bold;
	font-size: 17px;
	letter-spacing: 0;
}
.ko-abend .ko-k-genre { font-size: 15px; display: inline; }
/* Band-Zeile einzeilig; zu langer Text endet mit "…" (aufgeklappt wieder vollständig) */
.ko-abend .ko-k-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
.ko-abend .ko-konzert[open] .ko-k-text { white-space: normal; }
.ko-abend .ko-konzert .ko-detail { padding-left: 64px; }
.ko-abend .ko-film { border: 0; padding: 0 14px; }
.ko-abend .ko-film-kopf { font-weight: bold; color: var(--ko-gelb); }

@media (max-width: 480px) {
	.ko-abend .ko-konzert > summary { grid-template-columns: 46px minmax(0, 1fr); }
	.ko-abend .ko-konzert .ko-detail { padding-left: 0; }
}

/* =========================================================
   Textseiten (Kontakt, Sponsoring, Archiv, Filmarchiv)
   ========================================================= */

.ko-main-text {
	background: #fff;
	color: var(--ko-tinte);
	border-radius: 0;
	margin-top: 0;
	padding-top: 20px;
}
@media (min-width: 760px) {
	.ko-main-text { border-radius: 8px; margin-top: 28px; margin-bottom: 32px; padding: 28px 32px 36px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
}
.ko-main-text a { color: var(--ko-navy-hell); }
.ko-main-text a:hover { color: var(--ko-rot); }

.t1 {
	font-family: var(--ko-font-plakat);
	font-weight: 700;
	font-size: clamp(28px, 7vw, 40px);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.15;
	color: var(--ko-navy);
	margin: 0 0 6px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--ko-rot);
}
.t1 select { font-size: 16px; margin-left: 6px; vertical-align: middle; }
.t2, .t3 {
	font-weight: bold;
	font-size: 19px;
	color: var(--ko-navy);
	margin: 22px 0 6px;
	padding-left: 10px;
	border-left: 4px solid var(--ko-rot);
	line-height: 1.25;
}
.t3 { font-size: 16px; }
.t-text { padding: 6px 0; }
.t-titel { padding: 8px 0 0; }
.t-block { padding: 0 0 8px; }
.t-text ul, .t-block ul { padding-left: 20px; margin: 4px 0; }
.t-text li { margin-bottom: 4px; }
.ko-main-text table { max-width: 100%; }
.ko-main-text table td { vertical-align: top; }

/* Buttons auf weissen Textseiten behalten ihre eigene Schriftfarbe */
.ko-main-text .ko-btn-rot, .ko-main-text .ko-btn-rot:hover { color: #fff; text-decoration: none; }
.ko-main-text .ko-actions { margin: 12px 0 4px; }

/* Tickets: Verkaufsstellen als Karten (Logo + Adresse) */
.ko-orte {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.ko-orte li {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 14px;
	border: 1px solid #e1e5ec;
	border-radius: 8px;
	background: #f7f9fc;
}
.ko-ort-logo { flex: 0 0 110px; display: flex; justify-content: center; line-height: 0; }
.ko-ort-logo img { max-width: 110px; max-height: 60px; width: auto; height: auto; }
.ko-ort-text { min-width: 0; line-height: 1.5; }
@media (max-width: 420px) {
	.ko-orte li { flex-direction: column; align-items: flex-start; gap: 10px; }
	.ko-ort-logo { flex: none; justify-content: flex-start; }
}

.kbstyle {
	width: 100px;
	height: 100px;
	max-width: none;
	object-fit: cover;
	margin: 0 12px 0 0;
	border-radius: 50%;
	vertical-align: top;
}

/* Alte Programm-Markup-Klassen (Archivseiten) */
.hiddentext { display: none; }
.filmtitel { font-size: 22px; font-weight: bold; }

/* Filmarchiv-Tabelle */
.film-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
td.film, th.film { border-bottom: 1px solid #ddd; padding: 7px 8px; text-align: left; }
th.film { background: var(--ko-navy); color: #fff; }
th.ko-year { background: var(--ko-rot); font-size: 16px; }

@media (max-width: 600px) {
	.film-table, .film-table tbody { display: block; }
	.film-table thead { display: none; }
	.film-table tr.ko-film-row { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 8px 4px; border-bottom: 1px solid #ddd; }
	.film-table tr.ko-film-row td.film { border: 0; padding: 0; }
	.film-table td.ko-film-title { flex: 1 0 100%; order: -1; font-size: 16px; }
	.film-table td.ko-film-date, .film-table td.ko-film-meta { color: #555; font-size: 13px; }
	.film-table td.ko-film-meta:empty { display: none; }
	.film-table td.ko-film-meta[data-label]::before { content: attr(data-label) ": "; }
	.film-table tr.ko-year-row, .film-table tr.ko-year-row th { display: block; }
}

/* =========================================================
   Fuss: Sponsoren-Leiste wie auf dem Plakat
   ========================================================= */

.ko-fuss {
	background: #081636;
	text-align: center;
	padding: 28px var(--ko-rand) 30px;
}
.ko-fuss-inner { max-width: 1040px; margin: 0 auto; }
.ko-fuss-label {
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}
.ko-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 14px;
	margin: 0 0 22px;
}
.ko-logos a { display: block; line-height: 0; opacity: 0.9; transition: opacity .15s; }
.ko-logos a:hover { opacity: 1; }
.ko-logos img { width: auto; height: 44px; }
@media (min-width: 760px) {
	.ko-logos img { height: 54px; }
	/* Hauptsponsoren stehen hier schon im Band unter dem Kopf */
	.ko-fuss-haupt { display: none; }
}

.ko-fuss-links { display: flex; justify-content: center; gap: 22px; margin: 4px 0 8px; font-weight: bold; }
.ko-fuss-links a { text-decoration: none; }
.ko-fuss-links a:hover { text-decoration: underline; }
.ko-url { margin: 6px 0 0; font-size: clamp(18px, 5vw, 26px); letter-spacing: 0.2em; padding-left: 0.2em; }


/* ---------- Vorschau-Hinweis (nur mit gültigem Vorschau-Schlüssel) ---------- */
/* unten rechts, damit er nicht unter der festen Navigation verschwindet */
.ko-preview-hinweis {
	position: fixed;
	right: 12px;
	bottom: 12px;
	z-index: 95;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	background: var(--ko-gelb, #ffd21f); color: #021a3d;
	font: bold 14px/1.3 Arial, sans-serif; text-align: center;
	padding: 8px 16px;
}
@media (max-width: 480px) { .ko-preview-hinweis { left: 8px; right: 8px; bottom: 8px; } }

/* ---------- Verpflegung: Karten statt fester 500px-Tabellen ---------- */
.ko-gastro { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 760px) {
	.ko-gastro { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.ko-gastro-karte {
	display: flex;
	flex-direction: column;
	padding: 4px 16px 16px;
	border: 1px solid #e1e5ec;
	border-radius: 8px;
	background: #f7f9fc;
	min-width: 0;
}
.ko-gastro-karte .t2 { margin-top: 14px; }
.ko-gastro-karte p { margin: 4px 0 10px; line-height: 1.5; }
.ko-gastro-liste { margin: 4px 0 10px; padding-left: 20px; line-height: 1.5; }
.ko-gastro-liste li { margin-bottom: 4px; }
/* Fotos: immer drei Spalten nebeneinander, auf schmalen Handys kleiner, nie breiter als das Original (150px) */
.ko-gastro-bilder {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 150px));
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}
.ko-gastro-bilder img {
	display: block;
	width: 100%;
	max-width: 150px;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 6px;
}
.ko-gastro-bilder img.ko-gastro-logo { aspect-ratio: 1; max-width: 100px; object-fit: contain; background: #fff; }
.ko-gastro-hinweis {
	margin-top: 4px;
	padding: 10px 12px;
	border-left: 4px solid var(--ko-rot);
	border-radius: 4px;
	background: #fff;
	line-height: 1.5;
}
.ko-gastro-hinweis ul { margin: 6px 0 0; padding-left: 20px; }
.ko-ausgebucht { color: var(--ko-rot); }

/* ---------- Kontakt: OK-Mitglieder als Karten (Foto + Angaben) ---------- */
.ko-team {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
@media (min-width: 760px) {
	.ko-team { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.ko-team li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px;
	border: 1px solid #e1e5ec;
	border-radius: 8px;
	background: #f7f9fc;
	min-width: 0;
}
.ko-team-foto {
	flex: 0 0 auto;
	width: 84px;
	height: 84px;
	object-fit: cover;
	border-radius: 50%;
}
@media (min-width: 760px) {
	.ko-team-foto { width: 96px; height: 96px; }
}
.ko-team-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.ko-team-rolle {
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ko-rot);
}
.ko-team-name { font-size: 17px; color: var(--ko-navy); margin: 1px 0 2px; }
.ko-team-aufgaben { font-size: 15px; }
.ko-team-kontakt { margin-top: 6px; font-size: 15px; }
/* Telefon und E-Mail je auf eigener Zeile; lange Adressen dürfen umbrechen */
.ko-team-kontakt a { display: block; padding: 2px 0; overflow-wrap: anywhere; }

/* ---------- Allgemeine Karten für Textseiten (Archiv, Sponsoring) ---------- */
.ko-karten { display: grid; gap: 14px; margin: 14px 0 6px; }
@media (min-width: 760px) {
	.ko-karten { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.ko-karte {
	display: flex;
	flex-direction: column;
	padding: 4px 16px 14px;
	border: 1px solid #e1e5ec;
	border-radius: 8px;
	background: #f7f9fc;
	min-width: 0;
}
.ko-karte .t2 { margin-top: 14px; }
.ko-karte p { margin: 4px 0 8px; line-height: 1.5; }
.ko-karte .ko-actions { margin-top: auto; padding-top: 4px; }
.ko-karte ul { margin: 4px 0 0; padding-left: 20px; line-height: 1.5; }
.ko-btn-navy { background: var(--ko-navy); color: #fff; }
.ko-btn-navy:hover, .ko-btn-navy:focus-visible { background: var(--ko-nacht); }
.ko-main-text .ko-btn-navy, .ko-main-text .ko-btn-navy:hover { color: #fff; text-decoration: none; }

/* Archiv: Presseartikel – Titel als Link, darunter Zeitung und Datum */
.ko-presse { list-style: none; margin: 8px 0 0; padding: 0; }
.ko-presse li { padding: 9px 0; border-bottom: 1px solid #e1e5ec; line-height: 1.35; }
.ko-presse li:last-child { border-bottom: 0; }
.ko-presse a { font-weight: bold; }
.ko-presse span { display: block; margin-top: 2px; font-size: 14px; color: #5b6575; }
@media (min-width: 760px) {
	.ko-presse { columns: 2; column-gap: 32px; }
	.ko-presse li { break-inside: avoid; }
}

/* Archiv: Jahresberichte als Schaltflächen */
.ko-jahre { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ko-jahre a {
	display: inline-block;
	min-width: 64px;
	padding: 8px 12px;
	border: 1px solid #c9d1dd;
	border-radius: 999px;
	text-align: center;
	font-weight: bold;
	text-decoration: none;
}
.ko-jahre a:hover, .ko-jahre a:focus-visible { background: var(--ko-navy); border-color: var(--ko-navy); color: #fff; }

/* Sponsoring: Angebote mit Preis – Handy: Preis unter dem Text, ab Tablet rechts daneben */
.ko-preise { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.ko-preise li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px;
	border: 1px solid #e1e5ec;
	border-radius: 8px;
	background: #f7f9fc;
	line-height: 1.45;
}
.ko-preis-text b { display: block; color: var(--ko-navy); }
.ko-preis-text small, .ko-preis small { display: block; margin-top: 2px; font-size: 13px; color: #5b6575; }
.ko-preis { font-weight: bold; color: var(--ko-rot); white-space: nowrap; }
.ko-preis small { font-weight: normal; }
@media (min-width: 600px) {
	.ko-preise li { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 20px; }
	.ko-preis { text-align: right; flex: 0 0 auto; }
}

/* Sponsoring: Kontaktangaben hervorgehoben */
.ko-kontaktbox {
	margin: 8px 0 4px;
	padding: 12px 14px;
	border-left: 4px solid var(--ko-rot);
	border-radius: 4px;
	background: #f7f9fc;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

/* ---------- Breite Bildschirme: Inhalt ohne eigenen Seitenrand ---------- */
@media (min-width: 1200px) {
	.ko-layout {
		display: grid;
		grid-template-columns: minmax(0, var(--ko-breite));
		justify-content: center;
		padding: 0 var(--ko-rand);
	}
	.ko-layout > .ko-main { margin: 0; max-width: none; padding-left: 0; padding-right: 0; }
	.ko-layout > .ko-main-text { margin-top: 28px; margin-bottom: 32px; padding: 28px 32px 36px; }
}

/* =========================================================
   Hauptsponsoren als schmales Band unter dem Kopf (ab Tablet; auf dem Handy stehen sie im Fuss)
   ========================================================= */
.ko-band { display: none; }
@media (min-width: 760px) {
	.ko-band {
		display: block;
		position: relative;
		z-index: 2;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		background: rgba(255, 255, 255, 0.035);
	}
	.ko-band-inner {
		display: flex;
		align-items: center;
		gap: 24px;
		max-width: var(--ko-breite);
		margin: 0 auto;
		padding: 10px var(--ko-rand);
	}
	/* ohne Titel: die Logos teilen sich die ganze Breite und wachsen proportional mit (Bilder 200x64) */
	.ko-band-logos { flex: 1; display: flex; justify-content: space-between; gap: 16px; }
	.ko-band-logos a { display: block; flex: 1 1 0; min-width: 0; max-width: 160px; line-height: 0; opacity: 0.85; transition: opacity .15s; }
	.ko-band-logos a:hover, .ko-band-logos a:focus-visible { opacity: 1; }
	.ko-band-logos img { display: block; width: 100%; height: auto; }
}

/* =========================================================
   Bilder-Karussell im Filmstreifen vor dem Fuss (ko-galerie.php, ko-seite.js)
   ========================================================= */
.ko-galerie {
	--loch: 14px;
	--bild-b: clamp(250px, 30vw, 430px);
	position: relative;
	margin: 36px 0 0;
	padding: calc(var(--loch) + 14px) 0 calc(var(--loch) + 10px);
	background: #07070a;
	overflow: hidden;
}
/* Perforation oben und unten (abgerundete Löcher wie beim 35-mm-Film) */
.ko-galerie::before, .ko-galerie::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: var(--loch);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Crect x='7' y='1' width='14' height='12' rx='3' fill='%23efe9dc'/%3E%3C/svg%3E") 0 0 / 28px 14px repeat-x;
	opacity: 0.8;
}
.ko-galerie::before { top: 7px; }
.ko-galerie::after { bottom: 7px; }

.ko-galerie-spur {
	display: flex;
	gap: 12px;
	padding: 0 clamp(16px, 4vw, 48px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 clamp(16px, 4vw, 48px);
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	/* weiche Ränder zeigen: hier geht es weiter */
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 clamp(16px, 4vw, 48px), #000 calc(100% - clamp(16px, 4vw, 48px)), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 clamp(16px, 4vw, 48px), #000 calc(100% - clamp(16px, 4vw, 48px)), transparent 100%);
}
.ko-galerie-spur::-webkit-scrollbar { display: none; }
.ko-galerie-spur:focus-visible { outline: 2px solid var(--ko-gelb); outline-offset: -2px; }
.ko-galerie-bild {
	flex: 0 0 var(--bild-b);
	margin: 0;
	aspect-ratio: 3 / 2;
	border-radius: 4px;
	overflow: hidden;
	scroll-snap-align: start;
	background: #15151a;
}
.ko-galerie-bild a { display: block; height: 100%; cursor: zoom-in; }
.ko-galerie-bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale .8s var(--ko-ease, ease), filter .4s ease;
	filter: saturate(0.95) brightness(0.94);
}
.ko-galerie-bild a:hover img,
.ko-galerie-bild a:focus-visible img { scale: 1.045; filter: none; }
.ko-galerie-bild a:focus-visible { outline: 2px solid var(--ko-gelb); outline-offset: -2px; }

/* Pfeile (nur mit Maus/Trackpad sichtbar, auf dem Handy wischt man) */
.ko-galerie-pfeil {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 48px;
	height: 48px;
	margin-top: -30px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: rgba(11, 29, 68, 0.72);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: opacity .3s ease, background .2s ease, scale .2s ease;
}
.ko-galerie-pfeil::before {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 11px; height: 11px;
	border: solid currentColor;
	border-width: 2px 2px 0 0;
	transform: translate(-65%, -50%) rotate(45deg);
}
.ko-galerie-zurueck { left: clamp(10px, 2vw, 28px); }
.ko-galerie-zurueck::before { transform: translate(-35%, -50%) rotate(-135deg); }
.ko-galerie-weiter { right: clamp(10px, 2vw, 28px); }
.ko-galerie-pfeil:hover, .ko-galerie-pfeil:focus-visible { background: var(--ko-rot); scale: 1.06; }
.ko-galerie-pfeil:disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: hover) {
	.ko-galerie:hover .ko-galerie-pfeil, .ko-galerie-pfeil:focus-visible { opacity: 1; }
}

/* ---------- Grosse Ansicht ---------- */
.ko-grossbild {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	overflow: hidden;
}
.ko-grossbild::backdrop { background: rgba(4, 10, 28, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ko-grossbild[open] { display: grid; place-items: center; animation: ko-einblenden-gb .35s var(--ko-ease, ease); }
@keyframes ko-einblenden-gb { from { opacity: 0; } to { opacity: 1; } }
.ko-grossbild figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: 94vw; }
.ko-grossbild img {
	display: block;
	max-width: 94vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
/* nur die Nummer des Bildes ("3 / 16"); die Beschreibung steht als Alternativtext am Bild */
.ko-grossbild figcaption { font-size: 12px; letter-spacing: 0.16em; text-align: center; color: rgba(255, 255, 255, 0.5); }
.ko-grossbild .ko-galerie-pfeil { opacity: 1; position: fixed; margin-top: -24px; }
.ko-grossbild-zu {
	position: fixed;
	top: 16px; right: 16px;
	width: 44px; height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: rgba(11, 29, 68, 0.6);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.ko-grossbild-zu:hover, .ko-grossbild-zu:focus-visible { background: var(--ko-rot); }
/* Pause-Knopf fürs Weiterblättern (Text nur für Screenreader, sichtbar ist das Symbol) */
.ko-galerie-pause {
	position: absolute;
	right: calc(clamp(16px, 4vw, 48px) + 8px);   /* unten rechts auf dem Bildstreifen */
	bottom: calc(var(--loch) + 20px);
	z-index: 2;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(11, 29, 68, 0.7);
	color: #fff;
	font-size: 0;
	cursor: pointer;
}
.ko-galerie-pause span {
	position: absolute;
	left: 50%; top: 50%;
	width: 10px; height: 11px;
	transform: translate(-50%, -50%);
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}
.ko-galerie-pause[aria-pressed="true"] span {
	width: 0; height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
	transform: translate(-35%, -50%);
}
.ko-galerie-pause:hover, .ko-galerie-pause:focus-visible { background: var(--ko-rot); }

/* =========================================================
   Bewegung nur, wenn sie erwünscht ist
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
	/* Kopf: nur das erste Bild */
	.ko-bild { opacity: 0; }
	.ko-bild-1 { opacity: 1; }
	.ko-galerie-spur { scroll-behavior: auto; }
}
