/* AC Germania Villingen – Stylesheet
   Farben stammen aus dem Vereinslogo (Türkis) und werden hier zentral festgelegt. */

:root {
  --tuerkis: #14cfb0;
  --tuerkis-dunkel: #0a8a76;
  --tuerkis-hell: #e3f8f4;
  --nacht: #0f1d24;
  --nacht-2: #172a33;
  --text: #1c2b31;
  --text-leise: #5a6b72;
  --linie: #dfe7e6;
  --grund: #ffffff;
  --grund-2: #f4f7f6;
  --warn: #fff4e0;
  --warn-rand: #f0b44c;

  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(15, 29, 36, .06), 0 8px 24px rgba(15, 29, 36, .08);
  --breite: 1180px;
  --sanft: cubic-bezier(.22, 1, .36, 1);
  --federnd: cubic-bezier(.34, 1.4, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--grund);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tuerkis-dunkel); text-underline-offset: 3px; }
a:hover { color: var(--nacht); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--nacht); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; margin-top: 1.2em; margin-bottom: .3em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 2px; }

.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--nacht); color: #fff; padding: 8px 14px; border-radius: 8px; }

.breite { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.breite-text { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }
.abschnitt { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.abschnitt + .abschnitt:not(.band) { padding-top: 0; }
.band { background: var(--grund-2); }
.band + .abschnitt { padding-top: clamp(48px, 7vw, 88px) !important; }
.klein { font-size: .875rem; color: var(--text-leise); }

.dachzeile {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tuerkis-dunkel); margin-bottom: .6em;
}

/* ------------------------------------------------------------------ Hinweisbalken */
.hinweis {
  background: var(--nacht); color: #fff; font-size: .9rem;
  display: flex; gap: 12px; align-items: center; justify-content: center;
  padding: 10px 48px 10px 20px; position: relative; text-align: center;
}
.hinweis p { margin: 0; max-width: 900px; }
.hinweis strong { color: var(--tuerkis); }
.hinweis-zu {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 6px 10px;
}

/* ------------------------------------------------------------------ Kopfzeile */
.kopfzeile {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopfzeile-innen { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--nacht); }
.marke img { width: 52px; height: 52px; }
.marke span { display: flex; flex-direction: column; line-height: 1.1; }
.marke strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 420px) { .marke strong { font-size: 1rem; } .marke img { width: 44px; height: 44px; } .marke { gap: 10px; } }
.marke small { font-size: .75rem; color: var(--text-leise); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }

.hauptmenue ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.hauptmenue a {
  display: block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem;
}
.hauptmenue a:hover { background: var(--grund-2); color: var(--nacht); }
.hauptmenue a[aria-current="page"] { background: var(--tuerkis-hell); color: var(--tuerkis-dunkel); }

