/* ==========================================================================
   Gemeinde-App by BINARY one — Landingpage
   Design-Grundlage: binaryone.ch („Refined Dark Tech")
   Tokens, Typo, Buttons und Eyebrow-Marker sind 1:1 vom Hauptauftritt
   übernommen, damit die Seite ohne Bruch in den Auftritt passt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Theme-Variablen (identisch zu binaryone.ch)
   -------------------------------------------------------------------------- */
:root,
[data-theme="dark"] {
    color-scheme: dark;
    --bg:            oklch(0.14 0.012 260);
    --bg-elev:       oklch(0.18 0.014 260);
    --bg-card:       oklch(0.20 0.014 260);
    --bg-input:      oklch(0.255 0.016 260);
    --line:          oklch(0.28 0.014 260);
    --line-soft:     oklch(0.22 0.014 260);
    --ink:           oklch(0.97 0.005 260);
    --ink-muted:     oklch(0.72 0.012 260);
    --ink-soft:      oklch(0.62 0.014 260);
    --accent:        oklch(0.82 0.15 165);
    --accent-soft:   oklch(0.82 0.15 165 / 0.12);
    --accent-ink:    oklch(0.18 0.014 260);
    --danger:        oklch(0.68 0.18 28);
    --grain-opacity: 0.05;

    --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sans:    "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

    --ease:    cubic-bezier(0.22, 1, 0.36, 1);

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;

    --max:      1240px;
    --max-wide: 1800px;
    --pad-x:    clamp(1.25rem, 4vw, 4rem);

    --header-h:     68px;
    --header-h-top: 88px;

    /* App-Akzent im Mockup — wird pro Gemeinde überschrieben */
    --g-accent:      oklch(0.82 0.15 165);
    --g-accent-ink:  var(--accent-ink);   /* dunkel auf dem hellen Mint; Gemeinde-Seiten setzen #fff */
    --g-ink:         #12151c;
    --g-ink-soft:    #6b7280;
    --g-surface:     #ffffff;
    --g-surface-2:   #f2f3f5;
    --g-line:        #e4e6ea;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
    /* Sicherheitsnetz gegen horizontales Scrollen: `clip` kappt Überhänge, ohne
       — anders als `hidden` — einen Scroll-Container zu erzeugen. Damit bleibt
       `position: sticky` im Dokument funktionsfähig. */
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    font-feature-settings: "ss01", "ss02";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Fallback für Browser ohne `clip` (Safari < 16); moderne Browser nehmen
       die zweite Zeile und behalten damit sticky-Fähigkeit. */
    overflow-x: hidden;
    overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 300;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--r-md) 0;
    /* Nach oben aus dem Bild geschoben statt mit left: -9999px — so entsteht
       kein horizontaler Überhang, der die Seite scrollbar macht. */
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Grain-Overlay
   -------------------------------------------------------------------------- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    opacity: var(--grain-opacity);
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
}

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */
h1, .h1 {
    font-family: var(--display);
    font-variation-settings: "wdth" 95;
    letter-spacing: -0.025em;
    line-height: 1.02;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 500;
    color: var(--ink);
}

h2, .h2 {
    font-family: var(--display);
    font-variation-settings: "wdth" 97;
    font-size: clamp(1.9rem, 4vw, 3.25rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

em { font-style: italic; color: var(--accent); }
strong, b { font-weight: 400; }

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 36px;
}
.eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--accent);
}
/* CD-Marker: konturiertes 8px-Quadrat auf der Linie */
.eyebrow::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border: 1px solid var(--accent);
}

.lede {
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 64ch;
}

.mono-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
main { padding-top: var(--header-h-top); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

section {
    padding: clamp(4rem, 8vw, 7.5rem) 0;
    position: relative;
}
section + section { border-top: 1px solid var(--line-soft); }
main > .hero + * { border-top: none; }

.section-intro { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro .lede { margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 0.925rem;
    font-weight: 500;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 220ms var(--ease), color 220ms var(--ease),
                border-color 220ms var(--ease), filter 220ms var(--ease);
    white-space: nowrap;
}
.btn svg { transition: transform 300ms var(--ease); flex: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover svg { transform: translateX(3px); } }

.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { filter: brightness(1.08); } }

.btn-ghost { background: transparent; border-width: 1.5px; border-color: oklch(0.45 0.013 260); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { border-color: var(--ink); background: var(--bg-elev); } }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1.05rem 1.75rem; font-size: 1rem; }

/* Knopf mit führendem Icon (Drucker, Brief, Telefon) — der Pfeil-Versatz beim
   Hover gilt nur für nachgestellte Icons und wird hier abgeschaltet. */
.btn-lead svg { order: -1; }
@media (hover: hover) and (pointer: fine) { .btn-lead:hover svg { transform: none; } }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h-top);
    z-index: 100;
    background: color-mix(in oklch, var(--bg) 72%, transparent);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: height 320ms var(--ease), background 320ms var(--ease), border-color 320ms var(--ease);
}
.site-header.is-scrolled {
    height: var(--header-h);
    background: color-mix(in oklch, var(--bg) 88%, transparent);
    border-bottom-color: var(--line-soft);
}

.nav {
    height: 100%;
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; flex: none; }

/* Wortmarke — exakt die Grösse von binaryone.ch: 167 x 18 px, unter 760px 14px. */
.brand-logo { display: block; width: auto; height: 18px; }
.brand-logo .lg-b,
.brand-logo .lg-inary { fill: var(--ink); }
.brand-logo .lg-one   { fill: var(--accent); }
@media (max-width: 760px) { .brand-logo { height: 14px; } }
.brand-sep { width: 1px; height: 20px; background: var(--line); }
.brand-product {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a {
    font-size: 0.925rem;
    color: var(--ink-muted);
    transition: color 200ms var(--ease);
    white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }

/* Broschüren-Download in der Kopfzeile: Icon und Text bleiben zusammen. */
.nav-links .nav-link-pdf { display: inline-flex; align-items: center; gap: 0.45rem; }
.nav-links .nav-link-pdf svg { flex: none; opacity: 0.65; }
@media (hover: hover) and (pointer: fine) { .nav-links .nav-link-pdf:hover svg { opacity: 1; } }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

/* Sprachumschalter */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.6rem;
    color: var(--ink-soft);
    transition: color 200ms var(--ease), background 200ms var(--ease);
}
.lang-switch a[aria-current="true"] { color: var(--accent-ink); background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .lang-switch a:not([aria-current]):hover { color: var(--ink); background: var(--bg-elev); } }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.nav-toggle span {
    display: block; width: 20px; height: 1.5px; background: var(--ink);
    transition: transform 300ms var(--ease);
}
.nav-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-open .nav-toggle span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }
/* Kopfzeile bleibt über dem offenen Menü sichtbar (Logo, Sprache, Schliessen). */
.nav-open .site-header { background: var(--bg); border-bottom-color: var(--line-soft); }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg);
    padding: calc(var(--header-h-top) + 0.75rem) var(--pad-x)
             calc(1.5rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms var(--ease);
}
.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }

.nav-overlay-links li + li { border-top: 1px solid var(--line-soft); }
.nav-overlay-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    font-family: var(--display);
    font-variation-settings: "wdth" 97;
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
}
.nav-overlay-links a::after {
    content: "";
    width: 8px; height: 8px;
    flex: none;
    border-top: 1.5px solid var(--accent);
    border-right: 1.5px solid var(--accent);
    transform: rotate(45deg);
}

.nav-overlay-cta { margin-top: 1.75rem; }
.nav-overlay-cta .btn { width: 100%; }

.nav-overlay-foot {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
    display: grid;
    gap: 0.4rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--ink-soft);
}
.nav-overlay-foot a { color: var(--ink-muted); }

/* Ohne Menüpunkte bleibt die Aktionsgruppe auf allen Breiten sichtbar; die
   Beschriftung des Buttons kürzt sich auf schmalen Screens. */
.btn-label-short { display: none; }
@media (max-width: 560px) {
    .site-header--bare .btn-label-full  { display: none; }
    .site-header--bare .btn-label-short { display: inline; }
}

@media (max-width: 1080px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-actions .btn { display: none; }
    .site-header--bare .nav-actions .btn { display: inline-flex; }
    /* Ohne sichtbare Links muss die Aktionsgruppe selbst nach rechts rücken —
       die Geschwister-Regel oben würde sie sonst links kleben lassen. */
    .nav-links + .nav-actions { margin-left: auto; }
    /* Burger optisch auf die Satzkante bringen (Icon 20px in 40px-Fläche). */
    .nav-toggle { margin-right: -10px; }
}
@media (max-width: 700px) {
    :root { --header-h-top: 72px; --header-h: 60px; }
    .nav { gap: 1rem; }
    .lang-switch a { padding: 0.35rem 0.5rem; }
}
/* Ab hier reicht die Breite nicht mehr für Logo + Produktlabel + Sprache. */
@media (max-width: 620px) {
    .brand-sep, .brand-product { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    padding-top: clamp(3rem, 7vw, 5.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
    position: relative;
    overflow: hidden;
    border-top: none;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 78% 28%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 68%);
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: clamp(120px, 18vh, 240px);
    background: linear-gradient(to bottom, transparent, var(--bg) 92%);
    pointer-events: none;
    z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-meta {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-elev);
    margin-bottom: 1.75rem;
    animation: fadeUp 600ms var(--ease) both;
}

.pulse-dot {
    position: relative;
    width: 10px; height: 10px;
    flex: none;
    display: inline-block;
    border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
}
.pulse-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.55); } }

/* Ohne JS erscheint die Headline als Block — mit JS wortweise (siehe unten). */
.hero h1 { animation: fadeUp 700ms var(--ease) 100ms both; margin-bottom: 1.75rem; max-width: 15ch; }
.hero .lede { animation: fadeUp 700ms var(--ease) 350ms both; margin-bottom: 2rem; }

/* Wortweiser Einlauf der Headline. Das Aufteilen übernimmt app.js; --i ist der
   Wortindex und erzeugt den Versatz. */
.hero h1.is-split { animation: none; }
.hero h1.is-split .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.42em);
    animation: wordIn 640ms var(--ease) both;
    animation-delay: calc(var(--i, 0) * 38ms + 60ms);
}
@keyframes wordIn {
    from { opacity: 0; transform: translateY(0.42em); }
    to   { opacity: 1; transform: none; }
}

/* Hochzählende Zahl: feste Mindestbreite + Tabellenziffern, damit der Text
   daneben während des Zählens nicht wandert. */
.count-up {
    display: inline-block;
    /* Linksbündig, damit die Zahl am Zeilenanfang exakt auf der Satzkante
       sitzt. Tabellenziffern halten die Breite je Stellenzahl konstant;
       den Platz bis zum Endwert reserviert app.js in Pixeln. */
    text-align: left;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "ss01", "ss02", "tnum";
}

/* Preis-Anker — Preiszeile oben, Erläuterung darunter.
   Gestapelt statt nebeneinander, damit DE/FR/IT gleich stabil sitzen. */
.price-anchor {
    display: inline-block;
    border: 1px solid color-mix(in oklch, var(--accent) 32%, transparent);
    background: linear-gradient(120deg, color-mix(in oklch, var(--accent) 14%, transparent), transparent 75%);
    border-radius: var(--r-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    animation: fadeUp 700ms var(--ease) 470ms both;
    max-width: min(100%, 32rem);
}
.price-anchor-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.55rem;
    padding: 1rem 1.35rem 0.9rem;
    border-bottom: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
}
.price-anchor-from {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    align-self: center;
}
.price-anchor-num {
    font-family: var(--display);
    font-variation-settings: "wdth" 95;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--accent);
    white-space: nowrap;
}
.price-anchor-unit { font-size: 0.85rem; color: var(--ink-muted); white-space: nowrap; }
.price-anchor-note {
    padding: 0.75rem 1.35rem 0.9rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ink-muted);
}
/* Frist-Marke: die Preise gelten nur bis Ende Jahr — bewusst in Signalrot,
   damit sie sich vom grünen Preisanker abhebt statt darin zu verschwinden. */
.price-anchor-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.6rem 1.35rem 0.75rem;
    border-top: 1px solid color-mix(in oklch, var(--danger) 34%, transparent);
    background: color-mix(in oklch, var(--danger) 15%, transparent);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.45;
    color: var(--ink);
}
.price-anchor-badge svg { color: var(--danger); flex: none; margin-top: 1px; width: 14px; height: 14px; }

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; animation: fadeUp 700ms var(--ease) 560ms both; margin-bottom: 2rem; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line-soft);
    animation: fadeUp 700ms var(--ease) 650ms both;
}
.hero-trust li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-muted);
}
.hero-trust svg { color: var(--accent); flex: none; }

.hero-visual { position: relative; display: flex; justify-content: center; animation: fadeUp 800ms var(--ease) 350ms both; }
.hero-visual > img { width: min(100%, 380px); height: auto; filter: drop-shadow(0 40px 80px rgba(0,0,0,0.55)); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------------------
   Problem-Block
   -------------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .card:hover { border-color: var(--line); transform: translateY(-2px); } }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--ink-muted); font-size: 0.95rem; }

