/* Männerchor Zimmerwald – Demo */
:root {
  --grün: #1d5c44;
  --grün-dunkel: #143f2f;
  --gelb: #f2b705;
  --tinte: #1f2933;
  --grau: #5b6770;
  --papier: #f6f7f5;
  --weiss: #ffffff;          /* Text auf Grün, bleibt in beiden Themes hell */
  --flaeche: #ffffff;        /* Karten, Header, Eingabefelder */
  --linie: #e0e4e0;
  --knopf-bg: #1d5c44;
  --knopf-hover: #143f2f;
  --hervor-bg: #eaf4ee;
  --rueck-bg: #f0f1ef;
  --rueck-linie: #c9d2cc;
  --ok-bg: #e7f3ec;
  --fuss-bg: #1f2933;
  --fuss-text: #cbd2d9;
  --radius: 10px;
}

html[data-theme="dark"] {
  --grün: #57b389;
  --grün-dunkel: #8fd4b3;
  --tinte: #e6ebe8;
  --grau: #a2aca7;
  --papier: #141715;
  --flaeche: #1d2320;
  --linie: #2e3733;
  --knopf-bg: #2f8a5e;
  --knopf-hover: #3ba26f;
  --hervor-bg: #18271f;
  --rueck-bg: #1a1e1c;
  --rueck-linie: #3a453f;
  --ok-bg: #18271f;
  --fuss-bg: #0c0f0e;
  --fuss-text: #a2aca7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.6;
  color: var(--tinte);
  background: var(--papier);
}

/* Anker landen unterhalb des fixierten Menüs */
[id] { scroll-margin-top: 96px; }

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--grün); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 50;
}
.header-bar {
  display: flex; align-items: center;
  gap: .5rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--tinte); margin-right: auto; }
