/* ================================================================
   SECTIONS.CSS
   Extracted inline styles from section PHP files for browser caching.
   ================================================================ */


/* === Section: Hero === */

/* NEON-LOGO BOX - exakt wie Referenzbild
   Blauer Glow-Rahmen mit Lichtflare */
.neon-logo-box {
    position: relative;
    display: inline-block;
    padding: 1.2rem 3rem 2.2rem;
    border: 2px solid rgba(79, 174, 232, 0.95);
    border-radius: 1.6rem;
    /* Dunkler Innenraum - wie im Referenzbild, macht Texte lesbar */
    background: rgba(8, 18, 52, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow:
        0 0 4px   rgba(100, 190, 255, 1),
        0 0 12px  rgba(79,  174, 232, 0.95),
        0 0 28px  rgba(40,  120, 220, 0.80),
        0 0 60px  rgba(25,   80, 210, 0.55),
        0 0 100px rgba(15,   50, 190, 0.30),
        inset 0 0 18px rgba(79, 174, 232, 0.06);
    animation: neon-breathe 4s ease-in-out infinite;
    animation-delay: 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes neon-breathe {
    0%   { opacity: 1; box-shadow: 0 0 4px rgba(100,190,255,1), 0 0 12px rgba(79,174,232,0.95), 0 0 28px rgba(40,120,220,0.80), 0 0 60px rgba(25,80,210,0.55), 0 0 100px rgba(15,50,190,0.30), inset 0 0 18px rgba(79,174,232,0.06); }
    50%  { opacity: 1; box-shadow: 0 0 6px rgba(130,210,255,1), 0 0 20px rgba(79,174,232,1),    0 0 45px rgba(40,130,230,0.90), 0 0 85px rgba(25,90,220,0.65),  0 0 130px rgba(15,60,200,0.42), inset 0 0 25px rgba(79,174,232,0.10); }
    100% { opacity: 1; box-shadow: 0 0 4px rgba(100,190,255,1), 0 0 12px rgba(79,174,232,0.95), 0 0 28px rgba(40,120,220,0.80), 0 0 60px rgba(25,80,210,0.55), 0 0 100px rgba(15,50,190,0.30), inset 0 0 18px rgba(79,174,232,0.06); }
}

/* Lichtflare am unteren Rand - dezent, unterstuetzt ohne zu blenden */
.neon-flare {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 48px;
    background: radial-gradient(ellipse at center top,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(160, 215, 255, 0.45) 30%,
        rgba(80,  160, 240, 0.18) 58%,
        transparent 80%
    );
    filter: blur(3px);
    pointer-events: none;
}

/* "Dein digitaler" - erste Zeile */
.logo-top-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4em;
    line-height: 1.1;
    margin-bottom: 0.02em;
}

/* "Dein" - weisses Italic */
.logo-dein {
    font-style: italic;
    font-weight: 900;
    color: #ffffff;
    font-size: clamp(1.6rem, 5vw, 3.6rem);
    text-shadow:
        0 0 10px rgba(255,255,255,0.6),
        0 2px 8px rgba(0,0,0,0.45);
}

/* "digitaler" - Eis-Blau Italic */
.logo-digitaler {
    font-style: italic;
    font-weight: 900;
    color: #a8daf5;
    font-size: clamp(1.6rem, 5vw, 3.6rem);
    text-shadow:
        0 0 14px rgba(140, 210, 255, 0.95),
        0 0 32px rgba(79,  174, 232, 0.65),
        0 2px 8px rgba(0,0,0,0.40);
}

/* "Handwerker" - goldenes Gradient Italic */
.logo-handwerker {
    font-style: italic;
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 7rem);
    background: linear-gradient(to bottom,
        #ffe580 0%,
        #ffb800 30%,
        #ff9500 65%,
        #e07000 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    letter-spacing: -0.01em;
    filter: drop-shadow(0 3px 14px rgba(255, 165, 0, 0.60));
}

/* SLOGAN - Apple iOS Frosted Glass
   Sauber, klar, elegant */
.hero-slogan-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.2rem;
    border-radius: 999px;

    /* Apple iOS Frosted Glass */
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);

    /* Subtile Glasscheiben-Border */
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.07),
        0 1px 0 rgba(255,255,255,0.95) inset,
        0 -1px 0 rgba(0,0,0,0.04) inset;

    animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
}

