/*
 * ADK Bayern – Abschlussjahrgang 2027
 * Design-System: Plakat-Ästhetik – warmes Papierweiß / Tinte / Karminrot.
 * Anton (Display) + Archivo (Text). Harte Kanten, 3px-Rahmen, harte Schatten.
 * Ausschließlich CSS-Transitions/-Animationen (kein JS für Animationen).
 * Mobile-first; Breakpoints bei 640px und 960px.
 */

:root {
  --bg: #fbfaf7;           /* helles Weiß mit minimaler Wärme – passt zum roten Akzent */
  --ink: #111111;          /* Tinte – Kontrast auf --bg ca. 18:1 */
  --paper: #ffffff;
  --acc: #a4161a;          /* Karminrot – gleiche Helligkeit wie das frühere Ultramarin, Kontrast auf Weiß ca. 7.8:1 */
  --acc-deep: #7c1013;
  --acc-on-dark: #ff8a80;  /* Rot-Variante für dunkle Flächen, Kontrast auf --ink ca. 7.5:1 */
  --muted: #60584f;        /* Kontrast auf --bg ca. 6.5:1 */
  --donate: #0F8A50;       /* Spenden-Grün – projektspezifische Zusatzfarbe (GoFundMe-Link) */
  --donate-soft: #CFEEDD;  /* helles Grün für Beschreibungstext auf --donate-Hintergrund */
  --line-soft: #ded5c6;    /* feine Trennlinien in statischen Listen */
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --shadow-acc: 7px 7px 0 var(--acc);
  --font-head: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --measure: 42rem;
  --pad: 1.25rem;
  /* Foto-Credit-Wasserzeichen (unten rechts auf allen großen Fotos).
     Gepflegt wird pro Bild in assets/data/credits.js – app.js setzt diese
     Variable je Foto passend. Der Wert hier ist nur der Notnagel, falls das
     JavaScript nicht läuft. */
  --foto-credit: "© Foto: ADK Bayern Jahrgang 2027";
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;              /* Anton hat nur ein Gewicht */
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); }

p { margin: 0 0 1em; }

::selection { background: var(--acc); color: #fff; }

a {
  color: var(--acc);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--acc-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 3px;
}

.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--acc);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;   /* Balken bleibt beim Scrollen sichtbar */
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem var(--pad);
  background: var(--ink);
  color: var(--bg);
}

/* Anker-Ziele nicht unter dem fixierten Balken verschwinden lassen */
[id] { scroll-margin-top: 4.5rem; }