.card-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 1.25rem;
}

.bridge {
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    border-left: 2px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-family: var(--display);
    font-variation-settings: "wdth" 97;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    letter-spacing: -0.015em;
    line-height: 1.35;
    max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Video
   -------------------------------------------------------------------------- */
.video-wrap {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    aspect-ratio: 16 / 9;
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }

.video-controls {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}
.video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: color-mix(in oklch, var(--bg) 70%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    color: var(--ink);
    transition: background 200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .video-btn:hover { background: var(--bg-elev); } }

.video-poster-btn {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: color-mix(in oklch, var(--bg) 35%, transparent);
    transition: opacity 300ms var(--ease);
}
.video-poster-btn[hidden] { display: none; }
.video-poster-btn span {
    width: 76px; height: 76px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid; place-items: center;
    box-shadow: 0 12px 40px color-mix(in oklch, var(--accent) 35%, transparent);
}

/* --------------------------------------------------------------------------
   Lösung / Funktionen — Sticky-Mockup-Scroll
   -------------------------------------------------------------------------- */
.solution-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.feature-list { position: relative; }

.feature-item {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    padding-left: 2.5rem;
    opacity: 0.32;
    transition: opacity 500ms var(--ease);
}
.feature-item.is-active { opacity: 1; }

/* Fortschrittsschiene links */
.feature-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--line-soft);
}
.feature-item::after {
    content: "";
    position: absolute;
    left: -3px;
    top: 50%;
    width: 8px; height: 8px;
    transform: translateY(-50%);
    border: 1px solid var(--accent);
    background: var(--bg);
    transition: background 400ms var(--ease), box-shadow 400ms var(--ease);
}
.feature-item.is-active::after {
    background: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-soft);
}
.feature-item.is-active::before { background: linear-gradient(to bottom, var(--line-soft), var(--accent) 50%, var(--line-soft)); }

.feature-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}
.feature-item h3 {
    font-family: var(--display);
    font-variation-settings: "wdth" 97;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.feature-item p { color: var(--ink-muted); font-size: 1.02rem; max-width: 46ch; }

.feature-sticky {
    position: sticky;
    top: calc(50vh - 330px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Mobile: kein Sticky, Mockup je Funktion inline */
.feature-phone-inline { display: none; }
@media (max-width: 900px) {
    .solution-grid { grid-template-columns: 1fr; }
    .feature-sticky { display: none; }
    .feature-item { min-height: 0; opacity: 1; padding-left: 0; }
    .feature-item::before, .feature-item::after { display: none; }
    .feature-item + .feature-item { border-top: 1px solid var(--line-soft); }
    .feature-phone-inline { display: flex; justify-content: center; margin-top: 2rem; }
    .feature-phone-inline .phone { transform: scale(0.82); transform-origin: top center; margin-bottom: -6rem; }
}

/* --------------------------------------------------------------------------
   Phone-Mockup (HTML/CSS — pro Gemeinde einfärbbar)
   -------------------------------------------------------------------------- */
.phone {
    --phone-w: 320px;
    --phone-h: 660px;
    width: var(--phone-w);
    height: var(--phone-h);
    flex: none;
    position: relative;
    border-radius: 46px;
    background: linear-gradient(160deg, #3a3d45, #16181d 40%, #26282e);
    padding: 11px;
    box-shadow: 0 50px 90px -20px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: var(--g-surface);
    color: var(--g-ink);
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
.phone-notch {
    position: absolute;
    top: 9px; left: 50%;
    transform: translateX(-50%);
    width: 92px; height: 26px;
    border-radius: 999px;
    background: #0a0b0d;
    z-index: 10;
}
.phone-home {
    position: absolute;
    bottom: 7px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 4px;
    border-radius: 999px;
    background: rgba(0,0,0,0.25);
    z-index: 10;
}

.phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--g-ink);
    flex: none;
}
.phone-status-icons { display: flex; align-items: center; gap: 4px; }

/* Screen-Stack: alle Screens übereinander, aktiver wird eingeblendet */
.phone-stack { position: relative; flex: 1; min-height: 0; }
.pscreen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition: opacity 460ms var(--ease), transform 460ms var(--ease);
    pointer-events: none;
    overflow: hidden;
}
.pscreen.is-active { opacity: 1; transform: none; pointer-events: auto; }

.pscreen-body { flex: 1; overflow: hidden; padding: 0 18px; }
.pscreen-head { padding: 6px 18px 10px; flex: none; }
.pscreen-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.pscreen-sub { font-size: 12px; color: var(--g-ink-soft); margin-top: 2px; }

/* Kopfzeile mit Wappenschild. Im Regelfall steht dort der Platzhalter
   „Ihr Wappen" (.papp-crest-ph) — fremde Gemeindewappen bleiben aus, siehe
   WAPPEN_ZEIGEN in content/copy.mjs. .papp-crest greift nur, wenn eine
   Gemeinde ihr Wappen schriftlich freigegeben hat. */
.papp-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 4px; flex: none; }
.papp-crest {
    width: 30px; height: 34px;
    flex: none;
    display: grid; place-items: center;
    object-fit: contain;
}
.papp-crest-ph {
    width: 30px; height: 34px;
    flex: none;
    display: grid; place-items: center;
    color: var(--g-accent);
}
.papp-crest-ph svg { width: 100%; height: 100%; }
/* Push-Banner: derzeit nirgends eingebunden, siehe pushBanner() in build.mjs.
   Die Regel hält das Schild klein, falls der Banner wieder aktiviert wird. */
.phone-push-icon svg { width: 17px; height: 19px; color: var(--g-accent); }
.papp-name { line-height: 1.1; }
.papp-name small { display: block; font-size: 9.5px; letter-spacing: 0.16em; color: var(--g-ink-soft); }
.papp-name strong { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.papp-avatar { margin-left: auto; color: var(--g-ink-soft); }
.papp-date { padding: 0 18px 8px; font-size: 12px; color: var(--g-ink-soft); flex: none; }

/* Dashboard — Aufbau wie im echten App-Screen: grosse Begrüssung,
   Abschnittstitel in der Gemeindefarbe, flache Zeilenliste mit Chevron. */
.phome { padding-top: 2px; }

/* Die Titel im Mockup sind <div>, keine Überschriften — sie gehören zum Bild,
   nicht in die Gliederung der Seite (siehe build.mjs, „Einzelne Screens").
   Schriftfamilie und Zeilenhöhe, die früher von h2/h3 kamen, stehen deshalb
   hier ausgeschrieben. */
.phome-greet {
    font-family: var(--display);
    font-variation-settings: "wdth" 97;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 14px 0 6px;
}
.phome-sub {
    font-size: 13px;
    line-height: 1.4;
    color: var(--g-ink-soft);
    margin-bottom: 22px;
}

.phome-sec {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--g-accent);
    margin-bottom: 10px;
}

.phome-rows > li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 0 13px;
}
.phome-news > li + li { border-top: 1px solid var(--g-line); padding-top: 13px; }
.phome-rows + .phome-sec { margin-top: 16px; }

