/* ==========================================================================
   LONtec GmbH — Design System
   Globale Tokens, Basis-Styles und geteilte Komponenten (Header, Footer, ...)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Markenfarben (abgeleitet aus dem LONtec Logo) */
    --brand-50:  #EAF7EB;
    --brand-100: #D0EDD2;
    --brand-200: #A3DCA6;
    --brand-300: #6FC873;
    --brand-400: #4CC44F;
    --brand-500: #33A836;  /* Logo-Grün */
    --brand-600: #288629;  /* AA-konform mit weißem Text */
    --brand-700: #227325;  /* AA-konform auf Weiß */
    --brand-800: #1B5C1D;

    /* Ink / Dunkelflächen (abgeleitet aus dem Logo-Dunkelton #33324A) */
    --ink-950: #0E0D17;
    --ink-900: #14131F;
    --ink-850: #191827;
    --ink-800: #1D1C2C;
    --ink-700: #262538;
    --ink-600: #33324A;
    --ink-500: #4A4966;
    --ink-400: #6B6A87;
    --ink-300: #9695AE;
    --ink-200: #C3C2D2;

    /* Flächen & Linien */
    --surface:        #FFFFFF;
    --surface-subtle: #F7F8FA;
    --surface-muted:  #EEF0F4;
    --line:           #E2E5EB;
    --line-strong:    #CFD4DD;

    /* Text */
    --text:        #1D1C2C;
    --text-muted:  #55546E;
    --text-subtle: #74738C;
    --text-invert: #FFFFFF;
    --text-invert-muted: rgba(255, 255, 255, .72);

    /* Typografie */
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-head: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --fs-hero:  clamp(2.25rem, 1.45rem + 2.7vw, 3.65rem);
    --fs-h1:    clamp(2.05rem, 1.45rem + 2.4vw, 3.3rem);
    --fs-h2:    clamp(1.7rem,  1.28rem + 1.75vw, 2.6rem);
    --fs-h3:    clamp(1.15rem, 1.06rem + 0.4vw, 1.4rem);
    --fs-lead:  clamp(1.05rem, 1rem + 0.38vw, 1.28rem);
    --fs-body:  1.0625rem;
    --fs-sm:    0.9375rem;
    --fs-xs:    0.8125rem;

    /* Abstände */
    --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
    --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
    --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
    --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

    --section-y:    clamp(4.5rem, 2.6rem + 6vw, 7.5rem);
    --section-y-sm: clamp(3.25rem, 2.2rem + 3.4vw, 5rem);

    /* Radien */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Schatten */
    --shadow-xs: 0 1px 2px rgba(20, 19, 31, .05);
    --shadow-sm: 0 1px 3px rgba(20, 19, 31, .07), 0 1px 2px rgba(20, 19, 31, .04);
    --shadow-md: 0 8px 24px -8px rgba(20, 19, 31, .14), 0 2px 6px rgba(20, 19, 31, .05);
    --shadow-lg: 0 24px 48px -18px rgba(20, 19, 31, .24), 0 6px 14px rgba(20, 19, 31, .06);
    --shadow-brand: 0 12px 28px -10px rgba(40, 134, 41, .45);

    /* Layout */
    --container: 1200px;
    --container-narrow: 820px;
    --header-h: 76px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 767px) {
    :root { --header-h: 64px; }
}

/* --------------------------------------------------------------------------
   2. Reset & Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--text);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* lange deutsche Komposita nie über den Rand laufen lassen */
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-4);
    font-family: var(--font-head);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -.021em;
    color: var(--text);
    text-wrap: balance;
    hyphens: auto;
    -webkit-hyphens: auto;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.012em; }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-800); }

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

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: .35rem; }

strong, b { font-weight: 640; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-10) 0; }

::selection { background: var(--brand-200); color: var(--ink-900); }

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

/* Skip-Link */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: .75rem 1.25rem;
    background: var(--brand-700);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* --------------------------------------------------------------------------
   3. Layout-Bausteine
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.125rem, .6rem + 2.2vw, 2.5rem);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--sm { padding-block: var(--section-y-sm); }
.section--subtle { background: var(--surface-subtle); }
.section--muted  { background: var(--surface-muted); }