.brand {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bg);
  white-space: nowrap;
}
.brand:hover { color: var(--bg); text-decoration: none; }
.brand span { color: var(--acc-on-dark); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-header nav a {
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-header nav a:hover {
  color: var(--acc-on-dark);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}

/* ---------- Foto-Credit / Wasserzeichen ----------
   Erscheint unten rechts auf allen großen Fotos; der Name wird zentral
   über die CSS-Variable --foto-credit (siehe :root) gepflegt. */

.hero-photo::after,
.group-band figure::after,
.portrait::after,
.prod-media:has(img)::after {
  content: var(--foto-credit);
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.15rem 0.4rem;
  pointer-events: none;
}
.portrait.no-img::after { content: none; }
/* Auch in der Lightbox-Großansicht sichtbar: dort ist der Credit die zweite
   Zeile der Fußzeile (.lightbox-footer), steht also immer unter dem
   Bildzähler – egal wie lang der Name ist und wie oft er umbricht. */
.lightbox-footer::after {
  content: var(--foto-credit);
  max-width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.2rem 0.5rem;
  pointer-events: none;
}

/* ---------- Hero (Startseite) ---------- */

.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem var(--pad) 2.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

/* Gruppenfoto neben dem Titel */
.hero-photo {
  position: relative;   /* Bezugsrahmen für das Foto-Credit-Wasserzeichen */
  margin: 0;
  border: var(--border);
  box-shadow: var(--shadow-acc);
  background: var(--paper);
  justify-self: center;
  width: 100%;
  max-width: 34rem;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.hero-kicker {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  margin: 0 0 1.4rem;
}

.hero-title {
  font-size: clamp(3.2rem, 13vw, 8.5rem);
  line-height: 0.92;
  margin-bottom: 0;
}
.hero-title-accent { display: block; color: var(--acc); }

.hero-text > p:last-child {
  max-width: 44ch;
  margin: 1.6rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
}

/* Laufband: reine CSS-Animation; als Link führt es direkt zur AVO-Anmeldung.
   Inhalt kommt aus assets/js/termine.js – bis dahin (und ohne JavaScript)
   bleibt das Band per hidden unsichtbar. */
.marquee[hidden] { display: none; }
.marquee {
  display: block;
  overflow: hidden;
  background: var(--acc);
  color: #fff;
  border-top: var(--border);
  border-bottom: var(--border);
  margin-top: 2.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.marquee:hover, .marquee:focus-visible {
  background: var(--acc-deep);
  color: #fff;
  text-decoration: none;
}
.marquee-in {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-in span {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 0 0.55rem 0.5rem;
  white-space: nowrap;
}
/* Verschiebt um genau 1/8 (= eine der 8 identischen Text-Kopien) und
   springt dann nahtlos zurück – Tempo unabhängig von der Kopienzahl. */
@keyframes marquee {
  to { transform: translateX(-12.5%); }
}

/* ---------- Einleitungstext (Startseite) ---------- */

.intro {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem var(--pad) 0;
}
.intro h2 { margin-bottom: 0.6rem; }
.intro p {
  max-width: var(--measure);
  font-size: 1.1rem;
  font-weight: 500;
}
.intro-sign {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--acc);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

/* ---------- Gruppenfoto-Band (Startseite) ----------
   Zweites Gruppenbild zwischen Ensemble und Aufführungen;
   blendet sich selbst aus, wenn assets/images/group-2.jpg fehlt. */

.group-band {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad) 4.5rem;
}
.group-band figure {
  position: relative;   /* Bezugsrahmen für das Foto-Credit-Wasserzeichen */
  margin: 0;
  border: var(--border);
  box-shadow: var(--shadow-acc);
  background: var(--paper);
}
.group-band img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.group-band figcaption {
  border-top: var(--border);
  padding: 0.6rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
}

/* ---------- Aufführungen (Startseite) ---------- */

.productions {
  padding: 1rem var(--pad) 4.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.productions h2 { margin-bottom: 1.5rem; }

.prod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.prod-card {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
}

.prod-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #eae2d3;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-media span {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: #c4a8a0;
}
.prod-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

/* Weitere Szenenfotos ({key}-2.jpg …) als Vorschaureihe unter dem Hauptbild;
   erzeugt von assets/js/termine.js, nur vorhandene Dateien erscheinen. */
.prod-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 0.6rem 0;
}
.prod-thumbs img {
  display: block;
  width: 4.2rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 2px solid var(--ink);
  cursor: zoom-in;
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.prod-thumbs img:hover,
.prod-thumbs img:focus-visible {
  translate: -2px -2px;
  box-shadow: 4px 4px 0 var(--acc);
}

.prod-body { padding: 1rem 1.1rem 1.2rem; }
/* Termin als auffälliger Akzent-Chip statt kleiner Overline.
   Ohne Premiere bleibt der Chip leer – dann muss das display: inline-block
   dem hidden-Attribut weichen (siehe assets/js/termine.js). */
.prod-date[hidden] { display: none; }
.prod-date {
  display: inline-block;
  margin: 0 0 0.6rem;
  background: var(--acc);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
}
.prod-text strong { color: var(--ink); }
.prod-card h3 { margin-bottom: 0.35em; }
.prod-venue {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.prod-text { margin: 0; color: var(--muted); font-size: 0.92rem; }
/* Gemeinsamer Button-Stil: Tickets, GoFundMe, Formular-Absenden */
.prod-tickets, .btn-cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--acc);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.prod-tickets:hover, .prod-tickets:focus-visible,
.btn-cta:hover, .btn-cta:focus-visible {
  translate: -2px -2px;
  box-shadow: 6px 6px 0 var(--ink);
  color: #fff;
  text-decoration: none;
}
/* Spenden-CTA: gleiches Grün wie der GoFundMe-Button auf der Linkseite. */
.btn-cta--donate { background: var(--donate); }

/* ---------- Ensemble-Grid ---------- */

.ensemble {
  padding: 3rem var(--pad) 4.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.ensemble h2 { margin-bottom: 1.5rem; }

/*
 * Flexbox statt Grid: Reihen, die nicht voll werden (z.B. 10 Personen bei
 * 3 Spalten), werden zentriert – so wirkt auch die letzte Reihe wie eine
 * Gruppe statt wie ein einzelner Rest am linken Rand.
 */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}
.grid .card { width: calc((100% - 1.4rem) / 2); }
/* Versetztes Plakat-Raster auch zweispaltig, damit sich der Look
   beim Wechsel der Spaltenzahl (Zoom/Fenstergröße) nicht ändert */
.grid .card:nth-child(2n) { margin-top: 2.6rem; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--border);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.card:hover, .card:focus-visible {
  translate: -2px -2px;
  box-shadow: 9px 9px 0 var(--acc);
  text-decoration: none;
  color: var(--ink);
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #eae2d3;   /* getönte Fläche hinter Foto/Fallback */
  border-bottom: var(--border);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-media.no-img img { display: none; }

/* Initialen-Fallback, solange kein Portraitfoto vorliegt */
.media-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 3rem;
  color: #c4a8a0;
  letter-spacing: 0.05em;
}
.no-img .media-fallback { display: flex; }

.card-body { padding: 0.85rem 0.9rem 1rem; }

.card-name {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.12;
  letter-spacing: 0.02em;
  /* Platz für zwei Zeilen reservieren: alle Kacheln behalten dieselbe
     Höhe/Proportion, egal ob ein Name umbricht oder nicht */
  min-height: 2.24em;
  transition: color 0.15s ease;
}
.card:hover .card-name { color: var(--acc); }

.card-cta {
  display: block;
  color: var(--acc);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ---------- Profilseite ---------- */

.profile {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem var(--pad) 4rem;
}

/* Name als Kopfzeile über beiden Spalten */
.profile-title { margin-bottom: 2rem; }
.profile-title h1 { margin-bottom: 0.15em; }

/* Pronomen als dezenter Untertitel direkt unter dem Namen */
.profile-pronouns {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/*
 * Zweispaltiges Layout gegen lange Scrollwege: mobil untereinander
 * (Portrait, darunter direkt die Kontaktlinks, dann die Inhalte),
 * auf breiten Bildschirmen Seitenleiste + Inhaltsspalte (siehe Breakpoint).
 */
.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.profile-head {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.portrait {
  position: relative;
  width: min(100%, 19rem);
  aspect-ratio: 3 / 4;
  background: #eae2d3;
  border: var(--border);
  box-shadow: var(--shadow-acc);
  overflow: hidden;
  flex-shrink: 0;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait.no-img img { display: none; }

.profile-intro h1 { margin-bottom: 0.25em; }
.coming-soon {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--acc);
  font-size: 1.4rem;
}

.profile-section {
  margin-bottom: 3rem;
  padding-top: 1.5rem;
  border-top: var(--border);
}
.profile-section h2 { margin-bottom: 0.9em; }

/* Steckbrief: umrandete Rastertabelle */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border: var(--border);
  background: var(--paper);
}
.facts dt {
  color: var(--acc);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 0.9rem 0;
  border-top: 2px solid var(--ink);
  /* Lange Labels („Zusatzqualifikationen“) passen sonst nicht in die schmale
     Label-Spalte der Desktop-Ansicht – lieber sauber trennen als überlaufen. */
  hyphens: auto;
  overflow-wrap: break-word;
}
.facts dd {
  margin: 0;
  padding: 0.15rem 0.9rem 0.7rem;
  font-weight: 500;
}
.facts dt:first-of-type { border-top: none; }

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact-list li { padding: 0.1rem 0; }

/* Biografie */
.bio p { max-width: var(--measure); }

/*
 * Statische Listen (Vorsprechrollen/-lieder & Credits):
 * bewusst KEIN Hover-Effekt und Standard-Cursor, damit nichts
 * fälschlich als klickbar wahrgenommen wird.
 */
.entry-list, .credit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  cursor: default;
}

.entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.entry:last-child { border-bottom: none; }
.entry-lead { font-weight: 700; }
.entry em { color: var(--muted); font-style: italic; }
.sep { color: var(--acc); font-weight: 700; }

.credit-list { margin-bottom: 2rem; }
.credit {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.credit:last-child { border-bottom: none; }
.credit-years {
  color: var(--acc);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.credit-production { font-weight: 700; }
.credit-author { color: var(--muted); }
.credit-role { font-style: italic; }
.credit-meta { color: var(--muted); font-size: 0.9rem; }

/* Showreel / Audio-Reel */
.reel {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
  border: var(--border);
  box-shadow: var(--shadow-acc);
}
.reel-audio {
  display: block;
  width: 100%;
}

/* Weitere Fotos ({slug}-2.jpg, …) als sichtbare Vorschauen direkt beim Portrait */
.head-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.head-thumbs img {
  display: block;
  width: 5.5rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: zoom-in;
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.head-thumbs img:hover,
.head-thumbs img:focus-visible {
  translate: -2px -2px;
  box-shadow: 6px 6px 0 var(--acc);
}

/*
 * Lightbox: Klick auf ein Foto zeigt es bildschirmfüllend.
 * Klick auf das große Bild zoomt auf Originalgröße (Overlay wird scrollbar),
 * Pfeile/Pfeiltasten blättern durch die Bilder derselben Person.
 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.92);
  display: flex;
  overflow: auto;
  padding: 1.5rem;
  cursor: zoom-out;
}
.lightbox img {
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  border: var(--border);
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--acc);
  cursor: zoom-in;
}
.lightbox.zoomed img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
/* Bedienelemente fixed, damit sie beim Scrollen im Zoom stehen bleiben */
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: var(--border);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--paper); }
.lightbox-nav {
  position: fixed;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-head);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  background: var(--bg);
  border: var(--border);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.lightbox-nav:hover { background: var(--paper); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
/* Fußzeile der Lightbox: Bildzähler (Zeile 1) und Foto-Credit (Zeile 2, als
   ::after – siehe oben) stehen untereinander im normalen Fluss. Der Container
   wächst mit dem Text, deshalb kann sich hier nichts überlagern. */
.lightbox-footer {
  position: fixed;   /* fixed wie die übrigen Bedienelemente: bleibt beim Zoom-Scrollen stehen */
  left: 50%;
  bottom: 1rem;
  translate: -50% 0;
  max-width: calc(100% - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}
.lightbox-count {
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

/* Hörproben-Liste (mehrere beschriftete Audio-Dateien) */
.audio-list {
  display: grid;
  gap: 1.25rem;
}
.audio-label {
  margin: 0 0 0.35rem;
  color: var(--acc);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Kontakt */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.contact-link {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.2rem;
  border: var(--border);
  box-shadow: 5px 5px 0 var(--ink);
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.contact-link:hover {
  translate: -2px -2px;
  box-shadow: 7px 7px 0 var(--acc);
  color: var(--ink);
  text-decoration: none;
}

/* Kompakte Kontaktlinks direkt unter dem Portrait (Seitenleiste) */
.contact-links-side {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.6rem;
  max-width: min(100%, 19rem);
}
.contact-links-side .contact-link {
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  box-shadow: 4px 4px 0 var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact-links-side .contact-link:hover {
  box-shadow: 6px 6px 0 var(--acc);
}

/* Erste Sektion der Inhaltsspalte ohne Trennlinie, damit beide
   Spalten auf gleicher Höhe beginnen */
.profile-main > .profile-section:first-child {
  border-top: none;
  padding-top: 0;
}
.profile-main > .profile-section:last-child { margin-bottom: 0; }

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--acc);
  padding-bottom: 0.15rem;
}
.back-link:hover { color: var(--acc); text-decoration: none; }

/* ---------- AVO: Abschlussvorsprechen (Startseite) ---------- */

.avo {
  padding: 1rem var(--pad) 4.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.avo h2 { margin-bottom: 0.6rem; }
.avo-lead {
  max-width: var(--measure);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Terminliste: jede Zeile führt zur Anmeldung */
.avo-dates {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.avo-dates li + li { border-top: 2px solid var(--ink); }
.avo-dates a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  padding: 0.8rem 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.avo-dates a:hover, .avo-dates a:focus-visible {
  background: #f3ede1;
  text-decoration: none;
  color: var(--ink);
}
.avo-date {
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
}
.avo-city {
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.avo-venue { color: var(--muted); font-size: 0.92rem; }
.avo-time {
  margin-left: auto;
  background: var(--acc);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}
.avo-time-tba { background: var(--muted); }

/* Trailer + GoFundMe nebeneinander – solange der Trailer fehlt (Attribut
   "hidden", siehe avo.js), fuellt der Spendenkasten die Zeile allein aus. */
.avo-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
/* Bewusst ohne Schlagschatten: Terminliste und Anmeldeformular sind die
   beiden Ankerpunkte der Sektion, diese Kaesten treten dahinter zurueck. */
.avo-trailer, .avo-support {
  background: var(--paper);
  border: var(--border);
  padding: 1.25rem 1.4rem 1.5rem;
}
.avo-support p { max-width: 38ch; }

/* Anmeldeformular */
.avo-form {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-acc);
  padding: 1.5rem 1.4rem 1.75rem;
  max-width: 38rem;
}
.avo-form h3 { margin-bottom: 0.4em; }
.form-field { margin: 1.1rem 0; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 0.35rem;
}
.form-field .optional { color: var(--muted); text-transform: none; letter-spacing: 0; }
.form-field select,
.form-field input {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.6rem 0.7rem;
}
.form-field select:focus-visible,
.form-field input:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 2px;
}
.form-status {
  margin: 1rem 0 0;
  font-weight: 700;
  color: var(--acc);
}
.form-status-error { color: var(--acc-deep); }
/* mailto-Fallback im Fehlerhinweis: übernimmt die Farbe des Status-Texts. */
.form-status a { color: inherit; text-decoration: underline; }

/* ---------- News (Startseite) ---------- */

.news {
  padding: 1rem var(--pad) 4.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.news h2 { margin-bottom: 1.25rem; }
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}
.news-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.5rem;
}
.news-item p { margin: 0; }

/* ---------- Bauchbinde unten („Engagiert uns“) ----------
   Bewusst auffälliger als das Laufband oben: dunkler Balken,
   pulsierende Leuchtpfeile als Lauflicht Richtung Anmeldung. */

.hire-banner {
  background: var(--ink);
  border-top: 3px solid var(--acc);
  border-bottom: 3px solid var(--acc);
}
.hire-banner a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 1.6rem var(--pad);
  text-decoration: none;
}
.hire-banner a:hover, .hire-banner a:focus-visible { text-decoration: none; }
.hire-text {
  font-family: var(--font-head);
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--bg);
  transition: color 0.15s ease;
}
.hire-banner a:hover .hire-text { color: var(--acc-on-dark); }
.hire-arrows {
  display: flex;
  gap: 0.25rem;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--acc-on-dark);
}
.hire-arrows span {
  animation: hire-glow 1.2s ease-in-out infinite;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--acc-on-dark);
}
/* Gestaffelte Verzögerung = Lauflicht-Effekt */
.hire-arrows span:nth-child(2) { animation-delay: 0.2s; }
.hire-arrows span:nth-child(3) { animation-delay: 0.4s; }
@keyframes hire-glow {
  0%, 100% { opacity: 0.35; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 6px #fff, 0 0 18px var(--acc-on-dark); }
}

/* ---------- Rechtstexte ---------- */

.legal {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem var(--pad) 4rem;
}
.legal h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal .placeholder { color: var(--acc); font-style: italic; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #c0b8ab;   /* Kontrast auf --ink ca. 8:1 */
  padding: 2rem var(--pad);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer nav {
  display: flex;
  gap: 1.25rem;
}
.site-footer a { color: #c0b8ab; font-weight: 700; }
.site-footer a:hover { color: var(--acc-on-dark); }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  :root { --pad: 2rem; }

  .brand { font-size: 1.25rem; }

  .grid { gap: 2rem; }
  .grid .card { width: calc((100% - 4rem) / 3); }
  /* Versetztes Plakat-Raster: jede mittlere Spalte rutscht nach unten */
  .grid .card:nth-child(2n) { margin-top: 0; }
  .grid .card:nth-child(3n+2) { margin-top: 2.6rem; }

  .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }

  .profile-head { flex-direction: row; align-items: flex-end; }

  .facts { grid-template-columns: 11rem 1fr; }
  .facts dt {
    padding: 0.7rem 0.9rem;
    border-right: 2px solid var(--ink);
  }
  .facts dd {
    padding: 0.7rem 0.9rem;
    border-top: 2px solid var(--ink);
  }
  .facts dd:first-of-type { border-top: none; }

  .credit { flex-direction: row; gap: 1.5rem; }
  .credit-years { flex: 0 0 6.5rem; padding-top: 0.15rem; }

  .avo-extra { align-items: start; }

  .site-footer { flex-direction: row; justify-content: space-between; align-items: center; }

  /* Lightbox: ab hier ist mehr Platz, der Credit bleibt also praktisch immer
     einzeilig. Zähler und Credit stehen trotzdem in derselben Spalte
     (.lightbox-footer) – nur etwas kompakter. */
  .lightbox-footer {
    max-width: min(40rem, calc(100% - 2rem));
    gap: 0.3rem;
  }
}

/* Sehr breite Viewports (großer Monitor oder herausgezoomt): fünf Kacheln pro Zeile */
@media (min-width: 125rem) {
  .ensemble { max-width: 110rem; }
  .grid .card { width: calc((100% - 8rem) / 5); }
  .grid .card:nth-child(3n+2) { margin-top: 0; }
  .grid .card:nth-child(5n+2),
  .grid .card:nth-child(5n+4) { margin-top: 2.6rem; }
}

@media (min-width: 960px) {
  /* Querformat-Gruppenfoto: Bildspalte bekommt mehr Platz als der Titel */
  .hero-inner {
    max-width: 80rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    padding-top: 4rem;
    align-items: center;
  }
  /* Titel an die schmalere Textspalte anpassen, damit „Jahrgang“ nicht abschneidet */
  .hero-title { font-size: clamp(3rem, 6.5vw, 5rem); }
  .hero-photo { justify-self: end; max-width: none; }

  /*
   * Profil auf breiten Bildschirmen: Seitenleiste (Portrait, Fotos,
   * Kontakt) bleibt beim Scrollen stehen, die Inhalte laufen daneben –
   * deutlich kürzere Scrollwege als untereinander.
   */
  .profile { max-width: 76rem; }
  .profile-layout {
    display: grid;
    grid-template-columns: 20rem minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
  .profile-side {
    position: sticky;
    top: 5rem;
  }
}

/* Nutzerpräferenz: reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  /* Ausnahme: das Laufband ist Kernbestandteil des Plakat-Looks und läuft bewusst weiter */
  .marquee-in { animation: marquee 30s linear infinite !important; }
}
