/* ==========================================================================
   Stedinger Shanty Chor – Layout & Komponenten
   Werte kommen ausschließlich aus tokens.css.
   ========================================================================== */

/* ---- Grundlagen --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-text);
  font-size: var(--fs-text);
  line-height: var(--lh-text);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: var(--stretch-titel);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 750; line-height: 1.08; }
h4 { font-size: var(--fs-h4); font-weight: 700; font-stretch: var(--stretch-ui); line-height: 1.2; }
p { margin: 0 0 var(--s-4); max-width: var(--zeile); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--akzent); text-decoration-thickness: 2px; }

/* sichtbarer Tastaturfokus – überall gleich */
:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 2px;
}
.dunkel :focus-visible, .dunkel:focus-visible { outline-color: var(--c-halstuch-hell); }

.nur-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprung {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--c-halstuch); color: var(--c-weiss);
  font-family: var(--f-display); font-weight: 700; padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-s);
}
.sprung:focus { top: var(--s-4); }

.rahmen { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--rand); }
.abschnitt { padding-block: var(--abschnitt); background: var(--bg); color: var(--text); }
.dunkel, .segeltuch { background: var(--bg); color: var(--text); }

.lead { font-size: var(--fs-lead); line-height: 1.45; }
.klein { font-size: var(--fs-klein); color: var(--text-2); }

/* ---- Knöpfe -------------------------------------------------------------- */
.knopf {
  --k-bg: var(--c-halstuch); --k-text: var(--c-weiss); --k-rand: var(--c-halstuch);
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 3rem; padding: var(--s-3) var(--s-5);
  background: var(--k-bg); color: var(--k-text);
  border: 2px solid var(--k-rand); border-radius: var(--radius-s);
  font-family: var(--f-display); font-stretch: var(--stretch-ui);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background var(--dauer-kurz), color var(--dauer-kurz), border-color var(--dauer-kurz);
}
.knopf:hover { --k-bg: var(--c-halstuch-tief); --k-rand: var(--c-halstuch-tief); text-decoration: none; }
.knopf--linie { --k-bg: transparent; --k-text: var(--text); --k-rand: currentColor; }
.knopf--linie:hover { --k-bg: var(--text); --k-text: var(--bg); --k-rand: var(--text); }
.knopf--klein { min-height: 2.5rem; padding: var(--s-2) var(--s-4); font-size: 1rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.textlink {
  font-family: var(--f-display); font-stretch: var(--stretch-ui); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--akzent);
  text-decoration-thickness: 2px; text-underline-offset: .25em;
}
.textlink:hover { text-decoration-thickness: 4px; }

