/* Freie Wähler Heilbronn – App-Oberfläche */
:root {
  --fw-orange: #F69B00;
  --fw-orange-tief: #D98500;
  --fw-blau: #008BD1;
  --fw-blau-tief: #006FA8;
  --bg: #F4F5F7;
  --bg-elev: #FFFFFF;
  --bg-sunk: #ECEEF1;
  --text: #15181D;
  --text-2: #5B6270;
  --text-3: #8B919C;
  --line: rgba(20, 24, 29, .08);
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-hoch: 0 12px 40px rgba(16, 24, 40, .16);
  --orange-weich: rgba(246, 155, 0, .12);
  --blau-weich: rgba(0, 139, 209, .10);
  --r: 20px;
  --r-s: 14px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0D10; --bg-elev: #16191E; --bg-sunk: #1E2228; --text: #F2F4F7; --text-2: #A9B0BC; --text-3: #737B88;
    --line: rgba(255, 255, 255, .08); --glass: rgba(22, 25, 30, .72);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --shadow-hoch: 0 12px 40px rgba(0, 0, 0, .5);
    --orange-weich: rgba(246, 155, 0, .16); --blau-weich: rgba(0, 139, 209, .18); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0D10; --bg-elev: #16191E; --bg-sunk: #1E2228; --text: #F2F4F7; --text-2: #A9B0BC; --text-3: #737B88;
  --line: rgba(255, 255, 255, .08); --glass: rgba(22, 25, 30, .72);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --shadow-hoch: 0 12px 40px rgba(0, 0, 0, .5);
  --orange-weich: rgba(246, 155, 0, .16); --blau-weich: rgba(0, 139, 209, .18); color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: var(--fw-blau); }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#fw-app { position: fixed; inset: 0; overflow: hidden; }

/* ---------- Ansichten ---------- */
.fw-view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-t) + 8px) 0 calc(var(--tab-h) + var(--safe-b) + 24px); background: var(--bg); }
.fw-view[hidden] { display: none; }
.fw-inner { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* Großer Titel + kompakte Kopfleiste beim Scrollen */
.fw-bar { position: sticky; top: calc(-1 * var(--safe-t) - 8px); z-index: 5; margin: calc(-1 * var(--safe-t) - 8px) 0 0;
  padding: calc(var(--safe-t) + 10px) 16px 10px; display: flex; align-items: center; justify-content: center; min-height: 44px;
  background: transparent; transition: background .2s, border-color .2s; border-bottom: .5px solid transparent; }
.fw-bar.is-solid { background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--line); }
.fw-bar-titel { font-weight: 600; font-size: 17px; opacity: 0; transform: translateY(4px); transition: .2s; }
.fw-bar.is-solid .fw-bar-titel { opacity: 1; transform: none; }
.fw-bar-aktion { position: absolute; right: 12px; bottom: 6px; }
.fw-gross { font-family: var(--font-display); font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 14px; }
.fw-unter { color: var(--text-2); font-size: 15px; margin: -8px 0 18px; }

/* ---------- Start ---------- */
.fw-kopf-start { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 16px; }
.fw-kopf-start img { height: 34px; width: auto; }
:root[data-theme="dark"] .fw-logo-hell { display: none; }
:root:not([data-theme="dark"]) .fw-logo-dunkel { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fw-logo-hell { display: none; }
  :root:not([data-theme="light"]) .fw-logo-dunkel { display: block; }
}
.fw-rund { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elev); box-shadow: var(--shadow); }
.fw-rund svg { width: 20px; height: 20px; }