.schleier { display: none; }
.menue-knopf { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.menue-icon, .menue-icon::before, .menue-icon::after {
  display: block; width: 24px; height: 2px; background: var(--nacht); border-radius: 2px;
  transition: transform .35s var(--federnd), background-color .2s;
}
.menue-icon { position: relative; }
.menue-icon::before, .menue-icon::after { content: ""; position: absolute; left: 0; }
.menue-icon::before { top: -7px; }
.menue-icon::after { top: 7px; }
.menue-knopf[aria-expanded="true"] .menue-icon { background: transparent; }
.menue-knopf[aria-expanded="true"] .menue-icon::before { transform: translateY(7px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-icon::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menue-knopf { display: block; }
  .hauptmenue {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten);
    border-radius: 0 0 20px 20px;
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    transition: opacity .25s ease, transform .35s var(--sanft), visibility 0s linear .35s;
  }
  .hauptmenue.offen {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .25s ease, transform .35s var(--sanft), visibility 0s;
  }
  .hauptmenue ul { flex-direction: column; padding: 10px 16px 18px; }
  .hauptmenue li { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .3s var(--sanft); }
  .hauptmenue.offen li { opacity: 1; transform: none; }
  .hauptmenue.offen li:nth-child(1) { transition-delay: .04s; }
  .hauptmenue.offen li:nth-child(2) { transition-delay: .07s; }
  .hauptmenue.offen li:nth-child(3) { transition-delay: .10s; }
  .hauptmenue.offen li:nth-child(4) { transition-delay: .13s; }
  .hauptmenue.offen li:nth-child(5) { transition-delay: .16s; }
  .hauptmenue.offen li:nth-child(6) { transition-delay: .19s; }
  .hauptmenue.offen li:nth-child(7) { transition-delay: .22s; }
  .hauptmenue.offen li:nth-child(8) { transition-delay: .25s; }
  .hauptmenue a { padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; }

  /* abgedunkelter Hintergrund hinter dem offenen Menü */
  .schleier { display: block;
    position: fixed; inset: 0; z-index: 40; background: rgba(15, 29, 36, .45);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .menue-offen .schleier { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
}

/* ------------------------------------------------------------------ Knöpfe & Links */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--tuerkis); color: var(--nacht); border: 2px solid var(--tuerkis);
  transition: background .15s, color .15s, transform .15s;
}
.knopf:hover { background: var(--nacht); border-color: var(--nacht); color: #fff; transform: translateY(-1px); }
.knopf-hell { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }
.knopf-hell:hover { background: #fff; color: var(--nacht); border-color: #fff; }
.knopf-rand { background: transparent; color: var(--nacht); border-color: var(--nacht); }
.pfeil-link { font-weight: 700; text-decoration: none; color: var(--tuerkis-dunkel); white-space: nowrap; }
.pfeil-link::after { content: " →"; transition: margin .15s; }
.pfeil-link:hover::after { margin-left: 4px; }
.zurueck-link { display: inline-block; margin-bottom: 18px; font-weight: 600; text-decoration: none; font-size: .95rem; }

/* ------------------------------------------------------------------ Startseite: Held */
.held { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; background: var(--nacht); overflow: hidden; }
.held-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.held::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,29,36,.15) 0%, rgba(15,29,36,.55) 45%, rgba(15,29,36,.94) 100%); }
.held-text { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(40px, 7vw, 80px); }
.held h1 { color: #fff; max-width: 12ch; }
.held .dachzeile { color: var(--tuerkis); }
.held-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 560px; color: rgba(255,255,255,.88); margin-bottom: 1.6em; }

