/* =========================================
   Theme „Enterprise Dark“: schwarze Grundfläche, Bänder in Mitternachtsblau,
   Blau als Akzentfarbe. Liegt über style.css / demos.css und wird zuletzt geladen.
   ========================================= */

:root {
    --t-black: #0B1426;
    --t-navy: #11255A;
    --t-navy-2: #16306F;
    --t-card: #111D38;
    --t-line: #24365E;
    --t-line-strong: #3A5186;
    --t-ink: #FFFFFF;
    --t-text: #B9C2D0;
    --t-blue: #2563EB;
    --t-blue-dark: #1D4ED8;
    --t-blue-light: #60A5FA;
    --t-blue-soft: rgba(59, 130, 246, 0.14);
}

/* ---------- Grundlage ---------- */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--t-black);
    color: var(--t-text);
}

body::before,
body::after {
    display: none !important;
    animation: none !important;
}

body * {
    text-shadow: none !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--t-ink);
    letter-spacing: -0.015em;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    line-height: 1.2;
    text-wrap: balance;
}

.text-muted,
.process-lead {
    color: var(--t-text);
}

p.text-muted {
    font-size: 1.08rem;
    line-height: 1.7;
}

a {
    color: var(--t-blue-light);
}

/* Hervorhebung: klares Hellblau statt Verlauf */
.text-gradient {
    margin: 0;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    color: var(--t-blue-light);
    filter: none;
    animation: none !important;
}

/* Kleine blaue Überschrift über jeder großen Überschrift */
.section-kicker {
    display: block;
    padding: 0;
    margin-bottom: 1rem;
    border: none;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.section-kicker span,
.section-kicker span:last-child {
    color: var(--t-blue-light);
}

.section-kicker span:first-child {
    display: none;
}

.carousel-content .section-kicker span:first-child {
    display: inline;
    margin-right: 0.6rem;
    padding: 0;
    min-width: 0;
    height: auto;
    background: none;
    box-shadow: none;
    color: var(--t-blue-light);
}

.badge-premium {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--t-blue-light);
}

/* ---------- Buttons: eckig, ein gefüllter, ein umrandeter ---------- */
.btn {
    box-shadow: none !important;
    border-radius: 2px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.95rem 1.6rem;
}

.btn-primary {
    background: var(--t-blue);
    background-size: auto;
    border: 2px solid var(--t-blue);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--t-blue-dark);
    border-color: var(--t-blue-dark);
    transform: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* ---------- Kopfzeile ---------- */
header {
    background: rgba(11, 20, 38, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--t-line);
    border-image: none;
    box-shadow: none;
}

.nav-links a {
    color: #E6EAF0;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a[style*="--text-main"] {
    color: var(--t-blue-light) !important;
}

header .btn-secondary {
    background: var(--t-blue);
    border: 2px solid var(--t-blue);
    color: #FFFFFF;
}

header .btn-secondary:hover {
    background: var(--t-blue-dark);
    border-color: var(--t-blue-dark);
}

@media (max-width: 900px) {
    .nav-links {
        background: var(--t-black);
        border-left: 1px solid var(--t-line);
        box-shadow: none;
    }
    body.nav-open .nav-links {
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    }
    .nav-links a {
        border-bottom-color: var(--t-line);
    }
}

/* ---------- Hero: Schwarz mit blauen Seidenbändern ---------- */
.hero {
    position: relative;
    background: var(--t-black) url('../assets/hero-blue.svg') center / cover no-repeat;
}

.hero-content h1,
.hero-headline {
    color: var(--t-ink);
    letter-spacing: -0.03em;
}

.hero-content p {
    color: #C9D1DD;
    font-weight: 400;
    font-size: 1.2rem;
}

/* ---------- Bänder: Schwarz und Mitternachtsblau, weich ineinander übergeblendet ---------- */
.demo-section,
.dm-section {
    box-shadow: none;
    clip-path: none;
    background: transparent;
}

/* border-image mit Außenrand malt den Verlauf über die volle Fensterbreite, auch bei .container-Abschnitten */
#services,
.process-section,
.module-section:nth-of-type(even),
.dm-section:nth-of-type(even) {
    position: relative;
    isolation: isolate;
    box-shadow: none;
    clip-path: none;
    background: transparent;
}

/* Blueprint-Raster mit blauem Lichtschein oben, an den Rändern ausgeblendet */
#services::after,
.process-section::after,
.module-section:nth-of-type(even)::after,
.dm-section:nth-of-type(even)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(55% 40% at 50% 0%, rgba(59, 130, 246, 0.30), transparent 70%),
        radial-gradient(40% 50% at 100% 100%, rgba(34, 211, 238, 0.10), transparent 70%),
        radial-gradient(40% 50% at 0% 80%, rgba(99, 102, 241, 0.12), transparent 70%);
}

#services {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.process-section {
    margin-top: 0;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.module-section {
    border-bottom: none !important;
}

.hero-carousel {
    background: var(--t-black);
}

