/* ==========================================================================
   ARI/WE/SO — components.css
   Buttons, Hero, Karten, Formulare, Tabellen, Preloader, Consent, Floating UI
   ========================================================================== */

/* --- 1. Buttons ---------------------------------------------------------- */

.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* min-height 48px: erfüllt die Mindest-Touchfläche auf Mobilgeräten */
    min-height: 48px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) ease,
                background var(--dur-base) ease,
                border-color var(--dur-base) ease,
                color var(--dur-base) ease;
}

.btn-primary {
    background: var(--neon-blue);
    color: #000;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px rgb(var(--rgb-blue) / 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    color: #000;
    box-shadow: 0 0 28px rgb(var(--rgb-blue) / 0.7);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--line-strong);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: inset 0 0 18px rgb(var(--rgb-blue) / 0.12),
                0 0 18px rgb(var(--rgb-blue) / 0.18);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-strong);
    border: 1px solid var(--line-soft);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

.btn-small { min-height: 40px; padding: 8px 18px; font-size: var(--fs-small); }
.btn-block { width: 100%; }

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--neon-blue);
    font-weight: 600;
    cursor: pointer;
}
.btn-text .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn-text:hover { color: var(--text-strong); }
.btn-text:hover .arrow { transform: translateX(4px); }

.btn-primary[disabled], .btn-outline[disabled] {
    opacity: 0.55;
    pointer-events: none;
}

/* --- 2. Hero ------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(100svh, 900px);
    padding: calc(var(--header-h) + 56px) 0 72px;
    overflow: hidden;
}

/* Hintergrundebenen — rein dekorativ, aus dem A11y-Baum ausgeblendet */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.hero-glow--green {
    width: min(60vw, 620px);
    aspect-ratio: 1;
    top: -18%;
    left: -14%;
    background: radial-gradient(circle, rgb(var(--rgb-green) / 0.42), transparent 68%);
}

.hero-glow--purple {
    width: min(62vw, 660px);
    aspect-ratio: 1;
    bottom: -24%;
    right: -16%;
    background: radial-gradient(circle, rgb(var(--rgb-purple) / 0.38), transparent 68%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    /* blendet das Raster zu den Rändern hin aus */
    mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 30%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgb(var(--rgb-blue) / 0.3);
    border-radius: var(--radius-pill);
    background: rgb(var(--rgb-blue) / 0.06);
    color: var(--neon-blue);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.82); }
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-subtext {
    font-size: var(--fs-lead);
    color: var(--text-muted);
    max-width: 56ch;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--neon-green); flex-shrink: 0; }

.hero-visual { display: none; }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 1;
    display: inline-flex;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--neon-blue); }

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 9px); }
}

@media (min-width: 992px) {
    .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
    .hero-visual { display: block; }
}

/* --- 3. Karten ----------------------------------------------------------- */

/* Karten sind <li> in einer <ul>: Das beschreibt eine Aufzählung
   gleichartiger Angebote korrekt, Screenreader sagen die Anzahl an, und es
   vermeidet <article> — das ist Inhalten vorbehalten, die für sich allein
   stehen, und ist zugleich das Signal, an dem Lesemodi Artikel erkennen.
   list-style wird hier ausdrücklich gesetzt, damit die Karten auch dann
   ohne Aufzählungspunkte bleiben, wenn die globale Regel einmal wegfällt. */
.card,
.pricing-card {
    list-style: none;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-subtle);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--dur-base) var(--ease-out),
                border-color var(--dur-base) ease,
                box-shadow var(--dur-base) ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgb(var(--rgb-blue) / 0.3);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5),
                0 0 22px rgb(var(--rgb-blue) / 0.06);
}

.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    margin-bottom: 1.25rem;
    border: 1px solid rgb(var(--rgb-blue) / 0.22);
    border-radius: var(--radius-sm);
    background: rgb(var(--rgb-blue) / 0.07);
    color: var(--neon-blue);
    flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; }

.card-icon--green { border-color: rgb(var(--rgb-green) / 0.22); background: rgb(var(--rgb-green) / 0.07); color: var(--neon-green); }
.card-icon--purple { border-color: rgb(var(--rgb-purple) / 0.28); background: rgb(var(--rgb-purple) / 0.09); color: var(--neon-purple); }

.card-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 1.25rem;
}
.card-list li {
    display: flex;
    gap: 9px;
    font-size: var(--fs-small);
    color: var(--text-muted);
}
.card-list svg { width: 15px; height: 15px; color: var(--neon-green); flex-shrink: 0; margin-top: 4px; }