.section--dark {
    background: var(--ink-900);
    color: var(--text-invert);
}
.section--dark h1, .section--dark h2,
.section--dark h3, .section--dark h4 { color: var(--text-invert); }
.section--dark p { color: var(--text-invert-muted); }

/* Sektionskopf */
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 1.6rem + 2.6vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
    font-size: var(--fs-lead);
    color: var(--text-muted);
    margin-top: var(--space-4);
    margin-bottom: 0;
}
.section--dark .section-head p { color: var(--text-invert-muted); }

/* Eyebrow / Kicker */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 var(--space-4);
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 640;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--brand-700);
}
.eyebrow::before {
    content: "";
    width: 22px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.section--dark .eyebrow,
.dark-band .eyebrow { color: var(--brand-300); }

.lead {
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--text-muted);
}
.section--dark .lead { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .9rem 1.65rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--brand-600);
    color: #fff;
    font-family: var(--font-head);
    font-size: .975rem;
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .22s var(--ease), transform .22s var(--ease),
                box-shadow .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}

.btn:hover {
    background: var(--brand-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}
.btn:active { transform: translateY(0); box-shadow: none; }

.btn .icon { width: 1.1em; height: 1.1em; flex: none; transition: transform .22s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text);
}
.btn--outline:hover {
    background: var(--surface);
    border-color: var(--brand-500);
    color: var(--brand-700);
    box-shadow: var(--shadow-md);
}

.btn--ghost-light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.btn--ghost-light:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    box-shadow: none;
}

.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { background: var(--brand-50); color: var(--ink-900); box-shadow: 0 12px 28px -12px rgba(0,0,0,.5); }

.btn--sm { padding: .65rem 1.2rem; font-size: .9rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.03rem; }
.btn--block { display: flex; width: 100%; }

/* Textlink mit Pfeil */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .97rem;
    color: var(--brand-700);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .22s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
}

/* Hintergrund und Weichzeichner liegen auf einer eigenen Ebene.
   Wichtig: backdrop-filter darf NICHT auf .site-header selbst stehen – es würde
   den Header zum Bezugsrahmen für position:fixed machen und das mobile Menü
   auf Header-Höhe zusammenstauchen. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: opacity .3s var(--ease), box-shadow .3s var(--ease);
}

/* Transparent über dem dunklen Hero (nur mit aktivem JS) */
.js .site-header:not(.is-stuck)::before { opacity: 0; }
.site-header.is-stuck::before { box-shadow: 0 8px 24px -18px rgba(20, 19, 31, .4); }

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    height: var(--header-h);
}

/* Logo + Wortmarke */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-right: auto;
    color: var(--text);
    text-decoration: none;
}
.brand img { height: 38px; width: auto; }

/* Logo-Marke als Inline-SVG — Farben passen sich dem Header-Zustand an */
.brand-mark {
    height: 38px;
    width: auto;
    flex: none;
}
.brand-mark__frame { fill: var(--ink-500); transition: fill .28s var(--ease); }
.brand-mark__bus   { fill: var(--brand-500); transition: fill .28s var(--ease); }

.js .site-header:not(.is-stuck) .brand-mark__frame { fill: rgba(255, 255, 255, .6); }
.js .site-header:not(.is-stuck) .brand-mark__bus   { fill: var(--brand-400); }

.footer-brand .brand-mark { height: 44px; }
.footer-brand .brand-mark__frame { fill: rgba(255, 255, 255, .5); }
.footer-brand .brand-mark__bus   { fill: var(--brand-400); }

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand-word {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--ink-900);
    transition: color .28s var(--ease);
}
.brand-word span { color: var(--brand-600); transition: color .28s var(--ease); }
.brand-claim {
    font-size: .62rem;
    font-weight: 550;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    transition: color .28s var(--ease);
}

.js .site-header:not(.is-stuck) .brand-word { color: #fff; }
.js .site-header:not(.is-stuck) .brand-word span { color: var(--brand-300); }
.js .site-header:not(.is-stuck) .brand-claim { color: rgba(255,255,255,.62); }

/* Desktop-Navigation */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav li { margin: 0; }

.main-nav a {
    position: relative;
    display: block;
    padding: .55rem .85rem;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: .97rem;
    font-weight: 550;
    color: var(--ink-700);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: .85rem; right: .85rem; bottom: .3rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--brand-700); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--brand-700); font-weight: 640; }