.demo-section::before,
.dm-section::before {
    opacity: 0.35;
}

/* ---------- Karten ---------- */
.card,
.module-card {
    background: var(--t-card) !important;
    border: 1px solid var(--t-line) !important;
    border-radius: 4px;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--t-text);
}

.card::before,
.card::after,
.module-card::before,
.module-card::after {
    content: none !important;
}

.card:hover,
.module-card:hover {
    border-color: var(--t-line-strong) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
    transform: none;
}

.card h3,
.module-card h4,
.module-section .module-card h4 {
    color: var(--t-ink);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.card p.text-muted,
.card .text-muted p,
.module-card .text-muted,
.module-card p {
    color: var(--t-text);
}

.card-number {
    padding: 0;
    border: none;
    border-radius: 0;
    background: none !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--t-blue-light) !important;
}

.module-card > p:last-child:has(strong) {
    border-top-color: var(--t-line);
    color: #E6EAF0;
}

.module-section .module-card > p:last-child strong,
.module-card > p:last-child strong {
    color: var(--t-blue-light);
}

/* ---------- Leistungen: Raster mit feinen Linien ---------- */
.svc-grid {
    gap: 0;
    border-top: 1px solid var(--t-line);
    border-left: 1px solid var(--t-line);
}

.svc-grid > .svc-card {
    border: none !important;
    border-right: 1px solid var(--t-line) !important;
    border-bottom: 1px solid var(--t-line) !important;
    border-radius: 0;
    background: var(--t-navy) !important;
    padding: 2.5rem 2.25rem;
}

.svc-grid > .svc-card:hover {
    background: var(--t-navy-2) !important;
    box-shadow: none !important;
}

.svc-card .svc-icon,
.svc-card:hover .svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--t-blue-soft);
    border: none;
    box-shadow: none;
    color: var(--t-blue-light);
    transform: none;
}

