/* =========================================================================
   betriebskosten.app – wupp.iT · Webbasierte Hausverwaltung
   Eigenes Design-System, alle Ressourcen lokal (einzige Ausnahme: three.js
   unter assets/js/vendor/, ebenfalls selbst gehostet).
   Basis-Design geteilt mit isb.nrw (wupp.iT Corporate Design)
   ========================================================================= */

:root {
    /* Marke */
    --brand:        #99C046;   /* wupp.iT Lime-Green */
    --brand-600:    #7fa736;
    --brand-700:    #5f7d24;   /* dunkel genug für Text/Links auf Weiß */
    --brand-050:    #f2f7e8;
    --brand-100:    #e6efd4;

    --ink:          #1e2a1e;   /* dunkles Grün-Anthrazit (Sidebar-Ton) */
    --gray:         #676767;   /* wupp.iT Sekundärfarbe (Grau) */
    --slate-900:    #212423;   /* Überschriften – neutrales Anthrazit */
    --slate-700:    #454747;   /* Fließtext kräftig */
    --slate-600:    #676767;   /* Sekundär-/Fließtext = Markengrau */
    --slate-400:    #9a9a9a;
    --line:         #e5e7e5;
    --surface:      #ffffff;
    --surface-2:    #f6f9f2;
    --surface-3:    #eef4e6;

    --danger:       #d6455a;
    --amber:        #e0a020;
    --info:         #2f7fd6;

    --radius:       14px;
    --radius-lg:    22px;
    --radius-sm:    9px;
    --shadow-sm:    0 1px 2px rgba(30,42,30,.06), 0 1px 3px rgba(30,42,30,.05);
    --shadow:       0 6px 22px -8px rgba(30,42,30,.18);
    --shadow-lg:    0 30px 60px -20px rgba(30,42,30,.32);

    --maxw:         1160px;
    --gap:          clamp(1rem, 3vw, 2rem);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    font-family: var(--font);
    color: var(--slate-700);
    background: var(--surface);
    line-height: 1.65;
    font-size: clamp(1rem, 0.55vw + 0.9rem, 1.075rem);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;   /* lange Komposita nie über den Rand */
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Überschriften trennen nur an gesetzten weichen Trennstellen (&shy;). Automatische
   Trennung erzeugte auch am Desktop Brüche wie „Miteigen-tumsanteile“. */
h1, h2, h3, h4 { color: var(--slate-900); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
p { color: var(--slate-600); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* Sichtbar nur für Screenreader */
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 8px;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

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

/* ---------- Buttons ---------- */
.btn {
    --_bg: var(--brand); --_fg: #14210a;
    display: inline-flex; align-items: center; gap: .55rem;
    font-weight: 700; font-size: 1rem; line-height: 1;
    padding: .95rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
    background: var(--_bg); color: var(--_fg); cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: var(--shadow-sm); text-align: center; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--primary { --_bg: var(--brand); box-shadow: 0 10px 24px -10px rgba(127,167,54,.85); }
.btn--dark    { --_bg: var(--ink); --_fg: #fff; }
.btn--ghost   { --_bg: transparent; --_fg: var(--slate-900); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--light   { --_bg: #fff; --_fg: var(--slate-900); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: .85rem; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: .55rem; font-size: .98rem; font-weight: 800; color: var(--slate-900); white-space: nowrap; flex: 0 0 auto; }
.nav__brand img { height: 34px; width: auto; }
.nav__brand:hover { text-decoration: none; }
.nav__brand .tld { color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav__links a {
    color: var(--slate-700); font-weight: 600; font-size: .9rem;
    padding: .4rem .46rem; border-radius: 8px; white-space: nowrap;
}
.nav__links a:hover { background: var(--surface-2); color: var(--slate-900); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.nav__cta .btn { white-space: nowrap; }
.nav__phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--slate-900); padding: .5rem .6rem; border-radius: 8px; white-space: nowrap; }
.nav__phone:hover { background: var(--surface-2); text-decoration: none; }
.nav__phone svg { width: 1.15rem; height: 1.15rem; color: var(--brand-700); flex: none; }
@media (max-width: 720px) { .nav__phone span { display: none; } }
.nav__toggle {
    display: none; background: none; border: 1px solid var(--line);
    border-radius: 9px; padding: .5rem; cursor: pointer; color: var(--slate-900);
}
.nav__toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 1180px) {
    .nav__links, .nav__cta .btn--dark { display: none; }
    .nav__toggle { display: inline-flex; }
    .nav--open .nav__links {
        display: flex; position: absolute; left: 0; right: 0; top: 72px;
        flex-direction: column; align-items: stretch; gap: .15rem;
        background: var(--surface); border-bottom: 1px solid var(--line);
        padding: .6rem var(--gap) 1rem; box-shadow: var(--shadow);
    }
    .nav--open .nav__links a { padding: .8rem .6rem; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--tint { background: var(--surface-2); }
.section--ink { background: var(--ink); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head.center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-700); background: var(--brand-050);
    padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
/* Ohne diese Regel skaliert ein Inline-SVG im Eyebrow auf seine
   Intrinsic-Größe und sprengt die Pille. */
.eyebrow svg { width: 1.05rem; height: 1.05rem; flex: none; }
.section__head p { margin-top: .9rem; font-size: 1.08rem; }
.lead { font-size: 1.12rem; color: var(--slate-600); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before {
    content: ""; position: absolute; inset: -30% -10% auto -10%; height: 720px; z-index: -1;
    background:
        radial-gradient(60% 55% at 78% 8%, rgba(153,192,70,.28), transparent 60%),
        radial-gradient(50% 50% at 8% 20%, rgba(153,192,70,.14), transparent 55%),
        linear-gradient(180deg, var(--brand-050), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 850; }
.hero h1 .hl { color: var(--brand-700); }
.hero__sub { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }

.badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    padding: .5rem .9rem; font-weight: 650; font-size: .9rem; color: var(--slate-700);
    box-shadow: var(--shadow-sm);
}
.badge svg { width: 1.05rem; height: 1.05rem; color: var(--brand-700); flex: none; }

/* Hero-Panel (Produktvorschau) */
.hero__panel {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
    transition: transform .5s ease;
}
.hero__panel:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.hero__panel img { width: 100%; }
.hero__panel .tag {
    position: absolute; left: 14px; bottom: 14px;
    background: rgba(30,42,30,.86); color: #fff; font-size: .8rem; font-weight: 600;
    padding: .4rem .75rem; border-radius: 999px; backdrop-filter: blur(4px);
}

@media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__panel { transform: none; order: -1; }
    .hero__sub { max-width: none; }
}

/* Sub-Hero (Unterseiten) */
.hero--sub { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero--sub .hero__sub { max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .9rem; color: var(--slate-600); margin-bottom: 1rem; }
.crumbs a { color: var(--slate-600); font-weight: 600; }
.crumbs a:hover { color: var(--brand-700); }
.crumbs [aria-current] { color: var(--slate-900); font-weight: 700; }

/* Ratgeber / Artikel */
.section--flush-top { padding-top: 0; }
.article { max-width: 780px; }
.article .lead { margin-bottom: 1.6rem; }
.article h2 { font-size: 1.4rem; margin-top: 2.2rem; margin-bottom: .7rem; }
.article p { margin-bottom: 1rem; }
.post-meta { display: flex; gap: .6rem; align-items: center; color: var(--slate-600); font-size: .92rem; margin: .2rem 0 0; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--slate-400); flex: none; }
.post-card__meta { color: var(--slate-600); font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.post-card h3 { margin-bottom: .5rem; }

/* ---------- Trust-Leiste ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trustbar__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: clamp(1rem, 4vw, 3rem); padding: 1.1rem 0; text-align: center;
}
.trustbar__item { display: flex; align-items: center; gap: .55rem; color: var(--slate-600); font-weight: 600; font-size: .95rem; }
.trustbar__item svg { width: 1.2rem; height: 1.2rem; color: var(--brand-700); flex: none; }

/* ---------- Karten-Grid ---------- */
.grid { display: grid; gap: 1.2rem; }
/* Rasterzellen dürfen schmaler werden als ihr längstes Wort. Ohne min-width: 0
   schob ein langes Wort die ganze Karte über den Rand des Rasters. */
.grid > *, .bento > *, .pricing > *, .split > *, .gallery > * { min-width: 0; }
p, li, dd, figcaption { overflow-wrap: break-word; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
    background: var(--brand-050); color: var(--brand-700);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .98rem; }
a.card { text-decoration: none; }
a.card:hover { text-decoration: none; }
.card__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-weight: 700; font-size: .9rem; color: var(--brand-700); }
.card__more svg { width: 1rem; height: 1rem; transition: transform .2s ease; }
a.card:hover .card__more svg { transform: translateX(3px); }

/* ---------- Split (ISB + DSB) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; display: grid; gap: .8rem; margin-top: 1.3rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--slate-700); }
.checklist svg { width: 1.35rem; height: 1.35rem; color: var(--brand-700); flex: none; margin-top: .1rem; }

/* ---------- Zertifikate ---------- */
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 760px; margin-inline: auto; }
@media (max-width: 720px) { .certs { grid-template-columns: 1fr; max-width: 420px; } }
.cert {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; text-align: center; box-shadow: var(--shadow-sm);
}
.cert__seal {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--brand-050); color: var(--brand-700);
    border: 2px solid var(--brand-100);
}
.cert__seal svg { width: 30px; height: 30px; }
.cert__img {
    height: 130px; width: auto; margin: 0 auto 1rem; display: block;
    filter: drop-shadow(0 6px 14px rgba(30,42,30,.14));
}
.cert strong { display: block; color: var(--slate-900); font-size: 1.05rem; }
.cert span { color: var(--slate-600); font-size: .92rem; }

/* ---------- Utilities ---------- */
.panel--flat { transform: none !important; }
.btn--block { width: 100%; justify-content: center; }
.footer__lead { max-width: 38ch; }
.footer__contact { font-size: .92rem; }
.cta-center { justify-content: center; }

/* Abstands- und Breitenhelfer.
   Sie ersetzen style="…"-Attribute im Markup. Die Content Security Policy
   erlaubt mit `style-src 'self'` keine Inline-Styles: Der Browser verwirft
   sie wortlos, meldet den Verstoß nur in der Konsole – und die Seite steht
   dann ohne den gemeinten Abstand da. Mit dem PHP-Entwicklungsserver fällt
   das nicht auf, weil der keinen CSP-Header sendet; hinter nginx und in der
   Produktion (.htaccess) schon. */
.mt-section  { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.mt-section-l{ margin-top: clamp(2.5rem, 5vw, 4rem); }
.mt-cta      { margin-top: clamp(2rem, 4vw, 3rem); }
.mt-sm       { margin-top: 1.4rem; }
.field--narrow { max-width: 260px; margin-top: .9rem; }
.notebox--wide { max-width: 820px; margin: 2rem auto 0; }
.chips.center { justify-content: center; }
.subhead-center { text-align: center; margin: 2.2rem 0 .9rem; font-weight: 700; color: var(--slate-900); }

/* ---------- Experten-Karte (E-E-A-T) ---------- */
.expert { display: flex; gap: 1.3rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow); }
.expert__avatar { width: 88px; height: 88px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.7rem; color: #14210a; background: linear-gradient(135deg, var(--brand), var(--brand-600)); }
.expert__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.expert strong { display: block; font-size: 1.2rem; color: var(--slate-900); }
.expert__role { color: var(--brand-700); font-weight: 650; font-size: .95rem; }
.expert p { margin-top: .6rem; font-size: .97rem; }
.expert__creds { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.expert__creds li { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 650; background: var(--brand-050); color: var(--brand-700); padding: .3rem .7rem; border-radius: 999px; }

/* ---------- Referenzen / Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2rem; }
@media (max-width: 700px) { .testimonials { grid-template-columns: 1fr; } .expert { flex-direction: column; } }
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.testimonial p { font-style: italic; color: var(--slate-700); }
.testimonial cite { display: block; margin-top: .8rem; font-style: normal; font-weight: 700; color: var(--slate-900); font-size: .92rem; }
.testimonial cite span { display: block; font-weight: 500; color: var(--slate-600); }

/* ---------- ISMS Produkt ---------- */
.isms__intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .isms__intro { grid-template-columns: 1fr; } }

.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin-top: 1.2rem; }
/* Neben einer zweiten Spalte (.split) bleibt bis 1100 px zu wenig Breite für
   zwei Listenspalten: Wörter wie „Monatsverkehrszahlen“ liefen hinaus. */
@media (max-width: 1100px) { .split .feature-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li > span, .feature-list li { min-width: 0; }
.feature-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .97rem; color: var(--slate-700); }
.feature-list svg { width: 1.15rem; height: 1.15rem; color: var(--brand-700); flex: none; margin-top: .18rem; }

/* Galerie */
/* Zwei Spalten statt drei: Bei 353 px Kachelbreite war die Programmschrift
   rund 5 px groß und wirkte verwaschen, bei zwei Spalten sind es rund 540 px. */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
/* Eine einzelne Aufnahme neben Fließtext füllt ihre Spalte, statt auf ein
   Drittel zu schrumpfen – sonst ist vom Programm nichts zu erkennen. */
.gallery--einzeln { grid-template-columns: 1fr; }
/* Detailausschnitt im Fließtext eines Artikels: volle Spaltenbreite und das
   eigene Seitenverhältnis – ein Streifen der Oberfläche, kein 16:10-Bild. */
.article .shot--ausschnitt { margin: 1.4rem 0 1.9rem; }
/* Dasselbe auf den Funktionsseiten, unter dem Text eines Abschnitts */
.ausschnitt-wrap { max-width: 860px; margin-top: 1.6rem; }
.shot.shot--ausschnitt img { aspect-ratio: auto; width: 100%; height: auto; object-fit: fill; }
.shot.shot--ausschnitt figcaption { font-weight: 500; font-size: .88rem; line-height: 1.5; color: var(--slate-600, var(--slate-700)); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.shot {
    position: relative; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); cursor: zoom-in;
    transition: transform .2s ease, box-shadow .25s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot figcaption {
    padding: .7rem .9rem; font-size: .9rem; font-weight: 600; color: var(--slate-700);
    border-top: 1px solid var(--line); background: var(--surface);
    display: flex; align-items: center; gap: .45rem;
}
.shot figcaption svg { width: 1rem; height: 1rem; color: var(--brand-700); }

/* Normen-Chips */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.chip {
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    padding: .45rem .9rem; font-weight: 650; font-size: .88rem; color: var(--slate-700);
    box-shadow: var(--shadow-sm);
}
.chip.is-brand { background: var(--brand-050); border-color: var(--brand-100); color: var(--brand-700); }

/* ---------- NIS2-Schnellcheck ---------- */
.check { max-width: 820px; margin-inline: auto; display: grid; gap: 1rem; }
.check__q { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: var(--surface); }
.check__q legend { font-weight: 700; color: var(--slate-900); padding: 0; }
.check__q legend span { display: block; font-weight: 400; font-size: .9rem; color: var(--slate-600); margin-top: .35rem; }
.check__opts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.check__opts label { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .95rem; cursor: pointer; font-weight: 600; transition: border-color .15s ease, background .15s ease; }
.check__opts label:hover { border-color: var(--brand-600); background: var(--surface-2); }
.check__opts input { accent-color: var(--brand-600); }
.check button { justify-self: start; }
.check__result { max-width: 820px; margin: 1.4rem auto 0; }
.check__card { border-radius: var(--radius); padding: 1.4rem 1.5rem; border: 1px solid var(--line); }
.check__card strong { display: block; font-size: 1.15rem; color: var(--slate-900); margin-bottom: .4rem; }
.check__card p { margin-bottom: 1rem; }
.check__card .btn { width: 100%; }
.check__card--high { background: #fdecef; border-color: #f6c9d1; }
.check__card--warn { background: #fff6e6; border-color: #f3e0b5; }
.check__card--ok   { background: var(--brand-050); border-color: var(--brand-100); }
.check__disclaimer { max-width: 820px; margin: 1rem auto 0; font-size: .85rem; color: var(--slate-400); text-align: center; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 1.2rem; }
.stat b { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 850; color: #fff; letter-spacing: -.03em; }
/* Die großen Werte nie trennen – „tagge-nau" sah auf dem Telefon nach Fehler aus. */
.stat b { hyphens: none; -webkit-hyphens: none; }
@media (max-width: 420px) { .stat b { font-size: 1.65rem; } }
@media (max-width: 360px) { .stat { padding: 1rem .3rem; } .stat b { font-size: 1.45rem; } }
.stat span { color: rgba(255,255,255,.72); font-size: .95rem; font-weight: 600; }
.section--ink h2, .section--ink .eyebrow { color: #fff; }
.section--ink .eyebrow { background: rgba(255,255,255,.1); color: var(--brand); }
.section--ink p { color: rgba(255,255,255,.75); }

/* ---------- Prozess ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem 1.4rem 1.4rem;
}
.step__num {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: var(--ink); color: var(--brand); font-weight: 800; margin-bottom: .9rem; font-size: 1.05rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.step p { font-size: .95rem; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem,4vw,3rem); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 1.1rem; align-content: start; }
.contact__row { display: flex; gap: .8rem; align-items: flex-start; }
.contact__row .ic {
    width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
    background: var(--brand-050); color: var(--brand-700);
}
.contact__row .ic svg { width: 20px; height: 20px; }
.contact__row b { color: var(--slate-900); display: block; }
.contact__row a { color: var(--slate-700); }

.form {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: .92rem; color: var(--slate-900); }
.field .req { color: var(--danger); }
.field input, .field textarea {
    font: inherit; color: var(--slate-900); background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--brand-600); background: var(--surface);
    box-shadow: 0 0 0 3px rgba(153,192,70,.25);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .85rem; }

/* Honeypot – für Menschen unsichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--slate-600); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; accent-color: var(--brand-600); }

.alert { border-radius: 12px; padding: .9rem 1.1rem; font-weight: 600; margin-bottom: 1.2rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .1rem; }
.alert--ok { background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-100); }
.alert--err { background: #fdecef; color: #b3253c; border: 1px solid #f6c9d1; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(3rem,5vw,4rem) 0 2rem; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 920px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer ul [aria-current] { color: var(--brand); font-weight: 700; }

/* Netzwerk-Leiste der Schwesterportale.
   Gleiche Darstellung wie auf isb.nrw, dsgvo-datenschutz.com und dem
   Meldeportal – das Markup war hier schon identisch, nur die Regeln fehlten,
   sodass die Leiste als nackte Textzeile stand. */
.footer__network {
    border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; margin-bottom: 1.4rem;
    display: flex; flex-wrap: wrap; gap: .6rem .7rem; align-items: center;
}
.footer__network-label { color: rgba(255,255,255,.72); font-weight: 700; font-size: .9rem; margin-right: .3rem; }
.netlink {
    display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
    padding: .45rem .9rem; color: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap;
}
.netlink span { font-weight: 500; color: rgba(255,255,255,.6); }
.netlink:hover { background: rgba(153,192,70,.16); border-color: var(--brand); text-decoration: none; }
.netlink--active { background: rgba(153,192,70,.14); border-color: var(--brand); cursor: default; }
.netlink--active span { color: var(--brand); }
/* Auf schmalen Displays bleiben nur die Namen – die Zusätze brächen um. */
@media (max-width: 560px) { .netlink span { display: none; } }
.footer__brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: .8rem; }
/* Die Bildmarke steht unverändert und freigestellt, genau wie im Header.
   Kein Einfärben: Ein weißes Negativ ist nicht die eingetragene Marke. Die
   PNG ist zu 79 % transparent, der Footer scheint also durch. Das Grün der
   Marke hat auf #1e2a1e 7,1:1, das graue „iT“ nur 2,7:1 – für ein Logo
   unkritisch, es wirkt dort aber gedämpft. */
.footer__brand img { height: 30px; width: auto; }
/* Markenzeichen: klein und leicht hochgestellt, ohne die Zeilenhöhe zu ändern. */
.tm { font-size: .72em; vertical-align: .38em; line-height: 0; }
.footer__brand .tld { color: var(--brand); }
.footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.footer ul { list-style: none; display: grid; gap: .5rem; font-size: .95rem; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem;
    display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center;
    font-size: .88rem;
}
.footer__bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Rechtsseiten (Impressum/Datenschutz) ---------- */
.legal { padding: clamp(2.5rem,5vw,4rem) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .4rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; margin-bottom: .6rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4rem; margin-bottom: .3rem; }
.legal p, .legal li { color: var(--slate-700); }
.legal ul { margin: .4rem 0 .4rem 1.2rem; display: grid; gap: .3rem; }
.legal address { font-style: normal; line-height: 1.9; }
.legal .back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; font-weight: 600; }
.note { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-top: 1rem; font-size: .95rem; }

/* ---------- Statistik (stats.php) ---------- */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; } }
.stats-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.stats-table caption { text-align: left; font-weight: 700; color: var(--slate-900); margin-bottom: .5rem; }
.stats-table th, .stats-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.stats-table td.num, .stats-table th.num { text-align: right; white-space: nowrap; }
.stats-kpis { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.2rem 0; }
.stats-kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; }
.stats-kpi b { display: block; font-size: 1.6rem; color: var(--slate-900); }
.stats-kpi span { color: var(--slate-600); font-size: .88rem; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 300; display: none;
    background: rgba(16,24,18,.88); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; animation: fade .2s ease; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close {
    position: absolute; top: 1.2rem; right: 1.4rem; background: rgba(255,255,255,.15);
    color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }

/* =========================================================================
   FAQ (Accordion via <details>)
   ========================================================================= */
.faq { display: grid; gap: .8rem; max-width: 820px; margin-inline: auto; }
.faq details {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 0 1.3rem; box-shadow: var(--shadow-sm);
    transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--brand-100); }
.faq summary {
    list-style: none; cursor: pointer; padding: 1.15rem 0;
    font-weight: 700; color: var(--slate-900); font-size: 1.05rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; width: 12px; height: 12px; flex: none;
    border-right: 2px solid var(--brand-700); border-bottom: 2px solid var(--brand-700);
    transform: rotate(45deg); transition: transform .2s ease; margin-right: .2rem;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > p { padding: 0 0 1.2rem; margin: 0; }

/* =========================================================================
   Feinschliff für sehr schmale Geräte (≤ 480px)
   ========================================================================= */
@media (max-width: 480px) {
    /* Auf schmalen Geräten nur lange Wörter trennen, mit mindestens fünf
       Zeichen vor und nach dem Trennstrich. */
    body { font-size: 1rem; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 5 5; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; }
    h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 14 6 6; }
    .hero h1 { font-size: clamp(1.7rem, 8.5vw, 2.15rem); line-height: 1.14; }
    h1 { font-size: clamp(1.6rem, 7.5vw, 2rem); }
    h2 { font-size: clamp(1.35rem, 6.4vw, 1.75rem); }
    h3 { font-size: 1.12rem; }
    .lead, .hero__sub { font-size: 1.02rem; }
    .section { padding: clamp(2.4rem, 9vw, 3.2rem) 0; }
    .eyebrow { font-size: .72rem; letter-spacing: .06em; }

    /* Buttons: kompakter und volle Breite bei gestapelten CTAs */
    .btn { padding: .82rem 1.15rem; font-size: .96rem; }
    .hero__cta { gap: .6rem; }
    .hero__cta .btn { width: 100%; }

    /* Kartendichte & Abstände */
    .card { padding: 1.3rem; }
    .container { padding-inline: 1.1rem; }
    .expert { padding: 1.3rem; }
    .expert__avatar { width: 72px; height: 72px; font-size: 1.4rem; }
    .check__q { padding: 1rem; }
    .check button { width: 100%; }
    .crumbs { font-size: .82rem; }
}

/* =========================================================================
   Dark Mode – Tokens (automatisch nach Systemeinstellung)
   ========================================================================= */
@media (prefers-color-scheme: dark) {
    :root {
        --brand-700: #b8dd7c;
        --brand-600: #99C046;
        --brand-050: rgba(153,192,70,.13);
        --brand-100: rgba(153,192,70,.28);
        --ink:       #0c110b;
        --slate-900: #f0f1f0;
        --slate-700: #d1d2d1;
        --slate-600: #a6a8a6;
        --slate-400: #7d7f7d;
        --line:      #2f322f;
        --surface:   #10160f;
        --surface-2: #161d15;
        --surface-3: #1b241a;
        --shadow-sm: 0 1px 2px rgba(0,0,0,.45);
        --shadow:    0 8px 24px -10px rgba(0,0,0,.6);
        --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.72);
        color-scheme: dark;
    }
    :root .site-header { background: rgba(16,22,15,.82); }
    :root .hero::before {
        background:
            radial-gradient(60% 55% at 78% 8%, rgba(153,192,70,.16), transparent 60%),
            radial-gradient(50% 50% at 8% 20%, rgba(153,192,70,.10), transparent 55%),
            linear-gradient(180deg, rgba(153,192,70,.08), transparent 70%);
    }
    :root .section--ink,
    :root .footer { background: #080c07; }
    :root .btn--light { --_bg: var(--surface-3); --_fg: var(--slate-900); }
    :root .shot img,
    :root .hero__panel img { opacity: .96; }
    :root .portal-mock { background: var(--surface-2); }
}

/* =========================================================================
   Zusatzkomponenten
   ========================================================================= */

/* ---------- Anwendungs-Mockup (Visual ohne externe Screenshots) ---------- */
.portal-mock {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s ease;
}
.portal-mock:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.portal-mock.panel--flat { transform: none; }
.portal-mock__bar {
    display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem;
    background: var(--ink); color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 600;
}
.portal-mock__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.28); }
.portal-mock__bar .dot:first-child { background: #ff5f57; }
.portal-mock__url { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; opacity: .8; }
.portal-mock__url svg { width: .95rem; height: .95rem; }
.portal-mock__body { padding: 1.4rem 1.4rem 1.6rem; display: grid; gap: 1rem; }
.portal-mock__head { display: flex; align-items: center; gap: .7rem; }
.portal-mock__logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-600)); display: grid; place-items: center; color: #14210a; flex: none; }
.portal-mock__logo svg { width: 20px; height: 20px; }
.portal-mock__head b { color: var(--slate-900); display: block; font-size: .98rem; }
.portal-mock__head span { color: var(--slate-600); font-size: .82rem; }
.portal-mock__row { display: grid; gap: .35rem; }
.portal-mock__label { font-size: .78rem; font-weight: 700; color: var(--slate-600); text-transform: uppercase; letter-spacing: .05em; }
.portal-mock__input { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: .6rem .8rem; color: var(--slate-700); font-size: .9rem; }
.portal-mock__ticket { display: flex; align-items: center; gap: .6rem; background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: 10px; padding: .7rem .9rem; }
.portal-mock__ticket svg { width: 1.3rem; height: 1.3rem; color: var(--brand-700); flex: none; }
.portal-mock__ticket b { color: var(--slate-900); font-size: .9rem; }
.portal-mock__ticket span { color: var(--slate-600); font-size: .8rem; display: block; }
.portal-mock__btn { justify-self: start; background: var(--brand); color: #14210a; font-weight: 700; font-size: .88rem; padding: .55rem 1.1rem; border-radius: 999px; }
.portal-mock__anon { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--brand-700); font-weight: 650; }
.portal-mock__anon svg { width: 1rem; height: 1rem; }

/* ---------- Meldewege ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .channels { grid-template-columns: 1fr; } }
.channel {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.channel:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.channel__num { position: absolute; top: 1.2rem; right: 1.3rem; font-weight: 850; font-size: 1.6rem; color: var(--surface-3); letter-spacing: -.03em; }
.channel__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand-700); margin-bottom: 1rem; }
.channel__icon svg { width: 26px; height: 26px; }
.channel h3 { margin-bottom: .5rem; }
.channel p { font-size: .96rem; }
.channel__tag { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-size: .82rem; font-weight: 650; white-space: nowrap; color: var(--brand-700); background: var(--brand-050); border-radius: 999px; padding: .3rem .75rem; }

/* ---------- Preise ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price--featured { border-color: var(--brand); box-shadow: 0 20px 44px -22px rgba(127,167,54,.8); }
.price__badge { align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: 999px; padding: .3rem .7rem; margin-bottom: .9rem; }
.price__tier { font-weight: 800; color: var(--slate-900); font-size: 1.15rem; }
.price__scope { color: var(--slate-600); font-size: .9rem; margin-top: .2rem; }
.price__amount { display: flex; align-items: baseline; gap: .3rem; margin: 1.1rem 0 .2rem; }
.price__amount b { font-size: 2.5rem; font-weight: 850; color: var(--slate-900); letter-spacing: -.03em; }
.price__amount span { color: var(--slate-600); font-weight: 600; font-size: .95rem; }
.price__gross { color: var(--slate-600); font-size: .85rem; }
.price__list { list-style: none; display: grid; gap: .6rem; margin: 1.3rem 0 1.6rem; }
.price__list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; color: var(--slate-700); }
.price__list svg { width: 1.15rem; height: 1.15rem; color: var(--brand-700); flex: none; margin-top: .18rem; }
.price .btn { margin-top: auto; width: 100%; justify-content: center; }
.price__note { text-align: center; color: var(--slate-600); font-size: .9rem; margin-top: 1.6rem; }
.price__custom b { font-size: 1.4rem; }

/* ---------- Hotline-Band ---------- */
.hotline {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem;
    text-align: center; background: var(--brand-050); border: 1px solid var(--brand-100);
    border-radius: var(--radius-lg); padding: 1.4rem 1.6rem;
}
.hotline__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #14210a; display: grid; place-items: center; flex: none; }
.hotline__ic svg { width: 24px; height: 24px; }
.hotline b { color: var(--slate-900); font-size: 1.1rem; }
.hotline span { color: var(--slate-700); font-size: .95rem; }
.hotline a { font-weight: 800; color: var(--brand-700); font-size: 1.2rem; }

/* =========================================================================
   betriebskosten.app – eigene Komponenten
   ========================================================================= */

/* ---------- Login-Knopf in der Kopfzeile ----------------------------------
   Der Login bleibt auf jeder Breite sichtbar – er ist der wichtigste Weg für
   Bestandskunden. Damit er auf schmalen Displays nicht den Menü-Knopf
   überlagert, weicht zuerst die Telefonnummer, dann schrumpft der Knopf. */
.btn--login { font-weight: 750; }
.btn--login svg { width: 1.05em; height: 1.05em; }

@media (max-width: 640px) {
    .nav { gap: .5rem; }
    .nav__cta { gap: .3rem; }
    .nav__cta .btn--login { padding: .72rem 1.05rem; font-size: .94rem; }
}
@media (max-width: 640px) {
    .nav__phone { display: none; }
    .nav__brand { font-size: .92rem; }
    .nav__brand img { height: 28px; }
}
@media (max-width: 400px) {
    .nav__cta .btn--login { padding: .68rem .9rem; font-size: .9rem; gap: .35rem; }
    .nav__brand img { display: none; }
}

/* ---------- Bühne: bildschirmfüllende 3D-Kulisse im Hero -----------------
   Der Canvas liegt hinter dem Text und füllt die ganze Sektion. Darüber ein
   Verlauf, damit die Schrift auf jedem Bildinhalt lesbar bleibt. Solange die
   Szene nicht läuft, steht das SVG – ohne JavaScript, ohne WebGL, bei
   „Bewegung reduzieren" und auf schmalen Displays.
   ------------------------------------------------------------------------ */
.hero--stage {
    position: relative;
    display: flex;
    align-items: center;
    /* Die Kopfzeile ist 72 px hoch und klebt oben – ohne Abzug ragte der
       Hero unter die Falz und schnitt das Sockelgeschoss ab. */
    min-height: min(calc(100svh - 72px), 880px);
    padding-block: clamp(2rem, 5vh, 4rem);
    overflow: hidden;
}
.hero--stage::before { content: none; }

.stage { position: absolute; inset: 0; z-index: 0; }
.stage canvas,
.stage__fallback {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
}
.stage canvas       { opacity: 0; transition: opacity 1.1s ease; }
.stage__fallback    { opacity: 1; transition: opacity .5s ease; }
.stage.is-live canvas    { opacity: 1; }
/* Solange three.js lädt, ist das flache Ersatzbild bereits aus – es soll
   nicht für eine Sekunde aufblitzen und dann verschwinden. */
.stage.is-pending .stage__fallback,
.stage.is-live .stage__fallback { opacity: 0; }
.stage.is-pending::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(70% 60% at 72% 32%, var(--brand-050), transparent 70%);
}

/* Lesbarkeitsverlauf: links deckend, nach rechts offen */
.stage__scrim {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(100deg,
            var(--surface) 0%,
            rgba(255,255,255,.95) 24%,
            rgba(255,255,255,.55) 40%,
            rgba(255,255,255,0) 54%),
        linear-gradient(0deg, var(--surface) 0%, rgba(255,255,255,0) 18%);
}

/* Beschriftung des angeflogenen Raums – HTML statt Canvas, damit sie scharf
   bleibt. Die Position setzt scene-haus.js jeden Frame per transform. */
.stage__pin {
    position: absolute; left: 0; top: 0; z-index: 2;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .8rem .35rem .55rem;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--brand-100);
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-size: .82rem; font-weight: 700; color: var(--slate-900);
    white-space: nowrap; pointer-events: none;
    backdrop-filter: blur(6px);
}
.stage__pin[hidden] { display: none; }
.stage__pin-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--brand);
    box-shadow: 0 0 0 4px rgba(153,192,70,.28);
}