.phome-row-main { flex: 1; min-width: 0; }
.phome-row-main b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.phome-row-main p {
    font-size: 12px;
    line-height: 1.38;
    color: var(--g-ink-soft);
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.phome-row-main time {
    display: block;
    font-size: 11px;
    color: var(--g-ink-soft);
    margin-top: 4px;
}

.phome-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--g-ink-soft);
    margin-top: 5px;
}
.phome-chip i { width: 9px; height: 9px; border-radius: 2px; flex: none; }

.phome-pin { flex: none; color: var(--g-accent); margin-top: 2px; }
.phome-chev { flex: none; color: var(--g-ink-soft); opacity: 0.6; align-self: center; }

/* Terminliste */
.plist > li { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--g-line); }
.plist > li:last-child { border-bottom: none; }
.pdate { flex: none; width: 26px; text-align: left; }
.pdate small { display: block; font-size: 8px; letter-spacing: 0.1em; color: var(--g-ink-soft); }
.pdate b { font-size: 16px; font-weight: 600; color: var(--g-accent); line-height: 1.1; }
.pitem { min-width: 0; flex: 1; }
.pitem b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.pitem span { display: block; font-size: 11px; color: var(--g-ink-soft); margin-top: 2px; }
.ptag { flex: none; font-size: 8px; letter-spacing: 0.1em; color: var(--g-ink-soft); padding-top: 2px; }

/* News — angeheftete Meldungen als getönte Karten, darunter die laufende
   Liste. Beides gemeinsam: Textblock links, Chevron rechts. */
.pnews-sec {
    font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; color: var(--g-ink-soft);
    line-height: 1.25;
    margin: 2px 0 8px;
}
.pnews-sec-hot { color: var(--g-accent); }

.pnews-txt { flex: 1; min-width: 0; }
.pnews-txt p { font-size: 11px; color: var(--g-ink-soft); margin-top: 3px; line-height: 1.35; }
.pnews-txt time { display: block; font-size: 10px; color: var(--g-ink-soft); margin-top: 4px; }

.pnews-pin { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pnews-pin > li {
    display: flex; align-items: center; gap: 8px;
    background: color-mix(in srgb, var(--g-accent) 7%, var(--g-surface));
    border-radius: 10px;
    padding: 10px 11px;
}
.pnews-flag { display: flex; align-items: center; gap: 5px; color: var(--g-accent); }
.pnews-flag b {
    font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
    background: color-mix(in srgb, var(--g-accent) 15%, var(--g-surface));
    border-radius: 999px; padding: 2px 6px;
}
.pnews-t { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; margin-top: 6px; }

.pnews { border-top: 1px solid var(--g-line); }
.pnews > li {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--g-line);
}
.pnews > li:last-child { border-bottom: 0; }
.pnews-txt > b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }

/* Abfallkalender */
.pmonth { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 0 10px; font-size: 13px; font-weight: 600; }
.pmonth i { color: var(--g-ink-soft); }
.plegend { background: var(--g-surface-2); border-radius: 9px; padding: 9px 11px; display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 11px; }
.plegend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; }
.plegend i { width: 8px; height: 8px; border-radius: 2px; }
.f-grey   { background: #6b7280; }
.f-blue   { background: #2563eb; }
.f-orange { background: #ea8a0b; }
.f-green  { background: #16a34a; }
.f-red    { background: #dc2626; }

.pwaste > li { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--g-line); }
.pwaste .bar { width: 3px; align-self: stretch; border-radius: 999px; flex: none; }
.pwaste .pdate b { color: var(--g-ink); }
.pwaste .dot { margin-left: auto; width: 9px; height: 9px; border-radius: 2px; flex: none; }

/* Lockscreen mit Push */
.pscreen-lock { background: linear-gradient(165deg, #1c2230, #0d1017 55%, #161b26); color: #fff; }
.pscreen-lock .lock-time { text-align: center; padding: 52px 0 4px; font-size: 62px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pscreen-lock .lock-date { text-align: center; font-size: 13px; opacity: 0.7; }
.ppush {
    margin: 28px 12px 0;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 11px 13px 13px;
    animation: pushIn 700ms var(--ease) both;
}
.pscreen-lock.is-active .ppush { animation: pushIn 700ms var(--ease) 260ms both; }
@keyframes pushIn { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }
.ppush-head { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: 0.04em; opacity: 0.85; }
.ppush-icon { width: 17px; height: 17px; border-radius: 4px; background: var(--g-accent); flex: none; }
.ppush-head time { margin-left: auto; }
.ppush b { display: block; font-size: 13px; font-weight: 600; margin-top: 6px; }
.ppush p { font-size: 12px; line-height: 1.35; margin-top: 2px; opacity: 0.92; }
.pscreen-lock .lock-hint {
    position: absolute; bottom: 26px; left: 0; right: 0;
    text-align: center; font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; opacity: 0.45;
}
.pscreen-lock .phone-tabs { display: none; }

/* Tab-Bar */
.phone-tabs {
    flex: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--g-line);
    padding: 7px 4px 16px;
    background: var(--g-surface);
}
.phone-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; color: var(--g-ink-soft); }
.phone-tabs a.on { color: var(--g-accent); }
.phone-tabs .badge { position: relative; }
.phone-tabs .badge::after {
    content: ""; position: absolute; top: -1px; right: -3px;
    width: 5px; height: 5px; border-radius: 999px; background: var(--g-accent);
}

.phone-caption { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }

@media (max-width: 400px) {
    .phone { --phone-w: 288px; --phone-h: 596px; }
}

/* --------------------------------------------------------------------------
   Ablauf / Timeline
   -------------------------------------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

.tl-step { padding: 2rem 1.5rem 2rem 0; position: relative; border-top: 1px solid var(--line); }
.tl-step::before {
    content: "";
    position: absolute;
    top: -5px; left: 0;
    width: 9px; height: 9px;
    background: var(--bg);
    border: 1px solid var(--accent);
}
.tl-step:first-child::after {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
}
.tl-week {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}
.tl-step h3 { margin-bottom: 0.6rem; }
.tl-step p { color: var(--ink-muted); font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   Erfolgsgeschichte
   -------------------------------------------------------------------------- */
.story { background: var(--bg-elev); }

/* Links Logo, Titel, Subline und Testimonial — rechts die eingebettete
   Live-Demo. Die Spalte ist schmaler als die 1:1-Grösse der Attrappe (430 px);
   die Demo skaliert sich selbst auf die Breite des iframes herunter. */
.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
}
.story-copy { min-width: 0; }
.story-copy .section-intro { margin-bottom: 0; }

/* Helle Platte, weil das Gemeindelogo dunkle Schrift hat. Die Plattenfarbe ist
   exakt der eigene Hintergrund der PNG (#f0f0f3) — sonst sieht man dessen Kante.
   Sitzt im Kopf des Testimonials, rechts neben „Rückmeldung der Gemeinde". */
.story-brand {
    display: inline-flex;
    flex: none;
    padding: 0.45rem 0.7rem;
    border-radius: var(--r-sm);
    background: #f0f0f3;
}
.story-brand img { width: auto; height: 42px; display: block; }

/* Die Demo bringt ihre eigene Attrappe mit und rechnet sich auf die Grösse des
   iframes herunter — deshalb nur ein Seitenverhältnis, keine feste Höhe. Ohne
   `aspect-ratio` bliebe der iframe 150 px hoch und die Demo winzig. */
.story-demo { display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 0; }
/* Beschriftung über der Attrappe — grösser und in Weiss, damit sie die Demo
   ankündigt statt sie nur zu erklären. */
.story-demo-label {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    text-align: center;
    /* Pille mit umlaufendem Lichtbogen: Die Füllung liegt im padding-box, der
       drehende conic-gradient scheint nur im transparenten Rand durch. */
    padding: 0.6rem 1.15rem;
    border: 2px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
        conic-gradient(from var(--demo-ring-angle),
            var(--line) 0 30%, var(--accent) 72%, oklch(0.97 0.05 165) 85%, var(--line) 97%) border-box;
    box-shadow: 0 0 18px -6px var(--accent);
    animation: demo-ring 3.2s linear infinite;
}
@property --demo-ring-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@keyframes demo-ring { to { --demo-ring-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
    .story-demo-label { border-color: var(--accent); background: var(--bg-elev); }
}
.story-demo-frame {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 430 / 884;
    border: 0;
    border-radius: var(--r-lg);
    display: block;
    /* Farbe der Bühne in der Demo (config.js: stage.background) — verhindert
       ein helles Aufblitzen, solange der iframe noch lädt. */
    background: #0e1218;
}

@media (max-width: 960px) {
    .story-grid { grid-template-columns: 1fr; justify-items: start; }
    .story-demo { align-self: center; justify-self: center; width: 100%; }
}

.quote {
    margin: clamp(2rem, 4vw, 2.75rem) 0 0;
    border: 1px solid var(--line);
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    max-width: 56ch;
}
.quote-mark { font-family: var(--display); font-size: 3rem; line-height: 0.6; color: var(--accent); display: block; margin-bottom: 1.25rem; }
.quote blockquote {
    margin: 0;
    font-family: var(--display);
    font-variation-settings: "wdth" 98;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    line-height: 1.45;
    letter-spacing: -0.012em;
}
/* Kopfzeile des Testimonials: Beschriftung links, Gemeindelogo rechts. */
.quote-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.quote-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: block;
    min-width: 0;
}
.quote figcaption { margin-top: 1.75rem; display: flex; align-items: center; gap: 1rem; }
.quote-avatar {
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 25%;
    border: 1px solid var(--line);
}
.quote-who { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; text-align: left; }
.quote-who b { font-weight: 500; font-size: 0.95rem; }
.quote-who span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.quote-who .quote-org { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Vergleich — Merkmalstabelle, drei Spalten, eigene Spalte hervorgehoben
   -------------------------------------------------------------------------- */
.compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--bg-card);
    width: 100%;
    /* Wichtig: macht den Wrapper zum Bezugsrahmen für absolut positionierte
       Kinder (z. B. .visually-hidden in den Häkchen-Zellen). Ohne das hängen
       sie am nächsten positionierten Vorfahren, ihr Überhang wandert am
       Scroll-Container vorbei nach oben und die ganze Seite wird breiter. */
    position: relative;
}
.compare-table { min-width: 720px; width: 100%; }
/* Auf schmalen Screens bleibt die Vergleichstabelle wischbar, wird aber
   deutlich kompakter, damit die eigene Spalte ohne Wischen sichtbar ist. */
@media (max-width: 620px) {
    .compare-table { min-width: 540px; }
    .compare-table th, .compare-table td { padding: 0.7rem 0.7rem; }
    .compare-table thead th { font-size: 0.55rem; letter-spacing: 0.05em; }
    .compare-table thead th b { font-size: 0.86rem; }
    .compare-table tbody th { font-size: 0.82rem; }
}

.compare-table th,
.compare-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

/* Kopfzeile */
.compare-table thead th {
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    vertical-align: bottom;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.compare-table thead th b {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--display);
    font-variation-settings: "wdth" 97;
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    text-transform: none;
    color: var(--ink);
}

/* Zeilenkopf = das Merkmal */
.compare-table tbody th {
    font-weight: 400;
    font-size: 0.94rem;
    color: var(--ink);
}
.compare-table tbody tr { transition: background 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .compare-table tbody tr:hover th { background: var(--bg-elev); }
}

/* Die eigene Spalte — durchgehend getönt, damit sie als Spalte liest */
.compare-table .is-ours { background: color-mix(in oklch, var(--accent) 8%, transparent); }
.compare-table thead .is-ours {
    background: color-mix(in oklch, var(--accent) 14%, var(--bg-elev));
    border-bottom-color: color-mix(in oklch, var(--accent) 30%, transparent);
}
.compare-table thead .is-ours b { color: var(--accent); }

.compare-chip {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}
.compare-sub { display: block; font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ink-soft); }

/* Haken, Kreuz, Kurzbegriff */
.mk { display: inline-flex; align-items: center; position: relative; }
.mk svg { width: 18px; height: 18px; }
.mk-yes { color: var(--accent); }
.mk-no  { color: var(--ink-soft); }
.mk-text { font-size: 0.86rem; color: var(--ink-muted); }
.is-ours .mk-text { color: var(--ink); font-family: var(--display); font-size: 0.95rem; letter-spacing: -0.01em; }

/* --------------------------------------------------------------------------
   Preise
   -------------------------------------------------------------------------- */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-card); -webkit-overflow-scrolling: touch; width: 100%; position: relative; }