.svc-card .number-circle,
.svc-card .list-item-clean:hover .number-circle {
    background-color: transparent;
    border: 1.5px solid var(--t-blue-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.svc-card .list-item-clean p {
    color: #D5DBE5;
}

.svc-more,
.svc-card .svc-more {
    color: var(--t-blue-light);
    font-weight: 700;
}

/* ---------- Laufband ---------- */
.trust-strip {
    background: var(--t-navy);
    border-top: 1px solid var(--t-line);
    border-bottom: 1px solid var(--t-line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.trust-item {
    color: #E6EAF0;
}

/* ---------- Ablauf ---------- */
.process-card {
    border-radius: 4px;
    background: var(--t-black);
    border-color: var(--t-line);
}

.process-card-visual {
    border-radius: 4px;
    background: var(--t-navy-2);
    border-color: var(--t-line);
}

.step-tag {
    border-radius: 2px;
    border-color: rgba(96, 165, 250, 0.6);
    color: var(--t-blue-light);
}

.visual-number,
.process-card[data-step] .visual-number {
    background-image: linear-gradient(135deg, #FFFFFF, var(--t-blue-light));
    filter: none;
}

/* ---------- Sprung-Chips der Demo-Seite ---------- */
.dm-chip {
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px var(--t-line-strong);
    color: #FFFFFF;
}

.dm-chip:hover {
    background: var(--t-blue-soft);
    box-shadow: inset 0 0 0 1px var(--t-blue-light);
}

.dm-chip span {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: var(--t-blue-light);
}

/* ---------- IT-Sicherheit-Panel und Formular ---------- */
.sec-panel {
    border-radius: 4px;
    background: var(--t-card);
    border: 1px solid var(--t-line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.form-card {
    border-radius: 4px;
    background: var(--t-card);
    border-color: var(--t-line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.form-side .section-kicker span {
    color: var(--t-blue-light);
}

/* ---------- Abschluss: blaues Band ---------- */
.cta-band {
    border-radius: 4px;
    background:
        url('../assets/hero-blue.svg') center / cover no-repeat,
        var(--t-blue-dark);
    background-blend-mode: screen;
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.25);
}

.cta-band::before {
    content: none;
}

.cta-band h2,
.cta-band .text-gradient {
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    text-decoration: none;
}

.cta-band .btn-primary,
.cta-band .btn-primary:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--t-blue-dark);
}

/* ---------- Fußzeile ---------- */
footer {
    background: var(--t-black);
    border-top: 1px solid var(--t-line);
}

.footer-col a,
.footer-tagline,
.footer-bottom p,
.footer-legal a {
    color: #9AA5B8;
}

.footer-col a:hover,
.footer-legal a:hover {
    color: #FFFFFF;
}

/* ---------- Rechtstexte & Unterseiten ---------- */
.info-box {
    background: var(--t-card) !important;
    border-color: var(--t-line) !important;
    box-shadow: none !important;
    color: var(--t-text);
}

/* =========================================
   Übergänge & Entwickler-Details
   ========================================= */
html {
    scroll-behavior: smooth;
}

/* Kleine Überschriften als Code-Kommentar */
.section-kicker,
.badge-premium {
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.section-kicker span:last-child::before,
.badge-premium::before {
    content: '// ';
    opacity: 0.6;
}

/* Hero: Raster wie auf einer Entwicklungs-Zeichnung, unten weich ins Schwarz */
.hero {
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: none;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--t-black));
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero baut sich beim Laden gestaffelt auf */
@keyframes heroIn {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

.hero-content > * {
    animation: heroIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.24s; }
.hero-content > *:nth-child(4) { animation-delay: 0.36s; }

/* Abschnitte blenden beim Scrollen sanft ein. Keine Unschärfe: auf ganzen Abschnitten
   laufen benachbarte Bereiche sonst optisch ineinander, und Handys werden langsam. */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* Leistungskarten: Lichtkegel folgt der Maus, blaue Kante oben */
.svc-grid > .svc-card {
    background:
        radial-gradient(360px circle at var(--mx, 50%) var(--my, -40%), rgba(37, 99, 235, 0.16), transparent 65%),
        var(--t-navy) !important;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.svc-grid > .svc-card:hover {
    background:
        radial-gradient(360px circle at var(--mx, 50%) var(--my, -40%), rgba(37, 99, 235, 0.22), transparent 65%),
        var(--t-navy-2) !important;
    box-shadow: inset 0 2px 0 var(--t-blue-light) !important;
}

.card:hover,
.module-card:hover {
    box-shadow: inset 0 2px 0 var(--t-blue-light), 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

/* ---------- Handy-Menü: Dropdown unter der Kopfzeile ---------- */
@media (max-width: 900px) {
    /* backdrop-filter würde das Menü an die Kopfzeile binden, daher hier aus */
    header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(11, 20, 38, 0.98) !important;
    }

    .nav-links,
    body.nav-open .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        bottom: auto;
        width: auto;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 1.25rem;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        background: var(--t-black);
        border: none;
        border-bottom: 1px solid transparent;
        box-shadow: none;
        transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.45s ease, visibility 0s linear 0.45s;
        z-index: 99;
    }

    body.nav-open .nav-links {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 0.5rem 1.25rem 1.5rem;
        visibility: visible;
        border-bottom-color: var(--t-line);
        transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.45s ease, visibility 0s;
    }

    /* Seite dahinter abdunkeln */
    body.nav-open header {
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6);
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 0.25rem;
        font-size: 1.1rem;
        color: #FFFFFF;
        border-bottom: 1px solid var(--t-line);
    }

    .nav-links a::after {
        content: '→';
        color: var(--t-blue-light);
        opacity: 0.7;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-content > * {
        animation: none;
    }
    .reveal {
        filter: none;
        transform: none;
        transition: opacity 0.3s ease;
    }
}
/* =========================================
   Startseite: Netzwerk-Hero und Engineering-Abschnitt
   ========================================= */
.hero.hero-net-on {
    min-height: 82vh !important;
    background:
        radial-gradient(60% 55% at 50% 42%, rgba(37, 99, 235, 0.22), transparent 70%),
        radial-gradient(40% 40% at 85% 10%, rgba(34, 211, 238, 0.10), transparent 70%),
        var(--t-black);
}

.hero-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Abdunkelung hinter der Überschrift, damit der Text ruhig steht */
.hero-net-on .hero-content::before {
    content: '';
    position: absolute;
    inset: -10% 5%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(11, 20, 38, 0.85), transparent);
    pointer-events: none;
}

.hero-chips {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 2px;
    background: rgba(10, 18, 38, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: var(--mono);
    font-size: 0.78rem;
    color: #DBEAFE;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.18);
    animation: chipFloat 7s ease-in-out infinite alternate;
}

.hero-chip svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--t-blue-light);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-chip-1 { top: 22%; left: 7%; }
.hero-chip-2 { top: 30%; right: 7%; animation-delay: -2.5s; }
.hero-chip-3 { bottom: 16%; left: 12%; animation-delay: -5s; }

@keyframes chipFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-12px); }
}

@media (max-width: 1100px) {
    .hero-chips {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-chip,
    .eng-ring,
    .eng-stars,
    .eng-stars svg,
    .eng-cursor {
        animation: none;
    }
    .eng-ring.r2,
    .eng-ring.r3 {
        display: none;
    }
    .eng-ring.r1 {
        transform: scale(0.9);
    }
}
/* =========================================
   Helles Band (Weiß/Hellblau) als Kontrast zwischen den dunklen Bereichen
   ========================================= */
.band-light {
    position: relative;
    margin-top: 0 !important;
    padding-top: 6rem;
    padding-bottom: 6rem;
    color: #3E4A60;
}

.band-light .section-kicker span,
.band-light .text-gradient {
    color: var(--t-blue);
}

.band-light .card {
    background: #FFFFFF !important;
    border: 1px solid #DCE4F0 !important;
    color: #4A566C;
}

.band-light .card h3 {
    color: #0B1426;
}

.band-light .card p.text-muted {
    color: #4A566C;
}

.band-light .card:hover {
    border-color: #BFD0EA !important;
    box-shadow: inset 0 2px 0 var(--t-blue), 0 18px 40px rgba(17, 37, 90, 0.12) !important;
}

.band-light .grid-2 > .card .card-number {
    color: var(--t-blue) !important;
}
/* =========================================
   Tech-Stack, Preis-Punkte, Schnellkontakt, Karussell-Farbfilter
   ========================================= */
.stack-section {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 3rem;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.stack-copy h2 {
    margin-bottom: 1rem;
}

.stack-copy > p.text-muted {
    max-width: 520px;
    margin-bottom: 2rem;
}

.stack-cats {
    display: grid;
    gap: 1.25rem;
}

.stack-cat h4 {
    margin: 0 0 0.6rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--t-blue-light);
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem 0.5rem 0.65rem;
    border-radius: 2px;
    border: 1px solid var(--t-line-strong);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.92rem;
    font-weight: 500;
    color: #FFFFFF;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.stack-tag:hover {
    border-color: var(--t-blue-light);
    background: var(--t-blue-soft);
    transform: translateY(-2px);
}

.stack-tag .tl {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Umlaufbahn: K in der Mitte, zwei Ringe mit Logos */
.stack-orbit {
    position: relative;
    width: 520px;
    height: 520px;
}

.orbit-glow {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--r) * 2);
    height: calc(var(--r) * 2);
    margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
    border-radius: 50%;
    border: 1px dashed rgba(96, 165, 250, 0.3);
    animation: orbitSpin var(--dur) linear infinite;
}

.orbit-1 { --dur: 36s; }
.orbit-2 { --dur: 54s; animation-direction: reverse; }

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(calc(var(--r) * -1));
}

/* Gegendrehung, damit die Logos aufrecht bleiben */
.orbit-chip {
    position: absolute;
    top: -30px;
    left: -30px;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0E1A36;
    border: 1px solid var(--t-line-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(11, 20, 38, 0.6);
    transform: rotate(calc(-360deg / var(--n) * var(--i)));
}

.orbit-chip .ol {
    width: 28px;
    height: 28px;
    animation: orbitSpin var(--dur) linear infinite reverse;
}

.orbit-2 .orbit-chip .ol {
    animation-direction: normal;
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1A2E62, #0B1426);
    border: 1px solid rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.08), 0 0 60px rgba(37, 99, 235, 0.45);
}

.orbit-core img {
    width: 58px;
    height: auto;
}

@keyframes orbitSpin {
    to { rotate: 360deg; }
}

@media (max-width: 1100px) {
    .stack-section {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .stack-copy > p.text-muted {
        margin-left: auto;
        margin-right: auto;
    }
    .stack-tags {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .stack-orbit {
        width: 340px;
        height: 340px;
    }
    .orbit-1 { --r: 80px !important; }
    .orbit-2 { --r: 140px !important; }
    .orbit-chip {
        top: -22px;
        left: -22px;
        width: 44px;
        height: 44px;
    }
    .orbit-chip .ol {
        width: 22px;
        height: 22px;
    }
    .orbit-core {
        width: 86px;
        height: 86px;
        margin: -43px 0 0 -43px;
    }
    .orbit-core img {
        width: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit,
    .orbit-chip .ol {
        animation: none;
    }
}

/* Preis-Orientierung im Abschluss-Band */
.cta-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #E8F0FF;
}

.cta-points li::before {
    content: '\2713';
    margin-right: 0.45rem;
    font-weight: 700;
    color: #FFFFFF;
}

/* Schnellkontakt unten rechts */
.fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fab-btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #FFFFFF;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fab-btn svg {
    width: 24px;
    height: 24px;
}

.fab-wa {
    background: #25D366;
}

.fab-tel {
    background: var(--t-blue);
}

.fab-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}

/* Anrufen ist am Desktop wenig hilfreich, dort nur WhatsApp */
@media (min-width: 901px) {
    .fab-tel {
        display: none;
    }
}

/* Cookie-Hinweis nicht überdecken (er existiert nur, solange er sichtbar ist) */
body:has(#cookie-banner) .fab {
    bottom: 160px;
}

/* Karussell-Fotos in Markenblau eingefärbt */
.carousel-bg {
    filter: grayscale(1) brightness(0.75) sepia(1) hue-rotate(185deg) saturate(2.4);
}
/* =========================================
   Engineering: Live-Editor + drei Punkte mit Avataren
   ========================================= */
.eng-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.eng-stage {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

/* Editor-Fenster */
.eng-ide {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 470px;
    border-radius: 6px;
    background: #0A1226;
    border: 1px solid var(--t-line-strong);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(96, 165, 250, 0.08), 0 0 80px rgba(37, 99, 235, 0.18);
    overflow: hidden;
}

.eng-ide::before {
    content: '';
    position: absolute;
    inset: -40% -20% auto auto;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
    pointer-events: none;
}

.eng-ide-bar {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #070D1D;
    border-bottom: 1px solid var(--t-line);
    font-family: var(--mono);
    font-size: 0.74rem;
}

.eng-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0.9rem;
}

.eng-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5F57;
}

.eng-dots i:nth-child(2) { background: #FEBC2E; }
.eng-dots i:nth-child(3) { background: #28C840; }

.eng-tab {
    padding: 0.7rem 1rem;
    color: #7D8BA6;
    border-right: 1px solid var(--t-line);
}

.eng-tab.is-active {
    color: #FFFFFF;
    background: #0A1226;
    box-shadow: inset 0 2px 0 var(--t-blue-light);
}

.eng-branch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    padding: 0 1rem;
    color: #5EEAD4;
}

.eng-branch svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.eng-lines {
    position: relative;
    flex: 1;
    margin: 0;
    padding: 1.1rem 1rem 1.1rem 0;
    list-style: none;
    counter-reset: ln;
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.85;
    color: #D6E0F0;
    white-space: pre;
    overflow: hidden;
}

.eng-lines li {
    counter-increment: ln;
    min-height: 1.85em;
}

.eng-lines li::before {
    content: counter(ln);
    display: inline-block;
    width: 3rem;
    padding-right: 1.1rem;
    text-align: right;
    color: #3D4C6E;
}

.eng-lines li.is-typing::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 1.05em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: var(--t-blue-light);
    animation: cursorBlink 0.9s steps(1) infinite;
}

.eng-lines .c { color: #5C6E92; font-style: italic; }
.eng-lines .k { color: #60A5FA; }
.eng-lines .f { color: #C4B5FD; }
.eng-lines .s { color: #5EEAD4; }

@keyframes cursorBlink {
    50% { opacity: 0; }
}

/* Terminal */
.eng-term {
    border-top: 1px solid var(--t-line);
    background: #060B18;
    min-height: 170px;
}

.eng-term-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--t-line);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: #7D8BA6;
}

.eng-term-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3D4C6E;
}

.eng-term-dot.is-run {
    background: #FEBC2E;
    box-shadow: 0 0 10px #FEBC2E;
    animation: cursorBlink 0.8s steps(1) infinite;
}

.eng-term-dot.is-ok {
    background: #28C840;
    box-shadow: 0 0 10px #28C840;
}

.eng-log {
    margin: 0;
    padding: 0.7rem 1rem 0.9rem;
    list-style: none;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.7;
}

.eng-log .cmd {
    color: #93A4C3;
}

.eng-log .ok {
    color: #5EEAD4;
}

@keyframes logIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: none; }
}