.hero__stagegrid { position: relative; z-index: 1; }
.hero--stage .hero__copy { max-width: 34rem; }
.hero--stage .hero__sub  { max-width: 32ch; }

/* Themenkarte zur Kamerafahrt */
/* Die Karte hängt am angeflogenen Ort: scene-haus.js setzt jeden Frame ein
   transform. Ohne laufende Szene bleibt sie an ihrem Platz im Textfluss. */
/* Die Karte hängt direkt am Hero und nimmt je Thema eine von vier Ecken
   ein. CSS übernimmt die Platzierung – damit kann sie nie aus dem Bild
   laufen, egal wie lang der Text ist. */
.topic--anchored {
    position: absolute; margin-top: 0;
    width: min(21.5rem, 31vw); z-index: 3;
    transition: opacity .35s ease;
}
.topic--or { top: 6%;    bottom: auto; right: 2.4rem; left: auto; }
.topic--ur { bottom: 6%; top: auto;    right: 2.4rem; left: auto; }
.topic--om { top: 6%;    bottom: auto; left: 53%;     right: auto; }
.topic--um { bottom: 6%; top: auto;    left: 53%;     right: auto; }
/* Beim Themenwechsel blendet nur der Inhalt um – die Punkte bleiben
   durchgehend bedienbar. */