/* ---- Kopf ---------------------------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-marine); color: var(--c-weiss);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.kopf__innen {
  display: flex; align-items: center; gap: var(--s-6);
  min-height: 5rem;
}
.marke {
  display: flex; align-items: center; gap: var(--s-3);
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.marke img { width: 46px; height: auto; }
.marke__name {
  font-family: var(--f-display); font-stretch: 75%; font-weight: 800;
  font-size: 1.3rem; line-height: 1; letter-spacing: .005em;
}
.marke__zusatz {
  display: block; font-family: var(--f-text); font-style: italic;
  font-weight: 400; font-size: .9rem; color: var(--c-marine-300); margin-top: 3px;
}
.marke:hover .marke__name { text-decoration: underline; text-decoration-color: var(--c-halstuch-hell); text-underline-offset: .2em; }

.navi { margin-left: auto; }
.navi ul { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.navi a {
  display: block; padding: var(--s-2) var(--s-3);
  font-family: var(--f-display); font-stretch: var(--stretch-ui);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.navi a:hover { border-bottom-color: rgba(255,255,255,.5); }
.navi a[aria-current="page"] { border-bottom-color: var(--c-halstuch-hell); font-weight: 750; }
.kopf .knopf { flex-shrink: 0; }
.menue-knopf { display: none; }

/* ---- Bühne (Startseiten-Held) ------------------------------------------- */
.buehne {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, calc(100vh - 5rem), 980px);
  display: grid; grid-template-rows: 1fr;
  color: var(--c-weiss); background: var(--c-marine);
}
.buehne__bild {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
}
.buehne::before { /* Lesbarkeit: Himmel oben, Wasserlinie unten – Gesichter bleiben frei */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(19,32,61,.82) 0%, rgba(19,32,61,.55) 22%, rgba(19,32,61,0) 44%),
    linear-gradient(0deg, rgba(19,32,61,.97) 0%, rgba(19,32,61,.8) 17%, rgba(19,32,61,0) 36%);
}
.buehne__inhalt {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7);
  padding-block: var(--s-7) var(--s-7);
}
.buehne__titel {
  font-size: var(--fs-hero); font-stretch: 62%; font-weight: 850;
  line-height: .84; text-transform: uppercase; letter-spacing: -.005em;
  margin: 0; max-width: 62%;
  text-shadow: 0 2px 24px rgba(19,32,61,.35);
}
.buehne__titel .zeile { display: block; overflow: hidden; padding-bottom: .03em; white-space: nowrap; }
.buehne__titel .zeile > span { display: inline-block; }
.buehne__unten { display: flex; align-items: end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.buehne__unten .knopfreihe { margin-top: 0; }
.buehne__lead { font-size: var(--fs-lead); line-height: 1.4; max-width: 40ch; color: var(--c-weiss); margin: 0; }
.buehne__lead em { font-style: italic; }
.buehne .knopf--linie { --k-text: var(--c-weiss); }
.buehne .knopf--linie:hover { --k-bg: var(--c-weiss); --k-text: var(--c-marine); --k-rand: var(--c-weiss); }
.bildnachweis {
  position: absolute; right: var(--rand); bottom: var(--s-2);
  font-size: .8rem; color: var(--c-marine-300); font-style: italic; margin: 0;
}

/* ---- Wimpel (nächster Auftritt) – die eine Signatur-Animation ----------- */
.wimpel {
  position: absolute; top: 0; right: clamp(1.25rem, 6vw, 7rem); z-index: 2;
  width: clamp(250px, 22vw, 320px);
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
}
.wimpel__leine { /* Flaggleine aus dem Kopf herunter */
  width: 2px; height: clamp(1.5rem, 4vh, 3rem);
  background: linear-gradient(var(--c-weiss), rgba(255,255,255,.85));
}
.wimpel__leine::after { /* Schäkel */
  content: ""; display: block; width: 12px; height: 12px; margin: -2px 0 0 -5px;
  border: 2px solid var(--c-weiss); border-radius: 50%; position: relative; top: 100%;
}
.wimpel__tuch {
  position: relative; width: 100%;
  background: var(--c-halstuch); color: var(--c-weiss);
  padding: var(--s-5) var(--s-5) calc(var(--s-4) + 46px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 46px), 0 100%);
  box-shadow: inset 0 6px 0 rgba(0,0,0,.12);
  margin-top: 6px;
}
.wimpel__titel {
  font-family: var(--f-text); font-style: italic; font-weight: 500;
  font-stretch: normal; font-size: 1.05rem; line-height: 1.2; margin: 0 0 var(--s-3);
}
.wimpel__datum {
  display: block; font-family: var(--f-display); font-stretch: 62%; font-weight: 850;
  font-size: 3.6rem; line-height: .86; text-transform: uppercase; margin: 0;
}
.wimpel__wochentag { display: block; font-size: 1.15rem; font-stretch: 85%; font-weight: 700; letter-spacing: .01em; text-transform: none; margin-bottom: 4px; }
.wimpel__was { font-family: var(--f-display); font-stretch: 80%; font-weight: 750; font-size: 1.45rem; line-height: 1.1; margin: var(--s-3) 0 var(--s-1); }
.wimpel__wo { font-size: 1rem; line-height: 1.4; margin: 0 0 var(--s-3); }
.wimpel a { color: var(--c-weiss); }
.wimpel :focus-visible { outline-color: var(--c-weiss); }
.wimpel .beispiel-marke { background: var(--c-weiss); color: var(--c-halstuch); }