.js .site-header:not(.is-stuck) .main-nav a { color: rgba(255,255,255,.86); }
.js .site-header:not(.is-stuck) .main-nav a:hover,
.js .site-header:not(.is-stuck) .main-nav a[aria-current="page"] { color: #fff; }
.js .site-header:not(.is-stuck) .main-nav a::after { background: var(--brand-400); }

/* Header-Aktionen */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Sprachumschalter als Schiebeschalter */
.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-subtle);
    transition: background-color .28s var(--ease), border-color .28s var(--ease);
}

.lang-switch__thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 2);
    border-radius: var(--radius-pill);
    background: var(--ink-800);
    box-shadow: 0 1px 3px rgba(20, 19, 31, .22);
    transition: transform .38s cubic-bezier(.35, 1.35, .5, 1),
                background-color .28s var(--ease);
}
.lang-switch[data-active="en"] .lang-switch__thumb { transform: translateX(100%); }

/* Feste, identische Breite: nur so sitzt der Schieber exakt über der Hälfte */
.lang-switch a {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 2.75rem;
    padding: .28rem 0;
    white-space: nowrap;
    border-radius: var(--radius-pill);
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 640;
    letter-spacing: .04em;
    text-align: center;
    color: var(--text-subtle);
    transition: color .24s var(--ease);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: #fff; }

/* Der Schieber wandert beim Überfahren ein Stück in Richtung der anderen Sprache */
.lang-switch[data-active="de"]:has(a:nth-of-type(2):hover) .lang-switch__thumb { transform: translateX(16%); }
.lang-switch[data-active="en"]:has(a:nth-of-type(1):hover) .lang-switch__thumb { transform: translateX(84%); }
.lang-switch:active .lang-switch__thumb { transition-duration: .12s; }

.js .site-header:not(.is-stuck) .lang-switch {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.24);
}
.js .site-header:not(.is-stuck) .lang-switch__thumb {
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.js .site-header:not(.is-stuck) .lang-switch a { color: rgba(255,255,255,.7); }
.js .site-header:not(.is-stuck) .lang-switch a:hover { color: #fff; }
.js .site-header:not(.is-stuck) .lang-switch a[aria-current="true"] { color: var(--ink-900); }

.header-actions .btn { padding: .68rem 1.3rem; font-size: .93rem; }
.js .site-header:not(.is-stuck) .header-actions .btn {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.34);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.js .site-header:not(.is-stuck) .header-actions .btn:hover {
    background: #fff;
    border-color: #fff;
    color: var(--ink-900);
    box-shadow: none;
}

/* Burger */
.nav-toggle {
    display: none;
    position: relative;
    z-index: 1001;          /* über dem geöffneten Panel, damit "Schließen" klickbar bleibt */
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink-800);
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--line-strong); }
.js .site-header:not(.is-stuck) .nav-toggle {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.28);
    color: #fff;
}
.nav-toggle-box { position: relative; width: 20px; height: 14px; }
.nav-toggle-box span {
    position: absolute;
    left: 0;
    width: 100%; height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .28s var(--ease), opacity .2s var(--ease), width .28s var(--ease);
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 6px; width: 75%; }
.nav-toggle-box span:nth-child(3) { top: 12px; }

.nav-open .nav-toggle-box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 100%; }