.topic__body { transition: opacity .24s ease; }
.topic__body.is-out { opacity: 0; }
.topic--anchored:not(.is-in) { opacity: 0; pointer-events: none; }

.topic {
    margin-top: clamp(1.6rem, 4vh, 2.4rem);
    max-width: 30rem;
    background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 1rem 1.25rem 1.1rem;
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
}
.topic.is-in { opacity: 1; transform: none; }
.topic__eyebrow {
    display: flex; align-items: center; gap: .5rem;
    font-size: .72rem; font-weight: 800;
    letter-spacing: .09em; text-transform: uppercase; color: var(--brand-700);
    margin-bottom: .3rem;
}
.topic__dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
    box-shadow: 0 0 0 4px rgba(153,192,70,.22); flex: none;
}
.topic__title { display: block; color: var(--slate-900); font-size: 1.08rem; font-weight: 800; }
.topic__text  { font-size: .95rem; margin-top: .3rem; }
/* Bei zwölf Themen muss die Reihe umbrechen können, sonst quetscht Flexbox
   die Marken auf Haaresbreite. */
.topic__dots  { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .9rem; }
.topic__dots button {
    width: 15px; height: 5px; border: 0; padding: 0; cursor: pointer;
    flex: none; border-radius: 999px; background: var(--line);
    transition: background .25s ease, width .25s ease;
}
.topic__dots button:hover { background: var(--brand-100); }
.topic__dots button.is-active { background: var(--brand); width: 26px; }
.topic__dots button:focus-visible { outline: 3px solid rgba(153,192,70,.5); outline-offset: 3px; }

