/* ============================================================
   Narrenzunft Waldmössingen 1935 e.V.
   Corporate Identity nach der Infomappe (Ringtreffen 2023):
   grün-dominant, Gold/Gelb-Akzent, diagonales Dreiecksband,
   dunkelgrüner Footer mit Narrenruf. Display: Fraunces · UI: Archivo
   ============================================================ */
:root {
  /* Gelb / Gold */
  --gelb: #ffd327;          /* Logo-Gelb, Hauptakzent */
  --gelb-tief: #cf9f00;
  --gold: #e4cc48;          /* CI-Gold (Banner/Bänder) */
  /* Grüns (CI) */
  --lime: #84b448;
  --gras: #6c9048;
  --gruen: #3c783c;
  --gruen-tief: #2e6b2e;
  --gruen-nacht: #1c4d1e;   /* dunkle Sektionen / Footer */
  --gruen-tiefst: #143a16;
  /* Braun nur noch als Nebenton (Logo-Rahmen) */
  --braun: #6b584f;
  /* Neutral */
  --creme: #fbf6ec;
  --karte: #ffffff;
  --linie: #e3dcc6;
  --text: #25301f;
  --muted: #5f6b54;

  --maxw: 1180px;
  --radius: 4px;
  --schatten: 0 18px 50px -20px rgba(20, 45, 20, .42);
  --schatten-s: 0 8px 24px -12px rgba(20, 45, 20, .38);
  --display: "Fraunces", Georgia, serif;
  --ui: "Archivo", system-ui, sans-serif;

  --band: url("/assets/img/ci-band.svg");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--text);
  background: var(--creme);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 900; line-height: 1.1; color: var(--gruen-nacht); letter-spacing: -.01em; }

a { color: var(--gruen-tief); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ui); font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; font-size: .72rem; color: var(--gruen-tief); margin: 0 0 1rem;
}
.kicker::before { content: ""; width: 26px; height: 4px; background: var(--gelb); display: inline-block; transform: skewX(-18deg); }