/* Backdrop für das mobile Menü */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(14, 13, 23, .55);
    opacity: 0;
    visibility: hidden;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
    .nav-toggle { display: inline-flex; }

    .mobile-panel {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        z-index: 999;
        width: min(380px, 88vw);
        display: flex;
        flex-direction: column;
        gap: var(--space-6);
        padding: calc(var(--header-h) + 1.75rem) 1.75rem 2rem;
        background: var(--ink-900);
        color: #fff;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(102%);
        visibility: hidden;
        box-shadow: -24px 0 60px -30px rgba(0,0,0,.9);
        transition: transform .34s var(--ease), visibility .34s var(--ease);
    }
    .nav-open .mobile-panel { transform: translateX(0); visibility: visible; }

    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a {
        padding: 1rem .25rem;
        border-bottom: 1px solid rgba(255,255,255,.1);
        border-radius: 0;
        font-size: 1.2rem;
        font-weight: 600;
        color: #fff;
    }
    .main-nav a::after { display: none; }
    .main-nav a:hover,
    .main-nav a[aria-current="page"] { color: var(--brand-300); }
    .js .site-header:not(.is-stuck) .main-nav a { color: #fff; }
    .js .site-header:not(.is-stuck) .main-nav a:hover,
    .js .site-header:not(.is-stuck) .main-nav a[aria-current="page"] { color: var(--brand-300); }

    .header-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: var(--space-5);
    }
    .header-actions .btn { width: 100%; padding: .9rem 1.5rem; font-size: 1rem; }
    .js .site-header:not(.is-stuck) .header-actions .btn {
        background: var(--brand-600);
        border-color: var(--brand-600);
        color: #fff;
    }
    .lang-switch,
    .js .site-header:not(.is-stuck) .lang-switch {
        align-self: flex-start;
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.2);
    }
    .lang-switch a,
    .js .site-header:not(.is-stuck) .lang-switch a {
        color: rgba(255,255,255,.7);
        font-size: .85rem;
        width: 3.4rem;
        padding: .4rem 0;
    }
    .lang-switch a[aria-current="true"],
    .js .site-header:not(.is-stuck) .lang-switch a[aria-current="true"] { color: var(--ink-900); }
    .lang-switch__thumb,
    .js .site-header:not(.is-stuck) .lang-switch__thumb { background: #fff; }
}

@media (min-width: 992px) {
    .mobile-panel { display: contents; }
    .nav-backdrop { display: none; }
}

body.nav-open { overflow: hidden; }

/* Bei geöffnetem Menü wird die Leiste dunkel und schließt optisch an das
   Panel an; Logo und Burger bleiben dadurch in jedem Scroll-Zustand lesbar. */
.nav-open .site-header::before {
    opacity: 1;
    background: var(--ink-900);
    border-bottom-color: rgba(255, 255, 255, .12);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.js .nav-open .site-header .brand-word { color: #fff; }
.js .nav-open .site-header .brand-word span { color: var(--brand-300); }
.js .nav-open .site-header .brand-claim { color: rgba(255, 255, 255, .62); }
.js .nav-open .site-header .brand-mark__frame { fill: rgba(255, 255, 255, .6); }
.js .nav-open .site-header .brand-mark__bus { fill: var(--brand-400); }
.js .nav-open .site-header .nav-toggle {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

/* Fallback ohne JavaScript: Navigation bleibt vollständig erreichbar,
   der Header läuft im normalen Fluss statt fixiert. */
html:not(.js) .nav-toggle,
html:not(.js) .nav-backdrop { display: none !important; }

html:not(.js) .site-header { position: static; }
html:not(.js) .jump-nav { position: static; }

@media (max-width: 991px) {
    html:not(.js) .header-inner {
        flex-wrap: wrap;
        height: auto;
        gap: var(--space-3);
        padding-block: .75rem;
    }
    html:not(.js) .mobile-panel {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        width: 100%;
        padding: 0;
        background: none;
        transform: none;
        visibility: visible;
        overflow: visible;
        box-shadow: none;
    }
    html:not(.js) .main-nav ul { flex-direction: row; flex-wrap: wrap; gap: .2rem; }
    html:not(.js) .main-nav a {
        padding: .45rem .7rem;
        font-size: .95rem;
        color: var(--ink-700);
        border-bottom: 0;
    }
    html:not(.js) .header-actions { flex-direction: row; gap: var(--space-3); }
    html:not(.js) .header-actions .btn { width: auto; padding: .6rem 1.1rem; font-size: .9rem; }
    html:not(.js) .lang-switch { background: var(--surface-subtle); border-color: var(--line); }
    html:not(.js) .lang-switch a { color: var(--text-subtle); }
    html:not(.js) .lang-switch a[aria-current="true"] { color: #fff; }
    html:not(.js) .lang-switch__thumb { background: var(--ink-800); }
}

html:not(.js) .hero,
html:not(.js) .page-hero { padding-top: clamp(3rem, 2rem + 4vw, 5rem); }

/* --------------------------------------------------------------------------
   6. Dunkles Band / Seiten-Hero
   -------------------------------------------------------------------------- */
.dark-band {
    position: relative;
    isolation: isolate;
    background: var(--ink-900);
    color: var(--text-invert);
    overflow: hidden;
}
.dark-band::before {
    /* feines technisches Raster */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
}
.dark-band::after {
    /* grüner Lichtschein */
    content: "";
    position: absolute;
    z-index: -1;
    width: 62vw; height: 62vw;
    max-width: 900px; max-height: 900px;
    top: -34%; right: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51,168,54,.28) 0%, rgba(51,168,54,.08) 42%, transparent 68%);
    pointer-events: none;
}

.page-hero {
    padding-top: calc(var(--header-h) + clamp(3.25rem, 2rem + 5vw, 6rem));
    padding-bottom: clamp(3.25rem, 2rem + 5vw, 6rem);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-5); }
.page-hero p {
    max-width: 66ch;
    font-size: var(--fs-lead);
    color: var(--text-invert-muted);
    margin-bottom: 0;
}
.page-hero--center { text-align: center; }
.page-hero--center p { margin-inline: auto; }
.page-hero--compact {
    padding-top: calc(var(--header-h) + clamp(2.5rem, 1.8rem + 3vw, 4rem));
    padding-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0 0 var(--space-5);
    padding: 0;
    list-style: none;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.55);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: rgba(255,255,255,.3); }
