html, body {
    background-color: #6d6e70;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Kein Wegziehen/Nachfedern am Seitenende. NUR auf html: auf body (= wegen overflow-x ein eigener Scroll-Container) blockiert es
   das Mausrad, die Seite lässt sich dann nur noch an der Scrollleiste bewegen (z. B. /projekte). */
html {
    overscroll-behavior-y: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

code {
    color: #c02d76;
}

/* Blazor System & Error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2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jY1LjEwNCA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Ladeanzeige (Loading Spinner) */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* Smartphone: Platz unter dem Seiteninhalt für die Design-Leiste (ThemeSlider unten links) */
@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
}

/* ==========================================================================
   HERO MORPHING TRANSITION (/ -> /alternative3)
   ========================================================================== */

#hero-morph-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
}

/* Sanfter atmosphärischer Hintergrund-Überblendungs-Layer */
.hero-morph-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255, 255, 255, 0.20), transparent 70%),
                radial-gradient(ellipse at 50% 45%, transparent 38%, rgba(0, 0, 0, 0.45) 100%),
                linear-gradient(160deg, #8a8b8d, #5f6062);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

#hero-morph-card {
    position: absolute;
    box-sizing: border-box;
    transform-origin: center center;
    will-change: left, top, width, height, transform, padding, box-shadow, background;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    background: transparent;
    border: 0px solid transparent;
    padding: 0;
    z-index: 10;
}

.hero-morph-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    overflow: hidden;
}

/* 1. Maskierte Ebene (Puzzleteil): startet sichtbar, löst sich während des Fluges auf */
.hero-morph-mask-layer {
    position: absolute;
    inset: 0;
    opacity: 1;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: opacity 0.45s ease-out 0.12s;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

.hero-morph-mask-layer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* 2. Rechteckige Ebene (Vollbild 4:5): startet transparent, entfaltet sich zum sauberen Foto */
.hero-morph-rect-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(14, 16, 22, 0.6);
    transition: opacity 0.5s ease-in 0.22s;
}

.hero-morph-rect-layer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    filter: contrast(1.06) saturate(0.95);
}

/* 3. Retro-Glasrahmen (wie n3-portrait mit Bernstein-Glühen und Lichtreflex) */
.hero-morph-retro-frame {
    position: absolute;
    inset: 0;
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease 0.28s;
}

.hero-morph-reflex {
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.28) 50%, transparent 62%);
    background-size: 280% 100%;
    background-position: 130% 0;
    mix-blend-mode: soft-light;
}

/* 4. Polaroid Caption (Alternative 2) */
.hero-morph-polaroid-caption {
    display: none;
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    color: #111;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease 0.35s;
}

.theme-polaroid .hero-morph-polaroid-caption {
    display: block;
}

/* Theme-Spezifika: Cyber Glühen & Dematerialisierung */
.theme-cyber {
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

/* Zustand bei Landung auf der Zielseite */
#hero-morph-card.morph-landing .hero-morph-mask-layer {
    opacity: 0;
}

#hero-morph-card.morph-landing .hero-morph-rect-layer {
    opacity: 1;
}

#hero-morph-card.morph-landing.theme-retro .hero-morph-retro-frame {
    opacity: 1;
}

#hero-morph-card.morph-landing.theme-polaroid .hero-morph-polaroid-caption {
    opacity: 1;
}

/* Hero-Sektionen auf den Zielseiten stabilisieren, während Morph aktiv ist */
body.hero-morphing .n3-inhalt > .n3-hero {
    animation: none !important;
    transform: none !important;
}

body.hero-morphing .n3-hero-kopf,
body.hero-morphing .n3-hero-text {
    animation: n3-ein 0.8s var(--n3-ease) backwards;
}

body.hero-morphing .ag-hero,
body.hero-morphing .bz-hero,
body.hero-morphing .holo-content-box {
    animation: none !important;
}

/* ==========================================================================
   CINEMATIC LAYOUT & ATMOSPHERE ENTRANCE FÜR ALTERNATIVE 2
   ========================================================================== */

/* 1. Distressed Top-Navigation gleitet sanft von oben hinein */
body.hero-morphing-polaroid .ag-nav {
    animation: agNavEin 0.62s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.12s;
}