/* Drei Punkte mit Avataren */
.eng-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.eng-point {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.4rem 1.5rem;
    border-radius: 6px;
    background: var(--t-card);
    border: 1px solid var(--t-line);
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

.eng-point.is-active,
.eng-point.is-done {
    opacity: 1;
}

.eng-point.is-active {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(37, 99, 235, 0.25);
    transform: translateX(-6px);
}

.eng-avatar {
    position: relative;
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, #2563EB, #60A5FA, #5EEAD4, #2563EB);
}

.eng-point:not(.is-active) .eng-avatar {
    background: var(--t-line-strong);
}

.eng-point.is-active .eng-avatar {
    animation: avatarSpin 3s linear infinite;
}

.eng-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--t-card);
}

.eng-point.is-active .eng-avatar img {
    animation: avatarSpin 3s linear infinite reverse;
}

@keyframes avatarSpin {
    to { rotate: 360deg; }
}

.eng-num {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--t-blue-light);
}

.eng-point h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.eng-point p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Fortschrittsbalken unten im aktiven Punkt */
.eng-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--t-blue), #5EEAD4);
}

.eng-point.is-active .eng-bar {
    animation: engBar 4s linear forwards;
}

.eng-point.is-done .eng-bar {
    width: 100%;
}

@keyframes engBar {
    to { width: 100%; }
}