/* Ladesequenz: Titel steigt über die Wasserlinie, Wimpel wird gehisst und weht aus */
@media (prefers-reduced-motion: no-preference) {
  .js .buehne__bild { animation: bild-ruhe 1800ms var(--ease-aus) both; }
  .js .buehne__titel .zeile > span { animation: titel-steigt 900ms var(--ease-aus) both; }
  .js .buehne__titel .zeile:nth-child(2) > span { animation-delay: 120ms; }
  .js .buehne__titel .zeile:nth-child(3) > span { animation-delay: 240ms; }
  .js .buehne__lead, .js .buehne .knopfreihe { animation: einblenden 700ms 450ms var(--ease-aus) both; }
  .js .wimpel { animation: wimpel-wehen var(--dauer-wimpel) 350ms cubic-bezier(.3,.6,.2,1) both; }
}
@keyframes bild-ruhe { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes titel-steigt { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
@keyframes wimpel-wehen {
  0%   { transform: translateY(-110%) rotate(0deg); }
  28%  { transform: translateY(0) rotate(-7deg) skewY(1.5deg); }
  46%  { transform: rotate(5deg) skewY(-1deg); }
  62%  { transform: rotate(-2.8deg); }
  77%  { transform: rotate(1.4deg); }
  89%  { transform: rotate(-.5deg); }
  100% { transform: rotate(0); }
}

/* ---- Abschnittsköpfe ------------------------------------------------------ */
.abschnitt__kopf {
  display: flex; align-items: end; justify-content: space-between; gap: var(--s-6);
  flex-wrap: wrap; margin-bottom: var(--s-7);
}
.abschnitt__kopf p { margin: var(--s-4) 0 0; color: var(--text-2); }

/* ---- Terminliste (Startseite & Übersicht) -------------------------------- */
.termine-raster {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: var(--s-8); align-items: start;
}
.terminliste { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.termin {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: var(--s-2) var(--s-6); align-items: center;
  padding: var(--s-5) 0; border-bottom: 1px solid var(--linie);
  position: relative;
}
.termin__datum {
  font-family: var(--f-display); font-stretch: 62%; font-weight: 850;
  line-height: .9; text-transform: uppercase;
}
.termin__wochentag, .termin__monat {
  display: block; font-size: 1.1rem; font-stretch: 80%; font-weight: 700; letter-spacing: .02em;
}
.termin__wochentag { text-transform: none; margin-bottom: .2rem; }
.termin__tag { display: block; font-size: 3.4rem; }
.termin__monat { margin-top: 2px; }
.termin__titel { font-size: 1.6rem; font-stretch: 75%; font-weight: 780; line-height: 1.1; }
.termin__titel a { text-decoration: none; }
.termin__titel a:hover { text-decoration: underline; text-decoration-color: var(--akzent); }
.termin__kategorie {
  font-family: var(--f-display); font-size: .9rem; font-weight: 700;
  line-height: 1.2; margin: var(--s-1) 0;
}
.termin__meta { margin: var(--s-1) 0 0; font-size: 1.05rem; color: var(--text-2); max-width: none; }
.termin__zeit {
  font-family: var(--f-display); font-stretch: var(--stretch-ui); font-weight: 700;
  font-size: 1.15rem; white-space: nowrap; text-align: right;
}
.termin--beispiel { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(62,100,116,.05) 10px 20px); }
.termin--beispiel .termin__datum { color: var(--c-weser); }

.beispiel-marke {
  display: inline-block; vertical-align: middle;
  font-family: var(--f-display); font-stretch: var(--stretch-ui); font-weight: 700;
  font-size: .8rem; line-height: 1; padding: 4px 7px; margin-left: var(--s-2);
  border-radius: var(--radius-s); background: var(--c-weser); color: var(--c-weiss);
  letter-spacing: .01em; position: relative; top: -2px;
}
.terminliste__leer { padding: var(--s-6) 0; color: var(--text-2); }

.anfrage-kasten {
  --text: var(--c-weiss); --text-2: var(--c-marine-300); --linie: rgba(255,255,255,.18); --fokus: var(--c-halstuch-hell); --akzent: var(--c-halstuch-hell);
  background: var(--c-marine); color: var(--c-weiss);
  padding: var(--s-6); border-radius: var(--radius-m);
  position: relative; overflow: hidden;
}
.anfrage-kasten h3 { font-size: 2rem; margin-bottom: var(--s-4); }
.anfrage-kasten p { color: var(--c-marine-300); }
.anfrage-kasten .knopf { margin-top: var(--s-5); }
.anfrage-kasten__symbol { position: absolute; right: -28px; bottom: -28px; width: 150px; opacity: .14; }

/* ---- Der Chor (dunkel, Bildpaar) ---------------------------------------- */
.chor-raster {
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--s-6);
  align-items: center;
}
.chor-bilder { grid-column: 1 / span 7; display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s-4); align-items: end; }
.chor-bilder figure { margin: 0; }
.chor-bilder img { width: 100%; object-fit: cover; border-radius: var(--radius-s); }
.chor-bilder figure:first-child img { aspect-ratio: 4 / 5; }
.chor-bilder figure:last-child { margin-bottom: var(--s-8); }
.chor-bilder figure:last-child img { aspect-ratio: 3 / 4; }
.chor-text { grid-column: 9 / span 4; }
.chor-text h2 { margin-bottom: var(--s-5); }
.fakten { margin: var(--s-6) 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linie); }
.fakten div { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--linie); }
.fakten dt { font-family: var(--f-display); font-stretch: var(--stretch-ui); font-weight: 700; color: var(--text-2); font-size: 1rem; padding-top: 2px; }
.fakten dd { margin: 0; }