@keyframes agNavEin {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. CRT Scanlines wachsen atmosphärisch auf */
body.hero-morphing-polaroid .ag-root::after {
    animation: agCrtEin 0.75s ease-out backwards;
    animation-delay: 0.14s;
}

@keyframes agCrtEin {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}

/* 3. Kicker & Distressed Name steigen dynamisch auf */
body.hero-morphing-polaroid .ag-kicker {
    animation: agItemEin 0.58s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.16s;
}

body.hero-morphing-polaroid .ag-headline {
    animation: agItemEin 0.68s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.22s;
}

/* 4. Polaroid-Rahmen und Tape formieren sich stabil */
body.hero-morphing-polaroid .ag-hero .ag-polaroid {
    animation: agPolaroidEin 0.62s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.1s;
}

@keyframes agPolaroidEin {
    from {
        opacity: 0.2;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        filter: blur(0px);
    }
}

body.hero-morphing-polaroid .ag-hero .ag-tape {
    animation: agTapeEin 0.5s ease-out backwards;
    animation-delay: 0.22s;
}

@keyframes agTapeEin {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 5. Lead-Text, Status & Action-Buttons folgen gestaffelt */
body.hero-morphing-polaroid .ag-lead,
body.hero-morphing-polaroid .ag-hero .badge,
body.hero-morphing-polaroid .ag-hero .ag-btn {
    animation: agItemEin 0.68s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.32s;
}

@keyframes agItemEin {
    from {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* ==========================================================================
   CINEMATIC LAYOUT & ATMOSPHERE ENTRANCE FÜR HOMEPAGE (/home - CYBER EDITION)
   ========================================================================== */

/* 1. Sidebar gleitet sanft von links hinein */
body.hero-morphing-cyber .sidebar {
    animation: cyberSidebarEin 0.65s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.12s;
}

@keyframes cyberSidebarEin {
    from {
        opacity: 0;
        transform: translateX(-35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 2. Cyber-Hintergrund-Lichtkugeln & Grid pulsieren sanft ein */
body.hero-morphing-cyber .holo-orb,
body.hero-morphing-cyber .cyber-bg-grid {
    animation: cyberBgEin 0.75s ease-out backwards;
    animation-delay: 0.1s;
}

@keyframes cyberBgEin {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   RAINEROS BOOT SCREEN ÜBERGANG (Gag für /home "Short&Stacked")
   ========================================================================== */

/* Verhindert vorzeitige Animationen der Home-Elemente während des RainerOS Bootvorgangs */
body.win95-booting .system-boot-element,
body.win95-booting .pop-in,
body.win95-booting .home-btn-card {
    animation-play-state: paused !important;
    opacity: 0 !important;
}

body.win95-revealed .system-boot-element,
body.win95-revealed .pop-in,
body.win95-revealed .home-btn-card {
    animation-play-state: running !important;
}

/* Fullscreen Boot-Screen Container */
.win95-boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #195e99;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: wait;
    animation: win95CrtPower 0.16s ease-out;
}

@keyframes win95CrtPower {
    0% {
        opacity: 0;
        transform: scaleY(0.005) scaleX(0.7);
        filter: brightness(3);
    }
    60% {
        opacity: 1;
        transform: scaleY(0.02) scaleX(1);
        filter: brightness(2);
    }
    100% {
        opacity: 1;
        transform: scaleY(1) scaleX(1);
        filter: brightness(1);
    }
}

/* CRT Scanlines & Bildschirm-Wölbung */
.win95-crt-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.22) 50%,
        rgba(0, 0, 0, 0.22)
    );
    background-size: 100% 3px;
    opacity: 0.75;
}

.win95-crt-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 11;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.65), inset 0 0 25px rgba(0, 0, 0, 0.8);
    background: radial-gradient(ellipse at center, transparent 65%, rgba(0, 0, 0, 0.45) 100%);
}

/* Himmel & Wolken */
.win95-sky {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, #185a94 0%, #2e7bbd 22%, #5b9ed6 50%, #8fc1eb 75%, #cae4f7 100%);
    overflow: hidden;
}

.win95-cloud {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0) 70%);
    filter: blur(18px);
    pointer-events: none;
}

.win95-cloud-1 {
    width: 650px;
    height: 280px;
    top: 5%;
    left: -10%;
    opacity: 0.85;
}

.win95-cloud-2 {
    width: 750px;
    height: 320px;
    top: 30%;
    right: -15%;
    opacity: 0.9;
}

.win95-cloud-3 {
    width: 500px;
    height: 220px;
    top: 55%;
    left: 10%;
    opacity: 0.75;
}

.win95-cloud-4 {
    width: 400px;
    height: 180px;
    top: 15%;
    right: 20%;
    opacity: 0.65;
}