.fw-hero { position: relative; border-radius: 28px; overflow: hidden; padding: 26px 22px 22px; color: #fff; min-height: 220px;
  background: radial-gradient(120% 140% at 100% 0%, #FFB938 0%, var(--fw-orange) 40%, #E07A00 100%); box-shadow: 0 18px 40px rgba(246, 155, 0, .28); }
.fw-hero::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%;
  border: 38px solid rgba(255, 255, 255, .12); }
.fw-btn-icon { width: 46px; padding: 0; flex: none; }
.fw-btn.fw-btn-icon svg { width: 22px; height: 22px; flex: none; }
.fw-hero-signet { position: absolute; right: 16px; top: 16px; width: 82px; height: 82px; border-radius: 50%; box-shadow: 0 8px 20px rgba(0,0,0,.18); transform: rotate(8deg); }
.fw-hero small { display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.22); padding: 5px 10px; border-radius: 99px; }
.fw-hero h1 { font-family: var(--font-display); font-size: 32px; line-height: 1.05; margin: 16px 0 8px; font-weight: 850; letter-spacing: -.02em; max-width: 72%; }
.fw-hero p { margin: 0 0 18px; font-size: 15px; opacity: .95; max-width: 82%; position: relative; z-index: 1; }
.fw-hero-knoepfe { display: flex; gap: 10px; position: relative; z-index: 1; flex-wrap: wrap; }
.fw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 650; font-size: 15px; transition: transform .12s, opacity .12s; text-decoration: none; }
.fw-btn:active { transform: scale(.97); }
.fw-btn svg { width: 18px; height: 18px; }
.fw-btn-weiss { background: #fff; color: #1a1a1a; }
.fw-btn-glas { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fw-btn-voll { background: var(--fw-orange); color: #fff; width: 100%; }
.fw-btn-blau { background: var(--fw-blau); color: #fff; width: 100%; }
.fw-btn-sanft { background: var(--bg-sunk); color: var(--text); }

.fw-schnell { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 8px; }
.fw-schnell button { background: var(--bg-elev); border-radius: 18px; padding: 14px 4px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow); font-size: 12px; font-weight: 600; color: var(--text-2); }
.fw-schnell i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal; }
.fw-schnell i svg { width: 21px; height: 21px; }
.fw-i-o { background: var(--orange-weich); color: var(--fw-orange); }
.fw-i-b { background: var(--blau-weich); color: var(--fw-blau); }

.fw-abschnitt { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.fw-abschnitt h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.fw-abschnitt button { color: var(--fw-blau); font-weight: 600; font-size: 15px; }

/* Waagrechte Karten */
.fw-reihe { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
.fw-reihe::-webkit-scrollbar { display: none; }
.fw-reihe > * { scroll-snap-align: start; flex: 0 0 78%; max-width: 320px; }

/* ---------- Karten ---------- */
.fw-karte { background: var(--bg-elev); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-align: left; width: 100%; display: block; transition: transform .15s; }
.fw-karte:active { transform: scale(.98); }
.fw-karte-bild { aspect-ratio: 16 / 10; background: var(--bg-sunk) center / cover no-repeat; position: relative; }
.fw-karte-bild.ohne { background: linear-gradient(135deg, var(--fw-orange), #FFC24D); display: grid; place-items: center; }
.fw-karte-bild.ohne.blau { background: linear-gradient(135deg, var(--fw-blau), #39B5F0); }
.fw-karte-bild.ohne img { width: 74px; opacity: .95; border-radius: 50%; }
.fw-karte-text { padding: 14px 16px 16px; }
.fw-karte h3 { margin: 6px 0 6px; font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.fw-karte p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fw-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.fw-chip-k { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--orange-weich); color: var(--fw-orange-tief); }
.fw-chip-k.k-13 { background: var(--blau-weich); color: var(--fw-blau); }
.fw-chip-k.k-9 { background: rgba(124, 92, 255, .12); color: #7C5CFF; }
.fw-chip-k.k-10 { background: rgba(16, 170, 120, .12); color: #0E9F6E; }
.fw-karte-bild .fw-chip-k { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); }

.fw-liste { display: grid; gap: 14px; }
@media (min-width: 640px) { .fw-liste { grid-template-columns: 1fr 1fr; } }

/* Kompakte Zeile */
.fw-zeile { display: flex; gap: 14px; align-items: center; background: var(--bg-elev); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); width: 100%; text-align: left; transition: transform .15s; }
.fw-zeile:active { transform: scale(.98); }
.fw-zeile-bild { width: 76px; height: 76px; border-radius: 14px; flex: none; background: var(--bg-sunk) center / cover; }
.fw-zeile h3 { font-size: 15.5px; margin: 4px 0 0; line-height: 1.3; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Filterchips + Suche */
.fw-suche { display: flex; align-items: center; gap: 8px; background: var(--bg-sunk); border-radius: 12px; padding: 0 12px; height: 40px; margin-bottom: 12px; }
.fw-suche svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.fw-suche input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 16px; color: var(--text); min-width: 0; }
.fw-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px; scrollbar-width: none; }
.fw-chips::-webkit-scrollbar { display: none; }
.fw-chips button { flex: none; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--bg-elev); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; color: var(--text-2); transition: .15s; }
.fw-chips button.is-on { background: var(--text); color: var(--bg); }

/* Termine */
.fw-termin { display: flex; gap: 14px; background: var(--bg-elev); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); width: 100%; text-align: left; align-items: center; }
.fw-datum { flex: none; width: 58px; height: 64px; border-radius: 14px; background: var(--orange-weich); color: var(--fw-orange-tief); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fw-datum b { font-size: 24px; line-height: 1; font-weight: 800; font-family: var(--font-display); }
.fw-datum span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.fw-termin.vorbei .fw-datum { background: var(--bg-sunk); color: var(--text-3); }
.fw-termin h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; line-height: 1.3; }
.fw-termin .fw-meta { flex-wrap: wrap; gap: 4px 10px; }
.fw-meta svg { width: 14px; height: 14px; flex: none; }
.fw-leer { text-align: center; padding: 34px 20px; background: var(--bg-elev); border-radius: var(--r); box-shadow: var(--shadow); color: var(--text-2); }
.fw-leer svg { width: 40px; height: 40px; color: var(--fw-orange); margin-bottom: 8px; }
.fw-leer h3 { color: var(--text); margin: 0 0 4px; font-size: 17px; }
.fw-leer p { margin: 0; font-size: 14.5px; }

/* Köpfe */
.fw-segment { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-sunk); border-radius: 12px; padding: 3px; margin-bottom: 18px; position: relative; }
.fw-segment button { height: 34px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text-2); position: relative; z-index: 1; transition: color .2s; }
.fw-segment button.is-on { color: var(--text); }
.fw-segment::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: var(--bg-elev); box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: transform .25s cubic-bezier(.3,.7,.2,1); }
.fw-segment.rechts::before { transform: translateX(100%); }
.fw-personen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .fw-personen { grid-template-columns: repeat(3, 1fr); } }
.fw-person { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-sunk) center 20% / cover; box-shadow: var(--shadow); text-align: left; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.fw-person::before { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.fw-person > * { position: relative; }
.fw-person div { padding: 12px; }
.fw-person b { display: block; font-size: 15.5px; line-height: 1.2; }
.fw-person small { font-size: 12px; opacity: .88; font-weight: 600; }
.fw-person .fw-insta { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; }
.fw-person .fw-insta svg { width: 16px; height: 16px; }
.fw-person.gross { grid-column: 1 / -1; aspect-ratio: 16 / 11; background-position: center 18%; }
.fw-person.gross b { font-size: 22px; }
.fw-person.gross small { background: var(--fw-orange); padding: 3px 9px; border-radius: 99px; display: inline-block; margin-bottom: 6px; }
.fw-bezirk { margin-bottom: 18px; }
.fw-bezirk h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 0 0 8px 4px; }
.fw-gruppe { background: var(--bg-elev); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.fw-gruppe-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 14px; width: 100%; text-align: left; }
.fw-gruppe-zeile + .fw-gruppe-zeile { border-top: .5px solid var(--line); }
.fw-ava { width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--bg-sunk) center 20% / cover; display: grid; place-items: center; font-weight: 700; color: var(--fw-orange); }
.fw-gruppe-zeile b { font-size: 15.5px; font-weight: 600; display: block; }
.fw-gruppe-zeile small { color: var(--text-2); font-size: 13px; }

/* Mehr */
.fw-menue { background: var(--bg-elev); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
.fw-menue button, .fw-menue a { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 52px; width: 100%; text-align: left; font-size: 16px; color: var(--text); text-decoration: none; }
.fw-menue > * + * { border-top: .5px solid var(--line); }
.fw-menue i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.fw-menue i svg { width: 18px; height: 18px; }
.fw-menue span { flex: 1; }
.fw-menue .fw-pfeil { width: 16px; height: 16px; color: var(--text-3); }
.fw-menue-titel { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 0 0 8px 4px; font-weight: 600; }
.fw-mitglied { border-radius: 24px; padding: 22px; color: #fff; background: linear-gradient(135deg, var(--fw-blau), #2BB0F0); margin-bottom: 22px; position: relative; overflow: hidden; }
.fw-mitglied::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .13); }
.fw-mitglied h2 { margin: 0 0 6px; font-size: 22px; font-family: var(--font-display); position: relative; z-index: 1; }
.fw-mitglied p { margin: 0 0 16px; opacity: .95; font-size: 14.5px; position: relative; z-index: 1; }
.fw-mitglied .fw-btn { position: relative; z-index: 1; }
.fw-fuss { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 8px 0 20px; line-height: 1.6; }