/* ---- Hörproben ----------------------------------------------------------- */
.hoerproben { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 var(--s-6); border-top: 2px solid var(--text); }
.hoerprobe { border-bottom: 1px solid var(--linie); }
.hoerprobe button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 2.75rem 1fr auto; align-items: center; gap: var(--s-4);
  padding: var(--s-4) 0;
  font-family: var(--f-display); font-stretch: 78%; font-weight: 750; font-size: 1.4rem; line-height: 1.1;
}
.hoerprobe button:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.hoerprobe__knopf {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--text);
  transition: background var(--dauer-kurz), border-color var(--dauer-kurz);
}
.hoerprobe__knopf svg { width: 14px; height: 14px; fill: currentColor; }
.hoerprobe button:hover .hoerprobe__knopf { background: var(--c-halstuch); border-color: var(--c-halstuch); color: var(--c-weiss); }
.hoerprobe button[aria-pressed="true"] .hoerprobe__knopf { background: var(--c-halstuch); border-color: var(--c-halstuch); color: var(--c-weiss); }
.hoerprobe__status { font-family: var(--f-text); font-style: italic; font-weight: 400; font-size: .95rem; color: var(--text-2); font-stretch: normal; }
.icon-pause { display: none; }
.hoerprobe button[aria-pressed="true"] .icon-play { display: none; }
.hoerprobe button[aria-pressed="true"] .icon-pause { display: block; }

/* ---- Mitsingen ------------------------------------------------------------ */
.mitsingen-raster { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--s-6); align-items: center; }
.mitsingen-bild { grid-column: 1 / span 6; margin: 0; }
.mitsingen-bild img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius-s); }
.mitsingen-text { grid-column: 8 / span 5; }
.mitsingen-text h2 { font-family: var(--f-text); font-stretch: normal; font-weight: 600; font-style: italic; text-transform: none; letter-spacing: -.01em; line-height: 1; margin-bottom: var(--s-5); }

/* ---- Drei Wege ------------------------------------------------------------ */
.wege { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.weg { border-top: 2px solid var(--text); padding-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.weg img { width: 64px; height: 64px; object-fit: contain; margin-bottom: var(--s-2); }
.weg p { color: var(--text-2); flex: 1; }
.stimmen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--s-6);
  max-width: 68rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stimmen figure { margin: 0; padding: 0 0 0 var(--s-4); border-inline-start: 2px solid var(--akzent); overflow-wrap: anywhere; }
.stimmen blockquote { margin: 0; font-family: var(--f-text); font-size: var(--fs-lead); line-height: 1.45; }
.stimmen figcaption { margin-top: var(--s-3); font-size: .95rem; color: var(--text-2); }

/* ---- Fuß ------------------------------------------------------------------ */
.fuss { background: var(--c-marine); color: var(--c-weiss); padding-block: var(--s-8) var(--s-6); }
.fuss__raster { display: grid; grid-template-columns: 120px repeat(3, minmax(0,1fr)); gap: var(--s-7); align-items: start; }
.fuss__wappen { width: 110px; }
.fuss h2 { font-size: 1.25rem; font-stretch: var(--stretch-ui); font-weight: 700; margin-bottom: var(--s-3); color: var(--c-marine-300); }
.fuss p, .fuss address { font-style: normal; font-size: 1.05rem; line-height: 1.55; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); font-size: 1.05rem; }
.fuss__unten { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; font-size: .95rem; color: var(--c-marine-300); }