/* CI-Dreiecksband als wiederkehrendes Motiv */
.ci-band, .ribbon, .divider { height: 16px; background: var(--band) repeat-x; background-size: auto 100%; border: 0; margin: 0; }
.divider { height: 14px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .55rem 1.6rem; background: rgba(251, 246, 236, .92);
  backdrop-filter: blur(10px); border-bottom: 3px solid transparent;
  border-image: var(--band) 30 repeat;
}
.marke { display: flex; align-items: center; gap: .85rem; color: var(--gruen-nacht); }
.marke:hover { text-decoration: none; }
.marke-logo {
  width: 52px; height: 52px; object-fit: cover; border-radius: 3px;
  border: 2px solid var(--gelb); box-shadow: var(--schatten-s);
}
.marke-text { display: flex; flex-direction: column; line-height: 1.02; }
.marke-zeile1 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.1rem; color: var(--gruen-nacht); }
.marke-zeile2 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.1rem; color: var(--gruen-tief); margin-top: -3px; }
.marke-zeile3 { font-family: var(--ui); font-weight: 700; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

nav#hauptnav { display: flex; align-items: center; gap: 1.5rem; }
nav#hauptnav a { font-family: var(--ui); font-weight: 600; font-size: .9rem; color: var(--gruen-nacht); padding: .3rem 0; position: relative; }
nav#hauptnav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px; background: var(--gelb); transition: right .25s ease; }
nav#hauptnav a:not(.nav-cta):hover { text-decoration: none; }
nav#hauptnav a:not(.nav-cta):hover::after, nav#hauptnav a.active:not(.nav-cta)::after { right: 0; }
nav#hauptnav a.active:not(.nav-cta) { color: var(--gruen-tief); }
.nav-cta { background: var(--gruen); color: #fff !important; border-radius: 999px; padding: .5rem 1.15rem !important; font-weight: 700; }
.nav-cta:hover { background: var(--gruen-tief); text-decoration: none; }
.nav-cta.active { background: var(--gruen-nacht); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle-bar { display: block; width: 26px; height: 3px; background: var(--gruen-nacht); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--ui); font-weight: 700; font-size: .92rem;
  padding: .85rem 1.6rem; border-radius: 999px; background: var(--gelb); color: var(--gruen-nacht); border: 2px solid var(--gelb);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(207,159,0,.8); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn.ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn.gruen { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.btn.gruen:hover { background: var(--gruen-tief); box-shadow: 0 10px 24px -12px rgba(46,107,46,.85); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; background: var(--gruen-nacht); }
.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background: var(--band) repeat-x; background-size: auto 100%; z-index: 3; }
/* Links dunkelgrüne Textzone (weiße Schrift lesbar), Gold als diagonales
   Akzent-Band am Übergang, rechts das Foto. */
.hero-split { position: absolute; inset: 0; }
.hero-split .gelb { position: absolute; top: -5%; bottom: -5%; left: 46.5%; width: 56px; background: var(--gelb); transform: skewX(-8deg); z-index: 1; box-shadow: 0 0 55px -8px rgba(20,45,20,.5); }
.hero-split .foto { position: absolute; inset: 0 0 0 47%; }
.hero-split .foto img, .hero-split .foto video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-split .foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, var(--gruen-nacht) 0%, rgba(28,77,30,.8) 24%, rgba(20,58,22,.2) 100%); mix-blend-mode: multiply; }

.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.6rem 5rem; display: grid; gap: 1.2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; align-self: start; background: var(--gelb); color: var(--gruen-nacht);
  font-family: var(--ui); font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: .45rem .9rem; border-radius: 999px;
}
.hero h1 { color: #fff; font-style: italic; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .98; margin: .2rem 0 0; max-width: 12ch; text-shadow: 0 3px 30px rgba(0,0,0,.4); }
.hero h1 .akz { color: var(--gelb); }
.hero .narrenruf { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.7rem); color: #fff; opacity: .96; margin: .4rem 0 0; max-width: 24ch; border-left: 4px solid var(--gelb); padding-left: 1rem; }
.hero .sub { color: #ecf3e4; max-width: 38ch; margin: .3rem 0 1rem; font-size: 1.05rem; }
.hero-anim > * { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-anim > *:nth-child(1){animation-delay:.05s} .hero-anim > *:nth-child(2){animation-delay:.18s}
.hero-anim > *:nth-child(3){animation-delay:.31s} .hero-anim > *:nth-child(4){animation-delay:.44s}
.hero-anim > *:nth-child(5){animation-delay:.57s}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .hero-anim>*{animation:none;opacity:1;transform:none} }

/* ---------- Sektionen ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.6rem; }
.section.narrow { max-width: 820px; }
.section h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1rem; font-style: italic; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 1rem; }
.section .lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.section-alt { background: var(--gruen-nacht); color: #e8f1df; position: relative; }
.section-alt h1, .section-alt h2, .section-alt h3 { color: #fff; }
.section-alt .kicker { color: var(--gelb); }
.section-alt .kicker::before { background: var(--gelb); }
/* nur freie Links auf dem dunklen Grund einfärben – nicht Buttons (sonst gelb auf gelb)
   und nicht Links in hellen Karten (sonst gelb auf weiß) */
.section-alt a:not(.btn) { color: var(--gelb); }
.section-alt .card a:not(.btn) { color: var(--gruen-tief); }
.section-alt .card a:not(.btn):hover { color: var(--gruen-nacht); }
.section-green { background: var(--gruen); color: #fff; }
.section-green h2, .section-green h3 { color: #fff; }

.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; }

/* ---------- Karten ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--schatten-s); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--band); background-size: 100% auto; }
.card:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.card h3 { margin: 0 0 .5rem; font-size: 1.45rem; color: var(--gruen-tief); }
.card p { margin: 0 0 .8rem; color: var(--text); }
.card .tag { display: inline-block; font-family: var(--ui); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gruen-tief); background: #eef6e6; border-radius: 999px; padding: .25rem .7rem; margin-bottom: .8rem; }
.card .mehr { font-family: var(--ui); font-weight: 700; font-size: .9rem; color: var(--gruen-tief); }

.typ { display: grid; grid-template-columns: 92px 1fr; gap: 1.4rem; }
.typ .initial { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 3.4rem; color: #fff; background: var(--gruen); border-radius: var(--radius); display: grid; place-items: center; aspect-ratio: 1; box-shadow: var(--schatten-s); }
.typ.gelb .initial { background: var(--gelb); color: var(--gruen-nacht); }
.typ.gruen .initial { background: var(--lime); }

/* ---------- Statistik ---------- */
.stat-band { background: var(--gruen-nacht); position: relative; }
.stat-band::before, .stat-band::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: var(--band) repeat-x; background-size: auto 100%; }
.stat-band::before { top: 0; } .stat-band::after { bottom: 0; transform: scaleY(-1); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat .num { font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(2.4rem,5vw,3.4rem); color: var(--gelb); line-height: 1; }
.stat .lbl { color: #e3eed9; font-family: var(--ui); font-weight: 600; letter-spacing: .05em; font-size: .85rem; text-transform: uppercase; margin-top: .4rem; }

/* ---------- Foto-Block ---------- */
.foto-frame { position: relative; }
.foto-frame img { border-radius: var(--radius); box-shadow: var(--schatten); }
.foto-frame::before { content: ""; position: absolute; left: -16px; top: -16px; width: 72%; height: 70%; background: var(--gelb); border-radius: var(--radius); z-index: -1; }
.foto-cap { font-family: var(--ui); font-size: .82rem; color: var(--muted); margin-top: .7rem; font-style: italic; }

/* ---------- Termine ---------- */
.termin { display: flex; gap: 1.3rem; padding: 1.2rem 0; border-bottom: 1px solid var(--linie); }
.termin:last-child { border-bottom: 0; }
.termin .datum { flex: 0 0 84px; text-align: center; background: var(--gruen-tief); color: #fff; border-radius: var(--radius); padding: .55rem; align-self: start; }
.termin .datum .tag { font-family: var(--display); font-style: italic; font-size: 1.9rem; font-weight: 900; line-height: 1; color: var(--gelb); }
.termin .datum .mon { font-family: var(--ui); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; margin-top: 2px; }
.termin .info h3 { margin: 0 0 .15rem; font-size: 1.25rem; }
.termin .info .ort { font-family: var(--ui); font-size: .82rem; color: var(--gruen-tief); font-weight: 700; letter-spacing: .03em; }
.termin .info p { margin: .35rem 0 0; color: var(--muted); }

/* ---------- Zeitstrahl ---------- */
.timeline { position: relative; margin: 2rem 0 0; padding-left: 2rem; border-left: 4px solid var(--gelb); }
.timeline .entry { position: relative; padding: 0 0 1.9rem 1.4rem; }
.timeline .entry::before { content: ""; position: absolute; left: -2.18rem; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--gruen); border: 4px solid var(--creme); }
.timeline .jahr { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.5rem; color: var(--gruen-tief); }
.timeline .entry p { margin: .1rem 0 0; }

/* ---------- Hinweis ---------- */
.hinweis { background: #fff9e6; border: 1px solid var(--gold); border-left: 6px solid var(--gelb); border-radius: var(--radius); padding: 1.1rem 1.3rem; color: var(--gruen-nacht); font-size: .96rem; }
.section ul, .section ol { padding-left: 1.3rem; }
.section li { margin: .4rem 0; }

/* ---------- Narrenruf-Band (wie CI-Footer) ---------- */
.narrenruf-band { background: var(--gold); text-align: center; padding: .85rem 1rem; }
.narrenruf-band span { font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(1rem, 2.4vw, 1.5rem); color: var(--gruen-tiefst); letter-spacing: .02em; }

/* ---------- Footer ---------- */
footer { background: var(--gruen-tiefst); color: #d8e6cd; padding: 3.4rem 1.6rem 1.6rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 2.4rem; }
.footer-marke { display: flex; gap: 1.2rem; }
.footer-wappen { color: var(--lime); flex: 0 0 64px; }
.footer-wappen .wappen { width: 64px; height: auto; }
.footer-logo-text { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.4rem; color: #fff; line-height: 1.05; }
.footer-logo-text span { display: block; font-size: .9rem; color: var(--gelb); font-style: normal; }
.footer-ruf { font-family: var(--display); font-style: italic; color: var(--gelb); margin: .7rem 0 .4rem; }
.footer-desc { color: #bcceae; font-size: .9rem; max-width: 42ch; }
.footer-col h4 { color: var(--gelb); font-family: var(--display); font-style: italic; font-size: 1.15rem; margin: 0 0 .7rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .35rem 0; }
.footer-col a { color: #d8e6cd; font-size: .92rem; }
.footer-bottom { max-width: var(--maxw); margin: 2.2rem auto 0; padding-top: 1.2rem; padding-right: 150px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; font-size: .82rem; color: #a7bd99; }

/* ---------- Scroll-Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }

/* ---------- Header scrolled ---------- */
header.scrolled { padding-top: .35rem; padding-bottom: .35rem; box-shadow: 0 6px 24px -16px rgba(20,45,20,.6); }
header.scrolled .marke-logo { width: 44px; height: 44px; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2){ opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ---------- Galerie ---------- */
.galerie { columns: 3; column-gap: 1.1rem; }
.galerie figure { break-inside: avoid; margin: 0 0 1.1rem; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; box-shadow: var(--schatten-s); background: var(--gruen-tief); }
.galerie img { width: 100%; display: block; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.galerie figure:hover img { transform: scale(1.07); }
.galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-family: var(--ui); font-size: .82rem; font-weight: 600; line-height: 1.3; padding: 1.6rem .9rem .8rem; opacity: 0; transform: translateY(8px); background: linear-gradient(transparent, rgba(20,45,20,.94)); transition: .35s; }
.galerie figure:hover figcaption { opacity: 1; transform: none; }
.galerie figure::after { content: "⤢"; position: absolute; top: .6rem; right: .7rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--gelb); color: var(--gruen-nacht); font-weight: 700; opacity: 0; transform: scale(.6); transition: .3s; }
.galerie figure:hover::after { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 10000; display: none; place-items: center; background: rgba(15,35,15,.93); backdrop-filter: blur(6px); padding: 4vw; }
.lightbox.open { display: grid; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; }
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; border-radius: var(--radius); box-shadow: 0 30px 80px -20px #000; }
.lightbox figcaption { color: #e8f1df; text-align: center; font-family: var(--ui); margin-top: 1rem; font-size: .95rem; }
.lb-close { position: fixed; top: 1.2rem; right: 1.6rem; width: 48px; height: 48px; border-radius: 50%; background: var(--gelb); color: var(--gruen-nacht); border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: #fff; }

/* ---------- YouTube Lite-Facade ---------- */
.yt-lite { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--gruen-tief) center/cover; box-shadow: var(--schatten-s); }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: .4s; }
.yt-lite:hover img { opacity: .6; transform: scale(1.04); }
.yt-lite .play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; background: var(--gelb); display: grid; place-items: center; transition: transform .25s ease, background .25s ease; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.yt-lite .play::before { content: ""; border-style: solid; border-width: 15px 0 15px 26px; border-color: transparent transparent transparent var(--gruen-nacht); margin-left: 6px; }
.yt-lite:hover .play { transform: scale(1.12); background: #fff; }
.yt-lite .yt-titel { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-family: var(--display); font-weight: 600; font-style: italic; font-size: 1.15rem; padding: 2rem 1.1rem .9rem; background: linear-gradient(transparent, rgba(15,35,15,.92)); }
.yt-lite iframe { width: 100%; height: 100%; border: 0; }
.yt-lite.playing .play, .yt-lite.playing .yt-titel { display: none; }

/* ---------- Social-Karten ---------- */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.social-card { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: var(--radius); background: var(--karte); border: 1px solid var(--linie); box-shadow: var(--schatten-s); transition: transform .2s ease, box-shadow .2s ease; color: var(--gruen-nacht); }
.social-card:hover { transform: translateY(-4px); box-shadow: var(--schatten); text-decoration: none; }
.social-ic { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.social-ic svg { width: 26px; height: 26px; }
.social-ic.ig { background: linear-gradient(45deg,#f09433,#e6683c 30%,#dc2743 55%,#cc2366 75%,#bc1888); }
.social-ic.yt { background: #ff0000; }
.social-ic.fb { background: #1877f2; }
.social-card b { font-family: var(--display); font-style: italic; font-size: 1.1rem; display: block; }
.social-card span { font-size: .85rem; color: var(--muted); }

/* ---------- WhatsApp-Kanal Live-Feed (Handy-Mockup, WhatsApp-Look) ---------- */
.wa-live-grid { display: grid; grid-template-columns: 1fr minmax(300px, 360px); gap: 3rem; align-items: center; }
.wa-live-text .lead { margin-bottom: 1.2rem; }
.wa-benefits { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; }
.wa-benefits li { position: relative; padding-left: 1.7rem; color: #e6efda; }
.wa-benefits li::before { content: ""; position: absolute; left: 0; top: .42rem; width: 10px; height: 10px; background: var(--gelb); transform: rotate(45deg); }

/* Vereinte Folge-uns-Sektion: links Instagram-Karte, rechts WhatsApp-Handy */
.folge-grid.wa-grid { align-items: start; }
.wa-grid .ig-feed { grid-template-columns: repeat(2, 1fr); }
.wa-grid .folge-col { align-self: stretch; }

.wa-live-phone { display: flex; flex-direction: column; align-items: center; }
.wa-phone { width: 340px; max-width: 86vw; aspect-ratio: 340 / 700; background: #0c0c0e; border-radius: 46px; padding: 12px; box-shadow: 0 40px 80px -28px rgba(0,0,0,.65), inset 0 0 0 2px #2a2a2e; position: relative; }
.wa-island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 108px; height: 26px; background: #0c0c0e; border-radius: 16px; z-index: 6; }
.wa-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; background: #ece5dd; position: relative; }

.wa-statusbar { flex: 0 0 auto; height: 38px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 4px; background: #f6f6f6; color: #0c0c0e; font: 700 13px/1 var(--ui); }
.wa-sb-icons svg { display: block; }

.wa-header { flex: 0 0 auto; display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; background: #f6f6f6; border-bottom: 1px solid #dcdcd6; }
.wa-back { color: #128c7e; display: inline-flex; flex: 0 0 auto; }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; flex: 0 0 auto; }
.wa-htext { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; flex: 1; }
.wa-channel-name { font-family: var(--ui); font-weight: 700; font-size: .92rem; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-followers { font-size: .72rem; color: #66707a; }
.wa-hicons { display: inline-flex; gap: .55rem; color: #54656f; flex: 0 0 auto; }

.wa-chat { flex: 1 1 auto; overflow-y: auto; padding: .9rem .7rem 1.1rem; background-color: #ece5dd; background-image: url("/assets/img/wa-doodle.svg"); background-size: 150px; -webkit-overflow-scrolling: touch; }
.wa-chat::-webkit-scrollbar { width: 0; }
.wa-date { text-align: center; margin: .5rem 0 .8rem; }
.wa-date span { display: inline-block; background: #e1f0de; color: #4f5f4e; font: 600 .68rem/1 var(--ui); letter-spacing: .02em; padding: .35rem .7rem; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.wa-bubble { background: #fff; border-radius: 0 10px 10px 10px; max-width: 88%; width: fit-content; padding: .45rem .5rem .3rem; margin: 0 0 .55rem; box-shadow: 0 1px 1px rgba(0,0,0,.13); position: relative; animation: waRise .45s ease forwards; }
@keyframes waRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wa-bubble { animation: none; } }
.wa-bubble::before { content: ""; position: absolute; top: 0; left: -7px; width: 8px; height: 12px; background: #fff; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.wa-b-media { display: block; width: 100%; border-radius: 7px; margin-bottom: .35rem; }
.wa-b-text { font: 400 .86rem/1.42 var(--ui); color: #111b21; white-space: normal; word-break: break-word; }
.section-alt .wa-b-text a, .wa-b-text a { color: #0a6ca0; }
.section-alt .wa-b-file, .wa-b-file { display: inline-block; margin-top: .3rem; color: #0a6ca0; font-size: .82rem; }
.wa-b-meta { font: 400 .64rem/1 var(--ui); color: #5a6b72; text-align: right; margin-top: .2rem; }
.wa-empty { color: #54656f; font-size: .85rem; padding: 1rem; text-align: center; }
.wa-disclaimer { color: #cbd9bd; font-size: .76rem; margin: .9rem 0 0; font-style: italic; text-align: center; }

@media (max-width: 880px) {
  .wa-live-grid { grid-template-columns: 1fr; gap: 2rem; justify-items: center; }
  .wa-live-text { text-align: center; }
  .wa-benefits { text-align: left; display: inline-grid; }
}

/* ---------- Folge uns: Instagram + WhatsApp ---------- */
.social-grid.social-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.social-card.is-soon { cursor: default; }
.social-ic.wa { background: #25D366; }

/* Lead auf dunklen Feature-Flächen lesbar + Gold-Akzent */
.section-alt .lead { color: #dfe9d2; }
.section-alt .lead strong { color: var(--gelb); font-weight: 800; }

/* „Darum lohnt sich's"-Punkte */
.folge-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 1.8rem 0 .4rem; max-width: 960px; }
.folge-why .why { position: relative; padding-left: 1.7rem; }
.folge-why .why::before { content: ""; position: absolute; left: 0; top: .4rem; width: 11px; height: 11px; background: var(--gelb); transform: rotate(45deg); }
.folge-why .why b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.18rem; color: #fff; line-height: 1.15; }
.folge-why .why span { font-size: .9rem; color: #cfe0bd; }
@media (max-width: 760px) { .folge-why { grid-template-columns: 1fr; gap: 1rem; } }

.folge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1.8rem; align-items: stretch; }
.folge-col { background: var(--karte); color: var(--text); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten-s); padding: 1.4rem; display: flex; flex-direction: column; }
.folge-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.folge-titel { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.folge-titel b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.2rem; color: var(--gruen-nacht); }
.folge-titel span { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.folge-head .btn { margin-left: auto; padding: .55rem 1.1rem; font-size: .85rem; flex: 0 0 auto; }
.ig-follow { background: #c13584; border-color: #c13584; color: #fff; }
.ig-follow:hover { background: #a32a6e; box-shadow: 0 10px 24px -10px rgba(193,53,132,.7); }

.ig-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-top: auto; }
.ig-tile { aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 4px; position: relative; overflow: hidden; }
.ig-tile::after { content: ""; position: absolute; inset: 0; background: rgba(20,45,20,0); transition: background .25s ease; }
.ig-tile:hover::after { background: rgba(20,45,20,.3); }

.wa-body { display: flex; flex-direction: column; gap: .8rem; }
.wa-body p { margin: 0; }
.wa-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.wa-points li { position: relative; padding-left: 1.7rem; }
.wa-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gruen); font-weight: 800; }
.wa-btn { background: #0f7a43; border-color: #0f7a43; color: #fff; align-self: flex-start; margin-top: .4rem; }
.wa-btn:hover { background: #0c6638; box-shadow: 0 10px 24px -10px rgba(15,122,67,.7); }
.wa-soon { font-style: italic; color: var(--muted); margin: .4rem 0 0; }
@media (max-width: 820px) { .folge-grid { grid-template-columns: 1fr; } .social-grid.social-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Tabs / Reiter ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 3px solid var(--linie); margin: 2rem 0 0; }
.tab { font-family: var(--ui); font-weight: 700; font-size: .95rem; color: var(--muted); background: transparent; border: 0; cursor: pointer; padding: .85rem 1.2rem; border-radius: var(--radius) var(--radius) 0 0; position: relative; display: inline-flex; align-items: center; gap: .55rem; transition: color .2s ease, background .2s ease; }
.tab .tnum { font-family: var(--display); font-weight: 900; font-style: italic; color: var(--gelb-tief); }
.tab:hover { color: var(--gruen-nacht); background: #f1f6e8; }
.tab[aria-selected="true"] { color: var(--gruen-nacht); background: var(--karte); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--gelb); }
.tab[aria-selected="true"] .tnum { color: var(--gruen-tief); }
.tab-panel { background: var(--karte); border: 1px solid var(--linie); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 2.2rem; box-shadow: var(--schatten-s); animation: fade .35s ease; }
.tab-panel h3 { font-size: 1.5rem; margin: 0 0 .4rem; color: var(--gruen-tief); font-style: italic; }
.tab-panel h4 { font-family: var(--display); font-size: 1.15rem; margin: 1.4rem 0 .4rem; color: var(--gruen-nacht); }
.tab-panel ul { padding-left: 0; list-style: none; }
.tab-panel ul li { position: relative; padding-left: 1.7rem; margin: .5rem 0; }
.tab-panel ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--lime); transform: rotate(45deg); }
.tab-panel ol { counter-reset: schritt; list-style: none; padding-left: 0; }
.tab-panel ol li { counter-increment: schritt; position: relative; padding-left: 3rem; margin: .9rem 0; min-height: 2rem; }
.tab-panel ol li::before { content: counter(schritt); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--gruen-tief); color: var(--gelb); font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.05rem; }
.checkliste { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.6rem; margin: .6rem 0; }
.checkliste div { position: relative; padding-left: 1.9rem; }
.checkliste div::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gruen); font-weight: 800; }
@media (max-width: 640px) { .checkliste { grid-template-columns: 1fr; } }

/* ---------- Narrentyp-Figuren ---------- */
.figur { margin: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  background: linear-gradient(160deg, #f3eee2, #e7dcc8); box-shadow: var(--schatten);
  border: 1px solid var(--linie); display: grid; place-items: center; padding: 1rem; }
.figur.hell { background: linear-gradient(160deg, #fbf7ee, #efe7d6); }
.figur img { max-height: 560px; width: auto; filter: drop-shadow(0 14px 22px rgba(20,45,20,.22)); }

/* ---------- Faksimile / Zitat ---------- */
.faksimile { margin: 1.6rem 0; background: #fffdf6; border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--schatten-s); cursor: zoom-in; max-width: 620px; }
.faksimile img { width: 100%; border-radius: 2px; }
.faksimile figcaption { font-family: var(--ui); font-size: .78rem; color: var(--muted); margin-top: .5rem; font-style: italic; text-align: center; }
.zitat { font-family: var(--display); font-style: italic; font-size: 1.18rem; line-height: 1.55;
  border-left: 4px solid var(--gelb); padding: .4rem 0 .4rem 1.4rem; margin: 1.4rem 0; color: #f0e8d6; }
.zitat.gross { font-size: clamp(1.2rem, 2.4vw, 1.7rem); border: 0; padding: 0; max-width: 60ch; margin: 1rem auto 1.6rem; }
.zitat cite { display: block; font-style: normal; font-family: var(--ui); font-weight: 600; font-size: .82rem; color: var(--gelb); margin-top: .8rem; }
.section .zitat { color: var(--gruen-nacht); }

/* ---------- Epoche (Zeitstrahl-Unterüberschrift) ---------- */
.epoche { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.05rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--gras); margin: 1.6rem 0 1rem -2rem;
  padding-left: .6rem; }
.epoche:first-child { margin-top: 0; }

/* ---------- Narrenmarsch-Block ---------- */
.marsch { margin-top: 1.6rem; columns: 2; column-gap: 2.4rem; font-family: var(--display); font-style: italic;
  font-size: 1.08rem; line-height: 1.5; color: #fff; }
.marsch p { break-inside: avoid; margin: 0 0 1rem; }
@media (max-width: 700px) { .marsch { columns: 1; } }

/* ---------- Traditionen-Raster (Startseite) ---------- */
.trad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; margin-top: 1.4rem; }
.trad { border-left: 4px solid var(--gelb); padding-left: .9rem; }
.trad h4 { font-family: var(--display); font-style: italic; font-size: 1.1rem; margin: 0 0 .2rem; color: var(--gruen-tief); }
.trad p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 600px) { .trad-grid { grid-template-columns: 1fr; } }

/* ---------- Akkordeon (Bräuche & Begriffe) ---------- */
.akkordeon { margin-top: 1.6rem; display: grid; gap: .8rem; }
details.akk { background: var(--karte); border: 1px solid var(--linie); border-left: 5px solid var(--gelb);
  border-radius: var(--radius); box-shadow: var(--schatten-s); overflow: hidden; }
details.akk > summary { list-style: none; cursor: pointer; padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: .8rem;
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.2rem; color: var(--gruen-tief); }
details.akk > summary::-webkit-details-marker { display: none; }
details.akk > summary::after { content: "+"; margin-left: auto; font-family: var(--ui); font-weight: 700; font-size: 1.6rem;
  color: var(--gelb-tief); transition: transform .25s ease; line-height: 1; }
details.akk[open] > summary::after { transform: rotate(45deg); }
details.akk > summary .akk-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #eef6e6;
  display: grid; place-items: center; color: var(--gruen); font-family: var(--display); font-style: italic; font-size: 1.05rem; }
.akk-body { padding: 0 1.4rem 1.3rem 1.4rem; color: var(--text); }
.akk-body p { margin: .2rem 0 .7rem; }
.akk-body .quelle { font-style: italic; color: var(--muted); font-size: .92rem; border-left: 3px solid var(--gold); padding-left: .8rem; }

/* ---------- Banner ---------- */
.banner { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); cursor: zoom-in; background: var(--creme); }
.banner img { width: 100%; display: block; transition: transform .6s ease; }
.banner:hover img { transform: scale(1.03); }

/* ---------- Downloads ---------- */
.dl-gruppe { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gruen-tief); margin: 0 0 1.2rem; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.dl-item { display: flex; align-items: center; gap: 1.1rem; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--schatten-s); color: var(--text); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.dl-item:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--schatten); border-color: var(--gelb); }
.dl-typ { flex: 0 0 auto; align-self: flex-start; font-family: var(--ui); font-weight: 800; font-size: .68rem; letter-spacing: .07em; color: #fff; background: var(--gruen-tief); border-radius: 5px; padding: .45rem .5rem; min-width: 3rem; text-align: center; }
.dl-typ.dl-mp3 { background: #b4451f; }
.dl-typ.dl-zip { background: var(--braun); }
.dl-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dl-titel { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.18rem; color: var(--gruen-nacht); line-height: 1.15; }
.dl-desc { font-size: .9rem; color: var(--muted); margin-top: .15rem; }
.dl-meta { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gruen-tief); margin-top: .4rem; }
.dl-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--gelb); color: var(--gruen-nacht); display: grid; place-items: center; font-weight: 800; transition: transform .2s ease; }
.dl-item:hover .dl-ic { transform: translateY(3px); }
@media (max-width: 720px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
/* ============================================================
   Lesbarkeit / Kontrast-Korrekturen (WCAG AA)
   ============================================================ */
/* Termin-Liste, wenn sie in einer dunklen Sektion steht (z. B. Startseite):
   Ort und Beschreibung brauchen helle Schrift statt der dunklen Cremegrund-Töne */
.section-alt .termin { border-bottom-color: rgba(255, 255, 255, .16); }
.section-alt .termin .info .ort { color: #cfe6b0; }
.section-alt .termin .info p { color: #dceacb; }

/* Reiter-Nummern: das CI-Gold ist auf Creme/Weiß zu blass – dunkler einfärben */
.tab .tnum,
.tab[aria-selected="true"] .tnum { color: var(--gruen-tief); }

/* ============================================================
   CI-Kernmuster (gewebtes Diagonal-Karo) + Narrenfiguren-Emblem
   ============================================================ */
/* Feine gewebte Textur als Anspielung auf das CI-Kernstück – nur dunkle Flächen.
   background-blend-mode mischt das Muster dezent mit dem grünen Untergrund. */
.hero { background-color: var(--gruen-nacht); }
.hero, .section-alt, .stat-band, footer {
  background-image: url("/assets/img/ci-muster.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;   /* ein durchgängiges Muster über alle Bereiche statt gekachelt */
  background-blend-mode: soft-light;
}
/* fixed wird auf Touch-Geräten ruckelig – dort pro Bereich skaliert, aber weiterhin ungekachelt */
@media (max-width: 820px) {
  .hero, .section-alt, .stat-band, footer { background-attachment: scroll; }
}

/* Narrenfiguren-Federzeichnung: weißer Hintergrund wird per multiply transparent,
   nur die Linien bleiben – als verspieltes Wasserzeichen auf hellem Grund */
.narren-wm {
  position: absolute; left: 50%; bottom: -9%; z-index: 0; pointer-events: none;
  width: min(46vw, 440px); transform: translateX(-50%) rotate(-5deg);
  mix-blend-mode: multiply; opacity: .09;
}
.intro-narren { position: relative; overflow: hidden; }
.intro-narren > .col-2 { position: relative; z-index: 1; }

/* Footer-Siegel: leicht gekippter „Vereinsstempel" der drei Narrenfiguren */
footer { position: relative; overflow: hidden; }
.narren-siegel {
  position: absolute; right: 1.8rem; bottom: 1.5rem; width: 118px; z-index: 1;
  background: var(--creme); border-radius: 10px; padding: 9px 9px 5px;
  border: 2px solid var(--gelb); box-shadow: var(--schatten);
  transform: rotate(-5deg); transition: transform .35s ease;
}
.narren-siegel:hover { transform: rotate(0) scale(1.03); }

@media (max-width: 980px) {
  .narren-siegel { position: static; width: 132px; margin: 0 0 1.8rem; transform: rotate(-3deg); }
  .footer-bottom { padding-right: 0; }
  .galerie { columns: 2; }
  .social-grid { grid-template-columns: 1fr; }
  .col-2 { grid-template-columns: 1fr; gap: 1.6rem; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-split .gelb { left: 60%; }
  .hero-split .foto { inset: 0 0 0 61%; }
}
@media (max-width: 820px) {
  .marke-zeile3 { display: none; }
  .hero-split .gelb { display: none; }
  .hero-split .foto { inset: 0; }
  .hero-split .foto::after { background: linear-gradient(180deg, rgba(20,45,20,.82), rgba(20,45,20,.93)); mix-blend-mode: normal; }
  .hero h1, .hero .narrenruf, .hero .sub { max-width: none; }
  nav#hauptnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem; background: var(--creme); padding: 1rem 1.6rem 1.4rem; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten); }
  nav#hauptnav.open { display: flex; }
  nav#hauptnav a { padding: .7rem 0; border-bottom: 1px solid var(--linie); }
  nav#hauptnav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: .6rem; }
  .nav-toggle { display: block; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .typ { grid-template-columns: 1fr; }
  .typ .initial { width: 76px; aspect-ratio: 1; }
  .galerie { columns: 1; }
}