/* Auf schmalen Displays taugt die Bühne nicht als bildschirmfüllender
   Hintergrund: Das Bild würde bis zur Unkenntlichkeit beschnitten und der
   Text läge auf unruhigem Grund. Sie wird deshalb zu einer eigenen Kachel –
   und die Erklärung rückt direkt darunter, damit Bild und Text zusammen
   gelesen werden. Reihenfolge: Überschrift, Kachel, Erklärung. */
@media (max-width: 900px) {
    .hero--stage {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-block: clamp(1.5rem, 5vw, 2.5rem);
    }
    .hero__stagegrid { order: 1; }
    .stage           { order: 2; }
    .topic--anchored { order: 3; }

    .stage {
        position: relative;
        inset: auto;
        width: min(100% - 2 * var(--gap), 34rem);
        margin: clamp(1.5rem, 5vw, 2.2rem) auto 0;
        aspect-ratio: 1200 / 760;
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: linear-gradient(180deg, var(--brand-050), var(--surface));
        border: 1px solid var(--line);
    }
    .stage__scrim { display: none; }
    .stage.is-pending::before { content: none; }

    .hero--stage .hero__copy { max-width: none; }
    .hero--stage .hero__sub  { max-width: none; }

    /* Die Karte steht im Fluss statt in einer Ecke der Bühne */
    .topic--anchored {
        position: static;
        width: min(100% - 2 * var(--gap), 34rem);
        margin: 1rem auto 0;
        inset: auto;
        opacity: 1;
    }
    .topic--anchored:not(.is-in) { opacity: 1; pointer-events: auto; }

    /* Die Karte bleibt beim Themenwechsel stehen. In der Ecke der Bühne ist
       sie während des Wechsels ausgeblendet, da fällt das Einschweben um 10 px
       nicht auf – hier steht sie durchgehend sichtbar im Textfluss, und
       derselbe Versatz liest sich als Ruckeln. Umblenden tut nur der Inhalt,
       darum kümmert sich .topic__body. */
    .topic--anchored, .topic--anchored:not(.is-in) { transform: none; }
}