/* ---- Unterseiten ---------------------------------------------------------- */
.seitenkopf { background: var(--c-marine); color: var(--c-weiss); position: relative; overflow: hidden; isolation: isolate; }
.seitenkopf__innen { padding-block: var(--s-8) var(--s-7); }
.seitenkopf h1 { font-size: var(--fs-h1); font-stretch: 62%; font-weight: 850; text-transform: uppercase; line-height: .88; margin-bottom: var(--s-4); }
.seitenkopf p { color: var(--c-marine-300); font-size: var(--fs-lead); line-height: 1.4; max-width: 46ch; }
.seitenkopf--bild { min-height: 58vh; display: grid; align-items: end; }
.seitenkopf--bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.seitenkopf--bild::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(19,32,61,.95) 0%, rgba(19,32,61,.55) 40%, rgba(19,32,61,.05) 75%); }
.seitenkopf--bild p { color: var(--c-weiss); }

.brotkrumen { font-family: var(--f-display); font-stretch: var(--stretch-ui); font-size: .95rem; margin-bottom: var(--s-5); color: var(--c-marine-300); }
.brotkrumen ol { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--s-2); }
.brotkrumen li + li::before { content: "/"; margin-right: var(--s-2); opacity: .6; }

.inhalt-raster { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--s-6); }
.inhalt-haupt { grid-column: 1 / span 7; }
.inhalt-rand { grid-column: 9 / span 4; }
.fliesstext > * + * { margin-top: var(--s-4); }
.fliesstext h2 { margin-top: var(--s-7); margin-bottom: var(--s-2); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); }
.fliesstext h3 { margin-top: var(--s-6); }

/* Termine-Seite */
.monat { margin-top: var(--s-8); }
.monat:first-child { margin-top: 0; }
.monat__titel { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); margin-bottom: var(--s-4); display: flex; align-items: baseline; gap: var(--s-3); }
.monat__jahr { font-family: var(--f-text); font-style: italic; font-weight: 400; font-size: .55em; color: var(--text-2); font-stretch: normal; }
.termin--voll { grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: start; }
.termin--voll .termin__datum { padding-top: 4px; }
.termin__mehr { grid-column: 2 / -1; }
.termin__mehr p { margin: var(--s-2) 0 0; }
.termin__aktionen { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-3); font-size: 1rem; }
.termin:target { background: var(--c-segeltuch); box-shadow: -1rem 0 0 var(--c-segeltuch), 1rem 0 0 var(--c-segeltuch); }
.archiv { margin-top: var(--s-8); border-top: 2px solid var(--text); }
.archiv summary { cursor: pointer; padding: var(--s-4) 0; font-family: var(--f-display); font-stretch: var(--stretch-ui); font-weight: 700; font-size: 1.2rem; }
.archiv .terminliste { border-top: 0; opacity: .75; }

.hinweis-kasten { background: var(--c-segeltuch); padding: var(--s-6); border-radius: var(--radius-m); }
.hinweis-kasten + .hinweis-kasten, .anfrage-kasten + .hinweis-kasten { margin-top: var(--s-5); }
.hinweis-kasten h2, .hinweis-kasten h3 { font-size: 1.6rem; margin-bottom: var(--s-3); }

/* Wappen-Erklärung */
.wappen-raster { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-6); list-style: none; padding: 0; margin: var(--s-6) 0 0; }
.wappen-raster li { display: flex; flex-direction: column; gap: var(--s-3); }
.wappen-raster img { width: 84px; height: 84px; object-fit: contain; }
.wappen-raster h3 { font-size: 1.5rem; }
.wappen-raster p { font-size: 1.05rem; color: var(--text-2); }