.brand img { width: 120px; height: auto; background: #fff; border-radius: 6px; }
.brand strong { font-size: 1.05rem; white-space: nowrap; }

.nav-toggle, .theme-toggle {
  display: flex;
  width: 48px; height: 48px;              /* großes Tippziel */
  border: 1px solid var(--linie); border-radius: 8px;
  background: var(--flaeche); color: var(--tinte); cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1;
}
.nav-toggle { display: none; }
.nav-toggle svg { width: 26px; height: 26px; }
.theme-toggle::before { content: "☾"; }
html[data-theme="dark"] .theme-toggle::before { content: "☀"; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a {
  display: block;
  padding: .8rem 1rem;                    /* >=44px hoch */
  font-size: 1.0625rem;                   /* 17px, nie kleiner */
  font-weight: 600; text-decoration: none; color: var(--tinte);
  border-radius: 8px;
}
.site-nav a:hover { background: var(--papier); }
.site-nav a[aria-current="page"] { color: var(--grün); box-shadow: inset 0 -3px 0 var(--gelb); }

@media (max-width: 760px) {
  .brand strong { display: none; }        /* Name steht im Logo */
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav.offen { display: block; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--flaeche); border-bottom: 1px solid var(--linie);
    box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .site-nav.offen ul { flex-direction: column; padding: .5rem .75rem 1rem; }
  .site-nav.offen a { font-size: 1.125rem; padding: .9rem 1rem; }  /* 18px, 48px hoch */
}

/* ---------- Inhalt ---------- */
main { padding: 2.5rem 0 3.5rem; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 .5rem; }
.untertitel { font-style: italic; color: var(--grau); font-size: 1.15rem; margin: 0 0 1.25rem; }

.hero { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.hero-bild { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); margin: 0 auto; }

.knopf {
  display: inline-block; background: var(--knopf-bg); color: var(--weiss);
  padding: .85rem 1.6rem; border-radius: 999px; border: 0;
  font-size: 1.0625rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.knopf:hover { background: var(--knopf-hover); }
.knopf.gelb { background: var(--gelb); color: #1f2933; }

.karte {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
}

/* Termine */
.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.termin { display: flex; align-items: center; gap: 1.25rem; }
.termin .datum {
  flex: 0 0 74px; text-align: center; background: var(--knopf-bg); color: var(--weiss);
  border-radius: var(--radius); padding: .5rem 0; line-height: 1.2;
}
.termin .datum .tag { display: block; font-size: 1.5rem; font-weight: 800; }
.termin .datum .monat { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.termin .info strong { font-size: 1.1rem; }
.termin .info span { display: block; color: var(--grau); }

/* Zitate / Mitglieder */
.zitate { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.zitat { display: flex; flex-direction: column; }
.zitat blockquote { margin: 0 0 .75rem; font-style: italic; flex: 1; }
.zitat footer { color: var(--grau); font-weight: 600; display: flex; align-items: center; gap: .65rem; }
.zitat footer img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; flex: 0 0 52px; }

.mitglieder { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mitglied img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.mitglied h3 { margin: .75rem 0 .25rem; }
.mitglied .rolle { color: var(--grün); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.mitglied p { margin: .5rem 0 0; color: var(--grau); }

/* Sponsoren */
.sponsoren { columns: 2; column-gap: 2.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.sponsoren li { padding: .3rem 0; break-inside: avoid; border-bottom: 1px dotted var(--linie); }
@media (max-width: 560px) { .sponsoren { columns: 1; } }

/* Galerie */
.galerie { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.galerie img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.galerie .hoch { grid-row: span 2; }
.galerie .hoch img { aspect-ratio: 3/4; height: 100%; }
.galerie figure, .videos figure { margin: 0; }
.galerie figcaption, .videos figcaption { font-size: .9rem; color: var(--grau); padding-top: .35rem; }
.galerie .hoch { display: flex; flex-direction: column; }
.galerie img { cursor: zoom-in; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 12, 10, .97); padding: 2rem;
  align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.offen { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); margin: 0 auto; }
.lightbox video { max-width: 92vw; max-height: 84vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5);
  margin: 0 auto; cursor: default; display: none; }
.lightbox figcaption { color: #e8ecea; padding-top: .75rem; font-size: 1rem; }
.lightbox-zu { position: absolute; top: 1rem; right: 1rem;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.3rem; }
.lightbox-zu:hover { background: rgba(255,255,255,.3); }
.lightbox-pfeil { position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; line-height: 1; }
.lightbox-pfeil:hover { background: rgba(255,255,255,.3); }
.lightbox-pfeil.zurueck { left: .75rem; }
.lightbox-pfeil.weiter { right: .75rem; }

/* Vergrössern-Knopf auf Videos */
.videos figure.mit-gross { position: relative; }
.video-gross { position: absolute; top: .5rem; right: .5rem;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.1rem; line-height: 1; }
.video-gross:hover { background: rgba(0,0,0,.8); }

.videos { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.videos video { border-radius: var(--radius); background: #000; width: 100%; }

/* Formular */
form.kontakt { display: grid; gap: 1rem; max-width: 560px; }
form.kontakt label { font-weight: 600; }
form.kontakt input, form.kontakt textarea {
  width: 100%; padding: .75rem .9rem; font: inherit;
  border: 1px solid var(--linie); border-radius: 8px;
  background: var(--flaeche); color: var(--tinte);
}
.form-ok { display: none; background: var(--ok-bg); border: 1px solid var(--grün); color: var(--grün-dunkel);
  border-radius: 8px; padding: 1rem 1.25rem; font-weight: 600; }

/* CTA-Band */
.band { background: var(--knopf-bg); color: var(--weiss); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; margin-top: 3rem; }
.band h2 { margin-top: 0; }
.band a.knopf { background: var(--gelb); color: #1f2933; }

/* Hervorgehobene Sektion (z.B. Unterhaltungsanlass 2026) */
.hervor { background: var(--hervor-bg); border: 1px solid var(--grün);
  border-left: 6px solid var(--gelb); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; margin-top: 2.5rem; }
.hervor h2 { margin-top: 0; color: var(--grün-dunkel); }
.chips { list-style: none; padding: 0; margin: 1rem 0 1.25rem;
  display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { background: var(--flaeche); border: 1px solid var(--grün);
  border-radius: 999px; padding: .45rem 1rem; white-space: nowrap; }
.chips li strong { color: var(--grün); }
.tbd { display: inline-block; border: 1px dashed var(--grün); border-radius: 8px;
  padding: .5rem 1rem; color: var(--grün-dunkel); background: var(--flaeche); }

/* Rückblick-Sektion: blass abgesetzt, wiederverwendbar pro Jahr */
.rueckblick { background: var(--rueck-bg); border: 1px solid var(--linie);
  border-left: 6px solid var(--rueck-linie); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; margin-top: 2rem; }
.rueckblick h2 { margin-top: 0; color: var(--grau); }

/* Footer */
.site-footer { background: var(--fuss-bg); color: var(--fuss-text); padding: 2rem 0; margin-top: 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .zeile { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }

/* Kontakt-Karten */
.kontakt-karten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1rem; }
.kontakt-karten .karte h3 { margin-top: 0; }
.kontakt-karten .karte p { margin: .25rem 0; }