/* ---------- Eingebettete Szene (Verteilerschlüssel) ---------- */
.scene {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.scene canvas,
.scene__fallback {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
}
.scene canvas { opacity: 0; transition: opacity .6s ease; }
.scene__fallback { opacity: 1; transition: opacity .5s ease; }
.scene.is-live canvas { opacity: 1; }
.scene.is-pending .scene__fallback,
.scene.is-live .scene__fallback { opacity: 0; pointer-events: none; }
.scene--panel {
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

/* Umschalter unter der Verteilerschlüssel-Szene */
.keyswitch { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.keyswitch button {
    font: inherit; cursor: pointer;
    background: var(--surface); color: var(--slate-700);
    border: 1px solid var(--line); border-radius: 999px;
    padding: .5rem 1rem; font-size: .9rem; font-weight: 650;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.keyswitch button:hover { border-color: var(--brand-100); background: var(--surface-2); }
.keyswitch button.is-active {
    background: var(--brand); border-color: var(--brand); color: #14210a; font-weight: 750;
}
.keyswitch button:focus-visible { outline: 3px solid rgba(153,192,70,.5); outline-offset: 2px; }

/* ---------- Bento-Grid der Funktionen ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.bento__item {
    grid-column: span 2;
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.bento__item--wide { grid-column: span 3; }
.bento__item--lead {
    grid-column: span 6;
    background: linear-gradient(135deg, var(--brand-050), var(--surface) 60%);
    border-color: var(--brand-100);
}
.bento__ic {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: var(--brand-050); color: var(--brand-700); margin-bottom: .95rem; flex: none;
}
.bento__ic svg { width: 24px; height: 24px; }
.bento__item h3 { margin-bottom: .45rem; }
.bento__item p { font-size: .96rem; }
.bento__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: 1rem; }
.bento__tags span {
    font-size: .78rem; font-weight: 650; color: var(--slate-600);
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 999px; padding: .25rem .65rem;
}
.bento__item--lead .bento__tags span { background: var(--surface); }
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(4, 1fr); }
    .bento__item, .bento__item--wide { grid-column: span 2; }
    .bento__item--lead { grid-column: span 4; }
}
@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; }
    .bento__item, .bento__item--wide, .bento__item--lead { grid-column: span 1; }
}

/* ---------- Ablauf mit durchgehender Linie ---------- */
.workflow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.workflow::before {
    content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px;
    background: linear-gradient(90deg, var(--brand-100), var(--brand), var(--brand-100));
    z-index: 0;
}
.workflow__step { position: relative; z-index: 1; text-align: center; }
.workflow__num {
    width: 54px; height: 54px; margin: 0 auto .9rem; border-radius: 50%;
    display: grid; place-items: center; font-weight: 850; font-size: 1.2rem;
    background: var(--brand); color: #14210a;
    border: 4px solid var(--surface); box-shadow: var(--shadow-sm);
}
.workflow__step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.workflow__step p { font-size: .93rem; }
@media (max-width: 860px) {
    .workflow { grid-template-columns: repeat(2, 1fr); }
    .workflow::before { display: none; }
}
@media (max-width: 460px) { .workflow { grid-template-columns: 1fr; } }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; gap: 1rem; }
.roadmap__item {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.roadmap__state {
    flex: none; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    border-radius: 999px; padding: .35rem .75rem; margin-top: .15rem;
    background: var(--surface-2); color: var(--slate-600); border: 1px solid var(--line);
}
.roadmap__item--next .roadmap__state { background: var(--brand-050); color: var(--brand-700); border-color: var(--brand-100); }
.roadmap__item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.roadmap__item p { font-size: .94rem; }
@media (max-width: 560px) { .roadmap__item { flex-direction: column; gap: .7rem; } }

/* ---------- Sicherheits-Merkmale ---------- */
.secgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 760px) { .secgrid { grid-template-columns: 1fr; } }
.secitem { display: flex; gap: .9rem; align-items: flex-start; }
.secitem__ic {
    width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
    background: rgba(153,192,70,.16); color: var(--brand);
}
.secitem__ic svg { width: 22px; height: 22px; }
.secitem b { display: block; color: #fff; margin-bottom: .2rem; }
.secitem span { color: rgba(255,255,255,.72); font-size: .94rem; }

/* ---------- Vergleichsliste (Tabellenkalkulation vs. Software) ---------- */
.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare__col {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.compare__col--good { border-color: var(--brand); box-shadow: 0 20px 44px -26px rgba(127,167,54,.8); }
.compare__col h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-size: 1.08rem; }
.compare__col h3 svg { width: 1.3rem; height: 1.3rem; flex: none; }
.compare__col--bad h3 svg { color: var(--danger); }
.compare__col--good h3 svg { color: var(--brand-700); }
.compare__col ul { list-style: none; display: grid; gap: .7rem; }
.compare__col li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; color: var(--slate-700); }
.compare__col li::before { content: "–"; color: var(--slate-400); flex: none; }
.compare__col--good li::before { content: "✓"; color: var(--brand-700); font-weight: 800; }

/* ---------- Kennzahl-Kacheln in der dunklen Sektion ---------- */
.section--ink .scene { background: rgba(255,255,255,.04); }

/* ---------- Preis-Hinweisbox ---------- */
.notebox {
    background: var(--brand-050); border: 1px solid var(--brand-100);
    border-radius: var(--radius); padding: 1.1rem 1.3rem; font-size: .95rem;
    color: var(--slate-700); display: flex; gap: .8rem; align-items: flex-start;
}
.notebox svg { width: 1.3rem; height: 1.3rem; color: var(--brand-700); flex: none; margin-top: .1rem; }
.notebox--warn { background: #fff6e6; border-color: #f3e0b5; }
.notebox--warn svg { color: #b07d12; }

/* ---------- Dark-Mode-Nachzieher für die neuen Bausteine ---------- */
@media (prefers-color-scheme: dark) {
    :root .scene--panel { background: var(--surface-2); }
    :root .stage__scrim {
        background:
            linear-gradient(100deg,
                var(--surface) 0%,
                rgba(16,22,15,.95) 24%,
                rgba(16,22,15,.58) 40%,
                rgba(16,22,15,0) 54%),
            linear-gradient(0deg, var(--surface) 0%, rgba(16,22,15,0) 18%);
    }
    :root .stage__pin {
        background: rgba(22,29,21,.94); color: var(--slate-900);
        border-color: rgba(153,192,70,.4);
    }
    :root .topic { background: rgba(22,29,21,.8); }
    :root .keyswitch button.is-active { color: #0c110b; }
    :root .workflow__num { border-color: var(--surface); }
    :root .compare__col--bad li::before { color: var(--slate-400); }
    :root .notebox--warn { background: rgba(224,160,32,.12); border-color: rgba(224,160,32,.3); color: var(--slate-700); }
    :root .notebox--warn svg { color: var(--amber); }
    :root .check__card--warn { background: rgba(224,160,32,.12); border-color: rgba(224,160,32,.3); }
    :root .check__card--high { background: rgba(214,69,90,.14); border-color: rgba(214,69,90,.34); }
}
@media (prefers-color-scheme: dark) and (max-width: 900px) {
    :root .stage__scrim {
        background: linear-gradient(180deg,
            rgba(16,22,15,.93) 0%, rgba(16,22,15,.88) 55%, var(--surface) 100%);
    }
}