.breadcrumb a { color: rgba(255,255,255,.72); }
.breadcrumb a:hover { color: #fff; }
.page-hero--center .breadcrumb { justify-content: center; }

/* --------------------------------------------------------------------------
   7. Karten, Listen, Split-Layouts
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.6rem, 1.2rem + 1vw, 2.15rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-lg);
}
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--text-muted); }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px; height: 54px;
    margin-bottom: var(--space-5);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, var(--brand-50), #fff);
    border: 1px solid var(--brand-100);
    color: var(--brand-700);
}
.card-icon .icon { width: 26px; height: 26px; }

.grid {
    display: grid;
    gap: clamp(1.1rem, .7rem + 1.2vw, 1.75rem);
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 991px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* Check-Liste */
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
    position: relative;
    margin-bottom: var(--space-4);
    padding-left: 2.1rem;
    color: var(--text-muted);
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .3rem;
    width: 1.35rem; height: 1.35rem;
    border-radius: 50%;
    background-color: var(--brand-50);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23227325' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-position: center;
    background-size: .8rem;
    background-repeat: no-repeat;
    border: 1px solid var(--brand-100);
}
.check-list strong {
    display: block;
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 640;
    font-size: 1.02rem;
    margin-bottom: .15rem;
}
.section--dark .check-list li { color: var(--text-invert-muted); }
.section--dark .check-list strong { color: #fff; }
.section--dark .check-list li::before {
    background-color: rgba(51,168,54,.16);
    border-color: rgba(51,168,54,.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236FC873' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Bildrahmen */
.media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-muted);
    border: 1px solid var(--line);
}
.media img { width: 100%; height: auto; display: block; }
.media--shadow { box-shadow: var(--shadow-lg); }

/* Split-Layout */
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
    align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 899px) {
    .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
    .split--reverse > :first-child { order: 0; }
}

/* Badge / Pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .85rem;
    border-radius: var(--radius-pill);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    color: var(--brand-800);
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.pill .icon { width: 1em; height: 1em; }
.pill--dark {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    color: rgba(255,255,255,.9);
}

/* Zertifikatskarte — rein typografisch, ohne Prüfsiegel-Grafik */
.cert-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, var(--ink-800) 0%, var(--ink-950) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow-lg);
    color: #fff;
}
.cert-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 85% 0%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse 85% 85% at 85% 0%, #000, transparent 72%);
}
.cert-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -45%; right: -20%;
    width: 70%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 168, 54, .22) 0%, transparent 65%);
    pointer-events: none;
}