@media (max-width: 1000px) {
    .eng-stage {
        grid-template-columns: 1fr;
    }
    .eng-ide {
        min-height: 0;
    }
    .eng-point.is-active {
        transform: none;
    }
}

@media (max-width: 600px) {
    .eng-lines {
        font-size: 0.68rem;
    }
    .eng-lines li::before {
        width: 2rem;
        padding-right: 0.6rem;
    }
    .eng-tab:not(.is-active),
    .eng-branch {
        display: none;
    }
    .eng-point {
        grid-template-columns: 60px 1fr;
        padding: 1.1rem;
    }
    .eng-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eng-avatar,
    .eng-avatar img,
    .eng-log .ok,
    .eng-term-dot.is-run {
        animation: none !important;
    }
}
/* =========================================
   Unterseiten: Blau-Weiß-Wechsel
   ========================================= */
/* Blaues Band für beliebige Abschnitte (wie Kernleistungen) */
.band-blue {
    position: relative;
    isolation: isolate;
    padding-top: 6rem;
}

.band-blue::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(55% 40% at 50% 0%, rgba(59, 130, 246, 0.30), transparent 70%),
        radial-gradient(40% 50% at 100% 100%, rgba(34, 211, 238, 0.10), transparent 70%);
}

/* Helle Bänder: Texte, Links und Bausteine auf Weiß.
   Dunkle Fenster (Demos, Sicherheits-Panel) behalten ihre eigenen Farben. */