.slogan-text {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 400;
    color: #1D1D1F;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

.slogan-text strong {
    font-weight: 700;
    color: #1D1D1F;
}

/* CTA-Button */
.hero-cta-btn {
    display: inline-flex;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.5s both;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-cta-btn:hover  { transform: translateY(-3px) scale(1.02); }
.hero-cta-btn:active { transform: translateY(-1px) scale(0.99); }

/* Sauberes Einblenden von unten */
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* MOBILE-SKALIERUNG - Logo & Slogan passen sich jedem Handy an
   Alle clamp()-Werte haben zu grosse Minima -> aggressiv skalieren */
@media (max-width: 480px) {
    /* Logo: "Dein digitaler" Zeile */
    .logo-dein,
    .logo-digitaler {
        font-size: clamp(1.1rem, 7.5vw, 2.4rem);
    }
    /* Logo: "Handwerker" - die grosse Hauptzeile */
    .logo-handwerker {
        font-size: clamp(1.8rem, 11.5vw, 5rem);
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    /* Slogan: Umbruch erlauben, kompakter */
    .slogan-text {
        white-space: normal;
        font-size: clamp(0.8rem, 3.5vw, 1.1rem);
        text-align: center;
    }
    .hero-slogan-glass {
        padding: 0.55rem 1.4rem;
        max-width: calc(100vw - 3rem);
    }
    /* CTA-Button: kompakteres Padding */
    .hero-cta-btn span {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        font-size: 1rem !important;
    }
    /* Gap im hero-content etwas kleiner */
    #hero-content {
        gap: 1.25rem;
    }
}


/* === Section: Pain === */

/* PAIN-SEKTION: Click-to-Expand fuer alle 4 Karten */
.pain-expand-card {
    cursor: pointer;
    user-select: none;
    touch-action: pan-y;          /* Vertikales Scrollen IMMER erlauben – verhindert "Kleb-Effekt" auf Mobile */
    -webkit-tap-highlight-color: transparent;  /* Kein blaues Flash auf iOS/Android beim Tippen */
}
.pain-expand-body-wrap {
    position: relative;
    max-height: 3.4em;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.pain-expand-body-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1.6em;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.94) 85%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.pain-expand-card.is-expanded .pain-expand-body-wrap {
    max-height: 14rem;
}
.pain-expand-card.is-expanded .pain-expand-body-wrap::after {
    opacity: 0;
}
.pain-expand-chevron {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    color: #94a3b8;
    font-size: 0.6rem;
    font-weight: 600;
    gap: 0.2rem;
    transition: color 0.2s;
}
.pain-expand-chevron svg {
    width: 11px; height: 11px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.pain-expand-card.is-expanded .pain-expand-chevron svg { transform: rotate(180deg); }
.pain-expand-card.is-expanded .pain-expand-chevron { color: #ef4444; }

/* DESKTOP (>= 640px): Text immer vollstaendig, kein Expand noetig */
@media (min-width: 640px) {
    .pain-expand-body-wrap {
        max-height: none !important;
        overflow: visible !important;
    }
    .pain-expand-body-wrap::after {
        display: none !important;
    }
    .pain-expand-chevron {
        display: none !important;
    }
    .pain-expand-card {
        cursor: default !important;
    }
}


/* === Section: Referenzen === */

/* --- ARCHITEKTUR CSS --- */
.reveal-element { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-element.is-visible { opacity: 1; transform: translateY(0); }

.state-stack { display: grid; grid-template-columns: 1fr; }
.state-layer { grid-area: 1 / 1; }

/* --- 1. Der "Stecker ziehen" Effekt --- */
.layer-old { transform-origin: center center; opacity: 1; z-index: 2; transition: opacity 0.3s ease; }
.is-modern .layer-old { animation: crtPowerOff 0.6s cubic-bezier(0.75, 0, 0.25, 1) forwards; pointer-events: none; }

@keyframes crtPowerOff {
    0% { transform: scale(1) scaleY(1); filter: brightness(1); opacity: 1; }
    40% { transform: scale(0.9) scaleY(0.01); filter: brightness(5); opacity: 1; background: white; }
    80% { transform: scale(0) scaleY(0); filter: brightness(10); opacity: 0; }
    100% { transform: scale(0) scaleY(0); opacity: 0; display: none; }
}

/* --- 2. Der Maschinen-Start --- */
.layer-new { opacity: 0; pointer-events: none; z-index: 1; }
.is-modern .layer-new { opacity: 1; pointer-events: auto; z-index: 3; transition: opacity 0.1s; }

.glass-dashboard {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04) !important;
    border-radius: 1.5rem;
    transform: scale(0.95) translateY(20px); opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.is-modern .glass-dashboard { transform: scale(1) translateY(0); opacity: 1; transition-delay: 0.3s; }

.benefit-card {
    opacity: 0; transform: translateY(40px) scale(0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    transition: all 0.3s ease;
}
.benefit-card:hover { background: #fff8f0; border-color: rgba(255, 149, 0, 0.3); transform: translateY(-4px); box-shadow: 0 4px 16px rgba(255,149,0,0.1); }
.is-modern .benefit-card { animation: popInCard 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

.is-modern .benefit-card:nth-child(1) { animation-delay: 0.4s; }
.is-modern .benefit-card:nth-child(2) { animation-delay: 0.5s; }
.is-modern .benefit-card:nth-child(3) { animation-delay: 0.6s; }
.is-modern .benefit-card:nth-child(4) { animation-delay: 0.7s; }
.is-modern .benefit-card:nth-child(5) { animation-delay: 0.8s; }
.is-modern .benefit-card:nth-child(6) { animation-delay: 0.9s; }
@keyframes popInCard { to { opacity: 1; transform: translateY(0) scale(1); } }

.inline-toast {
    max-height: 0; opacity: 0; transform: translateY(10px); overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s, transform 0.6s;
}
.inline-toast.show-toast { max-height: 120px; opacity: 1; transform: translateY(0); }

.toggle-btn { position: relative; display: flex; background: #f0f0f0; border-radius: 999px; padding: 6px;
    border: 1px solid rgba(0,0,0,0.1); outline: none; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.toggle-btn:focus-visible { border-color: rgba(255, 149, 0, 0.8); box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.3); }
.toggle-pill { position: absolute;
    top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); border-radius: 999px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 4px 20px rgba(249, 115, 22, 0.5);
}
.is-modern .toggle-pill { transform: translateX(100%); }

/* ================================================================
   ANIMIERTES BROWSER-MOCKUP (ersetzt das statische Bild)
   ================================================================ */

/* Haupt-Wrapper: Laptop + Handy nebeneinander */
.mockup-scene {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* ---- BROWSER-FENSTER ---- */
.old-browser-mockup {
    flex: 1 1 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
    background: #1a1a1a;
    transform: translateX(-60px) rotate(-2deg);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.7s ease;
}
.mockup-scene.in-view .old-browser-mockup {
    transform: translateX(0) rotate(-1deg);
    opacity: 1;
}

/* Browser-Titelleiste */
.obm-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #2d2d2d;
    border-bottom: 1px solid #444;
}
.obm-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
.obm-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
}
.obm-dot-r { background: #ff5f57; }
.obm-dot-y { background: #febc2e; }
.obm-dot-g { background: #28c840; }

.obm-urlbar {
    flex: 1;
    background: #1a1a1a;
    border-radius: 4px;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    border: 1px solid #444;
    min-width: 0;
}
.obm-not-secure {
    font-size: 8px;
    font-weight: 700;
    color: #ef4444;
    white-space: nowrap;
    border: 1px solid rgba(239,68,68,0.4);
    border-radius: 3px;
    padding: 1px 4px;
    flex-shrink: 0;
}
.obm-url {
    font-size: 9px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
}

/* Browser-Body (simulierte alte Website) */
.obm-body {
    background: #f0ede8;
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

/* Ladeleiste (haengt bei 35%) */
.obm-loading-bar {
    height: 3px;
    background: #ddd;
    position: relative;
}
.obm-loading-progress {
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    animation: loadingStuck 3s ease-in-out infinite;
}
@keyframes loadingStuck {
    0%, 60% { width: 35%; opacity: 1; }
    70% { width: 37%; opacity: 0.7; }
    80% { width: 35%; opacity: 1; }
    100% { width: 35%; opacity: 1; }
}

/* Simulated old website content */
.obm-site {
    padding: 8px;
    font-family: Arial, sans-serif;
}
.obm-site-header {
    background: #003366;
    color: white;
    text-align: center;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 6px;
    border-radius: 2px;
}
.obm-site-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}
.obm-nav-item {
    font-size: 7px;
    padding: 2px 5px;
    background: #003366;
    color: white;
    border-radius: 2px;
    white-space: nowrap;
}
.obm-broken-img {
    width: 100%;
    height: 55px;
    background: #e8e8e8;
    border: 2px dashed #bbb;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    color: #999;
    font-size: 7px;
}
.obm-broken-img .broken-icon {
    font-size: 14px;
    margin-bottom: 2px;
    filter: grayscale(1);
}

/* Error-Karten in der simulierten Website */
.obm-errors {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.obm-err-card {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 3px solid #ef4444;
    border-radius: 3px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.mockup-scene.in-view .obm-err-card:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.5s; }
.mockup-scene.in-view .obm-err-card:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.7s; }
.mockup-scene.in-view .obm-err-card:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.9s; }
.mockup-scene.in-view .obm-err-card:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 1.1s; }

.obm-err-icon { font-size: 10px; flex-shrink: 0; }
.obm-err-text { font-size: 7px; color: #333; line-height: 1.4; }
.obm-err-text strong { color: #ef4444; display: block; font-size: 7.5px; }

/* PageSpeed-Badge */
.obm-pagespeed {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: #1a1a1a;
    border: 1px solid #ef4444;
    border-radius: 6px;
    padding: 4px 7px;
    font-size: 8px;
    font-weight: 700;
    color: #ef4444;
    box-shadow: 0 0 10px rgba(239,68,68,0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.mockup-scene.in-view .obm-pagespeed { opacity: 1; transition-delay: 1.3s; }

/* ---- HANDY-MOCKUP (nur Desktop sichtbar) ---- */
.old-phone-mockup {
    display: none;
    flex-shrink: 0;
    width: 80px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
    background: #111;
    transform: translateX(40px) rotate(3deg);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s, opacity 0.7s ease 0.3s;
}
@media (min-width: 640px) {
    .old-phone-mockup { display: block; }
}
.mockup-scene.in-view .old-phone-mockup {
    transform: translateX(0) rotate(2deg);
    opacity: 1;
}

/* Handy-Notch */
.opm-notch {
    height: 18px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
}
.opm-notch-dot {
    width: 20px; height: 5px;
    background: #444;
    border-radius: 3px;
}

/* Handy-Screen mit Overflow-Warnung */
.opm-screen {
    background: #f0ede8;
    min-height: 130px;
    position: relative;
    overflow: hidden;
}

/* Simulierter Website-Content am Handy (zu breit, abgeschnitten) */
.opm-desktop-content {
    width: 260px; /* Bewusst zu breit fuer den schmalen Screen */
    padding: 4px;
}
.opm-desktop-header {
    background: #003366;
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 5px 4px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.opm-desktop-text-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px;
}
.opm-line {
    height: 4px;
    background: #ccc;
    border-radius: 2px;
}
.opm-line-short { width: 70%; }

/* Overlay: "Nicht fuer Mobile optimiert" */
.opm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-align: center;
    gap: 4px;
}
.opm-overlay-icon {
    font-size: 20px;
}
.opm-overlay-text {
    font-size: 7px;
    font-weight: 700;
    color: #f97316;
    line-height: 1.4;
}
.opm-overlay-sub {
    font-size: 6px;
    color: #999;
    line-height: 1.4;
}

/* Handy-Home-Indikator */
.opm-home {
    height: 14px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #333;
}
.opm-home-bar {
    width: 30px; height: 3px;
    background: #555;
    border-radius: 2px;
}

/* Pulsierender "Warnung"-Ring um das Handy */
@keyframes warningPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
    50% { box-shadow: 0 0 0 6px rgba(249,115,22,0.15); }
}
.mockup-scene.in-view .old-phone-mockup {
    animation: warningPulse 2.5s ease-in-out 2s infinite;
}

/* --- Grid Layout fuer Mockup + Fehlerliste --- */
.mockup-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (min-width: 1024px) {
    .mockup-grid {
        display: grid;
        grid-template-columns: 48% 52%;
        gap: 1.5rem;
        align-items: center;
    }
}
.mockup-text-container {
    position: relative;
    z-index: 10;
}
@media (max-width: 1023px) {
    .mockup-scene {
        max-width: 300px;
        margin-bottom: 0;
    }
}
/* FIX: Handy-Mockup auch auf Mobile zeigen (verkleinert) */
@media (max-width: 639px) {
    .old-phone-mockup {
        display: block !important;
        width: 56px;
    }
    .old-phone-mockup .opm-screen { min-height: 90px; }
    .old-phone-mockup .opm-overlay-icon { font-size: 14px; }
    .old-phone-mockup .opm-overlay-text { font-size: 6px; }
    .old-phone-mockup .opm-overlay-sub { font-size: 5px; }
}


/* === Section: Ueber Mich === */

/* Scoped nur auf diese Section - kein globales Override! */
#ueber-mich .um-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
#ueber-mich .um-fade-in.visible { opacity: 1; transform: translateY(0); }

#ueber-mich .um-timeline-item { opacity: 0; transform: translateX(-20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
#ueber-mich .um-timeline-item.visible { opacity: 1; transform: translateX(0); }
#ueber-mich .um-timeline-item:nth-child(1) { transition-delay: 0.2s; }
#ueber-mich .um-timeline-item:nth-child(2) { transition-delay: 0.4s; }
#ueber-mich .um-timeline-item:nth-child(3) { transition-delay: 0.6s; }

/* CLICK-TO-EXPAND: Timeline-Item Karten
   Collapsed: ~3 Zeilen sichtbar + Fade-Gradient
   Expanded: voller Inhalt mit sanftem max-height Uebergang */

/* Die klickbare Karte selbst */
.um-expand-card {
    cursor: pointer;
    user-select: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

/* Wrapper um den Text mit Clipping */
.um-expand-body-wrap {
    position: relative;
    max-height: 3.8em;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade-Gradient am unteren Rand (zeigt "mehr" an) */
.um-expand-body-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.8em;
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.95) 85%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Expanded: Gradient ausblenden, volle Hoehe */
.um-expand-card.is-expanded .um-expand-body-wrap {
    max-height: 20rem; /* gross genug fuer den laengsten Text */
}
.um-expand-card.is-expanded .um-expand-body-wrap::after {
    opacity: 0;
}

/* Chevron-Indicator am Kartenrand */
.um-expand-chevron {
    display: inline-flex;
    align-items: center;
    margin-top: 0.4rem;
    color: #86868B;
    font-size: 0.65rem;
    font-weight: 600;
    gap: 0.25rem;
    transition: color 0.2s;
}
.um-expand-chevron svg {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: 12px; height: 12px;
}
.um-expand-card.is-expanded .um-expand-chevron svg {
    transform: rotate(180deg);
}
.um-expand-card.is-expanded .um-expand-chevron {
    color: #0051D5;
}

/* DESKTOP (>= 640px): Text immer vollstaendig sichtbar */
@media (min-width: 640px) {
    .um-expand-body-wrap {
        max-height: none !important;
        overflow: visible !important;
    }
    .um-expand-body-wrap::after {
        display: none !important;
    }
    .um-expand-chevron {
        display: none !important;
    }
    .um-expand-card {
        cursor: default !important;
    }
}

/* Orange-Vorteil-Karte: andere Gradient-Farbe */
#vcard-orange .um-expand-body-wrap::after {
    background: linear-gradient(to bottom, transparent, rgba(255, 250, 245, 0.95) 85%);
}
/* Emerald-Karte */
#vcard-emerald .um-expand-body-wrap::after {
    background: linear-gradient(to bottom, transparent, rgba(245, 252, 248, 0.95) 85%);
}


/* === Section: Vorteile === */

.glass-card-dark {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}

.vorteil-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}

/* Das Highlight der aktiven Karte */
.vorteil-active {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transform: scale(1.02) !important;
    opacity: 1 !important;
}

/* Farbige Raender fuer die aktive Karte */
.vorteil-active.cyan-glow { border-left-color: #0051D5; box-shadow: 0 0 30px rgba(0, 81, 213, 0.1); }
.vorteil-active.orange-glow { border-left-color: #FF9500; box-shadow: 0 0 30px rgba(255, 149, 0, 0.15); }

/* Butterweicher Bildwechsel */
#vorteile-mockup-img {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-out;
    will-change: opacity, transform;
}

/* MOBILE ACCORDION: Inline-Mockup pro Karte (< 1024px)
   -> Sticky-Bild-Spalte versteckt, jede aktive Karte zeigt
     ihr eigenes Mockup-Bild direkt darunter auf. */

/* Das Inline-Mockup-Bild: Standard kollabiert */
.vorteil-mobile-media {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
}
/* Wenn Karte aktiv: Bild aufklappen */
.vorteil-card.vorteil-active .vorteil-mobile-media {
    max-height: 320px;
    opacity: 1;
}
/* Auf Desktop (>= 1024px): komplett ausblenden */
@media (min-width: 1024px) {
    .vorteil-mobile-media { display: none !important; }
}

/* Mobile: Sticky-Spalte mit dem grossen Bild komplett verstecken */
@media (max-width: 1023px) {
    .vorteil-desktop-image-col { display: none !important; }
    /* Cards: volle Breite, schoener Spacing */
    #vorteile .lg\:col-span-7 {
        padding-bottom: 0 !important;
    }
    /* Aktive Karte: etwas mehr Schatten fuer Tiefe */
    .vorteil-card.vorteil-active {
        box-shadow: 0 8px 32px rgba(0,0,0,0.10) !important;
    }
    /* Karten normal (nicht kollabiert) auf Mobile */
    .vorteil-card.opacity-50 {
        opacity: 0.65 !important;
        transform: scale(0.98) !important;
    }
}


/* === Section: Preise === */

/* --- ARCHITEKTUR CSS - APPLE STYLE --- */
/* NOTE: .glass-card-dark is already defined in Section: Vorteile above */

.glass-card-cyan:hover {
    border-color: rgba(0, 81, 213, 0.3);
    box-shadow: 0 15px 40px rgba(0, 81, 213, 0.08);
    background: rgba(255, 255, 255, 0.85);
}
.glass-card-green:hover {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

.glass-card-highlight {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 149, 0, 0.4);
    border-radius: 1.5rem;
    box-shadow: 0 8px 40px rgba(255, 149, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-highlight:hover {
    border-color: rgba(255, 149, 0, 0.6);
    box-shadow: 0 15px 50px rgba(255, 149, 0, 0.2);
}

/* ── Light-Mode Schutz für Content-Bereiche ──
   Die Sektionen sind alle hell (F5F5F7 / weiß),
   nur der Parallax-Background dahinter ist dunkel.
   Wir erzwingen color-scheme:light auf alle Content-Sektionen,
   damit Mobile-Browser nichts invertieren. */
#main-content,
#main-content * {
    color-scheme: light;
}

/* Explizite Hintergründe für helle Karten —
   schützt vor Dark Reader und native dark-mode Interpretation */
#preise article,
#preise .bodenplatte-card {
    background-color: #ffffff !important;
}
#preise,
#vorteile,
#pain,
#ueber-mich,
#referenzen,
#proof {
    background-color: #F5F5F7 !important;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.icon-glow-cyan:hover {
    color: #0051D5;
    filter: drop-shadow(0 0 8px rgba(0, 81, 213, 0.4));
}
.icon-glow-orange:hover {
    color: #FF9500;
    filter: drop-shadow(0 0 8px rgba(255, 149, 0, 0.4));
}
.icon-glow-green:hover {
    color: #34C759;
    filter: drop-shadow(0 0 8px rgba(52, 199, 89, 0.4));
}

@keyframes star-pulse { 0%, 100% { box-shadow: 0 0 15px rgba(249,115,22,0.6); } 50% { box-shadow: 0 0 35px rgba(249,115,22,1); } }

/* PREISE: Mobile Kompakt-Modus
   Feature-Listen sind collapsed, Details-Toggle klappt auf.
   Nur <= 639px aktiv (Mobile). Desktop = immer alles sichtbar. */
@media (max-width: 639px) {
    /* Feature-Listen: collapsed by default */
    #preise article .feature-list,
    #preise .bodenplatte-card .feature-list {
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0 !important;
    }
    #preise article.preis-open .feature-list,
    #preise .bodenplatte-card.preis-open .feature-list {
        max-height: 200rem !important;
    }
    /* "Das bringt's"-Box: collapsed */
    #preise article .pt-5.mt-6.border-t,
    #preise .bodenplatte-card .pt-5.mt-6.border-t {
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        transition: max-height 0.5s ease;
    }
    #preise article.preis-open .pt-5.mt-6.border-t,
    #preise .bodenplatte-card.preis-open .pt-5.mt-6.border-t {
        max-height: 20rem !important;
        padding: 0.5rem 0.75rem !important;
        margin-top: 0.5rem !important;
        border-top: 1px solid rgba(0,0,0,0.06) !important;
    }
    /* "Inklusive"-Badge: verkleinern */
    #preise article .border.rounded.p-2.mb-6 {
        margin-bottom: 0.25rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    /* Bodenplatte Beschreibung: collapsed */
    #preise .bodenplatte-card p.text-sm.mb-6 {
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        transition: max-height 0.5s ease;
    }
    #preise .bodenplatte-card.preis-open p.text-sm.mb-6 {
        max-height: 20rem !important;
        margin-bottom: 0.375rem !important;
    }
    /* Toggle-Button Styling */
    .preis-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        width: 100%;
        padding: 0.4rem 0;
        margin: 0.25rem 0 0.25rem;
        font-size: 0.65rem;
        font-weight: 700;
        color: #94a3b8;
        cursor: pointer;
        user-select: none;
        border: none;
        background: none;
        transition: color 0.2s;
    }
    .preis-toggle-btn svg { width: 11px; height: 11px; transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
    .preis-open .preis-toggle-btn svg { transform: rotate(180deg); }
    .preis-open .preis-toggle-btn { color: #0051D5; }
}
@media (min-width: 640px) {
    .preis-toggle-btn { display: none !important; }
}


/* === Section: Testimonials === */

.proof-expand-card { cursor: pointer; user-select: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.proof-expand-body-wrap { position: relative; max-height: 3.4em; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.proof-expand-body-wrap::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1.6em; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.96) 85%); pointer-events: none; transition: opacity 0.3s ease; }
.proof-expand-card.is-expanded .proof-expand-body-wrap { max-height: 14rem; }
.proof-expand-card.is-expanded .proof-expand-body-wrap::after { opacity: 0; }
.proof-expand-chevron { display: inline-flex; align-items: center; margin-top: 0.35rem; color: #94a3b8; font-size: 0.6rem; font-weight: 600; gap: 0.2rem; transition: color 0.2s; }
.proof-expand-chevron svg { width: 11px; height: 11px; transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.proof-expand-card.is-expanded .proof-expand-chevron svg { transform: rotate(180deg); }
.proof-expand-card.is-expanded .proof-expand-chevron { color: #FF9500; }
@media (min-width: 640px) {
    .proof-expand-body-wrap { max-height: none !important; overflow: visible !important; }
    .proof-expand-body-wrap::after { display: none !important; }
    .proof-expand-chevron { display: none !important; }
    .proof-expand-card { cursor: default !important; }
}


/* === Section: Trust === */

/* CLICK-TO-EXPAND: Trust-Karten (Garantien + Schritte)
   Identisches Muster wie Ueber-mich & Pain-Section */
.trust-expand-card {
    cursor: pointer;
    user-select: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}
.trust-expand-body-wrap {
    position: relative;
    max-height: 3.4em;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.trust-expand-body-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1.6em;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.96) 85%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.trust-expand-card.is-expanded .trust-expand-body-wrap {
    max-height: 12rem;
}
.trust-expand-card.is-expanded .trust-expand-body-wrap::after {
    opacity: 0;
}
.trust-expand-chevron {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    color: #86868B;
    font-size: 0.6rem;
    font-weight: 700;
    gap: 0.2rem;
    transition: color 0.2s;
}
.trust-expand-chevron svg {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: 11px; height: 11px;
}
.trust-expand-card.is-expanded .trust-expand-chevron svg { transform: rotate(180deg); }
.trust-expand-card.is-expanded .trust-expand-chevron { color: #0051D5; }

/* Desktop (>= 640px): Text immer voll sichtbar, kein Chevron */
@media (min-width: 640px) {
    .trust-expand-body-wrap {
        max-height: none !important;
        overflow: visible !important;
    }
    .trust-expand-body-wrap::after { display: none !important; }
    .trust-expand-chevron { display: none !important; }
    .trust-expand-card { cursor: default !important; }
}