/* Maus-Glow — nur auf Zeigergeräten, spart Arbeit auf Touch */
@media (hover: hover) and (pointer: fine) {
    .interactive-glow::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        background: radial-gradient(circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%),
                    rgb(var(--rgb-blue) / 0.09), transparent 78%);
        opacity: 0;
        transition: opacity var(--dur-base) ease;
        pointer-events: none;
    }
    .interactive-glow:hover::before { opacity: 1; }
    .interactive-glow > * { position: relative; z-index: 1; }
}

/* --- 4. Fakten-Band ------------------------------------------------------ */

.stat-band {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line-subtle);
    border: 1px solid var(--line-subtle);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.stat {
    padding: 28px 20px;
    background: var(--bg-main);
    text-align: center;
}
.bg-surface .stat { background: var(--bg-surface); }

.stat-value {
    display: block;
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}
.stat-label {
    display: block;
    margin-top: 10px;
    font-size: var(--fs-small);
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .stat-band { grid-template-columns: repeat(4, 1fr); }
}

/* --- 5. Tag-Pills -------------------------------------------------------- */

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
    padding: 6px 13px;
    border: 1px solid rgb(var(--rgb-blue) / 0.22);
    border-radius: var(--radius-pill);
    background: rgb(var(--rgb-blue) / 0.05);
    color: var(--neon-blue);
    font-size: 0.8rem;
    font-weight: 500;
}

.tag--muted { border-color: var(--line-soft); background: rgba(255,255,255,0.04); color: var(--text-muted); }

/* --- 6. Projekt-Showcase ------------------------------------------------- */

.showcase {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.bg-surface .showcase { background: var(--bg-elevated); }

.showcase-media {
    position: relative;
    min-height: 240px;
    background: linear-gradient(140deg, #16161d, #23232e);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.showcase-media svg { width: 100%; height: auto; max-width: 460px; }

.showcase-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.showcase-body p { color: var(--text-muted); }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-bottom: 1rem;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.status-pill--live { background: rgb(var(--rgb-green) / 0.12); color: var(--neon-green); border: 1px solid rgb(var(--rgb-green) / 0.3); }
.status-pill--wip { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--line-soft); }

@media (min-width: 992px) {
    .showcase { grid-template-columns: 1.1fr 1fr; }
    .showcase-media { min-height: 380px; }
}

/* --- 6b. Porträt ---------------------------------------------------------- */

.portrait {
    position: relative;
    margin: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--line-subtle);
    background: var(--bg-elevated);
}

.portrait img {
    display: block;
    width: 100%;
    height: auto;
    /* Feste Proportion, damit beim Laden nichts springt und ein anderes
       Foto später denselben Platz einnimmt. */
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 28%;
}

/* Sanfter Verlauf nach unten, damit die Bildunterschrift lesbar bleibt,
   egal wie hell das Foto an dieser Stelle ist. */
.portrait figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 56px 22px 20px;
    background: linear-gradient(to top,
        rgba(10, 10, 12, 0.94) 30%,
        rgba(10, 10, 12, 0.6) 65%,
        transparent);
    color: var(--text-muted);
    font-size: var(--fs-small);
    line-height: 1.5;
}

.portrait figcaption strong {
    display: block;
    color: var(--text-strong);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.portrait .portrait-ort {
    display: block;
    margin-top: 6px;
    color: var(--neon-blue);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* --- 7. Timeline (Prozess) ----------------------------------------------- */

.timeline { position: relative; display: flex; flex-direction: column; gap: 8px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg,
        rgb(var(--rgb-green) / 0.6), rgb(var(--rgb-blue) / 0.5), rgb(var(--rgb-purple) / 0.5));
    transform-origin: top center;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding-block: 16px;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid rgb(var(--rgb-blue) / 0.35);
    color: var(--neon-blue);
    font-weight: 700;
    flex-shrink: 0;
}
.bg-surface .timeline-marker { background: var(--bg-surface); }

/* --- Variante Werdegang -------------------------------------------------
   Bewusst über eine eigene Klasse .timeline--cv abgegrenzt. Ohne diese
   Abgrenzung würden die Regeln auch auf der Prozess-Seite greifen und dort
   die grünen Zeitangaben blau einfärben — eine Änderung an einer Seite, die
   damit nichts zu tun hat. */

/* Marker tragen hier ein Symbol statt einer Ziffer */
.timeline--cv .timeline-marker svg { width: 21px; height: 21px; }

/* Die laufende Station hervorheben */
.timeline--cv .timeline-marker.is-current {
    border-color: var(--neon-green);
    background: rgb(var(--rgb-green) / 0.1);
    color: var(--neon-green);
    box-shadow: 0 0 16px rgb(var(--rgb-green) / 0.25);
}

/* Der Zeitraum steht hier über der Überschrift, nicht darunter */
.timeline--cv .timeline-body > .timeline-meta {
    display: block;
    margin-top: 0;
    margin-bottom: 0.35rem;
    color: var(--neon-blue);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.timeline-body h3 { margin-bottom: 0.4rem; }
.timeline-body p { color: var(--text-muted); }

.timeline-meta {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: var(--fs-small);
    color: var(--neon-green);
}

/* --- 8. Accordion (FAQ) -------------------------------------------------- */

.accordion { display: flex; flex-direction: column; gap: 12px; }

.accordion-item {
    border: 1px solid var(--line-subtle);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: border-color var(--dur-base) ease;
}
.accordion-item.is-open { border-color: rgb(var(--rgb-blue) / 0.3); }

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    text-align: left;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-strong);
    transition: color var(--dur-base) ease;
}
.accordion-trigger:hover { color: var(--neon-blue); }