/* Liederliste */
.liederliste { columns: 3 16rem; column-gap: var(--s-7); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.liederliste li { break-inside: avoid; padding: var(--s-2) 0; border-bottom: 1px solid var(--linie); font-family: var(--f-display); font-stretch: 80%; font-weight: 650; font-size: 1.2rem; }

/* Galerie */
.galerie { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(6, minmax(0,1fr)); grid-auto-rows: 15vw; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.galerie li { margin: 0; overflow: hidden; border-radius: var(--radius-s); }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie .g-breit { grid-column: span 4; grid-row: span 2; }
.galerie .g-hoch { grid-column: span 2; grid-row: span 2; }
.galerie .g-mittel { grid-column: span 2; }
.galerie .g-halb { grid-column: span 3; grid-row: span 2; }

/* Vorstand */
.personen { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-6); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.person { border-top: 2px solid var(--text); padding-top: var(--s-4); }
.person h3 { font-size: 1.6rem; }
.person p { font-size: 1.05rem; color: var(--text-2); margin-top: var(--s-2); }

/* FAQ */
.fragen { border-top: 2px solid var(--text); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary {
  cursor: pointer; list-style: none; padding: var(--s-4) 2.5rem var(--s-4) 0; position: relative;
  font-family: var(--f-display); font-stretch: 80%; font-weight: 750; font-size: 1.4rem; line-height: 1.15;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 2rem; font-weight: 500; color: var(--akzent); }
.fragen details[open] summary::after { content: "–"; }
.fragen details > div { padding: 0 0 var(--s-5); }

/* ---- Formular ------------------------------------------------------------- */
.formular { display: grid; gap: var(--s-5); }
.feld { display: grid; gap: var(--s-2); }
.feld-zeile { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-5); }
.feld label, .formular legend {
  font-family: var(--f-display); font-stretch: var(--stretch-ui); font-weight: 700; font-size: 1.05rem;
}
.feld .klein { margin: 0; }
.feld input, .feld select, .feld textarea {
  font: inherit; font-size: 1.1rem; color: var(--c-marine);
  background: var(--c-weiss); border: 2px solid #8A93A6; border-radius: var(--radius-s);
  padding: .7rem .85rem; min-height: 3rem; width: 100%;
}
.feld textarea { min-height: 9rem; resize: vertical; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { border-color: var(--c-marine); outline-offset: 1px; }
.formular fieldset { border: 0; padding: 0; margin: 0; }
.formular legend { margin-bottom: var(--s-3); padding: 0; }
.anliegen { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-3); }
.anliegen label {
  display: flex; align-items: center; gap: var(--s-3); cursor: pointer;
  border: 2px solid var(--linie); border-radius: var(--radius-s); padding: var(--s-3) var(--s-4);
  font-family: var(--f-display); font-stretch: var(--stretch-ui); font-weight: 650; font-size: 1.1rem;
}
.anliegen input { width: 1.25rem; height: 1.25rem; accent-color: var(--c-halstuch); margin: 0; }
.anliegen label:has(input:checked) { border-color: var(--c-halstuch); background: #FBEDEC; }
.anliegen label:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 2px; }
.zusatz-auftritt { border-left: 4px solid var(--c-halstuch) !important; padding-left: var(--s-5) !important; display: grid; gap: var(--s-5); }
.zusatz-auftritt[hidden] { display: none; }
.einwilligung { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 1rem; }
.einwilligung input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--c-halstuch); flex-shrink: 0; }
.meldung { border-left: 4px solid var(--c-weser); background: #EAF1F3; padding: var(--s-4) var(--s-5); border-radius: var(--radius-s); }
.meldung:focus { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* ---- Fotoband (Startseite) ---------------------------------------------- */
.fotoband { background: var(--c-weiss); padding-bottom: var(--s-7); }
.fotoband__raster {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px;
  grid-template-columns: 1.15fr .9fr 1.15fr 1.3fr;
  grid-template-rows: repeat(2, clamp(220px, 24vw, 460px));
  grid-template-areas: "a b c d" "a e c f";
}
.fb-a { grid-area: a; } .fb-b { grid-area: b; } .fb-c { grid-area: c; }
.fb-d { grid-area: d; } .fb-e { grid-area: e; } .fb-f { grid-area: f; }
.fotoband__text { margin-top: var(--s-5); max-width: var(--max); }

/* Fotos, die sich vergrößern lassen */
.foto-link { display: block; width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; position: relative; }
.foto-link img { width: 100%; height: 100%; object-fit: cover; }
.foto-link:focus-visible { outline: 4px solid var(--fokus); outline-offset: -4px; border-radius: 0; }
.foto-link:focus-visible img { opacity: .9; }

/* ---- Willkommen an Bord (Abschluss Startseite) -------------------------- */
.willkommen { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(520px, 78vh, 900px); display: grid; align-items: center; }
.willkommen__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; }
.willkommen::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(270deg, rgba(19,32,61,.92) 0%, rgba(19,32,61,.7) 30%, rgba(19,32,61,0) 58%); }
.willkommen__inhalt { display: flex; justify-content: flex-end; padding-block: var(--s-8); }
.willkommen__text { max-width: 30rem; }
.willkommen__text h2 { margin-bottom: var(--s-4); }