.band-light :is(h1, h2, h3, h4, strong):not(:is(.dm-window, .demo-device, .dm-app, .sec-panel) *) {
    color: #0B1426;
}

.band-light a:not(.btn):not(:is(.dm-window, .demo-device, .dm-app, .sec-panel) *) {
    color: var(--t-blue);
}

.band-light a[style*="--text-main"] {
    color: #0B1426 !important;
}

/* Dunkle Fenster erben sonst die dunkle Grundschrift des hellen Bands */
.band-light :is(.dm-window, .demo-device, .dm-app, .sec-panel) {
    color: #FFFFFF;
}

.band-light :is(.text-muted, li, p):not(:is(.dm-window, .demo-device, .dm-app, .sec-panel) *) {
    color: #4A566C;
}

.band-light .module-card,
.band-light .info-box {
    background: #FFFFFF !important;
    border: 1px solid #DCE4F0 !important;
    box-shadow: none !important;
    color: #4A566C;
}

.band-light .module-card h4,
.band-light .module-section .module-card h4,
.band-light .info-box h3 {
    color: #0B1426;
}

.band-light .module-card:hover,
.band-light .info-box:hover {
    border-color: #BFD0EA !important;
    box-shadow: inset 0 2px 0 var(--t-blue), 0 18px 40px rgba(17, 37, 90, 0.12) !important;
}

.band-light .module-card > p:last-child:has(strong) {
    border-top-color: #E3E9F3;
    color: #0B1426;
}

.band-light .module-card > p:last-child strong,
.band-light.module-section .module-card > p:last-child strong {
    color: var(--t-blue);
}

.band-light .btn-secondary {
    border-color: #9AA6BA;
    color: #0B1426;
}

.band-light .btn-secondary:hover {
    background: #FFFFFF;
    border-color: #0B1426;
    color: #0B1426;
}

/* Demo-Seite: dunkle Demo-Fenster auf hellem Grund */
.band-light.dm-section::before {
    opacity: 0.15;
}

.band-light .dm-note {
    color: #6B7890;
    opacity: 1;
}

.band-light .dm-window,
.band-light .demo-device {
    box-shadow: 0 40px 90px rgba(17, 37, 90, 0.28);
}

/* Rechtstexte als ruhiges Dokument */
.band-light .card h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.band-light .card h2,
.band-light .card h3 {
    color: #0B1426;
}
/* Team: E-Mail unter der Beschreibung */
.team-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--t-line-strong);
    border-radius: 2px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--t-blue-light);
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* Briefumschlag-Symbol vor der Adresse */
.team-mail::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2.5'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.team-mail:hover {
    border-color: var(--t-blue-light);
    background: var(--t-blue-soft);
    color: #FFFFFF;
}
/* =========================================
   IT-Sicherheit: Schild-Animation beim Hineinscrollen (main.js, Abschnitt 9)
   ========================================= */
.secfx {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(11, 27, 77, 0.82), rgba(5, 10, 25, 0.9) 70%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: secfxBg 3.4s ease forwards;
}

@keyframes secfxBg {
    0%   { opacity: 0; }
    12%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; }
}

.secfx-stage {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1.25rem;
    animation: secfxStage 3.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes secfxStage {
    0%   { transform: scale(0.35) rotate(-8deg); opacity: 0; filter: blur(12px); }
    14%  { transform: scale(1.08) rotate(1deg); opacity: 1; filter: blur(0); }
    22%  { transform: scale(1) rotate(0); }
    82%  { transform: scale(1); opacity: 1; filter: blur(0); }
    100% { transform: scale(1.25); opacity: 0; filter: blur(10px); }
}

.secfx-shield {
    width: min(260px, 58vw);
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.75)) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

/* Scan-Strahl fährt einmal über das Schild */
.secfx-scan {
    animation: secfxScan 1.4s 0.6s ease-in-out forwards;
}

@keyframes secfxScan {
    from { transform: translateY(0); }
    to   { transform: translateY(340px); }
}