/* ------------------------------------------------------------------ Seitenkopf */
.kopf { background: var(--nacht); color: rgba(255,255,255,.85); padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.kopf::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 3px solid var(--tuerkis); opacity: .35;
}
.kopf .breite { position: relative; }
.kopf h1 { color: #fff; }
.kopf p:last-child { max-width: 620px; font-size: 1.15rem; margin-bottom: 0; }
.kopf .dachzeile { color: var(--tuerkis); }
.kopf .zurueck-link { color: rgba(255,255,255,.75); }
.kopf-klein { padding: clamp(44px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.kopf-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.kopf-bild { padding: clamp(80px, 12vw, 160px) 0 clamp(48px, 7vw, 80px); }
.kopf .knoepfe { margin-top: 24px; }

/* ------------------------------------------------------------------ Layout-Bausteine */
.zwei-spalten { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .zwei-spalten { grid-template-columns: 1fr; } }

.info-kasten { background: var(--grund-2); border-radius: var(--radius); padding: 28px; border: 1px solid var(--linie); }
.info-kasten > :last-child { margin-bottom: 0; }
.band .info-kasten { background: #fff; }
.info-warnung { background: var(--warn); border-color: var(--warn-rand); }

.haken { list-style: none; padding: 0; margin: 0 0 1.2em; }
.haken li { padding-left: 30px; position: relative; margin-bottom: 6px; font-weight: 600; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tuerkis) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f1d24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.abschnitt-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.abschnitt-kopf h2 { margin-bottom: 0; }

.cta { text-align: center; }
.cta p { max-width: 560px; margin-left: auto; margin-right: auto; }
.cta .knoepfe { justify-content: center; }

/* ------------------------------------------------------------------ Trainingszeiten */
.zeiten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 20px; }
@media (max-width: 760px) { .zeiten { grid-template-columns: 1fr; } }
.zeit { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--linie); border-top: 5px solid var(--nacht); }
.zeit-jugend { border-top-color: var(--tuerkis); }
.zeit p { margin: 0; }
.zeit .tag { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.zeit .gruppe { font-size: 1.4rem; font-weight: 800; color: var(--nacht); margin: 4px 0; }
.zeit .gruppe small { font-size: .9rem; font-weight: 600; color: var(--text-leise); }
.zeit .uhr { font-size: 1.1rem; font-weight: 600; }
.zeit-gross { margin-bottom: 20px; background: var(--grund-2); }
.zeiten-ort { font-size: .95rem; color: var(--text-leise); margin: 0; }

/* ------------------------------------------------------------------ News-Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.karte { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.karte:hover { box-shadow: var(--schatten); transform: translateY(-2px); }
.karte-bild { display: block; aspect-ratio: 2 / 1; background: var(--grund-2); overflow: hidden; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.karte-platzhalter { width: 100%; height: 100%; background: var(--nacht) url("/assets/img/logo.png") center / 70px no-repeat; }
.karte-text { padding: 20px 22px 24px; }
.karte time { font-size: .82rem; font-weight: 600; color: var(--tuerkis-dunkel); }
.karte h3 { margin: 6px 0 10px; font-size: 1.15rem; }
.karte h3 a { color: var(--nacht); text-decoration: none; }
.karte h3 a:hover { color: var(--tuerkis-dunkel); }
.karte p { font-size: .95rem; color: var(--text-leise); margin: 0; }
.jahr { margin: 48px 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--linie); font-size: 1.5rem; }
.jahr:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ Einzelner Bericht */
.bericht time { display: block; font-weight: 600; color: var(--tuerkis-dunkel); }
.bericht .zurueck-link { display: block; width: fit-content; }
.bericht h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-top: 6px; }
.bericht-bild { margin: 28px -20px 32px; }
.bericht-bild img { width: 100%; border-radius: 0; }
@media (min-width: 820px) { .bericht-bild { margin-left: -60px; margin-right: -60px; } .bericht-bild img { border-radius: var(--radius); } }
.fliesstext { font-size: 1.08rem; }
.fliesstext h2 { font-size: 1.5rem; margin-top: 1.6em; }
.fliesstext h3 { margin-top: 1.4em; }
.fliesstext ul, .fliesstext ol { padding-left: 1.3em; margin: 0 0 1em; }
.fliesstext figure { margin: 1.5em 0; }
.fliesstext img { border-radius: var(--radius); }
.blaettern { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--linie); }
.blaettern a { display: block; padding: 16px 18px; border-radius: var(--radius); background: var(--grund-2); text-decoration: none; color: var(--nacht); font-weight: 700; line-height: 1.35; }
.blaettern a:hover { background: var(--tuerkis-hell); }
.blaettern small { display: block; font-weight: 600; color: var(--text-leise); font-size: .8rem; margin-bottom: 4px; }
.blaettern .weiter { text-align: right; }
@media (max-width: 600px) { .blaettern { grid-template-columns: 1fr; } .blaettern .weiter { text-align: left; } }

/* ------------------------------------------------------------------ Liga */
.liga { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--nacht); color: rgba(255,255,255,.85); border-radius: calc(var(--radius) * 1.4); padding: clamp(28px, 4vw, 44px); }
.liga h2 { color: #fff; margin-bottom: .3em; }
.liga p { margin: 0; }
.liga .dachzeile { color: var(--tuerkis); margin-bottom: .5em; }

/* ------------------------------------------------------------------ Sponsoren */
.sponsoren { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .sponsoren { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .sponsoren li { padding: 16px; height: 110px; } }
.sponsoren li { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 24px; height: 150px; }
.sponsoren img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.sponsoren li:hover img { filter: none; opacity: 1; }
.sponsoren-titel { margin: 40px 0 18px; font-size: 1.1rem; color: var(--text-leise); }

/* Hauptsponsor */
.hauptsponsor {
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
  background: #fff; border: 2px solid var(--tuerkis); border-radius: calc(var(--radius) * 1.4);
  box-shadow: var(--schatten);
}
.hauptsponsor-bild { margin: 0; position: relative; min-height: 320px; }
.hauptsponsor-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hauptsponsor-text { padding: clamp(28px, 4vw, 48px); align-self: center; }
.hauptsponsor-text .dachzeile {
  display: inline-block; background: var(--tuerkis); color: var(--nacht);
  padding: 5px 12px; border-radius: 999px; font-size: .72rem;
}
.hauptsponsor-logo { width: min(280px, 80%); margin: 14px 0 22px; }
.hauptsponsor-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.hauptsponsor-text > :last-child { margin-bottom: 0; }
@media (max-width: 820px) {
  .hauptsponsor { grid-template-columns: 1fr; }
  .hauptsponsor-bild { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------------------------ Über uns */
.bild-rahmen { margin: 0; }
.bild-rahmen img { border-radius: var(--radius); box-shadow: var(--schatten); }
.bild-rahmen figcaption { font-size: .9rem; color: var(--text-leise); margin-top: 12px; }
.zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.zahlen div { border-left: 4px solid var(--tuerkis); padding-left: 18px; }
.zahlen strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--nacht); line-height: 1.1; }
.zahlen span { color: var(--text-leise); font-size: .95rem; }
@media (max-width: 760px) { .zahlen { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ Trainer & Kader */
.gruppenbild { margin: 0; }
.gruppenbild img { width: 100%; border-radius: var(--radius); box-shadow: var(--schatten); }
.gruppenbild figcaption { margin-top: 14px; color: var(--text-leise); font-size: .95rem; }
.trainer.trainer-ohne-bild { grid-template-columns: 1fr; max-width: 860px; }
.trainer { display: grid; grid-template-columns: 220px 1fr; gap: 32px; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; }
.trainer > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; border-radius: 10px; }
.trainer h3 { font-size: 1.5rem; }
.trainer p:last-child { margin-bottom: 0; }
.trainer-liste { display: grid; gap: 24px; }
@media (max-width: 700px) { .trainer { grid-template-columns: 1fr; } .trainer > img { max-width: 240px; } }
.steckbrief { margin: 0 0 12px; display: grid; gap: 6px; }
.steckbrief div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.steckbrief dt { font-weight: 700; color: var(--text-leise); font-size: .9rem; }
.steckbrief dd { margin: 0; }
@media (max-width: 500px) { .steckbrief div { grid-template-columns: 1fr; gap: 0; } }

.kader { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.kader li { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); }
.kader img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.kader strong { display: block; padding: 14px 16px 2px; color: var(--nacht); line-height: 1.25; }
.kader span { display: block; padding: 0 16px 16px; font-size: .9rem; color: var(--tuerkis-dunkel); font-weight: 600; }

.bilder-reihe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bilder-reihe img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 700px) { .bilder-reihe { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ Album & Galerie */
.alben { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.album-karte { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--nacht); text-decoration: none; }
.album-karte img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .9; }
.album-karte:hover img { transform: scale(1.04); opacity: 1; }
.album-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; color: #fff; background: linear-gradient(transparent, rgba(15,29,36,.92)); }
.album-info strong { display: block; font-size: 1.1rem; line-height: 1.3; }
.album-info small { color: var(--tuerkis); font-weight: 600; }

.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.foto { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: var(--grund-2); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.foto:hover img { transform: scale(1.05); }
@media (max-width: 500px) { .fotos { grid-template-columns: 1fr 1fr; gap: 6px; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 15, 19, .95); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease; }
.lightbox.sichtbar { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px;
  transform: scale(.96); transition: transform .4s var(--sanft), opacity .25s ease; }
.lightbox.sichtbar img { transform: none; }
.lightbox img.wechsel { opacity: 0; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; font-size: 2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; }
.lightbox button:hover { background: var(--tuerkis); color: var(--nacht); }
.lb-zu { top: 16px; right: 16px; }
.lb-zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-zaehler { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); margin: 0; font-size: .9rem; }

/* ------------------------------------------------------------------ Kontakt, Regeln, Rechtstexte */
.kontakt-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.kontakt-raster h2 { font-size: 1.25rem; }
.kontakt-zeile { display: flex; flex-direction: column; margin-bottom: .8em; }
.kontakt-zeile span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-leise); }
.kontakt-zeile a { font-weight: 600; word-break: break-word; }
.kontakt-haupt { border-top: 5px solid var(--tuerkis); }
.kontakt-mail { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 800; margin-bottom: 1.2em; white-space: nowrap; }
.kontakt-mail a { text-decoration: none; }
.kontakt-mail a:hover { text-decoration: underline; }

/* Google-Maps-Karte mit Einwilligung (Zwei-Klick-Lösung) */
.karte-einwilligung {
  position: relative; aspect-ratio: 16 / 7; min-height: 340px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--linie); display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: #e8eeec;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.7) 2px, transparent 2px),
    linear-gradient(rgba(255,255,255,.7) 2px, transparent 2px),
    linear-gradient(35deg, transparent 46%, rgba(255,255,255,.95) 46%, rgba(255,255,255,.95) 54%, transparent 54%);
  background-size: 64px 64px, 64px 64px, 100% 100%;
}
.karte-platzhalter-inhalt { max-width: 460px; padding: 28px; background: rgba(255,255,255,.94); border-radius: var(--radius); box-shadow: var(--schatten); margin: 20px; }
.karte-pin { width: 40px; height: 40px; fill: var(--tuerkis-dunkel); margin: 0 auto 8px; }
.karte-titel { font-weight: 700; color: var(--nacht); margin-bottom: .5em; }
.karte-text { font-size: .9rem; color: var(--text-leise); }
.karte-merken { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .85rem; color: var(--text-leise); cursor: pointer; }
.karte-merken input { accent-color: var(--tuerkis-dunkel); width: 16px; height: 16px; }
.karte-einwilligung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: rein .5s ease both; }
.karte-route { margin: 14px 0 0; }
@media (max-width: 600px) { .karte-einwilligung { aspect-ratio: auto; min-height: 420px; } }