/* Randfotos (Unterseiten) */
.rand-foto { margin: var(--s-5) 0 0; }
.rand-foto img { width: 100%; border-radius: var(--radius-s); aspect-ratio: 4 / 3; object-fit: cover; }
.rand-foto img[src*="/portraet-saengerin-"] { object-position: center top; }

/* ---- Großansicht (Lightbox) --------------------------------------------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(13, 21, 41, .97); color: var(--c-weiss);
}
.lightbox::backdrop { background: rgba(13, 21, 41, .8); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__kopf { display: flex; justify-content: flex-end; padding: var(--s-4) var(--s-5); }
.lightbox__buehne { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4); padding-inline: var(--s-5); min-height: 0; }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 10rem); width: auto; height: auto; object-fit: contain; }
.lightbox__fuss { text-align: center; padding: var(--s-4) var(--s-5) var(--s-5); font-size: 1rem; color: var(--c-marine-300); }
.lightbox__fuss p { margin: 0 auto; }
.lightbox button {
  font-family: var(--f-display); font-stretch: var(--stretch-ui); font-weight: 700; font-size: 1rem;
  background: transparent; color: var(--c-weiss); border: 2px solid rgba(255,255,255,.55); border-radius: var(--radius-s);
  min-height: 2.75rem; min-width: 2.75rem; padding: var(--s-2) var(--s-4); cursor: pointer;
}
.lightbox button:hover { background: var(--c-weiss); color: var(--c-marine); }
.lightbox [data-lb-zurueck], .lightbox [data-lb-weiter] { font-size: 1.9rem; line-height: 1; min-width: 3.25rem; min-height: 3.25rem; padding: 0 0 4px; }
.lightbox button:focus-visible { outline: 3px solid var(--c-halstuch-hell); outline-offset: 3px; }

/* ---- Prototyp-Kennzeichnung ---------------------------------------------- */
.fehlt {
  background: #FFF4D6; color: #5A4300; font-family: var(--f-display); font-stretch: var(--stretch-ui);
  font-weight: 600; font-size: .85em; padding: 1px 6px; border-radius: var(--radius-s);
  border: 1px dashed #B08A1E; white-space: normal;
}
.dunkel .fehlt, .buehne .fehlt, .wimpel .fehlt { background: #FFE9A8; color: #3F2F00; }
.entwurf { background: #FFF4D6; color: #3F2F00; border-bottom: 1px solid #E5C86A; font-family: var(--f-display); font-stretch: var(--stretch-ui); font-size: .95rem; }
.entwurf__innen { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 2.5rem; padding-block: var(--s-1); }
.entwurf p { margin: 0; max-width: none; }
.entwurf button { font: inherit; font-weight: 700; cursor: pointer; background: var(--c-marine); color: var(--c-weiss); border: 0; border-radius: var(--radius-s); padding: 4px 12px; min-height: 2rem; }
.hinweise-aus .entwurf p { visibility: hidden; }
.hinweise-aus .fehlt { background: transparent; border-color: transparent; color: inherit; padding: 0; font: inherit; }
.hinweise-aus .beispiel-marke { display: none; }

/* ==========================================================================
   Anpassung für Tablet und Smartphone (vorbereitet, Feinschliff in Phase 2)
   ========================================================================== */
@media (max-width: 1100px) {
  .navi a { padding-inline: var(--s-2); font-size: 1rem; }
  .marke__zusatz { display: none; }
  .termine-raster { grid-template-columns: 1fr; }
  .chor-bilder { grid-column: 1 / -1; }
  .chor-text { grid-column: 1 / -1; }
  .mitsingen-bild, .mitsingen-text { grid-column: 1 / -1; }
  .inhalt-haupt, .inhalt-rand { grid-column: 1 / -1; }
  .hoerproben { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wappen-raster { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fuss__raster { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .galerie { grid-auto-rows: 22vw; }
}
@media (max-width: 860px) {
  .kopf__innen { flex-wrap: wrap; gap: var(--s-3); min-height: 4.25rem; padding-block: var(--s-2); }
  .menue-knopf {
    display: inline-flex; margin-left: auto; align-items: center; gap: var(--s-2);
    background: transparent; color: var(--c-weiss); border: 2px solid rgba(255,255,255,.6); border-radius: var(--radius-s);
    font-family: var(--f-display); font-stretch: var(--stretch-ui); font-weight: 700; font-size: 1rem; padding: var(--s-2) var(--s-3); min-height: 2.75rem;
  }
  .navi { flex-basis: 100%; margin: 0; }
  .js .navi { display: none; }
  .js .navi.offen { display: block; }
  .navi ul { flex-direction: column; padding-bottom: var(--s-3); }
  .navi a { padding: var(--s-3) 0; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .kopf .knopf { display: none; }
  /* Smartphone: Foto oben frei, darunter Titel, dann der Wimpel – nichts verdeckt Gesichter */
  .buehne { display: flex; flex-direction: column; min-height: auto; }
  .buehne::before { display: none; }
  .buehne__bild { position: relative; inset: auto; z-index: 0; height: auto; aspect-ratio: 4 / 3; object-position: 50% 45%; }
  .buehne__inhalt { padding-block: var(--s-6) var(--s-5); }
  .buehne__titel { max-width: none; }
  .wimpel { position: relative; right: auto; top: auto; order: 3; align-self: flex-start; margin: 0 var(--rand) var(--s-7); width: min(320px, 100% - 2 * var(--rand)); }
  .wimpel__leine { display: none; }
  .wimpel__datum { font-size: 3rem; }
  .termin, .termin--voll { grid-template-columns: 4.5rem minmax(0,1fr); }
  .termin__tag { font-size: 2.6rem; }
  .termin__zeit { grid-column: 2; text-align: left; }
  .termin__mehr { grid-column: 2; }
  .hoerproben, .wege, .personen, .feld-zeile, .anliegen { grid-template-columns: 1fr; }
  .fakten div { grid-template-columns: 1fr; gap: 0; }
  .fuss__raster { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 44vw; }
  .galerie li { grid-column: span 1 !important; grid-row: span 1 !important; }
  .fotoband__raster { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 46vw; grid-template-areas: "a c" "a c" "b e" "d f"; }
  .willkommen { align-items: end; }
  .willkommen::before { background: linear-gradient(0deg, rgba(19,32,61,.95) 0%, rgba(19,32,61,.75) 40%, rgba(19,32,61,0) 70%); }
  .willkommen__inhalt { justify-content: flex-start; }
  .lightbox__buehne { padding-inline: var(--s-2); gap: var(--s-2); }
  .bildnachweis { display: none; }
}

@media (max-width: 600px) {
  /* Querformatige Gruppenbilder stehen auf schmalen Geräten oberhalb des Textes. */
  .buehne__bild { aspect-ratio: auto; }

  .seitenkopf--bild,
  .willkommen {
    display: block;
    min-height: 0;
  }
  .seitenkopf--bild::before,
  .willkommen::before { display: none; }
  .seitenkopf--bild img,
  .willkommen__bild {
    position: static;
    width: 100%;
    height: auto;
  }
  .seitenkopf--bild .seitenkopf__innen,
  .willkommen__inhalt { padding-block: var(--s-6) var(--s-7); }

  .chor-bilder { align-items: center; }
  .chor-bilder figure:first-child img { aspect-ratio: auto; }
  .chor-bilder figure:last-child { margin-bottom: 0; }
  .rand-foto img { aspect-ratio: auto; }

  .termin__mehr p {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  /* Hochformate belegen dieselbe Höhe wie zwei Querformate. */
  .galerie {
    --galerie-spaltenbreite: calc((100vw - 2 * var(--rand) - var(--s-3)) / 2);
    grid-auto-rows: calc((var(--galerie-spaltenbreite) * 2 / 3 - 2 * var(--s-3)) / 3);
  }
  .galerie li { grid-row: span 3 !important; }
  .galerie .g-breit { grid-column: 1 / -1 !important; }
  .galerie .g-breit,
  .galerie .g-hoch { grid-row: span 6 !important; }
  .galerie .g-breit img,
  .galerie .g-hoch img { object-fit: contain; }

  .fotoband__raster {
    grid-auto-rows: auto;
    grid-template-areas: "a c" "b e" "d f";
  }
  .fotoband__raster li { aspect-ratio: 3 / 2; }
  .fotoband__raster .fb-a,
  .fotoband__raster .fb-c { aspect-ratio: 2 / 3; }
}

/* Reduzierte Bewegung: keine Animationen, keine sanften Übergänge */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
