/* ============================================================
   OpenNIT-Webseite – zentrales Stylesheet
   Design-Tokens, helles & dunkles Farbschema, alle Komponenten.
   Keine externen Abhängigkeiten (System-Fonts, kein CDN).
   ============================================================ */

/* ---------- Selbst gehosteter Variable Font (Inter, SIL OFL) ---------- */
@font-face {
    font-family: 'InterVariable';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'InterVariable';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design-Tokens ---------- */
:root {
    /* Marken-Farben */
    --blue-500: #2b76c4;
    --blue-600: #24629f;
    --sky-400:  #38bdf8;
    --navy-900: #0b1220;
    --navy-800: #101b30;
    --navy-700: #16233d;
    --red-500:  #e74c3c;

    /* Helles Schema (Default) */
    --bg:          #f7f9fc;
    --bg-alt:      #eef2f8;
    --bg-card:     #ffffff;
    --bg-code:     #0f1a2e;
    --fg:          #1a2537;
    --fg-muted:    #51607a;
    --fg-soft:     #5a6a85;
    --border:      #dbe3ee;
    --border-soft: #e7edf5;
    --accent:      var(--blue-500);
    --accent-strong: var(--blue-600);
    --accent-soft: #e3effb;
    --code-fg:     #d4e2f4;
    --danger:      #c0392b;
    --success:     #0f7343;
    --warn-bg:     #fdf6e4;
    --warn-border: #eed9a1;
    --info-bg:     #e9f2fc;
    --info-border: #bcd7f2;
    --danger-bg:   #fdecea;
    --danger-border:#f2c3bd;
    --shadow-sm: 0 1px 2px rgba(15, 30, 60, .06);
    --shadow-md: 0 6px 24px -8px rgba(15, 30, 60, .14);
    --shadow-lg: 0 24px 60px -20px rgba(15, 30, 60, .25);
    --radius: 14px;
    --radius-sm: 9px;

    /* Fluid-Typografie */
    --fs-0: clamp(.83rem, .8rem + .1vw, .9rem);
    --fs-1: clamp(.95rem, .9rem + .2vw, 1.05rem);
    --fs-2: clamp(1.05rem, 1rem + .3vw, 1.2rem);
    --fs-3: clamp(1.25rem, 1.15rem + .5vw, 1.55rem);
    --fs-4: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
    --fs-5: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);

    color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'InterVariable', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--fs-1);
    line-height: 1.65;
    color: var(--fg);
    background: var(--bg);
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 750; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-5); }
h2 { font-size: var(--fs-4); }
h3, .h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }
p { margin: 0 0 1em; }
code {
    font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: .88em;
    background: var(--accent-soft);
    color: var(--accent-strong);
    padding: .1em .4em;
    border-radius: 5px;
}
pre {
    background: var(--bg-code);
    color: var(--code-fg);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    margin: 0 0 1.25rem;
}
pre code { background: none; color: inherit; padding: 0; font-size: .86rem; line-height: 1.55; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wrap-narrow { max-width: 860px; }
.wrap-guide { max-width: 900px; }
.center { text-align: center; }
.text-danger { color: var(--danger); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--accent-strong); color: #fff; padding: .6rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Beta-Banner ---------- */
.beta-banner {
    background: linear-gradient(90deg, var(--navy-800), var(--navy-700));
    color: #dbe7f5;
    font-size: var(--fs-0);
    text-align: center;
    padding: .45rem 1rem;
}
.beta-banner p { margin: 0; }
.beta-banner a { color: var(--sky-400); font-weight: 600; }

/* ---------- Header / Navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
/* Wortmarke in den offiziellen Logo-Farben: „Open" Blau, „NIT" Grün */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #0a4e8c; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand img { border-radius: 6px; }
.brand-accent { color: #329042; }
.site-footer .brand { color: #cfe3f7; }
.site-footer .brand-accent { color: #6fcb84; }
.main-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
    display: block; padding: .45rem .7rem; border-radius: 8px; white-space: nowrap;
    color: var(--fg-muted); text-decoration: none; font-weight: 550; font-size: var(--fs-0);
}
.main-nav ul a:hover { color: var(--fg); background: var(--bg-alt); }
.main-nav ul a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-burger {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg-card); cursor: pointer; padding: 10px;
    flex-direction: column; justify-content: space-between;
}
.nav-burger span { display: block; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Buttons & Badges ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
    font-weight: 650; font-size: var(--fs-1); line-height: 1.3;
    text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: #fff; box-shadow: 0 4px 14px -4px rgba(47, 127, 209, .55);
}
.btn-primary:hover { filter: brightness(1.07); color: #fff; box-shadow: 0 6px 18px -4px rgba(47, 127, 209, .65); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
/* Ghost-Buttons auf dauerhaft dunklen Flächen brauchen helle Schrift – unabhängig vom Theme */
.hero .btn-ghost, .subhero .btn-ghost, .cta-band .btn-ghost, .secband .btn-ghost {
    color: #dbe7f5; border-color: rgba(159, 197, 234, .45);
}
.hero .btn-ghost:hover, .subhero .btn-ghost:hover, .cta-band .btn-ghost:hover, .secband .btn-ghost:hover {
    color: #fff; border-color: var(--sky-400); background: rgba(56, 189, 248, .12);
}
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: #eaf2fb; color: var(--navy-900); }
.btn-lg { padding: .8rem 1.6rem; font-size: var(--fs-2); }
.btn-sm { padding: .4rem .9rem; font-size: var(--fs-0); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0; }
.btn-row.center { justify-content: center; }

.badge {
    display: inline-block; font-size: .68em; font-weight: 700; letter-spacing: .04em;
    padding: .2em .6em; border-radius: 999px; vertical-align: middle; text-transform: uppercase;
}
.badge-beta { background: var(--red-500); color: #fff; }
.badge-new { background: var(--accent-soft); color: var(--accent-strong); }
h1 .badge { font-size: 1rem; transform: translateY(-.35em); display: inline-block; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(56, 189, 248, .18), transparent 60%),
        radial-gradient(800px 400px at -10% 40%, rgba(47, 127, 209, .22), transparent 55%),
        linear-gradient(180deg, var(--navy-900), var(--navy-800));
    color: #e8eef7;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-0); font-weight: 650; color: #9fc5ea; border: 1px solid rgba(159, 197, 234, .35); border-radius: 999px; padding: .3rem .9rem; margin-bottom: 1.25rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero h1 { color: #fff; margin-bottom: .4em; }
.grad {
    background: linear-gradient(90deg, var(--sky-400), #7dd3fc 55%, #a5b4fc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: #b9c7dc; }
.hero .lede a { color: var(--sky-400); }
.lede { font-size: var(--fs-2); max-width: 46ch; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: var(--fs-0); color: #9fb3c8; font-weight: 600; }
.hero-checks li::before { content: "✓ "; color: #34d399; font-weight: 800; }
.hero-shot .browser-frame {
    border-radius: var(--radius);
    border: 1px solid rgba(159, 197, 234, .25);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: #1c2a44;
}
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .9rem; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4d70; }
.browser-bar span:nth-child(1) { background: #e0655a; }
.browser-bar span:nth-child(2) { background: #e5b94f; }
.browser-bar span:nth-child(3) { background: #58bf6f; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.kpi {
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(159, 197, 234, .18);
    border-radius: var(--radius-sm); padding: 1rem 1.2rem; text-align: center;
}
.kpi strong { display: block; font-size: var(--fs-3); color: #fff; letter-spacing: -.02em; }
.kpi strong span { color: var(--sky-400); }
.kpi small { color: #9fb3c8; font-size: var(--fs-0); }

/* ---------- Sektionen ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section[id], h2[id], h3[id] { scroll-margin-top: 84px; }
.section-alt { background: var(--bg-alt); }
.kicker {
    text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 750;
    color: var(--accent-strong); margin: 0 0 .6rem;
}
.section-lede { color: var(--fg-muted); font-size: var(--fs-2); max-width: 62ch; margin-bottom: 2rem; }
.section-cta { margin-top: 2rem; }

/* ---------- Karten ---------- */
.card-grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border); }
.card h3 { margin-bottom: .5rem; font-size: var(--fs-2); }
.card p:last-child { margin-bottom: 0; }
.card-num { font-size: .8rem; font-weight: 800; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: .75rem; }
.card-icon .icon { font-size: 1.7rem; display: block; margin-bottom: .75rem; }
.card-note { color: var(--fg-soft); font-size: var(--fs-0); margin-top: 1rem; }
.card-new { border-top: 3px solid var(--accent); }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding: .3rem 0 .3rem 1.6rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .3rem; color: var(--accent); font-weight: 800; }

/* ---------- Tool-Zoo ---------- */
.zoo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.zoo-item {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
    padding: .9rem 1.2rem;
}
.zoo-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.zoo-tools span {
    background: var(--bg-alt); border: 1px solid var(--border-soft); color: var(--fg-muted);
    border-radius: 999px; padding: .15rem .7rem; font-size: var(--fs-0);
}
.zoo-arrow { color: var(--accent); font-weight: 800; }
.zoo-target { color: var(--fg); }
.zoo-more { margin-top: 1.5rem; color: var(--fg-muted); }

/* ---------- Showcases ---------- */
.showcase {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}
.showcase-flip .showcase-shot { order: 2; }
.showcase-shot img {
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow-md); cursor: zoom-in;
}
.showcase-copy h3 { font-size: var(--fs-3); }

/* ---------- Screenshot-Galerie ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.shot {
    margin: 0; background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; cursor: zoom-in; width: 100%; }
.shot figcaption { padding: .7rem .9rem .8rem; font-size: var(--fs-0); }
.shot figcaption strong { display: block; }
.shot figcaption span { color: var(--fg-soft); }

/* ---------- Integrationen ---------- */
.int-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.int-group { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.int-group h3 { font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-soft); margin-bottom: .6rem; }
.int-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.int-group li {
    background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: 999px;
    padding: .15rem .7rem; font-size: var(--fs-0); color: var(--fg-muted);
}

/* ---------- Tabellen ---------- */
.spec-table { width: 100%; font-size: var(--fs-0); }
.spec-table th, .spec-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--border-soft); }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table th[scope="row"] { color: var(--fg-muted); font-weight: 600; width: 40%; }
.spec-table thead th { color: var(--fg-soft); text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }

/* ---------- Installation / Steps ---------- */
.install-cta {
    display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
    color: #eaf2fb; border-radius: var(--radius); padding: 1.8rem 2rem; margin: 2rem 0;
    box-shadow: var(--shadow-md);
}
.install-cta h2, .install-cta h3 { color: #fff; margin-bottom: .4rem; }
.install-cta p { margin: 0; color: #c9d9ec; max-width: 60ch; }
.install-cta a:not(.btn) { color: #fff; }
.install-cta-actions { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.install-cta-actions small { color: #a7bcd6; white-space: nowrap; }
.install-cta code { background: rgba(255,255,255,.15); color: #fff; }

.steps { list-style: none; counter-reset: step; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
/* Formular-Bereich rückt von vorangehenden Inhalten sichtbar ab */
* + .form-layout { margin-top: clamp(2rem, 4vw, 3rem); }
.steps li {
    counter-increment: step; background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 1.4rem 1.5rem; position: relative;
}
.steps li::before {
    content: counter(step);
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-strong); font-weight: 800;
    margin-bottom: .8rem;
}
.steps h3 { font-size: var(--fs-1); margin-bottom: .3rem; }
.steps p { font-size: var(--fs-0); color: var(--fg-muted); margin: 0; }
.steps-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Modul-Wolke ---------- */
.module-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.module-cloud li {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
    padding: .4rem 1rem; font-weight: 600; font-size: var(--fs-0); color: var(--fg-muted);
    transition: border-color .15s, color .15s, transform .15s;
}
.module-cloud li:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }

/* ---------- Hash-Chain ---------- */
.chain { display: flex; align-items: stretch; gap: .75rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.chain-item {
    flex: 1 1 220px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .25rem;
}
.chain-item strong { font-size: var(--fs-1); }
.chain-item span { color: var(--fg-soft); font-size: var(--fs-0); margin-bottom: .35rem; }
.chain-item code { font-size: .78rem; align-self: flex-start; }
.chain-arrow { align-self: center; color: var(--accent); font-size: 1.5rem; font-weight: 800; }
.chain-note { color: var(--fg-muted); max-width: 70ch; }

/* ---------- Sicherheits-Band ---------- */
.secband {
    background:
        radial-gradient(800px 400px at 90% 0%, rgba(56, 189, 248, .12), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-800));
    color: #e8eef7;
}
.secband h2 { color: #fff; }
.secband .section-lede { color: #b9c7dc; }
.card-dark {
    background: rgba(255, 255, 255, .05); border-color: rgba(159, 197, 234, .18);
    color: #dbe7f5; box-shadow: none;
}
.card-dark h3 { color: #fff; }
.card-dark p { color: #b9c7dc; }
.card-dark .kicker { color: var(--sky-400); }
.card-dark:hover { border-color: rgba(159, 197, 234, .4); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
    padding: 0; overflow: hidden;
}
.faq-item summary {
    cursor: pointer; font-weight: 650; padding: 1rem 1.3rem; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.3rem 1.1rem; margin: 0; color: var(--fg-muted); }

/* ---------- CTA-Band ---------- */
.cta-band {
    background:
        radial-gradient(700px 350px at 50% -20%, rgba(56, 189, 248, .16), transparent 60%),
        linear-gradient(180deg, var(--navy-800), var(--navy-900));
    color: #e8eef7;
}
.cta-band h2 { color: #fff; }
.cta-band .section-lede { color: #b9c7dc; margin-inline: auto; }

/* ---------- Subhero (Unterseiten) ---------- */
.subhero {
    background:
        radial-gradient(700px 300px at 90% -30%, rgba(56, 189, 248, .15), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-800));
    color: #e8eef7;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.subhero h1 { color: #fff; }
.subhero .lede { color: #b9c7dc; max-width: 62ch; }
.subhero .lede a { color: var(--sky-400); }
.breadcrumb { font-size: var(--fs-0); color: #8ea3bd; margin-bottom: 1.2rem; }
.breadcrumb a { color: #9fc5ea; }
.breadcrumb span[aria-hidden] { margin-inline: .3rem; }

/* ---------- Formulare ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem; align-items: start; }
.form-aside { display: grid; gap: 1.25rem; position: sticky; top: 90px; }
.form-card {
    background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 1.8rem 2rem; box-shadow: var(--shadow-md);
}
.form-card h3 { margin-bottom: 1.2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-weight: 650; font-size: var(--fs-0); margin-bottom: .35rem; }
.form-group label small { color: var(--fg-soft); font-weight: 500; }
.req { color: var(--danger); }
.form-control {
    width: 100%; padding: .6rem .8rem; font: inherit; font-size: var(--fs-1);
    color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form-control::placeholder { color: var(--fg-soft); opacity: .8; }
textarea.form-control { resize: vertical; min-height: 2.5rem; }
select.form-control { appearance: auto; }
.form-check { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .9rem; }
.form-check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex-shrink: 0; }
.form-check label { font-size: var(--fs-0); color: var(--fg-muted); }
.form-hint { font-size: var(--fs-0); color: var(--fg-soft); margin: .75rem 0 0; }
.copy-ok { color: var(--success); font-weight: 700; font-size: var(--fs-0); }

.notice { border-radius: var(--radius-sm); padding: 1rem 1.3rem; margin: 1.25rem 0; border: 1px solid; }
.notice h4 { margin-bottom: .4rem; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice ul { margin: .5rem 0 1rem; padding-left: 1.2rem; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-border); }
.notice-info { background: var(--info-bg); border-color: var(--info-border); }
.notice-danger, .card.notice-danger { background: var(--danger-bg); border-color: var(--danger-border); }

/* ---------- Installations-Guide ---------- */
.toc { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.3rem 1.6rem; margin: 2rem 0; }
.toc ol { columns: 2; gap: 2rem; margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .3rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.guide-sec { display: flex; align-items: center; gap: .8rem; margin-top: 3rem; scroll-margin-top: 90px; }
.sec-mark {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-strong); font-size: 1.05rem; font-weight: 800;
}
.wrap-guide h3 { margin-top: 1.75rem; }
.wrap-guide ul { padding-left: 1.3rem; }
.wrap-guide li { margin-bottom: .35rem; }

/* ---------- Legal ---------- */
.legal h2 { font-size: var(--fs-3); margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb3c8; padding: 3.5rem 0 2rem; font-size: var(--fs-0); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(159, 179, 200, .15); }
.site-footer .brand { color: #fff; }
.footer-claim { margin: 1rem 0; max-width: 40ch; }
.footer-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.footer-tags li { border: 1px solid rgba(159, 179, 200, .3); border-radius: 999px; padding: .15rem .7rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.footer-nav h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #6b8299; margin-bottom: .8rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .4rem; }
.footer-nav a, .footer-bottom a { color: #c3d2e2; text-decoration: none; }
.footer-nav a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.5rem; }
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 300; background: rgba(5, 10, 20, .92);
    display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 95vw); }
.lightbox img { max-height: 85vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #c3d2e2; text-align: center; margin-top: .8rem; font-size: var(--fs-0); }
.lightbox-close {
    position: absolute; top: 1rem; right: 1.2rem; width: 48px; height: 48px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08);
    color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.18); }

/* ---------- Reveal-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Ohne JS bzw. bei reduzierter Bewegung: alles sofort sichtbar */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .card, .shot, .module-cloud li, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .int-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps, .steps-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-shot { order: 2; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .showcase { grid-template-columns: 1fr; }
    .showcase-flip .showcase-shot { order: 0; }
    .form-layout { grid-template-columns: 1fr; }
    .form-aside { position: static; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }

    /* Mobile Navigation */
    .nav-burger { display: flex; }
    .main-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg-card); border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: .75rem 1rem 1rem;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: .1rem; }
    .main-nav ul a { padding: .7rem .8rem; font-size: var(--fs-1); }
    .nav-actions { margin-top: .75rem; justify-content: space-between; }
}
@media (max-width: 640px) {
    .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
    .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .int-grid { grid-template-columns: 1fr 1fr; }
    .zoo-grid { grid-template-columns: 1fr; }
    .steps, .steps-compact { grid-template-columns: 1fr; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .toc ol { columns: 1; }
    .footer-nav { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
    .shot-grid { grid-template-columns: 1fr; }
    .int-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Fancy-Schicht: Aurora, Glow, Tilt, Marquee, Stagger & Shine
   Alle Bewegungen respektieren prefers-reduced-motion.
   ============================================================ */

/* ---------- Aurora-Hintergrund im Hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%;
    filter: blur(90px); opacity: .55; pointer-events: none;
}
.hero::before {
    width: 560px; height: 560px; top: -180px; right: -80px;
    background: radial-gradient(circle, rgba(56, 189, 248, .55), transparent 65%);
    animation: aurora-a 16s ease-in-out infinite alternate;
}
.hero::after {
    width: 480px; height: 480px; bottom: -220px; left: -120px;
    background: radial-gradient(circle, rgba(99, 102, 241, .45), transparent 65%);
    animation: aurora-b 20s ease-in-out infinite alternate;
}
@keyframes aurora-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-90px, 60px, 0) scale(1.15); }
}
@keyframes aurora-b {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(110px, -50px, 0) scale(1.1); }
}
/* Feines Punktraster über dem Hero-Verlauf */
.hero .hero-grid { position: relative; }
.hero-pattern {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(159, 197, 234, .18) 1px, transparent 1.5px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
}

/* ---------- Schwebender Hero-Screenshot mit Glow & Tilt ---------- */
.hero-shot { perspective: 1200px; }
.hero-shot .browser-frame {
    position: relative;
    transform: rotateY(-7deg) rotateX(3deg);
    transition: transform .5s ease;
    will-change: transform;
    animation: float 7s ease-in-out infinite;
}
.hero-shot:hover .browser-frame { transform: rotateY(0deg) rotateX(0deg); }
.hero-shot .browser-frame::after {
    content: ""; position: absolute; inset: -1px; border-radius: var(--radius); z-index: -1;
    background: linear-gradient(135deg, rgba(56, 189, 248, .5), rgba(99, 102, 241, .4));
    filter: blur(28px); opacity: .5;
}
@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

/* ---------- H2-Akzentlinie ---------- */
.section h2, .cta-band h2 { position: relative; padding-bottom: .35em; }
.section h2::after, .cta-band h2::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 64px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--sky-400), var(--blue-500));
}
.center h2::after, .cta-band h2::after { left: 50%; transform: translateX(-50%); }

/* ---------- Karten: Gradient-Kante & Glow beim Hover ---------- */
.card { position: relative; overflow: hidden; }
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--sky-400), var(--blue-500), #818cf8);
    opacity: 0; transition: opacity .25s;
}
.card:hover::before { opacity: 1; }
.card-icon .icon {
    width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-soft), #eef2ff);
    border: 1px solid var(--border-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* ---------- KPI-Zähler ---------- */
.kpi { position: relative; overflow: hidden; }
.kpi::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--sky-400), transparent);
    opacity: .6;
}

/* ---------- Modul-Marquee ---------- */
.marquee { overflow: hidden; position: relative; padding-block: .5rem;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee + .marquee { margin-top: .4rem; }
.marquee + .marquee .marquee-track { animation-direction: reverse; animation-duration: 52s; }
/* Beide Hälften exakt gleich breit halten, damit die Schleife nahtlos ist */
.marquee .module-cloud { flex-wrap: nowrap; padding-right: .6rem; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Hash-Chain: pulsierende Verkettung ---------- */
.chain-arrow { animation: chain-pulse 2.4s ease-in-out infinite; }
.chain-arrow:nth-of-type(2) { animation-delay: 1.2s; }
@keyframes chain-pulse {
    0%, 100% { opacity: .45; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}
.chain-item { transition: transform .2s, box-shadow .2s, border-color .2s; }
.chain-item:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }

/* ---------- Header: Schatten nach dem Scrollen ---------- */
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(15, 30, 60, .18); }

/* ---------- Primär-Button: Shine-Sweep ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg); transition: left .5s ease;
}
.btn-primary:hover::after { left: 130%; }

/* ---------- Gestaffelte Reveal-Verzögerung in Rastern ---------- */
.card-grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: .08s; }
.card-grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: .16s; }
.card-grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: .24s; }
.card-grid > .reveal:nth-child(5) { transition-delay: .32s; }
.card-grid > .reveal:nth-child(6) { transition-delay: .4s; }
.shot-grid > .reveal:nth-child(4n+2) { transition-delay: .07s; }
.shot-grid > .reveal:nth-child(4n+3) { transition-delay: .14s; }
.shot-grid > .reveal:nth-child(4n+4) { transition-delay: .21s; }

/* ---------- Reduzierte Bewegung: alle Fancy-Animationen aus ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after,
    .hero-shot .browser-frame,
    .marquee-track,
    .chain-arrow { animation: none; }
    .hero-shot .browser-frame { transform: none; }
    .btn-primary::after { display: none; }
    .card-grid > .reveal, .steps > .reveal, .shot-grid > .reveal { transition-delay: 0s; }
}

/* ============================================================
   State-of-the-Art-Schicht: View Transitions, Scroll-Timeline,
   Grain-Textur, Bento-Grid, animiertes Live-Dashboard im Hero.
   ============================================================ */

/* ---------- Sanfte Übergänge zwischen Seiten (progressive enhancement) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Scroll-Fortschrittsbalken ---------- */
@supports (animation-timeline: scroll()) {
    .scroll-progress {
        position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150;
        background: linear-gradient(90deg, var(--sky-400), var(--blue-500), #818cf8);
        transform-origin: 0 50%; transform: scaleX(0);
        animation: scroll-grow linear both;
        animation-timeline: scroll(root);
        pointer-events: none;
    }
    @keyframes scroll-grow { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) {
    .scroll-progress { display: none; }
}

/* ---------- Scroll-gekoppelte Parallaxe für Showcase-Bilder ---------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .showcase-shot img {
            animation: shot-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 80%;
        }
        @keyframes shot-rise {
            from { transform: translateY(36px) scale(.97); opacity: .4; }
            to   { transform: translateY(0) scale(1); opacity: 1; }
        }
    }
}

/* ---------- Grain-Textur auf dunklen Bühnenflächen ---------- */
.hero, .secband, .cta-band, .subhero { position: relative; }
.grain-layer, .subhero::after, .secband::after, .cta-band::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .35; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.5'/></svg>");
}
.hero > .wrap, .secband > .wrap, .cta-band > .wrap, .subhero > .wrap { position: relative; z-index: 1; }

/* ---------- Bento-Grid („Warum OpenNIT") ---------- */
.bento {
    display: grid; gap: 1.1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, auto);
}
.bento-tile {
    background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 1.4rem 1.5rem; position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bento-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border); }
.bento-tile h3 { font-size: var(--fs-2); margin-bottom: .35rem; }
.bento-tile p { color: var(--fg-muted); font-size: var(--fs-0); margin: 0; }
.bento-a { grid-column: span 2; grid-row: span 2; }
.bento-b { grid-column: span 2; }
.bento-visual { margin-top: auto; padding-top: 1rem; }

/* Kachel A: Mini-Hash-Chain */
.bt-chain { display: grid; gap: .5rem; }
.bt-block {
    display: flex; align-items: center; gap: .7rem;
    background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: 10px;
    padding: .55rem .8rem; font-size: .78rem;
}
.bt-block code { font-size: .72rem; }
.bt-block .bt-ok { margin-left: auto; color: var(--success); font-weight: 800; }
.bt-link { display: flex; justify-content: center; color: var(--accent); font-weight: 800; line-height: .6; animation: chain-pulse 2.4s ease-in-out infinite; }

/* Kachel B: Modul-Chips */
.bt-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bt-chips span {
    background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: 999px;
    padding: .15rem .65rem; font-size: .74rem; color: var(--fg-muted); font-weight: 600;
}
.bt-chips span.on { background: var(--accent-soft); color: var(--accent-strong); border-color: #bcd7f2; }

/* Kachel: Compliance-Badges */
.bt-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.bt-badges span {
    border: 1px solid var(--border); border-radius: 8px; padding: .3rem .6rem;
    font-size: .74rem; font-weight: 750; color: var(--fg-muted); letter-spacing: .04em;
}

/* Kachel: Schalter */
.bt-switches { display: grid; gap: .45rem; font-size: .78rem; color: var(--fg-muted); }
.bt-switch { display: flex; align-items: center; gap: .6rem; }
.bt-switch i {
    width: 30px; height: 17px; border-radius: 999px; background: var(--border); position: relative; flex-shrink: 0;
    transition: background .2s;
}
.bt-switch i::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%;
    background: #fff; box-shadow: var(--shadow-sm); transition: left .2s;
}
.bt-switch.on i { background: var(--accent); }
.bt-switch.on i::after { left: 15px; }

/* ---------- Live-Dashboard im Hero ---------- */
.hd { background: #f4f7fb; color: #2b3a52; font-size: 10.5px; line-height: 1.45; display: grid; grid-template-columns: 132px 1fr; min-height: 330px; text-align: left; }
.hd * { box-sizing: border-box; }
.hd-side { background: #16233d; color: #aebedb; padding: .7rem .6rem; display: flex; flex-direction: column; gap: .15rem; }
.hd-side-brand { display: flex; align-items: center; gap: .4rem; color: #fff; font-weight: 700; font-size: 11px; margin-bottom: .5rem; }
.hd-side-brand img { width: 16px; height: 16px; border-radius: 4px; }
.hd-nav-item { display: flex; align-items: center; gap: .45rem; padding: .3rem .45rem; border-radius: 6px; white-space: nowrap; }
.hd-nav-item .dot { width: 6px; height: 6px; border-radius: 2px; background: #5d7194; flex-shrink: 0; }
.hd-nav-item.on { background: rgba(56, 189, 248, .16); color: #fff; }
.hd-nav-item.on .dot { background: var(--sky-400); }
.hd-main { padding: .8rem .9rem; display: grid; gap: .7rem; align-content: start; }
.hd-title { font-weight: 750; color: #1a2537; font-size: 12px; display: flex; align-items: center; gap: .5rem; }
.hd-title .hd-pill { margin-left: auto; }
.hd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.hd-kpi { background: #fff; border: 1px solid #e3e9f2; border-radius: 8px; padding: .5rem .6rem; }
.hd-kpi strong { display: block; font-size: 15px; color: #1a2537; }
.hd-kpi small { color: #74839c; font-size: 9px; }
.hd-kpi .up { color: #0f7343; }
.hd-kpi .warn { color: #b45309; }
.hd-list { background: #fff; border: 1px solid #e3e9f2; border-radius: 8px; overflow: hidden; }
.hd-row { display: flex; align-items: center; gap: .5rem; padding: .42rem .6rem; border-bottom: 1px solid #eef2f7; color: #3b4a63; }
.hd-row:last-child { border-bottom: 0; }
.hd-row .hd-id { color: #8d9cb4; font-size: 9px; flex-shrink: 0; }
.hd-row .hd-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-pill { border-radius: 999px; padding: .1rem .5rem; font-size: 8.5px; font-weight: 750; flex-shrink: 0; margin-left: auto; }
.hd-pill-new { background: #e3effb; color: #24629f; }
.hd-pill-open { background: #fdf6e4; color: #92610c; }
.hd-pill-ok { background: #e5f5ec; color: #0f7343; }
.hd-pill-crit { background: #fdecea; color: #b03024; }
.hd-bars { background: #fff; border: 1px solid #e3e9f2; border-radius: 8px; padding: .55rem .7rem; }
.hd-bars small { color: #74839c; font-size: 9px; }
.hd-bar-row { display: flex; align-items: flex-end; gap: .35rem; height: 42px; margin-top: .4rem; }
.hd-bar { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #38bdf8, #2b76c4); transform-origin: bottom; }

/* Choreografie: Zeilen laufen nacheinander ein und die Szene wiederholt sich */
@media (prefers-reduced-motion: no-preference) {
    .hd-row { opacity: 0; animation: hd-in 14s ease-out infinite; }
    .hd-row:nth-child(1) { animation-delay: .4s; }
    .hd-row:nth-child(2) { animation-delay: 1.3s; }
    .hd-row:nth-child(3) { animation-delay: 2.2s; }
    .hd-row:nth-child(4) { animation-delay: 3.1s; }
    @keyframes hd-in {
        0% { opacity: 0; transform: translateY(7px); }
        4%, 88% { opacity: 1; transform: translateY(0); }
        94%, 100% { opacity: 0; }
    }
    .hd-bar { animation: hd-grow 14s ease-in-out infinite; }
    .hd-bar:nth-child(2) { animation-delay: .15s; }
    .hd-bar:nth-child(3) { animation-delay: .3s; }
    .hd-bar:nth-child(4) { animation-delay: .45s; }
    .hd-bar:nth-child(5) { animation-delay: .6s; }
    .hd-bar:nth-child(6) { animation-delay: .75s; }
    .hd-bar:nth-child(7) { animation-delay: .9s; }
    @keyframes hd-grow {
        0% { transform: scaleY(.1); }
        8%, 90% { transform: scaleY(1); }
        97%, 100% { transform: scaleY(.1); }
    }
    .hd-pill-crit { animation: hd-blink 2.2s ease-in-out infinite; }
    @keyframes hd-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
}

/* ---------- Responsive für Bento & Dashboard ---------- */
@media (max-width: 920px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento-a { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; }
    .bento-a, .bento-b { grid-column: span 1; }
    .hd { grid-template-columns: 1fr; }
    .hd-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .hd-side-brand { margin-bottom: 0; }
    .hd-nav-item { padding: .25rem .4rem; }
}

/* ============================================================
   Wiki: zweispaltiges Layout, Sidebar-Navigation, Artikel-Typografie
   ============================================================ */
.subhero-slim { padding: clamp(1.8rem, 3.5vw, 2.8rem) 0; }
.wiki-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.wiki-sidebar { position: sticky; top: 84px; }
.wiki-search-label { display: block; font-weight: 650; font-size: var(--fs-0); margin-bottom: .4rem; }
.wiki-nav { margin-top: 1.2rem; max-height: calc(100vh - 200px); overflow-y: auto; padding-right: .3rem; }
.wiki-nav-group h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-soft); margin: 1.2rem 0 .4rem; }
.wiki-nav-group:first-child h2 { margin-top: 0; }
.wiki-nav ul { list-style: none; margin: 0; padding: 0; }
.wiki-nav a {
    display: block; padding: .35rem .6rem; border-radius: 7px; text-decoration: none;
    color: var(--fg-muted); font-size: var(--fs-0); border-left: 2px solid transparent;
}
.wiki-nav a:hover { background: var(--bg-alt); color: var(--fg); }
.wiki-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; border-left-color: var(--accent); }
.wiki-nav-empty { color: var(--fg-soft); font-size: var(--fs-0); }

.wiki-cat-title { font-size: var(--fs-3); margin: 2rem 0 1rem; }
.wiki-main > .wiki-cat-title:first-child { margin-top: 0; }
.wiki-card { display: block; text-decoration: none; color: inherit; }
.wiki-card h3 { color: var(--accent-strong); }
.wiki-card p { color: var(--fg-muted); font-size: var(--fs-0); }
.wiki-card-more { color: var(--accent); font-weight: 650; font-size: var(--fs-0); }
.wiki-card-grid { margin-bottom: 2rem; }

.wiki-toc { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: .9rem 1.2rem; margin-bottom: 1.8rem; }
.wiki-toc summary { cursor: pointer; font-weight: 700; }
.wiki-toc ol { margin: .6rem 0 0; padding-left: 1.3rem; columns: 2; gap: 2rem; }
.wiki-toc li { margin-bottom: .25rem; }
.wiki-toc a { text-decoration: none; }
.wiki-toc a:hover { text-decoration: underline; }

/* Artikel-Typografie */
.wiki-content { max-width: 75ch; }
.wiki-content h2 { font-size: var(--fs-3); margin-top: 2.4rem; scroll-margin-top: 90px; padding-bottom: .3em; border-bottom: 1px solid var(--border-soft); }
.wiki-content h3 { font-size: var(--fs-2); margin-top: 1.8rem; scroll-margin-top: 90px; }
.wiki-content h4 { margin-top: 1.4rem; scroll-margin-top: 90px; }
.wiki-content ul, .wiki-content ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.wiki-content li { margin-bottom: .3rem; }
.wiki-content blockquote {
    margin: 1.2rem 0; padding: .7rem 1.2rem; border-left: 4px solid var(--accent);
    background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--fg-muted);
}
.wiki-content blockquote p { margin: 0; }
.wiki-content img { border-radius: var(--radius-sm); border: 1px solid var(--border-soft); }
.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: var(--fs-0); }
.table-scroll th, .table-scroll td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.table-scroll thead th { background: var(--bg-alt); color: var(--fg-muted); font-weight: 700; white-space: nowrap; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }

.wiki-article-footer { margin-top: 3rem; border-top: 1px solid var(--border-soft); padding-top: 1.2rem; }
.wiki-updated { color: var(--fg-soft); font-size: var(--fs-0); }
.wiki-feedback { color: var(--fg-muted); font-size: var(--fs-0); margin-top: .3rem; }
.wiki-pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wiki-pager a { text-decoration: none; font-weight: 650; }
.wiki-pager-next { margin-left: auto; }

/* Verwandte Artikel derselben Kategorie */
.wiki-related { margin: 1.6rem 0 1.8rem; }
.wiki-related h2 { font-size: var(--fs-1); margin-bottom: .7rem; }
.wiki-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.wiki-related a {
    display: block; padding: .7rem .9rem; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
    background: var(--bg-card); text-decoration: none; color: inherit; height: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wiki-related a:hover { border-color: var(--accent); box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.06)); }
.wiki-related strong { display: block; color: var(--accent-strong); font-size: var(--fs-0); }
.wiki-related span { display: block; color: var(--fg-soft); font-size: .8rem; margin-top: .15rem; }

/* Direktlink-Anker an Überschriften (erst beim Hover sichtbar) */
.h-anchor { text-decoration: none; color: var(--fg-soft); opacity: 0; font-weight: 400; transition: opacity .15s ease; }
.wiki-content h2:hover .h-anchor, .wiki-content h3:hover .h-anchor, .wiki-content h4:hover .h-anchor,
.h-anchor:focus-visible { opacity: 1; }
.h-anchor:hover { color: var(--accent); }

/* Kopieren-Button an Code-Blöcken */
.wiki-content pre { position: relative; }
.code-copy {
    position: absolute; top: .5rem; right: .5rem; padding: .25rem .6rem;
    font: inherit; font-size: .74rem; font-weight: 650; cursor: pointer;
    color: var(--fg-muted); background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm); opacity: 0; transition: opacity .15s ease, color .15s ease;
}
.wiki-content pre:hover .code-copy, .code-copy:focus-visible { opacity: 1; }
.code-copy:hover { color: var(--accent-strong); }
.code-copy.copied { color: var(--ok, #1a7f37); opacity: 1; }
@media (hover: none) { .code-copy { opacity: 1; } }

/* Treffer der Volltextsuche, deren Titel nicht passt */
.wiki-nav li.hit-text a::after { content: " · im Text"; color: var(--fg-soft); font-size: .72rem; }

@media (max-width: 920px) {
    .wiki-layout { grid-template-columns: 1fr; }
    .wiki-sidebar { position: static; }
    .wiki-nav { max-height: none; }
    .wiki-toc ol { columns: 1; }
    .wiki-related ul { grid-template-columns: 1fr; }
}

/* ---------- Changelog-Seite ---------- */
.changelog { list-style: none; margin: 0 0 2rem; padding: 0; }
.cl-release { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--bg-card); margin-bottom: .8rem; }
.cl-release > details > summary {
    display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
    padding: .8rem 1.1rem; cursor: pointer; list-style: none;
}
.cl-release > details > summary::-webkit-details-marker { display: none; }
.cl-release > details > summary::before { content: "▸"; color: var(--fg-soft); transition: transform .15s ease; }
.cl-release > details[open] > summary::before { transform: rotate(90deg); }
.cl-version { font-weight: 750; }
.cl-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-left: auto; }
.cl-badge { font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; border: 1px solid transparent; }
.cl-badge-add        { background: #e5f5ec; color: var(--success); border-color: #bfe6d0; }
.cl-badge-change     { background: var(--info-bg); color: var(--accent-strong); border-color: var(--info-border); }
.cl-badge-fix        { background: var(--warn-bg); color: #8a6410; border-color: var(--warn-border); }
.cl-badge-sec        { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.cl-badge-removed,
.cl-badge-deprecated { background: var(--bg-alt); color: var(--fg-muted); border-color: var(--border-soft); }
.cl-release details > h2, .cl-release details > ul { margin-left: 1.1rem; margin-right: 1.1rem; }
.cl-cat { font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .06em; margin: 1rem 1.1rem .4rem; }
.cl-cat-add { color: var(--success); }
.cl-cat-change { color: var(--accent-strong); }
.cl-cat-fix { color: #8a6410; }
.cl-cat-sec { color: var(--danger); }
.cl-cat-removed, .cl-cat-deprecated { color: var(--fg-muted); }
.cl-release details > ul { padding-left: 2.3rem; margin-bottom: 1rem; }
.cl-release details > ul li { margin-bottom: .35rem; font-size: var(--fs-0); }
.cl-source { color: var(--fg-soft); font-size: var(--fs-0); margin-top: -0.6rem; }

/* API-Referenz: Methoden-Badges im Swagger-Stil */
.http-method {
    display: inline-block; min-width: 3.6em; text-align: center;
    padding: .12rem .5rem; border-radius: var(--radius-sm);
    font-size: .72rem; font-weight: 800; letter-spacing: .04em;
    color: #fff; vertical-align: middle; transform: translateY(-1px);
}
.m-get     { background: var(--accent-strong); }
.m-post    { background: var(--success); }
.m-put, .m-patch { background: #b07508; }
.m-delete  { background: var(--danger); }
.m-options { background: var(--fg-soft); }
.api-path { background: none; padding: 0; font-size: .95em; word-break: break-all; }
.wiki-content h4 .api-path { font-weight: 650; }