.cert-panel__eyebrow {
    margin: 0 0 .45rem;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 640;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--brand-300);
}
.cert-panel__standard {
    margin: 0 0 var(--space-6);
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #fff;
}
.cert-panel__standard span { color: var(--brand-400); }

.cert-panel__meta {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 0 1.5rem;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: var(--fs-sm);
}
.cert-panel__meta dt {
    padding: .65rem 0;
    color: rgba(255, 255, 255, .55);
}
.cert-panel__meta dd {
    margin: 0;
    padding: .65rem 0;
    text-align: right;
    font-family: var(--font-head);
    font-weight: 600;
    color: #fff;
}
.cert-panel__meta dt:not(:first-of-type),
.cert-panel__meta dd:not(:first-of-type) { border-top: 1px solid rgba(255, 255, 255, .07); }

/* Geltungsbereich: voller Wortlaut, deshalb als eigener Block statt als Tabellenzeile */
.cert-panel__scope {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.cert-panel__scope-label {
    margin: 0 0 .35rem;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, .55);
}
.cert-panel__scope-text {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
}

.cert-panel__link {
    margin: var(--space-5) 0 0;
    font-size: var(--fs-sm);
}
.cert-panel__link a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--brand-300);
}
.cert-panel__link a:hover { color: var(--brand-200); }
.cert-panel__link .icon { width: 1em; height: 1em; }

@media (max-width: 479px) {
    .cert-panel__meta { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .cert-panel__meta dt { padding-bottom: 0; }
    .cert-panel__meta dd { text-align: left; padding-top: .15rem; }
    .cert-panel__meta dd:not(:first-of-type) { border-top: 0; }
}

/* --------------------------------------------------------------------------
   8. CTA-Band
   -------------------------------------------------------------------------- */
.cta-band {
    position: relative;
    isolation: isolate;
    padding-block: clamp(3.5rem, 2.4rem + 4vw, 6rem);
    background:
        radial-gradient(ellipse 70% 120% at 15% 0%, rgba(51,168,54,.26), transparent 60%),
        linear-gradient(135deg, var(--ink-800) 0%, var(--ink-950) 100%);
    color: #fff;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
    mask-image: linear-gradient(180deg, #000, transparent);
}
.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
}
.cta-band__text { flex: 1 1 460px; }
.cta-band h2 { color: #fff; margin-bottom: var(--space-4); max-width: 24ch; }
.cta-band p { color: var(--text-invert-muted); max-width: 56ch; margin-bottom: 0; }
.cta-band .btn-row { flex: 0 1 auto; }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink-950);
    color: rgba(255,255,255,.68);
    padding-top: clamp(3.5rem, 2.4rem + 3.4vw, 5.5rem);
    font-size: var(--fs-sm);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 1.8rem + 2.4vw, 3.5rem);
}
@media (max-width: 991px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 559px) { .footer-grid { grid-template-columns: minmax(0,1fr); } }

.footer-brand .brand { margin: 0 0 var(--space-5); }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-word span { color: var(--brand-400); }
.footer-brand .brand-claim { color: rgba(255,255,255,.5); }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 34ch; margin-bottom: var(--space-5); }

.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; }

.site-footer h2 {
    margin-bottom: var(--space-5);
    font-size: .8rem;
    font-weight: 640;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .7rem; }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: var(--brand-300); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
}
.footer-contact .icon {
    width: 1.05rem; height: 1.05rem;
    margin-top: .25rem;
    flex: none;
    color: var(--brand-400);
}
.footer-contact address { font-style: normal; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-6);
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.5);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   10. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }

/* --------------------------------------------------------------------------
   11. Icons & Animation
   -------------------------------------------------------------------------- */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Scroll-Reveal */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-1 { transition-delay: .08s; }
.js .reveal-2 { transition-delay: .16s; }
.js .reveal-3 { transition-delay: .24s; }
.js .reveal-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
    .site-header, .nav-backdrop, .cta-band, .site-footer, .skip-link { display: none !important; }
    body { color: #000; }
    .dark-band, .section--dark { background: #fff !important; color: #000 !important; }
    .dark-band h1, .section--dark h2, .page-hero h1, .page-hero p { color: #000 !important; }
}