.accordion-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    transition: transform var(--dur-base) var(--ease-out);
    color: var(--neon-blue);
}
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }

.accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.42s var(--ease-out);
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }

.accordion-panel > div { overflow: hidden; }
.accordion-panel p {
    padding: 0 22px 22px;
    color: var(--text-muted);
}

/* --- 9. Formulare -------------------------------------------------------- */

.form-field { position: relative; margin-bottom: 22px; }

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--text-main);
}

.form-field .required { color: var(--neon-blue); }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    /* 16px verhindert den Auto-Zoom von iOS Safari beim Fokussieren */
    font-size: 16px;
    transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.form-field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}

.form-field select option { background: var(--bg-surface); color: var(--text-main); }

.form-field input::placeholder,
.form-field textarea::placeholder { color: #6b7280; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgb(var(--rgb-blue) / 0.14);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--neon-red); }

.field-error {
    display: block;
    margin-top: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--neon-red);
}

.field-hint { display: block; margin-top: 7px; font-size: 0.82rem; color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr; gap: 0 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    cursor: pointer;
}
.checkbox-field input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-field .box {
    flex-shrink: 0;
    width: 22px; height: 22px;
    margin-top: 2px;
    border: 2px solid var(--text-muted);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-fast) ease;
}
.checkbox-field input:checked + .box { background: var(--neon-blue); border-color: var(--neon-blue); }
.checkbox-field input:checked + .box::after {
    content: '';
    width: 6px; height: 11px;
    margin-top: -3px;
    border: solid #000;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.checkbox-field input:focus-visible + .box { outline: 2px solid var(--neon-blue); outline-offset: 3px; }
.checkbox-field .label-text { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; }
.checkbox-field.has-error .box { border-color: var(--neon-red); }

/* Honeypot — für Menschen unsichtbar, für Bots ein sichtbares Feld */
.bot-field {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}

.captcha-field {
    padding: 18px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--neon-blue);
    border-radius: var(--radius-sm);
}
.captcha-question { color: var(--neon-blue); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px;
}
.form-success .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px; height: 76px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: rgb(var(--rgb-green) / 0.12);
    border: 1px solid rgb(var(--rgb-green) / 0.35);
    color: var(--neon-green);
}
.form-success .icon svg { width: 36px; height: 36px; }
.form-success p { color: var(--text-muted); max-width: 46ch; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-7px); }
    40%, 80% { transform: translateX(7px); }
}
.is-shaking { animation: shake 0.4s ease; }

/* --- 10. Tabellen -------------------------------------------------------- */

.table-scroll {
    width: 100%;
    overflow-x: auto;
    background: rgba(19, 19, 24, 0.8);
    border: 1px solid var(--line-soft);
    border-radius: var(--border-radius);
    padding: 16px;
    /* macht per Tastatur scrollbar (A11y-Anforderung für scrollende Regionen) */
    scrollbar-width: thin;
}

.data-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-subtle); }
.data-table th { color: var(--text-strong); font-weight: 700; border-bottom: 2px solid rgb(var(--rgb-blue) / 0.3); }
.data-table td { color: var(--text-muted); font-size: 0.94rem; }
.data-table th:first-child, .data-table td:first-child { width: 32%; color: var(--text-main); font-weight: 600; }
.data-table .row-category {
    color: var(--neon-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.02);
}
.data-table .yes { color: var(--neon-green); }
.data-table .no { color: #5b616b; }

/* --- 11. Floating UI ----------------------------------------------------- */

.floating-btn {
    position: fixed;
    bottom: 20px;
    z-index: var(--z-floating);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    color: var(--text-main);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: all var(--dur-base) var(--ease-out);
}
.floating-btn:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 18px var(--neon-blue); }
.floating-btn svg { width: 20px; height: 20px; }