/* Zentrales Branding */
.win95-center-branding {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
    padding: 20px;
    text-align: center;
}

/* Marke oben rechts im Bild (wie beim Vorbild, aber RainerSoft) */
.win95-ecke-marke {
    position: absolute;
    top: clamp(10px, 2vw, 18px);
    right: clamp(12px, 2.4vw, 24px);
    z-index: 6;
    font-family: 'Arial Black', Arial, Helvetica, sans-serif;
    font-size: clamp(16px, 2.6vw, 24px);
    font-weight: 900;
    letter-spacing: -1px;
    color: #0b0b0b;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.55);
}

.win95-ecke-marke .win95-reg {
    font-family: Arial, sans-serif;
    font-size: 0.4em;
    font-weight: 400;
    vertical-align: super;
    margin-left: 1px;
}

/* 4-Farben Flagge SVG */
.win95-flag-container {
    margin: 8px 0 12px;
    filter: drop-shadow(0 6px 14px rgba(0, 20, 50, 0.35));
    animation: win95FlagFloat 3s ease-in-out infinite alternate;
}

@keyframes win95FlagFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.win95-flag-svg {
    width: clamp(150px, 27vw, 240px);
    height: auto;
    display: block;
}

/* Titel wie beim Original: kleines „RainerSoft“ oben links, „Windows“ fett schwarz, „RK“ schlank weiss, darunter „Internet Edition“ */
.win95-titelbereich {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: -2px;
}

.win95-rs-klein {
    align-self: flex-start;
    margin: 0 0 -0.35em 0.15em;
    font-family: 'Segoe UI Light', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 3.2vw, 26px);
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 40, 90, 0.7), 0 1px 3px rgba(0, 40, 90, 0.4);
    line-height: 1;
}

.win95-title-block {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(2px, 0.6vw, 6px);
}

.win95-title-windows {
    font-family: 'Arial Black', 'Arial Bold', Arial, Helvetica, sans-serif;
    font-size: clamp(42px, 9vw, 80px);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #050505;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 20, 50, 0.3);
    line-height: 1;
}