/* Schloss schnappt zu */
.secfx-shackle {
    transform: translateY(-16px);
    animation: secfxShackle 0.35s 1.25s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

@keyframes secfxShackle {
    to { transform: translateY(0); }
}

.secfx-lock {
    transform-box: fill-box;
    transform-origin: center;
    animation: secfxLock 0.4s 1.55s ease-out;
}

@keyframes secfxLock {
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Häkchen springt auf */
.secfx-check {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    animation: secfxCheck 0.5s 1.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes secfxCheck {
    to { transform: scale(1); }
}

/* Lichtblitz beim Einrasten */
.secfx-flash {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFFFF, rgba(147, 197, 253, 0.6) 40%, transparent 70%);
    opacity: 0;
    animation: secfxFlash 0.7s 1.5s ease-out;
}

@keyframes secfxFlash {
    0%   { opacity: 0; transform: scale(0.5); }
    25%  { opacity: 1; }
    100% { opacity: 0; transform: scale(14); }
}

/* Ringe pulsieren nach außen */
.secfx-ring {
    position: absolute;
    top: calc(50% - 40px);
    left: 50%;
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    border-radius: 50%;
    border: 2px solid rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), inset 0 0 30px rgba(59, 130, 246, 0.3);
    opacity: 0;
    animation: secfxRing 1.6s ease-out forwards;
}

.secfx-ring:nth-child(1) { animation-delay: 0.3s; }
.secfx-ring:nth-child(2) { animation-delay: 0.9s; }
.secfx-ring:nth-child(3) { animation-delay: 1.5s; border-color: rgba(16, 185, 129, 0.7); box-shadow: 0 0 30px rgba(16, 185, 129, 0.45); }

@keyframes secfxRing {
    0%   { opacity: 0.9; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(2.4); }
}

/* Schriftzug */
.secfx-label {
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    padding: 0.9rem 1.6rem;
    border-radius: 4px;
    background: rgba(5, 10, 25, 0.6);
    border: 1px solid rgba(110, 231, 183, 0.25);
    opacity: 0;
    transform: translateY(12px);
    animation: secfxLabel 0.5s 1.8s ease-out forwards;
}

.secfx-label strong {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.secfx-label span {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: #6EE7B7;
}

@keyframes secfxLabel {
    to { opacity: 1; transform: none; }
}
/* Abstand über dem Abschluss-Band */
section:has(> .cta-band) {
    padding-top: 5rem;
}
/* Tech-Stack: eigene Fläche mit feinen Linien, klar getrennt von Engineering */
.stack-section {
    position: relative;
    isolation: isolate;
    margin-top: 3rem;
}

.stack-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    border-top: 1px solid var(--t-line);
    border-bottom: 1px solid var(--t-line);
    pointer-events: none;
}

/* Angebote: älteres padding: 4rem 0 löscht den Seitenrand der .container */
.module-section {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .module-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
/* =========================================
   Handy-Feinschliff
   ========================================= */
@media (max-width: 900px) {
    /* Karten linksbündig: mittig gesetzte Listen und Absätze wirken unruhig */
    .grid-2 {
        text-align: left;
    }

    /* Kopfzeile: Logo links, Sprache und Menü rechts */
    .lang-toggle {
        order: 2;
        margin-left: auto;
    }
    .nav-toggle {
        order: 3;
    }

    /* Kontakt-Buttons kleiner, damit sie weniger Text überdecken */
    .fab {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }
    .fab-btn {
        width: 44px;
        height: 44px;
    }
    .fab-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    /* Reservierungs-Tabelle: Namensspalte darf schrumpfen, sonst überlappt sie die Personenzahl */
    .demo-table-head,
    .demo-row {
        grid-template-columns: 3.4rem minmax(0, 1fr) 2.2rem 4.8rem;
        gap: 6px;
    }
    .demo-row {
        font-size: 0.74rem;
    }
    .demo-guest {
        overflow: hidden;
    }
    .demo-initials {
        display: none;
    }

    /* Ruhigere Abstände und Größen */
    section h2 {
        font-size: 1.75rem;
    }
    p.text-muted {
        font-size: 1rem;
    }
    .svc-grid > .svc-card {
        padding: 2rem 1.5rem;
    }
    .band-light,
    #services {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .stack-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}
/* Kopfzeile deckend: Inhalt soll beim Scrollen nicht durchscheinen */
header {
    background: #0B1426 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* =========================================
   Leistung: Bandflächen als einfache Ebenen statt riesiger Verlaufs-Rahmen.
   Die Rahmen mit 100vw Überstand belasteten die Grafikkarte beim Scrollen.
   ========================================= */
#services::after,
.process-section::after,
.module-section:nth-of-type(even)::after,
.dm-section:nth-of-type(even)::after,
.band-blue::after {
    z-index: -2;
    background:
        radial-gradient(55% 40% at 50% 0%, rgba(59, 130, 246, 0.30), transparent 70%),
        linear-gradient(180deg, var(--t-black) 0, var(--t-navy) 180px, var(--t-navy) calc(100% - 180px), var(--t-black) 100%);
}

section.band-light {
    isolation: isolate;
}

section.band-light.band-light::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(180deg, #F5F8FD, #E9F0FB);
}

.stack-section::after {
    z-index: -2;
    background: #101C3A;
}

/* Umlaufbahn steht still, solange sie nicht sichtbar ist */
.stack-orbit.is-off .orbit,
.stack-orbit.is-off .ol {
    animation-play-state: paused;
}
/* Startseite: längere Überschrift, drei ruhige Zeilen */
.hero-net-on .hero-headline {
    font-size: clamp(2.1rem, 4.3vw, 3.9rem) !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Schrift: Arial als Systemschrift (keine Schriftdateien, keine externen Server).
   Code-Fenster bleiben in einer Systemschrift mit fester Zeichenbreite.
   ========================================= */
body,
button,
input,
select,
textarea {
    font-family: Arial, Helvetica, sans-serif;
}

code,
pre,
kbd,
.eng-lines,
.eng-log,
.eng-tab,
.eng-branch,
.eng-term-head,
.eng-code-bar span,
.sec-rows code {
    font-family: Consolas, "Courier New", monospace;
}

/* Kleine Überschriften: schlicht in Großbuchstaben statt Code-Kommentar */
.section-kicker span:last-child::before,
.badge-premium::before {
    content: none;
}

.section-kicker,
.badge-premium {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* =========================================
   Barrierefreiheit
   ========================================= */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 300;
    padding: 0.75rem 1.25rem;
    border-radius: 2px;
    background: #FFFFFF;
    color: #0B1426;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

main:focus {
    outline: none;
}

/* Deutlich sichtbarer Fokus für Tastatur-Bedienung */
:focus-visible {
    outline: 3px solid #60A5FA;
    outline-offset: 3px;
}

.band-light :focus-visible,
.skip-link:focus-visible {
    outline-color: #1D4ED8;
}

.form-control:focus-visible {
    outline: 3px solid #60A5FA;
    outline-offset: 1px;
}

/* Links im Fließtext zusätzlich unterstrichen, nicht nur farbig */
.text-muted a:not(.btn),
.card p a:not(.btn),
.info-box a:not(.btn),
.cookie-banner-text a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

/* Engineering: Texte der gerade nicht aktiven Punkte nicht abblenden (Kontrast) */
.eng-point {
    opacity: 1;
}

.eng-point:not(.is-active):not(.is-done) .eng-avatar img {
    opacity: 0.55;
}

/* =========================================
   Cookie-Banner: „Alle ablehnen“ und „Alle akzeptieren“ gleichwertig
   ========================================= */
#cookie-banner .cookie-choice {
    min-height: 44px;
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}

#cookie-banner .cookie-choice:hover {
    background: #FFFFFF;
    color: #0B1426;
}

.footer-cookie-btn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: #9AA5B8;
    cursor: pointer;
}

.footer-cookie-btn:hover {
    color: #FFFFFF;
}

/* Rechtstexte: Zwischenüberschriften kleiner als die Hauptüberschrift */
.band-light .card h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.band-light .card h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

#cookie-banner .cookie-banner-text a {
    color: #93C5FD;
}

/* =========================================
   Startseite "Individuell entwickelt": technische Embleme statt Avatare
   ========================================= */
.eng-emblem {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px) 0 0 / 12px 12px,
        linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px) 0 0 / 12px 12px,
        radial-gradient(circle at 28% 18%, #1E3A8A, #0B1322 72%);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3);
    transition: box-shadow 0.4s ease-out;
}

.eng-emblem svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: #93C5FD;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.4s ease-out;
}