.price-table { min-width: 620px; width: 100%; }
.price-table th, .price-table td { padding: 1.1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
/* Rotes Band zuoberst in der Preistabelle. Ersetzt den früheren Frist-Block
   über der Tabelle: die Frist steht jetzt dort, wo die Preise stehen. Dunkle
   Schrift auf Signalrot — Weiss trägt auf diesem Rot zu wenig Kontrast. */
.price-table .price-banner th {
    background: var(--danger);
    color: var(--bg);
    border-bottom: none;
    padding: 0.85rem 1.25rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
}
@media (max-width: 700px) {
    .price-table .price-banner th { font-size: 0.66rem; letter-spacing: 0.08em; }
}

.price-table thead th {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 400;
    background: var(--bg-elev);
    vertical-align: bottom;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr { transition: background 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .price-table tbody tr:hover { background: var(--bg-elev); } }
.price-table .tier {
    font-family: var(--display);
    font-variation-settings: "wdth" 95;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--accent);
    width: 1%;
    white-space: nowrap;
}
.price-table .pop { color: var(--ink-muted); white-space: nowrap; }
.price-table .amount { font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.price-table .amount.is-key { color: var(--accent); font-size: 1.2rem; }
/* Zweite Zeile unter dem Setup-Preis: der reguläre Preis ab 2027 („statt CHF …")
   steht rot — er macht den Vorteil des Abschlusses bis Ende 2026 sichtbar. */
.price-table .amount-next {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.price-table .amount-next.is-up {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--danger);
}
.price-table tr.is-highlight { background: var(--accent-soft); }
.price-table tr.is-highlight td { border-color: color-mix(in oklch, var(--accent) 22%, transparent); }

/* Auf schmalen Screens passt die Preistabelle vollständig ins Bild: kleinere
   Abstände und Schriftgrade, kein Mindestmass, Seitenspalte darf umbrechen.
   Damit ist hier kein seitliches Wischen mehr nötig. */
@media (max-width: 620px) {
    .price-table { min-width: 0; }
    .price-table th, .price-table td { padding: 0.7rem 0.55rem; }
    .price-table thead th { font-size: 0.55rem; letter-spacing: 0.05em; }
    .price-table .tier { font-size: 1.05rem; }
    .price-table .pop { font-size: 0.75rem; white-space: normal; }
    .price-table .amount { font-size: 0.82rem; }
    .price-table .amount.is-key { font-size: 0.92rem; }
    .price-table .amount-next { font-size: 0.55rem; letter-spacing: 0.03em; white-space: normal; }
    .price-table .amount-next.is-up { font-size: 0.6rem; }
    .price-table .tier { width: auto; }
}
.tier-badge {
    display: inline-block;
    margin-left: 0.6rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    vertical-align: middle;
}
/* Die Markierung der eigenen Stufe rutscht auf schmalen Screens unter die
   Stufenbezeichnung, damit die erste Spalte nicht die Tabelle sprengt. */
@media (max-width: 620px) {
    .tier-badge { display: block; margin: 0.3rem 0 0; font-size: 0.5rem; padding: 0.15rem 0.4rem; }
}

.price-side { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .price-side { grid-template-columns: minmax(0, 1fr); } }

.incl-card { background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(1.5rem, 2.5vw, 2rem); }
.incl-card h3 { margin-bottom: 1.25rem; font-size: 1.05rem; }
.incl-card li { display: flex; gap: 0.7rem; font-size: 0.92rem; color: var(--ink-muted); padding: 0.5rem 0; }
.incl-card li + li { border-top: 1px solid var(--line-soft); }
.incl-card svg { color: var(--accent); flex: none; margin-top: 3px; }

.price-notes { margin-top: 2rem; display: grid; gap: 0.85rem; }
.price-notes p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; max-width: 78ch; padding-left: 1.1rem; border-left: 1px solid var(--line); }

/* Empfehlungs-Rabatt — bewusst als eigener, farbig abgesetzter Block unter
   der Preistabelle, damit er nicht als Fussnote gelesen wird. */
.referral {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid color-mix(in oklch, var(--accent) 34%, transparent);
    border-radius: var(--r-lg);
    background: linear-gradient(115deg, color-mix(in oklch, var(--accent) 13%, transparent), transparent 68%);
}
@media (max-width: 700px) { .referral { flex-direction: column; align-items: flex-start; } }

.referral-badge {
    flex: none;
    text-align: center;
    padding-right: clamp(1.25rem, 3vw, 2.5rem);
    border-right: 1px solid color-mix(in oklch, var(--accent) 26%, transparent);
}
@media (max-width: 700px) {
    .referral-badge {
        text-align: left;
        padding-right: 0;
        padding-bottom: 1.25rem;
        border-right: none;
        border-bottom: 1px solid color-mix(in oklch, var(--accent) 26%, transparent);
        width: 100%;
    }
}
.referral-badge b {
    display: block;
    font-family: var(--display);
    font-variation-settings: "wdth" 95;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--accent);
}
.referral-badge span {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    max-width: 14ch;
}
@media (max-width: 700px) { .referral-badge span { max-width: none; } }

.referral-eyebrow {
    display: block;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.referral-body h3 {
    font-family: var(--display);
    font-variation-settings: "wdth" 97;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}
.referral-body p { color: var(--ink-muted); font-size: 0.98rem; max-width: 62ch; }
.referral-saving {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.9rem;
    color: var(--ink) !important;
    font-size: 0.92rem !important;
}
.referral-saving svg { color: var(--accent); flex: none; margin-top: 3px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 860px; border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.4rem 3rem 1.4rem 0;
    position: relative;
    font-family: var(--display);
    font-variation-settings: "wdth" 98;
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    letter-spacing: -0.012em;
    line-height: 1.35;
    transition: color 200ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { color: var(--accent); } }
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 6px; top: 50%;
    width: 11px; height: 11px;
    margin-top: -6px;
    border-right: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 300ms var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-answer { padding: 0 3rem 1.6rem 0; color: var(--ink-muted); font-size: 0.98rem; max-width: 70ch; }

/* --------------------------------------------------------------------------
   Inline-CTA unter einer Sektion
   Abgesetzte Zeile am Ende von Preisen, Erfolgsgeschichte und FAQ — führt den
   Abschnitt zu Ende, ohne wie ein zweiter Abschluss-CTA zu wirken.
   -------------------------------------------------------------------------- */
.cta-row {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: color-mix(in oklch, var(--bg-card) 70%, transparent);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    position: relative;
    overflow: hidden;
}
.cta-row::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
}
.cta-row-text h3 {
    font-family: var(--display);
    font-variation-settings: "wdth" 98;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.cta-row-text p {
    margin-top: 0.6rem;
    color: var(--ink-muted);
    font-size: 0.95rem;
    max-width: 62ch;
}
.cta-row-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

@media (max-width: 860px) {
    /* minmax(0,…) statt 1fr: sonst zwingt der längste Knopf („Anrufen +41 …")
       die Zeile über die Bildschirmbreite hinaus. */
    .cta-row { grid-template-columns: minmax(0, 1fr); }
    .cta-row-actions { flex-direction: column; align-items: stretch; }
    .cta-row-actions .btn { white-space: normal; }
}

/* --------------------------------------------------------------------------
   Abschluss-CTA
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--bg-elev); }
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 140% at 20% 0%, color-mix(in oklch, var(--accent) 15%, transparent), transparent 62%);
    pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
@media (max-width: 940px) { .cta-grid { grid-template-columns: 1fr; } }

.cta-inner { max-width: 720px; }

/* --------------------------------------------------------------------------
   Store-Vorschau im Abschluss-CTA
   -------------------------------------------------------------------------- */
.store-card {
    background: var(--g-surface);
    color: var(--g-ink);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 44px 90px -24px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.2);
    justify-self: end;
    width: 100%;
    max-width: 400px;
}
@media (max-width: 940px) { .store-card { justify-self: start; } }