/* ---------- Detail-Stapel ---------- */
#fw-stack { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.fw-seite { position: absolute; inset: 0; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; pointer-events: auto;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.2,.8,.2,1); box-shadow: -10px 0 30px rgba(0,0,0,.12); padding-bottom: calc(var(--safe-b) + 40px); }
.fw-seite.is-in { transform: none; }
.fw-seite.is-unter { transform: translateX(-25%); }
.fw-seite-kopf { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(var(--safe-t) + 8px) 10px 8px; transition: background .2s; border-bottom: .5px solid transparent; }
.fw-seite-kopf.is-solid { background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--line); }
.fw-seite-kopf .fw-rund { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.fw-seite-kopf .fw-kopftitel { flex: 1; text-align: center; font-weight: 600; font-size: 16px; opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-seite-kopf.is-solid .fw-kopftitel { opacity: 1; }
.fw-seite.mit-bild .fw-seite-kopf { position: fixed; left: 0; right: 0; }
.fw-titelbild { height: min(56vh, 420px); background: var(--bg-sunk) center / cover; position: relative; }
.fw-titelbild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.25), transparent 30%, transparent 60%, var(--bg)); }
.fw-artikel { max-width: 680px; margin: 0 auto; padding: 4px 20px 0; position: relative; }
.fw-seite.mit-bild .fw-artikel { margin-top: -40px; }
.fw-artikel h1 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 12px; }
.fw-artikel .fw-meta { margin-bottom: 4px; }
.fw-inhalt { font-size: 17px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
.fw-inhalt p { margin: 0 0 1em; }
.fw-inhalt h2, .fw-inhalt h3, .fw-inhalt h4 { font-family: var(--font-display); line-height: 1.25; margin: 1.4em 0 .5em; letter-spacing: -.01em; }
.fw-inhalt h2 { font-size: 22px; } .fw-inhalt h3 { font-size: 19px; } .fw-inhalt h4 { font-size: 17px; }
.fw-inhalt img { border-radius: 16px; height: auto; max-width: 100%; margin: 8px 0; background: var(--bg-sunk); }
.fw-inhalt figure { margin: 1em 0; }
.fw-inhalt figcaption { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.fw-inhalt ul, .fw-inhalt ol { padding-left: 1.2em; }
.fw-inhalt li { margin-bottom: .4em; }
.fw-inhalt blockquote { margin: 1em 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--fw-orange); color: var(--text-2); }
.fw-inhalt hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.fw-inhalt table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.fw-inhalt td, .fw-inhalt th { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.fw-inhalt .wp-block-columns { display: block !important; }
.fw-inhalt .wp-block-gallery, .fw-inhalt .fw-galerie { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.fw-inhalt .wp-block-gallery img, .fw-inhalt .fw-galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; }
.fw-inhalt .wp-block-gallery figure { margin: 0; }
.fw-datei { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); margin: 12px 0; font-size: 15px; font-weight: 600; }
.fw-datei i { width: 38px; height: 38px; border-radius: 10px; background: rgba(230, 60, 50, .12); color: #E03C32; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; flex: none; }
.fw-datei span { flex: 1; }
.fw-aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 8px; }
.fw-aktionen:has(> :only-child) { grid-template-columns: 1fr; }
.fw-aktionen:empty { display: none; }
.fw-infobox { background: var(--bg-elev); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 16px; margin: 16px 0; }
.fw-infobox div { display: flex; gap: 12px; padding: 12px 0; align-items: flex-start; font-size: 15px; }
.fw-infobox div + div { border-top: .5px solid var(--line); }
.fw-infobox svg { width: 20px; height: 20px; color: var(--fw-orange); flex: none; margin-top: 1px; }
.fw-infobox small { display: block; color: var(--text-3); font-size: 12.5px; }

/* ---------- Tabbar ---------- */
.fw-tabbar { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 10px); height: var(--tab-h); z-index: 10; display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--glass); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-radius: 22px; box-shadow: var(--shadow-hoch); border: .5px solid var(--line); max-width: 560px; margin: 0 auto; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.fw-tabbar.versteckt { transform: translateY(calc(100% + 40px)); }
.fw-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 10.5px; font-weight: 600; transition: color .2s; position: relative; }
.fw-tabbar svg { width: 24px; height: 24px; transition: transform .2s; }
.fw-tabbar button.is-on { color: var(--fw-orange); }
.fw-tabbar button.is-on svg { transform: translateY(-1px) scale(1.06); }
.fw-tabbar button.is-on::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--fw-orange); }