.eng-point:not(.is-active):not(.is-done) .eng-emblem svg { opacity: 0.6; }

.eng-point.is-active .eng-emblem {
    box-shadow:
        inset 0 0 0 1px #60A5FA,
        0 0 0 4px rgba(37, 99, 235, 0.18),
        0 14px 30px -10px rgba(37, 99, 235, 0.75);
}

.eng-point.is-active .eng-emblem svg { stroke: #FFFFFF; }

/* Linien zeichnen sich, wenn der Punkt aktiv wird */
.em-draw { stroke-dasharray: 130; stroke-dashoffset: 0; }
.eng-point.is-active .em-draw { animation: emDraw 1.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
.eng-point.is-active .em-d2 { animation-delay: 0.4s; }

.em-cursor { fill: #60A5FA; stroke: none; }
.eng-point.is-active .em-cursor { animation: emBlink 1s steps(1) infinite; }

/* Scan-Linie im Schild */
.em-scan {
    stroke: #60A5FA;
    stroke-width: 2;
    opacity: 0;
    transform-box: view-box;
}
.eng-point.is-active .em-scan { animation: emScan 2.2s ease-in-out infinite; }

/* Punktring um das Schloss */
.em-ring circle { fill: #60A5FA; stroke: none; opacity: 0.5; }
.em-ring { transform-box: view-box; transform-origin: 24px 24px; }
.eng-point.is-active .em-ring { animation: emSpin 9s linear infinite; }
.eng-point.is-active .em-ring circle { opacity: 1; }
.em-key { fill: #93C5FD; stroke: none; }
.eng-point.is-active .em-key { fill: #FFFFFF; }

@keyframes emDraw { from { stroke-dashoffset: 130; } }
@keyframes emBlink { 50% { opacity: 0; } }
@keyframes emSpin { to { transform: rotate(360deg); } }
@keyframes emScan {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(30px); opacity: 0; }
}

@media (max-width: 600px) {
    .eng-emblem { width: 60px; height: 60px; border-radius: 13px; }
    .eng-emblem svg { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .eng-emblem *,
    .eng-point.is-active .eng-emblem * { animation: none !important; }
}