.store-eyebrow {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--g-ink-soft);
    margin-bottom: 14px;
}

.store-head { display: flex; align-items: center; gap: 13px; }

.store-icon {
    width: 62px;
    height: 62px;
    flex: none;
    border-radius: 14px;
    background: var(--g-surface-2);
    border: 1px solid var(--g-line);
    display: grid;
    place-items: center;
    color: var(--g-accent);
    overflow: hidden;
}
.store-icon img { width: 34px; height: auto; object-fit: contain; }
.store-icon svg { width: 28px; height: 32px; }

.store-name { flex: 1; min-width: 0; }
.store-name b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.store-name small { display: block; font-size: 12px; color: var(--g-ink-soft); margin-top: 2px; }

.store-get {
    flex: none;
    align-self: center;
    background: var(--g-accent);
    color: var(--g-accent-ink);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 18px;
    border-radius: 999px;
}

.store-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.store-tags li {
    font-size: 10.5px;
    letter-spacing: 0.02em;
    color: var(--g-ink-soft);
    background: var(--g-surface-2);
    border-radius: 999px;
    padding: 4px 9px;
}

.store-shots { display: flex; gap: 10px; }
.store-shot {
    width: 104px;
    height: 222px;
    flex: none;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid var(--g-line);
    background: var(--g-surface);
}
.store-shot-inner {
    width: 300px;
    height: 640px;
    transform: scale(0.3467);
    transform-origin: top left;
}
/* Im Miniaturbild ist immer genau ein Screen sichtbar — ohne Ein-/Ausblenden. */
.store-shot .phone-screen { width: 300px; height: 640px; border-radius: 0; }
.store-shot .pscreen { opacity: 1; transform: none; transition: none; }
@media (max-width: 420px) {
    .store-shots { gap: 8px; }
    .store-shot { width: 88px; height: 188px; }
    .store-shot-inner { transform: scale(0.2933); }
}

.cta-inner h2 { margin-bottom: 1.25rem; }
.cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.cta-contact { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; gap: 1.5rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.82rem; color: var(--ink-muted); }
.cta-contact a { color: var(--accent); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: 4.5rem 0 2rem; border-top: 1px solid var(--line-soft); background: var(--bg); }
.footer-inner { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--pad-x); }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3.5rem; padding-bottom: 3.5rem; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 2.5rem; } }
.site-footer .brand { margin-bottom: 0.25rem; }
.footer-addr { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.7; margin-top: 1.5rem; }
.footer-tagline { font-size: 0.95rem; color: var(--ink-muted); margin-top: 1.25rem; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 620px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-col-title { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
.footer-cols li { padding: 0.3rem 0; }
.footer-cols a { font-size: 0.92rem; color: var(--ink-muted); transition: color 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .footer-cols a:hover { color: var(--accent); } }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line-soft);
    font-size: 0.8rem;
    color: var(--ink-soft);
}
.footer-bottom a { color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .footer-bottom a:hover { color: var(--accent); } }
.footer-swiss { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-swiss svg { color: var(--danger); flex: none; }

/* --------------------------------------------------------------------------
   Gemeinde-Unterseite
   -------------------------------------------------------------------------- */
/* Eyebrow-Label im Gemeinde-Hero — ohne Wappen, siehe WAPPEN_ZEIGEN. */
.gp-meta { padding-left: 0.5rem; gap: 0.6rem; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink); }

.gp-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); max-width: 16ch; line-height: 1.04; }
.gp-hero .lede { font-size: clamp(1.15rem, 1.5vw, 1.45rem); }
.gp-hero h1 em { font-style: normal; color: var(--accent); }


/* --------------------------------------------------------------------------
   Factsheet
   Das Blatt ist bewusst hell — was am Bildschirm steht, kommt so aus dem
   Drucker bzw. in die PDF-Datei. Die dunkle Seite bleibt drumherum stehen.
   -------------------------------------------------------------------------- */
.fs { padding-top: clamp(2rem, 5vw, 3.5rem); }
.fs .container { max-width: 980px; }

.fs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.fs-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-muted); }
.fs-back svg { transition: transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .fs-back:hover { color: var(--ink); }
    .fs-back:hover svg { transform: translateX(-3px); }
}
.fs-bar-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fs-hint { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); max-width: 30ch; line-height: 1.4; }

/* --- Das Blatt ----------------------------------------------------------- */
.fs-sheet {
    --fs-ink:      #14161c;
    /* Signalrot für die Preisfrist — dieselbe Farbe wie in der Broschüre. */
    --fs-signal:      #c8102e;
    --fs-ink-soft: #5b6270;
    --fs-line:     #dfe2e8;
    --fs-accent:   #0d7a5f;
    --fs-tint:     #f4f6f8;

    background: #fff;
    color: var(--fs-ink);
    border-radius: var(--r-lg);
    padding: clamp(1.75rem, 4vw, 3.25rem);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
    font-size: 0.92rem;
    line-height: 1.5;
}
.fs-sheet a { color: var(--fs-accent); }
/* h1 trägt global `color: var(--ink)` — auf dem hellen Blatt zurücknehmen. */
.fs-sheet h1, .fs-sheet h3 { color: var(--fs-ink); }

.fs-head-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 2px solid var(--fs-ink); }
.fs-brand { display: block; }
.fs-brand .brand-logo { height: 17px; width: auto; }
.fs-brand .lg-b,
.fs-brand .lg-inary { fill: var(--fs-ink); }
.fs-brand .lg-one   { fill: var(--fs-accent); }
.fs-eyebrow {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fs-ink-soft);
}