.win95-title-95 {
    font-family: 'Segoe UI Light', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(42px, 9vw, 80px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 0 1px #000, 0 0 3px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 20, 50, 0.3);
    line-height: 1;
}

.win95-edition-zeile {
    margin-top: -0.2em;
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(15px, 3.1vw, 27px);
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #050505;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
    line-height: 1.1;
}

/* Ladebalken im Windows-XP-Stil direkt unter dem Logo (keine dunkle Fußleiste, der Himmel füllt das ganze Bild) */
.win95-lade {
    width: clamp(220px, 46vw, 380px);
    margin-top: clamp(14px, 3vh, 26px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.win95-status-text {
    font-family: Tahoma, 'Segoe UI', Verdana, sans-serif;
    font-size: clamp(12px, 1.9vw, 15px);
    font-weight: 700;
    color: #000000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 5px rgba(255, 255, 255, 0.35);
    text-align: center;
    min-height: 2.6em;   /* zwei Zeilen Platz: lange Sätze brechen um, der Balken springt nicht */
}

.win95-progress-outer {
    width: 100%;
}

/* XP-Optik: abgerundete Schiene mit hellem Rand, darin grüne, abgerundete Blöcke */
.win95-progress-bevel {
    position: relative;
    width: 100%;
    height: 20px;
    padding: 2px;
    background: linear-gradient(180deg, #f4f7fb 0%, #dfe7f2 100%);
    border: 1px solid #6a7f9c;
    border-radius: 7px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 30, 80, 0.35);
    overflow: hidden;
    box-sizing: border-box;
}

.win95-marquee-runner {
    display: none;
}

.win95-progress-fill {
    position: relative;
    height: 100%;
    width: 5%;
    border-radius: 4px;
    background-color: #2fb52f;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.05) 48%, rgba(0, 0, 0, 0.08) 52%, rgba(255, 255, 255, 0.22) 100%),
        repeating-linear-gradient(90deg, transparent 0 9px, #e9f0f8 9px 11px);
    background-blend-mode: normal;
    box-shadow: inset 0 0 0 1px rgba(20, 110, 20, 0.55);
    transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Kleingedrucktes unten im Bild, ohne eigene Leiste */
.win95-fuss-text {
    position: absolute;
    left: clamp(12px, 2.4vw, 24px);
    right: clamp(12px, 2.4vw, 24px);
    bottom: clamp(8px, 1.6vh, 14px);
    z-index: 6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: Tahoma, 'Segoe UI', Verdana, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #000000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.win95-skip-info {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
}

/* ==========================================================================
   CINEMATIC LAYOUT & ATMOSPHERE ENTRANCE FÜR ALTERNATIVE 1 (/alternative - BUSINESS)
   ========================================================================== */

/* Theme-Spezifika: Business */
.theme-business {
    border-radius: 16px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* 1. Elegante Business-Navigation gleitet von oben hinein */
body.hero-morphing-business .bz-nav {
    animation: bzNavEin 0.62s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.12s;
}

@keyframes bzNavEin {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Hintergrund-Mesh & Glanz-Atmosphäre blenden weich ein */
body.hero-morphing-business .bz-hero-mesh,
body.hero-morphing-business .bz-hero-mesh-2,
body.hero-morphing-business .bz-hero-glanz {
    animation: bzBgEin 0.75s ease-out backwards;
    animation-delay: 0.1s;
}

@keyframes bzBgEin {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 3. Kicker & Business-Titel steigen dynamisch auf */
body.hero-morphing-business .bz-kicker {
    animation: bzItemEin 0.58s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.16s;
}

body.hero-morphing-business .bz-hero h1 {
    animation: bzItemEin 0.68s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.22s;
}

/* 4. Portrait & Plakette gleiten elegant von rechts hinein */
body.hero-morphing-business .bz-portrait {
    animation: bzPortraitEin 0.65s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.16s;
}

@keyframes bzPortraitEin {
    from {
        opacity: 0;
        transform: translateX(24px) scale(0.97);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }
}

body.hero-morphing-business .bz-portrait-plakette {
    animation: bzPlaketteEin 0.6s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.28s;
}

@keyframes bzPlaketteEin {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 5. Lead-Text, Status & Aktions-Knöpfe folgen gestaffelt */
body.hero-morphing-business .bz-lead,
body.hero-morphing-business .bz-status,
body.hero-morphing-business .bz-knoepfe {
    animation: bzItemEin 0.68s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
    animation-delay: 0.32s;
}

/* ==========================================================================
   EXECUTIVE GOLD HORIZON SHIMMER (Gimmick für Business-Wechsel)
   ========================================================================== */
.hero-morph-gold-horizon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999999;
    pointer-events: none;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 168, 87, 0.4) 15%, 
        rgba(255, 240, 180, 0.98) 50%, 
        rgba(212, 168, 87, 0.4) 85%, 
        transparent 100%
    );
    box-shadow: 0 0 15px rgba(212, 168, 87, 0.85), 0 2px 8px rgba(255, 215, 0, 0.55);
    transform: scaleX(0);
    transform-origin: left center;
    animation: goldHorizonSweep 0.58s cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}

@keyframes goldHorizonSweep {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    80% {
        transform: scaleX(1);
        opacity: 0.9;
    }
    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}







/* ---- Desktop Darkmode Switch (Alternative 1 <-> Alternative 3) ---- */
.op-dark-switch {
    position: relative;
    width: 58px;
    height: 30px;
    border-radius: 999px;
    background: rgba(22, 24, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.op-dark-switch:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.op-dark-switch .op-switch-sun,
.op-dark-switch .op-switch-moon {
    font-size: 13px;
    line-height: 1;
    user-select: none;
    z-index: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.op-dark-switch .op-switch-sun {
    opacity: 0.95;
    transform: scale(1);
}

.op-dark-switch .op-switch-moon {
    opacity: 0.35;
    transform: scale(0.8);
}

.op-dark-switch .op-switch-knob {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #cfd3d9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

/* Zustand: Aktiv im Darkmode (auf /alternative3) */
.op-dark-switch.active {
    background: rgba(10, 12, 16, 0.88);
    border-color: rgba(0, 240, 255, 0.4);
}

.op-dark-switch.active:hover {
    border-color: rgba(0, 240, 255, 0.7);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.28);
}

.op-dark-switch.active .op-switch-knob {
    transform: translateX(26px);
    background: linear-gradient(135deg, #00f0ff, #0077ee);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.op-dark-switch.active .op-switch-sun {
    opacity: 0.35;
    transform: scale(0.8);
}

.op-dark-switch.active .op-switch-moon {
    opacity: 0.95;
    transform: scale(1);
}

@media (max-width: 899.98px) {
    .op-dark-switch {
        display: none !important;
    }
}