.consent-btn { left: 20px; }

.to-top-btn {
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
}
.to-top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 3px;
    width: 100%;
    z-index: var(--z-progress);
    background: var(--gradient-accent);
    box-shadow: 0 0 10px rgb(var(--rgb-blue) / 0.55);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

/* --- 12. Preloader ------------------------------------------------------- */

#preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-main);
    transition: opacity 0.5s ease, visibility 0.5s;
}

#preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* Ohne JavaScript darf der Preloader die Seite niemals verdecken. */
html:not(.js) #preloader { display: none; }

.preloader-stage {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    font-size: clamp(1.75rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    padding-inline: 20px;
}

.neon-slash { color: var(--neon-blue); margin-inline: 8px; }

.spinner-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.spinner-brand {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-strong);
}

.spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.06);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- 13. Consent-Modal --------------------------------------------------- */

.consent-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    /* Gleiches Vorgehen wie beim Menü-Panel: visibility hart schalten,
       damit die Schaltflächen sofort fokussierbar sind. */
    transition: opacity var(--dur-base) ease, visibility 0s linear var(--dur-base);
}
.consent-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur-base) ease, visibility 0s linear 0s;
}

.consent-box {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: min(88svh, 780px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(22px, 4vw, 32px);
    background: var(--bg-surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--border-radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform var(--dur-base) var(--ease-out);
}
.consent-overlay.is-open .consent-box { transform: scale(1); }

.consent-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--neon-blue);
    transition: background var(--dur-base) ease;
}
.consent-close:hover { background: rgba(255, 255, 255, 0.07); }
.consent-close svg { width: 18px; height: 18px; }

.consent-box h2 { font-size: 1.4rem; margin-bottom: 0; text-align: center; }

.consent-divider { border: 0; height: 1px; background: var(--line-soft); margin-block: 18px; }

.consent-text p { font-size: 0.85rem; line-height: 1.65; color: var(--text-muted); }
.consent-text a { text-decoration: underline; text-underline-offset: 3px; }

.consent-details {
    padding: 14px 16px;
    margin-top: 14px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--neon-blue);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.consent-details dt { color: var(--text-strong); font-weight: 600; margin-top: 10px; }
.consent-details dt:first-child { margin-top: 0; }

.consent-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
    margin-bottom: 20px;
}

.consent-option { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; font-weight: 600; }
.consent-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent-option .box {
    width: 20px; height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-fast) ease;
}
.consent-option input:checked + .box { background: var(--neon-blue); border-color: var(--neon-blue); }
.consent-option input:checked + .box::after {
    content: '';
    width: 5px; height: 10px;
    margin-top: -2px;
    border: solid #000;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.consent-option input:disabled + .box { border-color: #333; background: #333; cursor: not-allowed; }
.consent-option input:disabled + .box::after { border-color: #888; }
.consent-option input:focus-visible + .box { outline: 2px solid var(--neon-blue); outline-offset: 3px; }

.consent-actions { display: flex; flex-direction: column; gap: 10px; }
.consent-actions button { min-height: 46px; }

.consent-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 20px;
    font-size: 0.82rem;
}
.consent-links a { text-decoration: underline; text-underline-offset: 3px; }

/* --- 14. CTA-Banner ------------------------------------------------------ */

.cta-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 90% at 50% 100%,
                rgb(var(--rgb-purple) / 0.16), transparent 70%);
    pointer-events: none;
}

.cta-banner .container { position: relative; z-index: 1; }
.cta-banner p { color: var(--text-muted); font-size: var(--fs-lead); max-width: 58ch; margin-inline: auto; }
.cta-banner .hero-actions { justify-content: center; margin-top: 2rem; margin-bottom: 0; }

/* --- 15. Notiz-/Hinweisbox ----------------------------------------------- */

.callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-subtle);
    border-left: 3px solid var(--neon-blue);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.92rem;
}
.callout svg { width: 20px; height: 20px; color: var(--neon-blue); flex-shrink: 0; margin-top: 2px; }
.callout strong { display: block; color: var(--text-strong); margin-bottom: 4px; }

/* --- 16. Seiten-Kopf (Unterseiten) --------------------------------------- */

.page-hero {
    position: relative;
    padding-block: clamp(28px, 4vw, 44px) clamp(48px, 7vw, 76px);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    width: min(90vw, 900px);
    aspect-ratio: 2 / 1;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgb(var(--rgb-blue) / 0.1), transparent 70%);
    pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero .text-lead { max-width: 66ch; }