.fs-title { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
/* VORSCHLAG — derselbe Umriss im Kopf des Factsheets, dort wo früher das
   Wappen stand. 64 px ist die Untergrenze: darunter wird jeder Gemeinde-
   umriss zu einem Fleck, den niemand mehr wiedererkennt. */
.fs-outline { width: 68px; flex: none; color: var(--g-accent); }
.fs-outline svg { width: 100%; height: auto; display: block; }
.fs-outline path { fill-opacity: 0.12; stroke-opacity: 0.9; stroke-width: 1.25px; }
.fs-sheet h1 {
    font-family: var(--display);
    font-variation-settings: "wdth" 96;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.fs-sheet h1 small { font-size: 0.5em; color: var(--fs-ink-soft); letter-spacing: -0.01em; white-space: nowrap; }
.fs-sub { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fs-ink-soft); margin-top: 0.5rem; }
.fs-lede { margin-top: 1.1rem; font-size: 1.02rem; line-height: 1.5; max-width: 74ch; color: #2b303a; }

/* Die Blöcke sind <section>-Elemente — die globale Abschnitts-Polsterung und
   die dunkle Trennlinie gelten hier nicht. */
.fs-sheet section { padding: 0; }
.fs-block { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--fs-line); break-inside: avoid; }
.fs-sheet h2 {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fs-accent);
    margin-bottom: 1rem;
}

/* Auf einen Blick */
.fs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem 2rem; }
.fs-fact { display: grid; grid-template-columns: 11ch minmax(0, 1fr); gap: 0.9rem; align-items: baseline; }
.fs-fact dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fs-ink-soft); }
.fs-fact dd { margin: 0; font-size: 0.88rem; }

/* Funktionen / Ablauf */
.fs-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; }
.fs-item b { display: flex; align-items: baseline; gap: 0.55rem; font-weight: 500; font-size: 0.95rem; }
.fs-num { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--fs-accent); flex: none; }
.fs-item p { margin-top: 0.3rem; color: var(--fs-ink-soft); font-size: 0.85rem; line-height: 1.45; }

/* Preistabelle */
.fs-table { font-size: 0.86rem; margin-bottom: 1rem; }
.fs-table th, .fs-table td { padding: 0.55rem 0.75rem; text-align: left; border-bottom: 1px solid var(--fs-line); }
/* Rotes Band zuoberst in der Preistabelle — wie auf der Website und in der
   Broschüre: die Frist steht dort, wo die Preise stehen. */
.fs-table .fs-banner th {
    background: var(--fs-signal);
    color: #fff;
    border-bottom: none;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}
.fs-table thead th { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fs-ink-soft); font-weight: 500; border-bottom-color: var(--fs-ink); }
.fs-table .tier { font-family: var(--mono); font-weight: 500; }
.fs-table .is-key { font-weight: 500; }
.fs-table tr.is-highlight { background: var(--fs-tint); }
.fs-table tr.is-highlight .is-key { color: var(--fs-accent); }
.fs-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--fs-accent);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}
.fs-tier-line {
    padding: 0.75rem 1rem;
    background: var(--fs-tint);
    border-left: 3px solid var(--fs-accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
/* Zweite Zeile in der Factsheet-Tabelle: Erhöhung des Setups rot, die
   unveränderte Lizenz grau. */
.fs-table .fs-next {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fs-ink-soft);
}
.fs-table .fs-next.is-up { font-size: 0.66rem; font-weight: 500; color: var(--fs-signal); }
/* Frist-Hinweis — steht über der Tabelle und ist auch im Ausdruck rot. */
.fs-note { font-size: 0.76rem; color: var(--fs-ink-soft); line-height: 1.45; margin-top: 0.5rem; }

/* Enthalten */
.fs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 2rem; }
.fs-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.86rem; }
.fs-list svg { color: var(--fs-accent); flex: none; margin-top: 3px; }
.fs-referral { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 1rem; }
.fs-referral svg { color: var(--fs-accent); flex: none; margin-top: 2px; }

/* Fuss */
.fs-foot { margin-top: 2rem; padding-top: 1.25rem; border-top: 2px solid var(--fs-ink); break-inside: avoid; }
.fs-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2rem; align-items: start; }
.fs-contact h2 { grid-column: 1 / -1; margin-bottom: 0.4rem; }
.fs-contact p { font-size: 0.88rem; line-height: 1.5; }
.fs-stand { margin-top: 1.1rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.05em; color: var(--fs-ink-soft); }

@media (max-width: 720px) {
    .fs-facts, .fs-cols, .fs-list, .fs-contact { grid-template-columns: 1fr; }
    .fs-sheet h1 small { display: block; white-space: normal; }
}

/* --------------------------------------------------------------------------
   Reveal-Animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero h1.is-split .w { opacity: 1; transform: none; animation: none; }
    .feature-item { opacity: 1; }
    .pscreen { transition: none; }
    .phone-push { opacity: 1; transform: none; }
    .phone-push-wrap { transition: none; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
    .site-header, .nav-overlay, .grain, .video-controls, .feature-sticky { display: none !important; }
    body { background: #fff; color: #000; }
    .reveal { opacity: 1; transform: none; }

    /* Factsheet: das Blatt ist die Seite — Rahmen, Leiste und Fuss fallen weg.
       Der Papierrand kommt aus @page; die 2mm Innenabstand sind Puffer, damit
       Chrome die erste und letzte Spalte nicht anschneidet. */
    @page { size: A4 portrait; margin: 12mm; }
    html, body { overflow: visible; }
    .fs-bar, .site-footer, .skip-link { display: none !important; }
    .fs { padding: 0; }
    .fs .container { max-width: none; padding: 0; }
    .fs-sheet {
        padding: 0 2mm;
        border-radius: 0;
        box-shadow: none;
        font-size: 9pt;
        line-height: 1.38;
    }
    .fs-sheet h1 { font-size: 20pt; }
    .fs-lede { font-size: 9.5pt; margin-top: 3mm; }
    .fs-title { margin-top: 4mm; }
    .fs-block { margin-top: 4mm; padding-top: 3mm; }
    .fs-sheet h2 { margin-bottom: 2.5mm; }
    .fs-table th, .fs-table td { padding: 0.35rem 0.6rem; }
    .fs-foot { margin-top: 4mm; padding-top: 3mm; }
    .fs-sheet a { color: inherit; text-decoration: none; }
    /* Auf Papier sind Links tot — die Demo-Adresse gehört ausgeschrieben. */
    .fs-foot a[href^="http"]::after { content: attr(href); display: block; font-family: var(--mono); font-size: 7.5pt; }
}