/* ---------- Laden, Hinweise ---------- */
.fw-skelett { background: linear-gradient(90deg, var(--bg-sunk) 0%, var(--bg-elev) 50%, var(--bg-sunk) 100%); background-size: 200% 100%; animation: fw-glanz 1.2s linear infinite; border-radius: var(--r); }
@keyframes fw-glanz { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fw-mehr-laden { display: block; margin: 18px auto 0; color: var(--text-2); font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 99px; background: var(--bg-elev); box-shadow: var(--shadow); }
.fw-offline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fw-orange-tief); background: var(--orange-weich); border-radius: 12px; padding: 8px 12px; margin-bottom: 14px; }
.fw-offline svg { width: 16px; height: 16px; }
.fw-toast { position: absolute; left: 50%; bottom: calc(var(--safe-b) + var(--tab-h) + 26px); transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; pointer-events: none; transition: .25s; z-index: 50; white-space: nowrap; }
.fw-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fw-ptr { height: 0; display: grid; place-items: center; overflow: hidden; color: var(--text-3); transition: height .2s; }
.fw-ptr svg { width: 22px; height: 22px; }
.fw-ptr.dreht svg { animation: fw-drehen .8s linear infinite; }
@keyframes fw-drehen { to { transform: rotate(360deg); } }
.fw-ein { animation: fw-ein .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fw-ein { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Weihnachtszeit: Schriftzug und Plakette mit Mütze (Logos aus der Website, 21.11.2026) */
.fw-logo-schriftzug { height: 52px !important; width: auto; display: block; }
.fw-hero-signet { width: 92px !important; height: auto !important; border-radius: 0 !important; box-shadow: none !important; filter: drop-shadow(0 8px 14px rgba(120,60,0,.28)); top: 10px !important; }

/* Mitgliedsantrag in der App: Farben aus dem App-Thema (hell/dunkel) */
.fw-antrag-einleitung { color: var(--text-2); margin: -4px 0 16px; }
.fw-antrag-ziel .fw-antrag { --t: var(--text); --t2: var(--text-2); --s: var(--bg-sunk); --l: rgba(127,127,127,.25); }
.fw-antrag-ziel .fw-antrag fieldset { background: var(--bg-elev) !important; box-shadow: var(--shadow) !important; }
.fw-antrag-ziel .fw-antrag input[type=text], .fw-antrag-ziel .fw-antrag input[type=email], .fw-antrag-ziel .fw-antrag input[type=tel], .fw-antrag-ziel .fw-antrag input[type=date] { background: var(--bg-sunk) !important; color: var(--text) !important; }
.fw-antrag-ziel .fw-antrag .fw-pad { background: #fff; }
.fw-antrag-ziel .fw-antrag .fw-zweit { background: transparent !important; }

/* Startkarte Haushaltsanträge 2027/2028 */
.fw-hh-karte { position: relative; display: grid; gap: 2px; width: 100%; text-align: left; margin: 0 0 22px; padding: 18px 54px 18px 18px; border-radius: 20px;
  background: linear-gradient(135deg, #008BD1, #006FA8); color: #fff; box-shadow: 0 10px 26px rgba(0,111,168,.28); }
.fw-hh-karte-marke { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.fw-hh-karte strong { font-size: 20px; line-height: 1.25; }
.fw-hh-karte span:last-of-type { font-size: 14px; opacity: .92; }
.fw-hh-karte i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.2); font-style: normal; }
.fw-hh-karte i svg { width: 16px; height: 16px; stroke: #fff; }

/* ---------- Bausteine aus Website-Beiträgen (Haushaltsanträge, Ortskarte, Anträge, Stimme-Verweis) ---------- */
.fw-inhalt .fw-pdf-knoepfe, .fw-inhalt details.fw-original summary::marker { display: none; }
.fw-inhalt p.fw-lead { font-size: 18px; font-weight: 600; color: var(--text); }
.fw-inhalt p.fw-klein { font-size: 13px; color: var(--text-3); }
.fw-inhalt p.fw-hh-fuss, .fw-inhalt p.fw-stimme { background: var(--bg-sunk); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.fw-inhalt p.fw-antrag-text { background: rgba(246,155,0,.12); border-left: 4px solid var(--fw-orange); border-radius: 0 12px 12px 0; padding: 12px 14px; font-weight: 600; }
.fw-inhalt p.fw-unterzeichnet { color: var(--text-2); font-style: italic; }
.fw-inhalt .fw-antrag-kopf table, .fw-inhalt .fw-betraege table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-elev); border: 1px solid rgba(127,127,127,.18); border-radius: 14px; overflow: hidden; font-size: 14px; }
.fw-inhalt .fw-antrag-kopf th, .fw-inhalt .fw-antrag-kopf td { display: block; text-align: left; padding: 2px 14px; border: 0; }
.fw-inhalt .fw-antrag-kopf th { color: var(--text-3); font-size: 12px; font-weight: 700; padding-top: 10px; }
.fw-inhalt .fw-antrag-kopf td { font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid rgba(127,127,127,.14); }
.fw-inhalt .fw-antrag-kopf tr:last-child td { border-bottom: 0; }
.fw-inhalt .fw-betraege { overflow-x: auto; margin: 4px 0 16px; }
.fw-inhalt .fw-betraege th, .fw-inhalt .fw-betraege td { padding: 8px 10px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; border-top: 1px solid rgba(127,127,127,.14); }
.fw-inhalt .fw-betraege thead th { background: var(--bg-sunk); color: var(--text-2); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.fw-inhalt .fw-betraege tbody th { text-align: left; }
.fw-inhalt .fw-betraege .fw-antrag-spalte { background: rgba(246,155,0,.14); font-weight: 800; }
.fw-inhalt .fw-bereiche th:first-child, .fw-inhalt .fw-bereiche td:first-child { white-space: normal; text-align: left; }
.fw-inhalt .fw-kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 18px; }
.fw-inhalt .fw-kz { background: var(--bg-elev); border-radius: 16px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--fw-orange); }
.fw-inhalt .fw-kz b { display: block; font-size: 28px; line-height: 1.1; }
.fw-inhalt .fw-kz span { font-size: 12px; color: var(--text-2); }
.fw-inhalt .fw-kz-jahre { display: grid; gap: 10px; margin-bottom: 10px; }
.fw-inhalt .fw-kz-jahr { background: var(--bg-elev); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.fw-inhalt .fw-kz-jahr h3 { margin: 0 0 8px; }
.fw-inhalt .fw-kz-jahr dl { margin: 0; display: grid; gap: 6px; }
.fw-inhalt .fw-kz-jahr dl > div { display: flex; justify-content: space-between; gap: 10px; }
.fw-inhalt .fw-kz-jahr dt { color: var(--text-2); font-size: 14px; }
.fw-inhalt .fw-kz-jahr dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.fw-inhalt .fw-kz-jahr .fw-plus { color: #2E9B55; } .fw-inhalt .fw-kz-jahr .fw-minus { color: #D84A3F; }
.fw-inhalt .fw-kz-jahr .fw-saldo { border-top: 1px solid rgba(127,127,127,.18); padding-top: 6px; }
.fw-inhalt .fw-hh-bereich { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--fw-orange-tief, #D98500); margin: 20px 0 8px; }
.fw-inhalt ul.fw-hh-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fw-inhalt ul.fw-hh-liste a { display: grid; gap: 2px; background: var(--bg-elev); border-radius: 14px; padding: 10px 12px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.fw-inhalt .fw-hh-titel { font-weight: 700; font-size: 15px; }
.fw-inhalt .fw-hh-thema { font-size: 12px; color: var(--text-3); }
.fw-inhalt .fw-hh-betrag { font-size: 13px; font-weight: 700; color: var(--text-2); }
.fw-inhalt p.fw-adresse { display: grid; gap: 2px; background: var(--bg-elev); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.fw-inhalt .fw-ort-name { font-weight: 800; } .fw-inhalt .fw-ort-adr { color: var(--text-2); }
.fw-inhalt .fw-ort-knoepfe { display: flex; gap: 8px; margin-top: 10px; }
.fw-inhalt .fw-ort-knoepfe a { flex: 1; text-align: center; background: var(--bg-sunk); border-radius: 12px; padding: 10px; font-weight: 700; text-decoration: none; color: var(--text); }
.fw-inhalt ul.fw-namen { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fw-inhalt ul.fw-namen li { background: var(--bg-sunk); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.fw-inhalt details.fw-original { background: var(--bg-sunk); border-radius: 14px; padding: 12px 14px; margin-top: 16px; }
.fw-inhalt details.fw-original summary { font-weight: 700; color: var(--fw-blau); cursor: pointer; }
.fw-karten-wahl { grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: -6px; }
.fw-karten-wahl .fw-btn { padding-left: 6px; padding-right: 6px; font-size: 14px; gap: 6px; white-space: nowrap; }
.fw-seite .fw-inhalt p.fw-adresse { display: none; } /* Ort und Kartenknöpfe zeigt die App selbst */
.fw-aktionen > :only-child { grid-column: 1 / -1; }

/* Beiträge ohne Foto: schmales Markenband statt großer Fläche */
.fw-karte-bild.ohne { aspect-ratio: auto; height: 84px; display: flex; align-items: center; justify-content: flex-start; padding: 0 18px; gap: 14px; }
.fw-karte-bild.ohne img { width: 58px; height: auto; border-radius: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.fw-karte-bild.ohne::after { content: "Freie Wähler Heilbronn"; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .01em; }
/* Kopftabelle der Anträge: Linien über die volle Breite */
.fw-inhalt .fw-antrag-kopf table, .fw-inhalt .fw-antrag-kopf tbody, .fw-inhalt .fw-antrag-kopf tr { display: block; width: 100%; }
.fw-inhalt .fw-antrag-kopf tr { border-bottom: 1px solid rgba(127,127,127,.14); padding: 8px 14px; }
.fw-inhalt .fw-antrag-kopf tr:last-child { border-bottom: 0; }
.fw-inhalt .fw-antrag-kopf th, .fw-inhalt .fw-antrag-kopf td { padding: 0 !important; border: 0 !important; }
.fw-inhalt .fw-antrag-kopf th { padding-bottom: 2px !important; }
/* Liste der Haushaltsanträge: Beträge untereinander */
.fw-inhalt .fw-hh-betrag { display: grid; gap: 2px; margin-top: 4px; }
.fw-inhalt .fw-hh-zeile { display: flex; justify-content: space-between; }
.fw-inhalt .fw-hh-zeile em { font-style: normal; color: var(--text-3); }
.fw-inhalt .fw-hh-zeile b { font-variant-numeric: tabular-nums; }
.fw-inhalt .fw-kz-jahr dd { white-space: nowrap; }

/* =================== Winter: feiner Schneefall über dem Schriftzug (App) (nur CSS, nahtlose Schleife) =================== */
.fw-kopf-start { position: relative; isolation: isolate; }
.fw-kopf-start::before, .fw-kopf-start::after {
  content: ""; position: absolute; left: -10px; right: 64px; top: -16px; bottom: 0; pointer-events: none; z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent 100%);
  will-change: background-position, transform;
}
/* vordere Ebene: größere, helle Flocken, langsamer */
.fw-kopf-start::before {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.95) 0 1.6px, rgba(255,255,255,0) 2.6px),
    radial-gradient(circle at 38% 62%, rgba(255,255,255,.9) 0 1.9px, rgba(255,255,255,0) 3px),
    radial-gradient(circle at 63% 28%, rgba(255,255,255,.85) 0 1.3px, rgba(255,255,255,0) 2.3px),
    radial-gradient(circle at 86% 74%, rgba(255,255,255,.95) 0 1.7px, rgba(255,255,255,0) 2.8px),
    radial-gradient(circle at 25% 88%, rgba(255,255,255,.8) 0 1.2px, rgba(255,255,255,0) 2.1px);
  background-size: 140px 120px;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.55));
  animation: fw-schnee-fall 11s linear infinite, fw-schnee-wiegen 5.5s ease-in-out infinite alternate;
}
/* hintere Ebene: kleinere, zartere Flocken, schneller – ergibt Tiefe */
.fw-kopf-start::after {
  background-image:
    radial-gradient(circle at 8% 40%, rgba(255,255,255,.7) 0 .9px, rgba(255,255,255,0) 1.6px),
    radial-gradient(circle at 31% 12%, rgba(255,255,255,.65) 0 1px, rgba(255,255,255,0) 1.7px),
    radial-gradient(circle at 52% 70%, rgba(255,255,255,.7) 0 .8px, rgba(255,255,255,0) 1.5px),
    radial-gradient(circle at 74% 46%, rgba(255,255,255,.6) 0 1px, rgba(255,255,255,0) 1.7px),
    radial-gradient(circle at 93% 16%, rgba(255,255,255,.7) 0 .9px, rgba(255,255,255,0) 1.6px),
    radial-gradient(circle at 45% 95%, rgba(255,255,255,.6) 0 .8px, rgba(255,255,255,0) 1.5px);
  background-size: 96px 84px;
  animation: fw-schnee-fall-hinten 7.5s linear infinite, fw-schnee-wiegen 4.2s ease-in-out infinite alternate-reverse;
}
@keyframes fw-schnee-fall { from { background-position: 0 0; } to { background-position: 140px 120px; } }
@keyframes fw-schnee-fall-hinten { from { background-position: 0 0; } to { background-position: -96px 84px; } }
@keyframes fw-schnee-wiegen { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .fw-kopf-start::before, .fw-kopf-start::after { display: none; } }

/* Heller App-Hintergrund: Flocken mit zartem kühlem Schatten, damit sie sichtbar sind */
:root:not([data-theme="dark"]) .fw-kopf-start::before { filter: drop-shadow(0 0 1.2px rgba(0,70,130,.55)) drop-shadow(0 1px 2px rgba(0,70,130,.25)); }
:root:not([data-theme="dark"]) .fw-kopf-start::after { filter: drop-shadow(0 0 1px rgba(0,70,130,.5)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fw-kopf-start::before { filter: drop-shadow(0 0 2px rgba(255,255,255,.55)); } :root:not([data-theme="light"]) .fw-kopf-start::after { filter: none; } }
.fw-kopf-start > * { position: relative; z-index: 1; }

/* Betragstabellen (App): je Jahr ein Block, Werte untereinander */
 .fw-inhalt .fw-betraege { overflow: visible !important; }
 .fw-inhalt .fw-betraege table, .fw-inhalt .fw-betraege tbody, .fw-inhalt .fw-betraege tr, .fw-inhalt .fw-betraege th, .fw-inhalt .fw-betraege td { display: block; width: auto !important; }
 .fw-inhalt .fw-betraege thead { display: none; }
 .fw-inhalt .fw-betraege tbody tr { padding: 10px 14px; }
 .fw-inhalt .fw-betraege tbody tr + tr { border-top: 1px solid var(--linie, rgba(127,127,127,.16)); }
 .fw-inhalt .fw-betraege tbody tr > * { border: 0 !important; padding: 0 !important; background: none !important; white-space: normal !important; }
 .fw-inhalt .fw-betraege tbody th { font-size: 16px; font-weight: 800; margin-bottom: 4px; text-align: left !important; }
 .fw-inhalt .fw-betraege tbody td { display: flex !important; justify-content: space-between; gap: 12px; padding: 3px 0 !important; text-align: right !important; font-variant-numeric: tabular-nums; }
 .fw-inhalt .fw-betraege tbody td:empty { display: none !important; }
 .fw-inhalt .fw-betraege tbody td::before { color: var(--text-2); font-weight: 600; text-align: left; }
 .fw-inhalt .fw-betraege:not(.fw-bereiche) tbody td:nth-of-type(1)::before { content: "Planentwurf"; }
 .fw-inhalt .fw-betraege:not(.fw-bereiche) tbody td:nth-of-type(2)::before { content: "Antrag"; }
 .fw-inhalt .fw-betraege:not(.fw-bereiche) tbody td:nth-of-type(3)::before { content: "Neu"; }
 .fw-inhalt .fw-betraege:not(.fw-bereiche) tbody td.fw-antrag-spalte { background: rgba(246,155,0,.14) !important; margin: 2px -8px; padding: 4px 8px !important; border-radius: 8px; font-weight: 800; }
 .fw-inhalt .fw-bereiche tbody td:nth-of-type(1)::before { content: "Anträge"; }
 .fw-inhalt .fw-bereiche tbody td:nth-of-type(2)::before { content: "Saldo 2027"; }
 .fw-inhalt .fw-bereiche tbody td:nth-of-type(3)::before { content: "Saldo 2028"; }
.fw-fassung { display: inline-block; margin-top: 6px; font-size: 11px; opacity: .7; }

/* Haushalt-Übersicht (App): antippbar zeigen */
.fw-inhalt .fw-hh::before { content: "Antippen für alle Details zum Antrag"; display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.fw-inhalt ul.fw-hh-liste a { position: relative; grid-template-columns: 1fr 30px; border-left: 4px solid var(--fw-orange); padding-right: 12px; }
.fw-inhalt ul.fw-hh-liste a > * { grid-column: 1; }
.fw-inhalt ul.fw-hh-liste a::after { content: ""; grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(246,155,0,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D98500' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 15px 15px no-repeat; }
.fw-inhalt ul.fw-hh-liste a:active { transform: scale(.98); background: rgba(246,155,0,.08); }
.fw-inhalt ul.fw-hh-liste .fw-hh-titel { color: var(--fw-blau); }

/* Haushalt-Übersicht: Bericht „Kurz erklärt“ (App) */
.fw-inhalt .fw-bericht { display: grid; gap: 10px; margin: 6px 0 20px; }
.fw-inhalt .fw-bericht-karte { background: var(--bg-elev); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; border-top: 3px solid var(--fw-orange); }
.fw-inhalt .fw-bericht-karte.fw-blau { border-top-color: var(--fw-blau); }
.fw-inhalt .fw-bericht-karte h3 { font-size: 17px; margin: 0 0 6px; }
.fw-inhalt .fw-bericht-karte p { font-size: 15px; line-height: 1.55; color: var(--text-2); margin: 0; }
.fw-inhalt .fw-bericht-karte a { color: var(--fw-blau); font-weight: 700; text-decoration: none; }
.fw-inhalt .fw-bericht-fazit { background: linear-gradient(135deg, #008BD1, #006FA8); color: #fff; border-radius: 16px; padding: 14px 16px; font-size: 16px; line-height: 1.5; margin: 0; }
.fw-inhalt .fw-bericht-fazit b { white-space: nowrap; }

/* Dashboard „Wofür wir uns einsetzen“ im Reiter Anträge */
.fw-db { background: var(--bg-elev); border-radius: 20px; box-shadow: var(--shadow); padding: 14px 14px 10px; margin: 0 0 16px; }
.fw-db-kopf { display: grid; gap: 1px; margin-bottom: 10px; }
.fw-db-kopf strong { font-size: 17px; }
.fw-db-kopf span { font-size: 12px; color: var(--text-3); }
.fw-db-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fw-db-kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 10px 12px; border-radius: 14px; background: rgba(246,155,0,.14); }
.fw-db-kachel.fw-blau { background: rgba(0,139,209,.12); }
.fw-db-kachel:active { transform: scale(.97); }
.fw-db-titel { font-size: 12px; font-weight: 700; color: var(--text-2); }
.fw-db-wert { font-size: 20px; line-height: 1.2; font-weight: 800; color: #D98500; font-variant-numeric: tabular-nums; }
.fw-db-kachel.fw-blau .fw-db-wert { color: var(--fw-blau); }
.fw-db-text { font-size: 11.5px; color: var(--text-2); line-height: 1.3; }
.fw-db-mehr { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--fw-blau); padding: 4px 0; }

/* Vereinsseite: Namen mit Profil + Profilblatt */
.fw-inhalt ul.fw-namen li.fw-profil { position: relative; padding-right: 24px; box-shadow: inset 0 0 0 1.5px rgba(0,139,209,.35); }
.fw-inhalt ul.fw-namen li.fw-profil::after { content: "›"; position: absolute; right: 9px; top: 50%; transform: translateY(-52%); font-weight: 800; color: var(--fw-blau); }
.fw-inhalt ul.fw-namen li.fw-profil:active { transform: scale(.96); }
.fw-profil-app { text-align: center; padding-top: 6px; }
.fw-profil-app .fw-profil-bild { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: var(--shadow); margin: 0 auto 12px; display: block; }
.fw-profil-app .fw-profil-ini { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: rgba(246,155,0,.16); color: #D98500; font-size: 40px; font-weight: 800; }
.fw-profil-app h1 { margin: 0 0 4px; }
.fw-profil-app .fw-profil-rolle { color: #D98500; font-weight: 700; margin: 0 0 6px; }
.fw-profil-app .fw-profil-info { color: var(--text-2); margin: 0 0 14px; }
.fw-profil-app .fw-menue { text-align: left; }

/* =================== Animierte Linien-Icons (Schnellzugriffe) =================== */
/* 1) Beim Erscheinen zeichnen sich die Striche selbst  2) dezente Bewegung alle paar Sekunden, je Kachel versetzt
   3) beim Darüberfahren/Antippen spielt die Bewegung sofort  4) „Bewegung reduzieren“ → statisch */
.fw-ai { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fw-ai [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fw-ai-zeichnen .9s cubic-bezier(.65,0,.35,1) forwards; }
.fw-ai .ai-ecke { animation-delay: .35s; }
.fw-ai .ai-z1 { animation-delay: .55s; } .fw-ai .ai-z2 { animation-delay: .7s; }
.fw-ai .ai-haken, .fw-ai .ai-klappe { animation-delay: .5s; }
.fw-ai-leute .ai-p2 [pathLength] { animation-delay: .3s; }
@keyframes fw-ai-zeichnen { to { stroke-dashoffset: 0; } }

/* Antrag: Stift schreibt die Zeilen */
.fw-ai-antrag .ai-stift { fill: currentColor; stroke: none; opacity: 0; transform-origin: 18px 13px; }
.fw-ai-antrag { --ai-schleife: fw-ai-schreiben; }
@keyframes fw-ai-schreiben { 0%, 100% { opacity: 0; transform: translate(-6px, 3px) rotate(0); } 15% { opacity: 1; } 45% { transform: translate(-1px, 3px) rotate(-6deg); } 70% { opacity: 1; transform: translate(-4px, 6px) rotate(4deg); } 90% { opacity: 0; } }
/* Kalender: Ringe wippen, Haken setzt sich neu */
.fw-ai-kalender .ai-ring { transform-box: fill-box; transform-origin: bottom center; }
@keyframes fw-ai-ring { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
@keyframes fw-ai-haken { 0% { stroke-dashoffset: 0; } 30% { stroke-dashoffset: 1; } 70%, 100% { stroke-dashoffset: 0; } }
/* Personen: nicken nacheinander */
.fw-ai-leute g { transform-box: fill-box; transform-origin: bottom center; }
@keyframes fw-ai-nicken { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-2.2px); } 60% { transform: translateY(.4px); } }
/* Post: Brief hebt sich, roter Punkt „neue Nachricht“ */
.fw-ai-post .ai-punkt { fill: #E5484D; stroke: var(--bg-elev, #fff); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.fw-ai-post .ai-klappe { transform-box: fill-box; transform-origin: top center; }
@keyframes fw-ai-brief { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-1.8px); } }
@keyframes fw-ai-klappe { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(-.55); } }
@keyframes fw-ai-punkt { 0%, 20% { transform: scale(0); } 45% { transform: scale(1.25); } 60%, 85% { transform: scale(1); } 100% { transform: scale(0); } }

/* Schleife: alle 7 s, je Kachel versetzt (--ai-versatz), und sofort beim Darüberfahren/Antippen */
.fw-ai-wirt { --ai-dauer: 7s; }
.fw-ai-wirt .fw-ai-antrag .ai-stift { animation: fw-ai-schreiben 1.6s ease-in-out var(--ai-versatz, 1.2s) infinite; animation-duration: var(--ai-dauer); }
.fw-ai-wirt .fw-ai-kalender .ai-r1 { animation: fw-ai-ring var(--ai-dauer) ease-in-out calc(var(--ai-versatz, 1.2s) + .0s) infinite; }
.fw-ai-wirt .fw-ai-kalender .ai-r2 { animation: fw-ai-ring var(--ai-dauer) ease-in-out calc(var(--ai-versatz, 1.2s) + .12s) infinite; }
.fw-ai-wirt .fw-ai-leute .ai-p1 { animation: fw-ai-nicken var(--ai-dauer) ease-in-out var(--ai-versatz, 1.2s) infinite; }
.fw-ai-wirt .fw-ai-leute .ai-p2 { animation: fw-ai-nicken var(--ai-dauer) ease-in-out calc(var(--ai-versatz, 1.2s) + .25s) infinite; }
.fw-ai-wirt .fw-ai-post { animation: fw-ai-brief var(--ai-dauer) ease-in-out var(--ai-versatz, 1.2s) infinite; }
.fw-ai-wirt .fw-ai-post .ai-punkt { animation: fw-ai-punkt var(--ai-dauer) ease-in-out var(--ai-versatz, 1.2s) infinite; }
/* Darüberfahren/Antippen: kurze, sofortige Bewegung */
.fw-ai-wirt:hover .fw-ai-antrag .ai-stift, .fw-ai-wirt:active .fw-ai-antrag .ai-stift { animation: fw-ai-schreiben 1.4s ease-in-out 0s 1; }
.fw-ai-wirt:hover .fw-ai-kalender .ai-ring, .fw-ai-wirt:active .fw-ai-kalender .ai-ring { animation: fw-ai-ring .7s ease-in-out 0s 1; }
.fw-ai-wirt:hover .fw-ai-kalender .ai-haken, .fw-ai-wirt:active .fw-ai-kalender .ai-haken { animation: fw-ai-haken .9s ease-in-out 0s 1 both; }
.fw-ai-wirt:hover .fw-ai-leute g, .fw-ai-wirt:active .fw-ai-leute g { animation: fw-ai-nicken .7s ease-in-out 0s 1; }
.fw-ai-wirt:hover .fw-ai-post, .fw-ai-wirt:active .fw-ai-post { animation: fw-ai-brief .8s ease-in-out 0s 1; }
.fw-ai-wirt:hover .fw-ai-post .ai-punkt, .fw-ai-wirt:active .fw-ai-post .ai-punkt { animation: fw-ai-punkt 1.2s ease-in-out 0s 1; }
.fw-ai-wirt:nth-child(1) { --ai-versatz: 1.2s; } .fw-ai-wirt:nth-child(2) { --ai-versatz: 2.9s; }
.fw-ai-wirt:nth-child(3) { --ai-versatz: 4.6s; } .fw-ai-wirt:nth-child(4) { --ai-versatz: 6.3s; }
@media (prefers-reduced-motion: reduce) {
  .fw-ai [pathLength] { animation: none; stroke-dashoffset: 0; }
  .fw-ai-wirt .fw-ai, .fw-ai-wirt .fw-ai * { animation: none !important; }
  .fw-ai-antrag .ai-stift, .fw-ai-post .ai-punkt { display: none; }
}

/* Dashboard Fassung 2 (App) */
.fw-db { position: relative; overflow: hidden; }
.fw-db::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #F69B00, #FFC24D 45%, #008BD1); }
.fw-db-marke { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #D98500; }
.fw-db-oben { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 6px; }
.fw-db-sym { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-elev); color: #D98500; }
.fw-db-kachel.fw-blau .fw-db-sym { color: var(--fw-blau); }
.fw-db-sym svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fw-db-anz { font-size: 10.5px; font-weight: 700; color: var(--text-2); background: var(--bg-elev); padding: 2px 7px; border-radius: 999px; }
.fw-db-titel { min-height: 2.6em; display: flex; align-items: flex-end; }
.fw-db-balken { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(127,127,127,.15); margin-top: 8px; overflow: hidden; }
.fw-db-balken i { display: block; height: 100%; border-radius: 4px; background: #F69B00; }
.fw-db-kachel.fw-blau .fw-db-balken i { background: var(--fw-blau); }
/* Dashboard: gemeinsame Zeilen in allen Kacheln */
.fw-db-raster { grid-template-rows: auto auto auto auto auto auto auto auto auto auto; }
.fw-db-kachel { display: grid !important; grid-row: span 5; grid-template-rows: subgrid; row-gap: 2px; align-content: start; justify-items: start; }
.fw-db-titel { min-height: 0 !important; align-items: flex-start !important; }
.fw-db-balken { align-self: end; }
@supports not (grid-template-rows: subgrid) { .fw-db-titel { min-height: 2.6em !important; } .fw-db-text { min-height: 2.6em; } }

/* Termine-Reiter: Karten zum Durchstöbern (wie die Website), chronologisch mit Jahresmarken */
.fw-tk-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fw-tk-jahr { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; font-size: 22px; font-weight: 800; }
.fw-tk-jahr:first-child { margin-top: 2px; }
.fw-tk-jahr::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--fw-orange), rgba(246,155,0,0)); }
.fw-tk-jahr.kommend { color: var(--fw-blau); }
.fw-tk-jahr.kommend::after { background: linear-gradient(90deg, var(--fw-blau), rgba(0,139,209,0)); }
.fw-tk-karte { display: flex; flex-direction: column; text-align: left; background: var(--bg-elev); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .12s; padding: 0; }
.fw-tk-karte:active { transform: scale(.97); }
.fw-tk-karte.kommend { box-shadow: 0 0 0 2px var(--fw-orange), var(--shadow); }
.fw-tk-bild { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--bg-sunk) center / cover no-repeat; }
.fw-tk-bild i { position: absolute; inset: 0; background: url("img/signet-weihnacht.png") center / auto 48% no-repeat, linear-gradient(135deg, rgba(246,155,0,.18), rgba(255,194,77,.35)); }
.fw-tk-karte.kommend .fw-tk-bild i { background: url("img/signet-weihnacht.png") center / auto 48% no-repeat, linear-gradient(135deg, #FFB12E, #F69B00); }
.fw-tk-datum { position: absolute; left: 8px; top: 8px; width: 42px; padding: 4px 0 5px; border-radius: 11px; background: rgba(255,255,255,.95); color: #D98500; display: flex; flex-direction: column; align-items: center; line-height: 1.05; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.fw-tk-datum b { font-size: 17px; font-weight: 800; } .fw-tk-datum small { font-size: 9.5px; font-weight: 700; }
.fw-tk-logo { position: absolute; right: 6px; top: 4px; width: 30px; height: auto; filter: drop-shadow(0 2px 5px rgba(0,0,0,.3)); }
.fw-tk-bild em { position: absolute; left: 8px; bottom: 8px; font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--fw-blau); padding: 3px 8px; border-radius: 999px; }
.fw-tk-text { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px 11px; }
.fw-tk-text strong { font-size: 13.5px; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fw-tk-text span { font-size: 11.5px; color: var(--text-2); }

/* Startbanner mit Heilbronn-Foto (Peter Schmelzle, CC BY-SA 4.0, Wikimedia Commons) */
.fw-hero { background: linear-gradient(180deg, rgba(246,155,0,.05) 0px, rgba(246,155,0,.22) 60px, rgba(246,155,0,.68) 130px, #F39800 200px, #EE9200 100%), url("img/heilbronn-kiliansturmblick.webp") center top / 100% auto no-repeat, var(--fw-orange) !important; padding-bottom: 30px !important; }
.fw-hero h1, .fw-hero p, .fw-hero small { text-shadow: 0 1px 12px rgba(150,75,0,.25); }
.fw-hero-nachweis { position: absolute; right: 14px; bottom: 8px; font-size: 9.5px; color: rgba(255,255,255,.85) !important; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.fw-hero { background: linear-gradient(180deg, rgba(238,146,0,.42) 0px, rgba(240,148,0,.55) 70px, rgba(243,152,0,.8) 140px, #F39800 190px, #EE9200 100%), url("img/heilbronn-kiliansturmblick.webp") center top / 100% auto no-repeat, var(--fw-orange) !important; }
.fw-hero small { background: rgba(255,255,255,.24) !important; }
.fw-inhalt .fw-hh-erkl { background: var(--bg-elev); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; margin: 6px 0 18px; border-left: 4px solid var(--fw-blau); }
.fw-inhalt .fw-hh-erkl h3 { margin: 0 0 6px; }
.fw-inhalt ol.fw-hh-weg { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fw-inhalt ol.fw-hh-weg li { padding: 9px 10px; border-radius: 12px; background: rgba(0,139,209,.1); display: flex; flex-direction: column; font-size: 13px; }
.fw-inhalt ol.fw-hh-weg li:nth-child(n+3) { background: rgba(246,155,0,.14); }
.fw-inhalt .fw-hh-erkl-quelle { font-size: 11px; color: var(--text-3); margin: 0; }
.fw-inhalt .fw-org { font-size: 14px; }
.fw-inhalt .fw-org-pfeile span b { background: var(--bg); }