.einwilligung-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.einwilligung-status p { margin: 0; }

.regeln h2 { display: flex; align-items: center; gap: 14px; }
.regeln h2 span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tuerkis); color: var(--nacht); font-size: 1.1rem; }
.stilarten { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 600px) { .stilarten { grid-template-columns: 1fr; } }

.rechtstext { font-size: 1rem; }
.rechtstext h2 { font-size: 1.25rem; margin-top: 1.8em; }

/* ------------------------------------------------------------------ Fußzeile */
.fusszeile { background: var(--nacht); color: rgba(255,255,255,.72); padding-top: 64px; font-size: .95rem; }
.fusszeile a { color: #fff; text-decoration: none; }
.fusszeile a:hover { color: var(--tuerkis); }
.fusszeile h2 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.fusszeile strong { color: #fff; }
.fusszeile-raster { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
@media (max-width: 900px) { .fusszeile-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fusszeile-raster { grid-template-columns: 1fr; } }
.fuss-logo { width: 72px; height: 72px; margin-bottom: 16px; }
.fuss-links { list-style: none; padding: 0; margin: 0; }
.fuss-links li { margin-bottom: 8px; }
.sozial { display: flex; gap: 16px; }
.sozial a { border-bottom: 1px solid var(--tuerkis); }
.zeiten-kurz { margin: 0 0 10px; }
.zeiten-kurz div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.zeiten-kurz dt { color: #fff; font-weight: 600; }
.zeiten-kurz dd { margin: 0; }
.fusszeile .klein { color: rgba(255,255,255,.55); }
.fuss-unten { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; }
.fuss-unten p { margin: 0; }

/* ------------------------------------------------------------------ Animationen */

/* Weicher Übergang zwischen den Seiten (Chrome, Edge, Safari 18+; andere Browser laden einfach normal) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: seite-raus .2s ease both; }
::view-transition-new(root) { animation: seite-rein .35s var(--sanft) both; }
@keyframes seite-raus { to { opacity: 0; } }
@keyframes seite-rein { from { opacity: 0; transform: translateY(8px); } }
.kopfzeile { view-transition-name: kopfzeile; }
::view-transition-group(kopfzeile) { animation: none; }

/* Beim Laden: Überschriften im Kopfbereich gleiten sanft herein */
@keyframes rein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bild-rein { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.held-text > *, .kopf .breite > * { animation: rein .8s var(--sanft) both; }
.held-text > :nth-child(2), .kopf .breite > :nth-child(2) { animation-delay: .08s; }
.held-text > :nth-child(3), .kopf .breite > :nth-child(3) { animation-delay: .16s; }
.held-text > :nth-child(4), .kopf .breite > :nth-child(4) { animation-delay: .24s; }
.held-bild { animation: bild-rein 1.6s var(--sanft) both; }
@keyframes kopfbild-rein { from { opacity: 0; transform: scale(1.06); } to { opacity: .35; transform: none; } }
.kopf-bild img { animation: kopfbild-rein 1.6s var(--sanft) both; }
.bericht > * { animation: rein .7s var(--sanft) both; }
.bericht > :nth-child(3) { animation-delay: .06s; }
.bericht > :nth-child(4) { animation-delay: .12s; }
.bericht > :nth-child(n+5) { animation-delay: .18s; }

/* Beim Scrollen: Inhalte blenden auf, sobald sie ins Bild kommen (nur mit JavaScript) */
.js .einblenden { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .9s var(--sanft); transition-delay: var(--verzoegerung, 0s); }
.js .einblenden.da { opacity: 1; transform: none; }

/* Hinweisbalken klappt beim Schließen weich zu */
.hinweis { transition: opacity .25s ease, margin-top .35s var(--sanft); }
.hinweis.weg { opacity: 0; }

/* Knöpfe und Karten reagieren etwas lebendiger */
.knopf:active { transform: translateY(0) scale(.97); }
.karte, .album-karte, .sponsoren li, .kader li { transition: box-shadow .3s ease, transform .4s var(--sanft), border-color .3s; }
.sponsoren li:hover { transform: translateY(-3px); box-shadow: var(--schatten); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .einblenden { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
