﻿.material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    }
    body { font-family: 'Manrope', sans-serif; }
    /* ── Hero heading glow + word animation ── */
    @keyframes captionGlow {
        0%, 100% {
            filter:
                drop-shadow(0 0 12px rgba(217,119,6,0.45))
                drop-shadow(0 0 32px rgba(217,119,6,0.20));
        }
        40% {
            filter:
                drop-shadow(0 0 18px rgba(236,72,153,0.50))
                drop-shadow(0 0 48px rgba(236,72,153,0.22));
        }
        70% {
            filter:
                drop-shadow(0 0 16px rgba(168,85,247,0.48))
                drop-shadow(0 0 42px rgba(168,85,247,0.20));
        }
    }
    .text-glow {
        animation: captionGlow 6s ease-in-out infinite;
    }
    .glass-panel { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

    .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    .btn-vibrant {
        background: linear-gradient(135deg, #D97706 0%, #ec4899 50%, #a855f7 100%);
        background-size: 200% 200%;
        background-position: 0% 0%;
        transition: background-position 0.5s ease,
                    transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                    box-shadow 0.35s ease,
                    filter 0.35s ease;
        color: #000000 !important;
    }
    .btn-vibrant:hover {
        background-position: 100% 100%;
        transform: scale(1.05);
        filter: brightness(1.08);
        box-shadow: 0 14px 28px -6px rgba(236, 72, 153, 0.45);
    }
    .btn-vibrant:active {
        transform: scale(0.97);
    }
    .btn-outline {
        transition: background 0.3s ease,
                    border-color 0.3s ease,
                    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .btn-outline:hover {
        background: rgba(30, 27, 25, 1);
        border-color: rgba(217, 119, 6, 0.35);
        transform: scale(1.04);
    }
    .btn-outline:active {
        transform: scale(0.97);
    }

    /* ── Animated card border ─────────────────────────── */
    @property --border-angle {
        syntax: '<angle>';
        initial-value: 0deg;
        inherits: false;
    }

    @keyframes cardBorderSpin {
        to { --border-angle: 360deg; }
    }

    /* ambient glow cycles amber → pink → purple in sync with the spinning border */
    @keyframes cardGlowCycle {
        0%, 100% {
            box-shadow:
                0 0 30px -8px rgba(217, 119, 6, 0.45),
                0 20px 60px -15px rgba(217, 119, 6, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }
        35% {
            box-shadow:
                0 0 30px -8px rgba(236, 72, 153, 0.45),
                0 20px 60px -15px rgba(236, 72, 153, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }
        68% {
            box-shadow:
                0 0 30px -8px rgba(168, 85, 247, 0.45),
                0 20px 60px -15px rgba(168, 85, 247, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }
    }

    .atmospheric-card {
        position: relative;
        background: transparent;          /* fill provided by ::before */
        border-radius: 1rem;
        z-index: 1;
        overflow: hidden;
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    /* ── Fill layer: dark bg + radial highlight on hover ── */
    .atmospheric-card::before {
        content: '';
        position: absolute;
        inset: 1.5px;                     /* 1.5px gap = visible border width */
        border-radius: calc(1rem - 1.5px);
        background: #1a1614;
        z-index: -1;
        transition: background 0.6s ease;
        pointer-events: none;
    }
    .atmospheric-card:hover::before {
        background:
            radial-gradient(circle at 50% -10%, rgba(217, 119, 6, 0.14) 0%, transparent 60%),
            #1a1614;
    }

    /* ── Border layer: conic gradient that spins on hover ── */
    .atmospheric-card::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        /* Thin bright sweep against a very dark base */
        background: conic-gradient(
            from var(--border-angle),
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.04) 30%,
            #D97706 44%,
            #ec4899 52%,
            #a855f7 62%,
            rgba(255, 255, 255, 0.04) 76%,
            rgba(255, 255, 255, 0.04) 100%
        );
        z-index: -2;
        opacity: 0;
        animation: cardBorderSpin 3.5s linear infinite paused;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }

    .atmospheric-card:hover {
        transform: translateY(-8px);
        animation: cardGlowCycle 3.5s linear infinite;
    }
    .atmospheric-card:hover::after {
        opacity: 1;
        animation-play-state: running;
    }

    .card-glow-spot {
        position: absolute;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        filter: blur(60px);
        opacity: 0;
        transition: opacity 0.8s ease;
        pointer-events: none;
        z-index: 0;
    }
    .atmospheric-card:hover .card-glow-spot-amber {
        opacity: 0.2;
        top: -50px; left: -50px;
        background: #D97706;
    }
    .atmospheric-card:hover .card-glow-spot-pink {
        opacity: 0.15;
        bottom: -50px; right: -50px;
        background: #ec4899;
    }

    /* ── Scroll reveal ── */
    .reveal {
        opacity: 0;
        transform: translateY(34px);
        transition: opacity .7s cubic-bezier(.22,.68,0,1.2),
                    transform .7s cubic-bezier(.22,.68,0,1.2);
    }
    .reveal.visible { opacity: 1; transform: none; }
    .rd1 { transition-delay: .08s; }
    .rd2 { transition-delay: .18s; }
    .rd3 { transition-delay: .28s; }
    .rd4 { transition-delay: .38s; }
    .rd5 { transition-delay: .48s; }
    .rd6 { transition-delay: .58s; }

    /* ── Hero entrance ── */
    @keyframes heroIn {
        from { opacity: 0; transform: translateY(26px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .hi1 { animation: heroIn .9s .10s cubic-bezier(.22,.68,0,1.2) both; }
    .hi2 { animation: heroIn .9s .25s cubic-bezier(.22,.68,0,1.2) both; }
    .hi3 { animation: heroIn .9s .42s cubic-bezier(.22,.68,0,1.2) both; }
    .hi4 { animation: heroIn .9s .58s cubic-bezier(.22,.68,0,1.2) both; }

    /* ── Animated text cycle ── */
    @keyframes atcIn {
        from { transform: translateY(-16px); opacity: 0; filter: blur(8px); }
        to   { transform: translateY(0);     opacity: 1; filter: blur(0px); }
    }
    @keyframes atcOut {
        from { transform: translateY(0);    opacity: 1; filter: blur(0px); }
        to   { transform: translateY(16px); opacity: 0; filter: blur(8px); }
    }
    .atc-wrap {
        display: inline-block;
        overflow: visible;
        vertical-align: baseline;
        transition: width 0.45s cubic-bezier(0.34,1.56,0.64,1);
        position: relative;
    }
    .atc-word {
        display: inline-block;
        white-space: nowrap;
    }
    .atc-word.atc-in  { animation: atcIn  0.4s ease-out both; }
    .atc-word.atc-out { animation: atcOut 0.3s ease-in  both; }

    /* ── Hero background cinematic reveal ── */
    @keyframes heroBgReveal {
        0%,  18% { filter: blur(24px) saturate(0) brightness(0.45); } /* hesitation */
        100%     { filter: blur(0px)  saturate(1) brightness(1.00); }
    }
    .hero-bg-wrap {
        position: absolute; inset: 0; z-index: 0;
        background: url('https://offgrideology.de/wp-content/uploads/2026/04/hero-hor-scaled.webp') center / cover no-repeat;
        background-attachment: scroll;
        animation: heroBgReveal 1.4s 0.05s cubic-bezier(0.4,0,0.1,1) forwards;
        will-change: filter;
    }
    .hero-header {
        overflow: hidden;
    }
    @media (max-width: 767px) {
        .hero-header {
            min-height: 100svh;
            height: 100svh;
            padding-top: 0 !important;
            background-color: #0d0b0a; /* sofortiger Fallback bevor Bild lädt */
        }
        .hero-header::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background: url('https://offgrideology.de/wp-content/uploads/2026/04/hero-ver-scaled.webp') center top / cover no-repeat;
            animation: heroBgReveal 1.4s 0.05s cubic-bezier(0.4,0,0.1,1) forwards;
            will-change: filter;
        }
        .hero-header > .relative.z-10 {
            padding-top: 8rem;
            padding-left: 1rem;
            padding-right: 1rem;
        }
        .hero-bg-wrap {
            display: none;
        }
    }

    /* ── Site-wide fixed blurred background ── */

    /* body muss Positioning-Kontext sein damit body::before mit position:absolute
       auf Mobile korrekt die gesamte Scroll-Höhe abdeckt */
    body { position: relative; }

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -2;
        background: url('https://offgrideology.de/wp-content/uploads/2026/04/hero-hor-scaled.webp') center / cover no-repeat;
        filter: blur(32px) saturate(130%) brightness(0.70);
        transform: scale(1.06); /* prevents blur from leaving white edges */
        pointer-events: none;
    }
    body:not(.home)::after {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -1;
        background: rgba(13,11,10,0.42);
        pointer-events: none;
    }
    @media (max-width: 767px) {
        body::before {
            background-image: url('https://offgrideology.de/wp-content/uploads/2026/04/hero-ver-scaled.webp');
            /*
             * iOS/Android: Mobile-Browser blenden die Adressleiste beim Scrollen
             * ein/aus, was den Viewport verändert. position:fixed springt dabei.
             * Mit position:absolute + inset:0 erstreckt sich das Pseudo-Element
             * über die gesamte Seitenhöhe und bewegt sich mit dem Scroll-Container
             * mit → kein Sprung mehr. Das starke Blur (32px) macht den Unterschied
             * zur fixed-Variante unsichtbar.
             */
            position: absolute;
            transform: none; /* scale()-Trick nicht nötig, kein Blur-Edge-Problem */
        }
        body:not(.home)::after {
            position: absolute;
            height: 100%;
        }
    }
    /* Make sections semi-transparent so the fixed bg shows through */
    section.bg-background { background-color: rgba(13,11,10,0.55) !important; }
    footer#site-footer     { background-color: rgba(13,11,10,0.72) !important; }

    /* ── Hero scroll hint ── */
    @keyframes scrollPulse {
        0%, 100% { opacity: 0.15; transform: translateX(-50%) translateY(0); }
        50%      { opacity: 1;    transform: translateX(-50%) translateY(6px); }
    }
    @keyframes scrollAppear {
        from { opacity: 0; transform: translateX(-50%) translateY(10px); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
    /* ── Hero two-column split (desktop only) ── */
    .hero-split {
        display: block;
        width: 100%;
    }
    .hero-split__right { display: none; }

    @media (max-width: 767px) {
        .hero-desc { max-width: 52%; }
    }

    @media (min-width: 768px) {
        .hero-split         { display: table; table-layout: fixed; border-collapse: collapse; }
        .hero-split__left,
        .hero-split__right  { display: table-cell; width: 50%; vertical-align: top; }
    }

    .hero-scroll-hint {
        position: absolute; bottom: calc(52px + 1.8rem); left: 50%;
        transform: translateX(-50%);
        display: flex; flex-direction: column; align-items: center; gap: 7px;
        cursor: pointer; z-index: 30;
        animation: scrollAppear 0.9s 1.6s ease-out both, scrollPulse 2.2s 2.5s ease-in-out infinite;
    }
    .hero-scroll-label {
        font-size: 0.58rem; font-weight: 800;
        letter-spacing: 0.45em; text-transform: uppercase;
        color: rgba(255,255,255,0.90);
        white-space: nowrap;
    }
    .hero-scroll-arrow {
        display: flex; flex-direction: column; align-items: center; gap: 2px;
    }
    .hero-scroll-arrow span {
        display: block; width: 1.5px; height: 7px;
        background: linear-gradient(to bottom, rgba(217,119,6,0.0), rgba(217,119,6,0.85));
        border-radius: 2px;
    }
    .hero-scroll-arrow svg { color: rgba(217,119,6,0.90); }

    @keyframes flow {
        to { stroke-dashoffset: -40; }
    }
    .energy-path {
        stroke-dasharray: 20 20;
        animation: flow 2s linear infinite;
    }

    /* ── Hero parallax background (moved to .hero-bg-wrap) ── */

    /* ── Carousel ── */
    /* ── Focus Rail Card ── */
    .rail-card {
        position: absolute;
        width: 364px;
        aspect-ratio: 1 / 1;
        border-radius: 1rem;
        overflow: visible;           /* glow + border ring extend outside card bounds */
        background: transparent;
        cursor: pointer;
        transform-style: preserve-3d;
        will-change: transform, scale, opacity, filter;
        transition:
            transform 0.50s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            scale     0.55s cubic-bezier(0.34, 1.70, 0.64, 1),
            opacity   0.40s ease,
            filter    0.40s ease;
    }
    /* Inner div clips the image to the rounded card shape */
    .rail-card-inner {
        position: absolute;
        inset: 1.5px;
        border-radius: calc(1rem - 1.5px);
        overflow: hidden;
        background: #171717;
        z-index: 1;
    }
    /* Hover on the active card → extra pop scale (overrides inline style) */
    .rail-card--active { cursor: default; }
    .rail-card--active:hover { scale: 1.28 !important; }
    #gruendeRail,
    #focusRail,
    #blogRail,
    #refRail,
    #gruendeStage,
    #railStage,
    #blogStage,
    #refStage {
        touch-action: pan-y;
        overscroll-behavior-x: contain;
    }

    #gruendeStage,
    #railStage,
    #blogStage,
    #refStage,
    .rail-card {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    @media (min-width: 1024px) {
        section:has(#gruendeRail),
        section:has(#focusRail),
        section:has(#blogRail),
        section:has(#refRail) {
            padding-top: 3rem !important;
            padding-bottom: 3rem !important;
        }

        section:has(#gruendeRail) > .max-w-content,
        section:has(#focusRail) > .max-w-content,
        section:has(#blogRail) > .max-w-content,
        section:has(#refRail) > .max-w-content {
            margin-bottom: 3rem !important;
        }

        #gruendeRail { height: 650px !important; }
        #focusRail,
        #blogRail,
        #refRail { height: 710px !important; }
        #gruendeStage { height: 420px !important; top: 4px !important; }
        #railStage,
        #blogStage,
        #refStage { height: 480px !important; top: 4px !important; }
    }

    @media (max-width: 1023px) {
        section:has(#focusRail) .max-w-content.mb-16 > .flex {
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
        }

        section:has(#focusRail) .max-w-content.mb-16 > .flex > div,
        section:has(#focusRail) .max-w-content.mb-16 > .flex > p {
            max-width: 38rem;
        }

        section:has(#gruendeRail),
        section:has(#focusRail),
        section:has(#blogRail),
        section:has(#refRail) {
            padding-top: 3rem !important;
            padding-bottom: 3rem !important;
        }

        section:has(#gruendeRail) > .max-w-content,
        section:has(#focusRail) > .max-w-content,
        section:has(#blogRail) > .max-w-content,
        section:has(#refRail) > .max-w-content {
            margin-bottom: 2rem !important;
        }

        /* Card shrinks on tablet so it fits inside the stage at scale 1.20
           (290px × 1.20 = 348px visual — comfortably within 370px stage) */
        .rail-card { width: 290px; }

        #gruendeRail,
        #focusRail,
        #blogRail,
        #refRail {
            height: 700px !important;
        }

        #gruendeStage,
        #railStage,
        #blogStage,
        #refStage {
            height: 370px !important;
            top: 20px !important;
        }

        #gruendeRail > .absolute.inset-x-0.bottom-0,
        #focusRail > .absolute.inset-x-0.bottom-0,
        #blogRail > .absolute.inset-x-0.bottom-0,
        #refRail > .absolute.inset-x-0.bottom-0 {
            /* stage ends at 390px (20+370), 20px gap → info at 410px */
            top: 410px !important;
            bottom: auto !important;
            padding-bottom: 0 !important;
        }

        #gruendeRail .mx-auto.max-w-5xl,
        #focusRail .mx-auto.max-w-5xl,
        #blogRail .mx-auto.max-w-5xl,
        #refRail .mx-auto.max-w-5xl {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: flex-start !important;
            gap: 1rem !important;
        }

        #gruendeRail .mx-auto.max-w-5xl > .flex.items-center.gap-4.flex-shrink-0,
        #focusRail .mx-auto.max-w-5xl > .flex.items-center.gap-4.flex-shrink-0,
        #blogRail .mx-auto.max-w-5xl > .flex.items-center.gap-4.flex-shrink-0,
        #refRail .mx-auto.max-w-5xl > .flex.items-center.gap-4.flex-shrink-0 {
            order: 1;
        }

        #gruendeInfo,
        #railInfo,
        #blogInfo,
        #refInfo {
            order: 2;
            width: 100%;
        }

        /* Cap description text to container width on tablet too */
        #gruendeInfo p,
        #railInfo p,
        #blogInfo p,
        #refInfo p {
            max-width: 100% !important;
            box-sizing: border-box;
        }
    }

    @media (max-width: 767px) {
        .home #site-content > section > div h2 {
            font-size: 2rem !important;
            line-height: 1.08 !important;
        }

        .rail-card { width: 204px; }

        /* ── Section vertical spacing reduction on mobile ── */
        /* py-24 = 6rem → 3rem, py-32 = 8rem → 3.5rem, py-40 = 10rem → 4rem */
        .home #site-content > section.py-24,
        .home #site-content > section.py-32,
        .home #site-content > section.py-40 {
            padding-top: 3rem !important;
            padding-bottom: 3rem !important;
        }
        .home #site-content > section.py-32 {
            padding-top: 3.5rem !important;
            padding-bottom: 3.5rem !important;
        }
        .home #site-content > section.py-40 {
            padding-top: 4rem !important;
            padding-bottom: 4rem !important;
        }

        /* Inner container spacing */
        .home #site-content > section .mb-16 { margin-bottom: 2rem !important; }
        .home #site-content > section .mb-12 { margin-bottom: 1.75rem !important; }
        .home #site-content > section .gap-16 { gap: 2.5rem !important; }
        .home #site-content > section .gap-12 { gap: 2rem !important; }

        section:has(#gruendeRail),
        section:has(#focusRail),
        section:has(#blogRail),
        section:has(#refRail) {
            padding-top: 2rem !important;
            padding-bottom: 2rem !important;
        }

        section:has(#gruendeRail) > .max-w-content,
        section:has(#focusRail) > .max-w-content,
        section:has(#blogRail) > .max-w-content,
        section:has(#refRail) > .max-w-content {
            margin-bottom: 1.25rem !important;
        }

        #gruendeRail,
        #focusRail,
        #blogRail,
        #refRail {
            height: 555px !important;
        }

        /* focusRail (Anwendungen) hat kürzere Info-Texte → weniger Höhe nötig */
        #focusRail { height: 465px !important; }
        section:has(#focusRail) { padding-bottom: 1rem !important; }

        #gruendeStage,
        #railStage,
        #blogStage,
        #refStage {
            height: 260px !important;
            top: 8px !important;
        }

        /* Center info text + bullet points on mobile */
        #gruendeInfo,
        #railInfo,
        #blogInfo,
        #refInfo {
            min-height: auto !important;
            align-items: center;
            text-align: center;
            padding-inline: 0;
            gap: 0.35rem;
            width: 100%;
            box-sizing: border-box;
        }

        /* Constrain description text to available width.
           The <p> tags have max-width:28rem as inline style —
           !important is required to override inline styles. */
        #gruendeInfo p,
        #railInfo p,
        #blogInfo p,
        #refInfo p {
            max-width: 100% !important;
            box-sizing: border-box;
        }

        .gruende-features { justify-content: center; }

        #gruendeRail > .absolute.inset-x-0.bottom-0,
        #focusRail > .absolute.inset-x-0.bottom-0,
        #blogRail > .absolute.inset-x-0.bottom-0,
        #refRail > .absolute.inset-x-0.bottom-0 {
            /* Stage ends at 268px (8+260), 20px gap → info at 288px */
            top: 288px !important;
            padding-bottom: 0.5rem !important;
            padding-left: 1.25rem !important;
            padding-right: 1.25rem !important;
        }

        #gruendeRail .mx-auto.max-w-5xl,
        #focusRail .mx-auto.max-w-5xl,
        #blogRail .mx-auto.max-w-5xl,
        #refRail .mx-auto.max-w-5xl {
            gap: 0.75rem !important;
        }
    }

    /* ── Hamburger button ── */
    #menuToggle {
        display: none;
        width: 2.25rem; height: 2.25rem;
        flex-direction: column; align-items: center; justify-content: center; gap: 5px;
        background: transparent; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
    }
    @media (max-width: 1023px) { #menuToggle { display: flex; } }
    .ham-line {
        display: block; width: 22px; height: 2px;
        background: rgba(255,255,255,0.70);
        border-radius: 2px;
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                    opacity   0.25s,
                    width     0.35s cubic-bezier(0.4,0,0.2,1);
        transform-origin: center;
    }
    #menuToggle.is-open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #menuToggle.is-open .ham-line:nth-child(2) { opacity: 0; width: 0; }
    #menuToggle.is-open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── Mobile menu overlay ── */
    #mobileMenu {
        position: fixed; inset: 0; z-index: 49;
        display: flex; flex-direction: column;
        justify-content: center; align-items: center;
        background: rgba(13,11,10,0.96);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        opacity: 0; pointer-events: none;
        transition: opacity 0.35s ease;
    }
    #mobileMenu.is-open { opacity: 1; pointer-events: all; }

    .mob-nav-link {
        font-size: clamp(2.4rem, 9vw, 4rem);
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 1.15;
        color: rgba(255,255,255,0.12);
        text-decoration: none;
        padding: 0.15em 0;
        display: block;
        text-align: center;
        transform: translateY(18px);
        opacity: 0;
        transition: color 0.2s ease,
                    transform 0.45s cubic-bezier(0.4,0,0.2,1),
                    opacity   0.45s cubic-bezier(0.4,0,0.2,1);
    }
    .mob-nav-link:hover, .mob-nav-link.is-active { color: #D97706; }

    #mobileMenu.is-open .mob-nav-link { transform: translateY(0); opacity: 1; }
    #mobileMenu.is-open .mob-nav-link:nth-child(1) { transition-delay: 0.06s; }
    #mobileMenu.is-open .mob-nav-link:nth-child(2) { transition-delay: 0.12s; }
    #mobileMenu.is-open .mob-nav-link:nth-child(3) { transition-delay: 0.18s; }
    #mobileMenu.is-open .mob-nav-link:nth-child(4) { transition-delay: 0.24s; }

    .mob-menu-divider { width: 40px; height: 1px; background: rgba(255,255,255,0.08); margin: 2rem auto; }

    .mob-menu-bottom {
        transform: translateY(14px); opacity: 0;
        transition: transform 0.45s cubic-bezier(0.4,0,0.2,1) 0.30s,
                    opacity   0.45s cubic-bezier(0.4,0,0.2,1) 0.30s;
        text-align: center;
    }
    #mobileMenu.is-open .mob-menu-bottom { transform: translateY(0); opacity: 1; }

    /* ── Rail info caption colors ── */
    .rail-info-meta  { color: #34d399; }
    .rail-info-title {
        margin: 0 0 0.5rem;
        color: #ffffff;
        font-family: "Manrope", sans-serif;
        font-size: clamp(1.5rem, 3vw, 2.25rem);
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 1.05;
    }
    .rail-info-title--gruende {
        color: #ffffff;
    }
    .rail-info-title a {
        color: inherit;
        text-decoration: none;
    }
    .rail-info-desc  { color: #a3a3a3; }

    /* ── Landing headings ── */
    .home #site-content > section :where(h2, h3, h4, h5, h6):not(.rail-info-title) {
        margin: 0 0 1rem;
        color: #ffffff;
        font-family: "Manrope", sans-serif !important;
        font-weight: 800 !important;
        letter-spacing: -0.04em !important;
        line-height: 1.08 !important;
        font-style: normal !important;
    }

    /* Space before headings that follow other content */
    .home #site-content > section :where(* + h2):not(.rail-info-title) { margin-top: 3rem; }
    .home #site-content > section :where(* + h3):not(.rail-info-title) { margin-top: 2.25rem; }
    .home #site-content > section :where(* + h4):not(.rail-info-title) { margin-top: 1.75rem; }
    .home #site-content > section :where(* + h5, * + h6):not(.rail-info-title) { margin-top: 1.4rem; }

    /* Tighter margin when heading directly follows another heading */
    .home #site-content > section :where(h2 + h3, h3 + h4, h4 + h5):not(.rail-info-title) { margin-top: 0.5rem; }

    /* Fluid type scale */
    .home #site-content > section h1 { font-size: clamp(2.4rem, 4.5vw, 3.5rem) !important; }
    .home #site-content > section h2:not(.rail-info-title) { font-size: clamp(2rem, 3.8vw, 3rem) !important; }
    .home #site-content > section h3:not(.rail-info-title) { font-size: clamp(1.5rem, 3vw, 2.25rem) !important; }
    .home #site-content > section h4 { font-size: clamp(1.25rem, 2.2vw, 1.875rem) !important; }
    .home #site-content > section h5 { font-size: 1.125rem !important; line-height: 1.3 !important; }
    .home #site-content > section h6 {
        font-size: 0.75rem !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase;
        font-weight: 700 !important;
        opacity: 0.65;
    }

    /* Preserve inline decorative spans inside headings */
    .home #site-content > section :where(h2, h3, h4, h5, h6):not(.rail-info-title) span:not(.text-primary):not(.text-accent-pink) {
        color: inherit !important;
        font: inherit !important;
        letter-spacing: inherit !important;
    }
    .home #site-content > section :where(h2, h3, h4, h5, h6):not(.rail-info-title) .italic,
    .home #site-content > section :where(h2, h3, h4, h5, h6):not(.rail-info-title) .font-light,
    .home #site-content > section :where(h2, h3, h4, h5, h6):not(.rail-info-title) .tracking-tight,
    .home #site-content > section :where(h2, h3, h4, h5, h6):not(.rail-info-title) .tracking-tighter {
        font-style: normal !important;
        font-weight: inherit !important;
        letter-spacing: inherit !important;
    }

    /* ── Paragraph spacing under headings ── */
    .home #site-content > section :where(h2, h3, h4, h5, h6) + p {
        margin-top: 0;
    }
    .home #site-content > section p {
        line-height: 1.75;
    }
    .home #site-content > section p + p {
        margin-top: 1.1rem;
    }

    /* ── Section eyebrow labels (small uppercase text above headings) ── */
    .home #site-content > section .text-\[10px\],
    .home #site-content > section [class*="tracking-widest"] {
        margin-bottom: 0.6rem;
    }

    /* ── Footer ── */
    /* ── Footer: Solar-Panel-Grid mit dunklem Scrim für Lesbarkeit ── */
    .footer-grid-bg {
        position: absolute; inset: 0; z-index: 0; pointer-events: none;
        background-color: rgba(210, 228, 255, 0.055);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect x='2' y='2' width='36' height='36' rx='6' ry='6' fill='%230d0b0a' fill-opacity='0.65'/%3E%3C/svg%3E");
        background-size: 40px 40px;
    }
    /* Dunkler Scrim über dem Grid — verbessert Textlesbarkeit ohne das Muster zu verdecken */
    .footer-grid-bg::after {
        content: '';
        position: absolute; inset: 0;
        background: linear-gradient(to bottom,
            rgba(13,11,10,0.55) 0%,
            rgba(13,11,10,0.40) 50%,
            rgba(13,11,10,0.60) 100%
        );
    }
    /* footer content sits above grid via relative z-10 on .footer-inner */

    .footer-body    { color: rgba(255,255,255,0.65); }
    .footer-heading { color: rgba(255,255,255,0.30); letter-spacing: 0.25em; }
    .footer-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .footer-intro {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-nav {
        width: 100%;
    }
    .footer-nav-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.75rem 2rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .footer-link {
        font-size: 0.875rem;
        font-weight: 300;
        color: rgba(255,255,255,0.55);
        text-decoration: none;
        position: relative;
        transition: color 0.2s;
    }
    .footer-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 1px;
        background: #D97706;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .footer-link:hover::after,
    .footer-link.is-active::after { transform: scaleX(1); }
    .footer-link:hover,
    .footer-link.is-active { color: #D97706; }
    .footer-nav-link {
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.88);
    }
    .footer-contact-pills {
        margin-top: 0.25rem;
    }
    .footer-legal {
        width: 100%;
        text-align: center;
    }
    .footer-legal .footer-copy {
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1rem;
    }
    .footer-social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.50);
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .footer-social-icon:hover {
        background: rgba(217,119,6,0.16);
        border-color: rgba(217,119,6,0.40);
        color: #D97706;
    }
    .footer-divider { border-top: 1px solid rgba(255,255,255,0.06); }
    .footer-copy    { color: rgba(255,255,255,0.28); font-size: 0.75rem; }
    .footer-sep     { color: rgba(255,255,255,0.14); }
    @media (max-width: 767px) {
        .footer-stack {
            gap: 1.5rem;
        }
        .footer-nav-list {
            gap: 0.65rem 1.1rem;
        }
        .footer-nav-link {
            font-size: 0.78rem;
            letter-spacing: 0.05em;
        }
        .footer-legal-links {
            justify-content: center;
        }
    }

    /* ── Gradient Pill Buttons ── */
    .grad-pill-wrap { display: flex; flex-wrap: wrap; gap: 0.625rem; }
    .grad-pill {
        position: relative;
        width: 44px;
        height: 44px;
        border-radius: 9999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        text-decoration: none;
        flex-shrink: 0;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.09);
        transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
        overflow: visible;
    }
    .grad-pill:hover { width: 158px; }
    .grad-pill .gp-fill {
        position: absolute;
        inset: 0;
        border-radius: 9999px;
        background: linear-gradient(45deg, var(--gf), var(--gt));
        opacity: 0;
        transition: opacity 0.5s;
        pointer-events: none;
    }
    .grad-pill:hover .gp-fill { opacity: 1; }
    .grad-pill .gp-glow {
        position: absolute;
        left: 0; right: 0;
        top: 10px;
        height: 100%;
        border-radius: 9999px;
        background: linear-gradient(45deg, var(--gf), var(--gt));
        filter: blur(14px);
        opacity: 0;
        z-index: -1;
        transition: opacity 0.5s;
        pointer-events: none;
    }
    .grad-pill:hover .gp-glow { opacity: 0.45; }
    .grad-pill .gp-icon {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.50);
        transition: transform 0.3s, opacity 0.3s;
        flex-shrink: 0;
    }
    .grad-pill:hover .gp-icon { transform: scale(0); opacity: 0; transition-delay: 0s; }
    .grad-pill .gp-label {
        position: absolute;
        z-index: 2;
        color: #fff;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        white-space: nowrap;
        transform: scale(0);
        opacity: 0;
        transition: transform 0.3s 0.15s, opacity 0.3s 0.15s;
        pointer-events: none;
    }
    .grad-pill:hover .gp-label { transform: scale(1); opacity: 1; }

    /* ── Animated Wave Background ── */
    @keyframes blobDrift1 {
        0%, 100% { transform: translate(0%,   0%)   scale(1);    }
        30%       { transform: translate(12%,  -15%) scale(1.12); }
        65%       { transform: translate(-8%,  12%)  scale(0.92); }
    }
    @keyframes blobDrift2 {
        0%, 100% { transform: translate(0%,   0%)   scale(1);    }
        35%       { transform: translate(-14%, 10%)  scale(1.08); }
        70%       { transform: translate(10%,  -12%) scale(0.95); }
    }
    @keyframes blobDrift3 {
        0%, 100% { transform: translate(0%,   0%)   scale(1);    }
        40%       { transform: translate(8%,   14%)  scale(1.1);  }
        75%       { transform: translate(-12%, -8%)  scale(0.93); }
    }
    @keyframes waveShift1 {
        0%, 100% { d: path("M0,400 C160,330 320,460 480,400 C640,340 800,460 960,400 C1120,340 1300,380 1440,360 L1440,520 L0,520 Z"); }
        50%       { d: path("M0,380 C180,460 340,320 520,390 C700,460 860,330 1020,400 C1180,460 1320,360 1440,380 L1440,520 L0,520 Z"); }
    }
    @keyframes waveShift2 {
        0%, 100% { d: path("M0,360 C180,280 360,440 540,360 C720,280 900,420 1080,360 C1260,300 1380,340 1440,320 L1440,520 L0,520 Z"); }
        50%       { d: path("M0,340 C200,420 380,280 560,350 C740,420 920,300 1100,370 C1280,440 1380,320 1440,340 L1440,520 L0,520 Z"); }
    }
    @keyframes waveShift3 {
        0%, 100% { d: path("M0,320 C200,240 400,400 600,320 C800,240 1000,400 1200,320 C1300,280 1380,300 1440,280 L1440,520 L0,520 Z"); }
        50%       { d: path("M0,300 C220,400 420,240 620,310 C820,380 1020,240 1220,310 C1340,360 1400,280 1440,300 L1440,520 L0,520 Z"); }
    }

    .wave-blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(90px);
        will-change: transform;
    }
    .wave-blob-pink {
        width: 600px; height: 600px;
        background: radial-gradient(circle, rgba(200,145,112,0.45), transparent 70%);
        top: 30%; right: -180px;
        animation: blobDrift2 20s ease-in-out infinite;
    }
    .wave-blob-purple {
        width: 550px; height: 450px;
        background: radial-gradient(circle, rgba(168,85,247,0.30), transparent 70%);
        bottom: -80px; left: 30%;
        animation: blobDrift3 24s ease-in-out infinite;
    }

    .wave-svg {
        position: absolute;
        top: 10%; left: 0;
        width: 100%; height: 80%;
    }
    .wave-path-1 { animation: waveShift1 10s ease-in-out infinite; }
    .wave-path-2 { animation: waveShift2 13s ease-in-out infinite; }
    .wave-path-3 { animation: waveShift3 17s ease-in-out infinite; }

    /* ── Flip Cards ── */
    @keyframes slideIn {
        0%   { transform: translateX(-80px); opacity: 0; }
        50%  { transform: translateX(0);     opacity: 0.7; }
        100% { transform: translateX(80px);  opacity: 0; }
    }
    @keyframes pulseGlow {
        0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0.4); }
        50%       { box-shadow: 0 0 0 8px rgba(217,119,6,0); }
    }

    .flip-card-wrapper {
        perspective: 1400px;
        height: 380px;
    }
    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.75s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .flip-card-wrapper:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
    .flip-card-front,
    .flip-card-back {
        position: absolute;
        inset: 0;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        border-radius: 1rem;
        overflow: hidden;
    }
    .flip-card-front {
        background: rgba(13,11,10,0.45);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(217,119,6,0.38);
        box-shadow: 0 16px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.09), 0 0 24px -6px rgba(217,119,6,0.25);
        display: flex;
        flex-direction: column;
    }
    .flip-card-back {
        background: rgba(13,11,10,0.55);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(217,119,6,0.38);
        box-shadow: 0 16px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.09), 0 0 24px -6px rgba(217,119,6,0.25);
        transform: rotateY(180deg);
        display: flex;
        flex-direction: column;
        padding: 1.75rem;
    }

    /* animated code-line bars */
    .code-bar {
        height: 10px;
        border-radius: 4px;
        opacity: 0;
        animation: slideIn 2.2s ease-in-out infinite;
    }
    .code-bar-pink   { background: linear-gradient(90deg, rgba(236,72,153,0.12), rgba(236,72,153,0.30), rgba(236,72,153,0.12)); }
    .code-bar-amber  { background: linear-gradient(90deg, rgba(217,119,6,0.15), rgba(217,119,6,0.32), rgba(217,119,6,0.15)); }
    .code-bar-purple { background: linear-gradient(90deg, rgba(168,85,247,0.12), rgba(168,85,247,0.28), rgba(168,85,247,0.12)); }
    .code-bar-green  { background: linear-gradient(90deg, rgba(22,163,74,0.12),  rgba(22,163,74,0.28),  rgba(22,163,74,0.12)); }

    /* icon pulse */
    .flip-icon-wrap {
        animation: pulseGlow 2.5s ease-in-out infinite;
    }

    /* feature row */
    .flip-feature {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        font-size: 0.8125rem;
        font-weight: 500;
        color: #dbc2b0;
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .flip-card-wrapper:hover .flip-feature {
        opacity: 1;
        transform: translateX(0);
    }
    .flip-feature-icon {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        background: rgba(217,119,6,0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .flip-feature-icon .material-symbols-outlined {
        font-size: 13px;
        color: #D97706;
    }

    /* CTA row at bottom of back */
    .flip-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.625rem 0.875rem;
        border-radius: 1rem;
        background: rgba(217,119,6,0.08);
        border: 1px solid rgba(217,119,6,0.18);
        transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
        cursor: pointer;
        margin-top: auto;
    }
    .flip-cta:hover {
        background: rgba(217,119,6,0.16);
        border-color: rgba(217,119,6,0.35);
        transform: scale(1.02);
    }

    /* ── Site Banner ── */
    #site-banner {
        position: relative;
        overflow: hidden;
        border-radius: 0;
        padding: 0.75rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        background: linear-gradient(90deg, rgba(13,11,10,0.72) 0%, rgba(30,22,14,0.80) 50%, rgba(13,11,10,0.72) 100%);
        border-bottom: 1px solid rgba(217,119,6,0.25);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        font-size: 0.875rem;
    }
    #site-banner.hidden { display: none; }
    .banner-shimmer {
        position: absolute;
        inset: 0;
        z-index: 0;
        transform: skewX(-12deg) translateX(-100%);
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
        animation: bannerShimmer 3.2s ease-in-out infinite;
        pointer-events: none;
    }
    @keyframes bannerShimmer {
        0%   { transform: skewX(-12deg) translateX(-120%); }
        60%  { transform: skewX(-12deg) translateX(120%); }
        100% { transform: skewX(-12deg) translateX(120%); }
    }
    .banner-inner {
        position: relative; z-index: 1;
        display: flex; align-items: center; gap: 0.75rem;
        min-width: 0; flex: 1;
    }
    .banner-icon {
        flex-shrink: 0;
        color: #D97706;
        display: flex; align-items: center;
    }
    .banner-title { font-weight: 600; color: #e9e1dd; white-space: nowrap; }
    .banner-desc  { font-size: 0.75rem; color: rgba(233,225,221,0.6); margin-left: 0.5rem; }
    .banner-actions {
        position: relative; z-index: 1;
        display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
    }
    .banner-btn {
        display: inline-flex; align-items: center; gap: 0.25rem;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.75rem; font-weight: 600;
        background: rgba(217,119,6,0.15);
        border: 1px solid rgba(217,119,6,0.30);
        color: #D97706;
        cursor: pointer; transition: background 0.2s;
        text-decoration: none;
    }
    .banner-btn:hover { background: rgba(217,119,6,0.28); }
    .banner-close {
        display: flex; align-items: center; justify-content: center;
        width: 1.75rem; height: 1.75rem; border-radius: 9999px;
        background: transparent; border: none;
        color: rgba(233,225,221,0.45); cursor: pointer; transition: color 0.2s, background 0.2s;
    }
    .banner-close:hover { color: #e9e1dd; background: rgba(255,255,255,0.08); }

    /* ═══════════════════════════════════════════════════════
       BLOG INDEX (home.php)
    ═══════════════════════════════════════════════════════ */

    /* ── Shared content shell — matches navbar & landing page: max-w-content px-8 ── */
    .blog-hero__inner,
    .blog-index__inner,
    .single-post-hero__inner,
    .single-post-media,
    .single-post-body,
    .single-post-nav {
        max-width: 75rem;   /* max-w-content = 1200px — same as navbar */
        margin-left: auto;
        margin-right: auto;
        padding-left: 2rem; /* px-8 */
        padding-right: 2rem;
        box-sizing: border-box;
    }

    .blog-hero {
        position: relative;
        padding: 10rem 0 5rem; /* horizontal handled by inner shell */
        overflow: hidden;
        text-align: center;
    }
    .blog-hero__beam {
        position: absolute;
        inset: 0;
        z-index: 0;
        background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217,119,6,0.18) 0%, transparent 70%);
        pointer-events: none;
    }
    .blog-hero__inner {
        position: relative;
        z-index: 1;
    }
    .blog-eyebrow {
        display: block;
        font-size: 0.625rem;
        font-weight: 700;
        letter-spacing: 0.25em;
        text-transform: uppercase;
        color: #D97706;
        margin-bottom: 1rem;
    }
    .blog-hero__title {
        font-size: clamp(3rem, 7vw, 5rem);
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 1.0;
        color: #ffffff;
        margin: 0 0 1.25rem;
    }
    .blog-hero__lead {
        font-size: clamp(1rem, 2vw, 1.125rem);
        font-weight: 300;
        line-height: 1.75;
        color: rgba(233,225,221,0.65);
        max-width: 38rem;
        margin: 0 auto;
    }

    .blog-index {
        padding: 4rem 0 6rem; /* horizontal handled by inner shell */
    }
    .blog-index__inner {
        /* inherits shared shell: max-width 80rem, px-8 */
    }

    .blog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.75rem;
        margin-bottom: 4rem;
    }

    /* Blog card */
    .blog-card {
        display: flex;
        flex-direction: column;
        border-radius: 1rem;
        overflow: hidden;
        background: #1a1614;
        border: 1px solid rgba(255,255,255,0.07);
        transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s ease;
    }
    .blog-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 48px -12px rgba(0,0,0,0.55), 0 0 0 1px rgba(217,119,6,0.15);
    }
    .blog-card__media-link { display: block; overflow: hidden; }
    .blog-card__media {
        position: relative;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: #111;
    }
    .blog-card__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
    }
    .blog-card:hover .blog-card__image { transform: scale(1.04); }
    .blog-card__overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(13,11,10,0.55), transparent 60%);
        pointer-events: none;
    }
    .blog-card__fallback {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #1a1614, #2d2927);
    }
    .blog-card__fallback-label {
        font-size: 0.625rem;
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.25);
    }
    .blog-card__content {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 1.4rem 1.5rem 1.5rem;
        gap: 0.6rem;
    }
    .blog-card__meta {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        flex-wrap: wrap;
    }
    .blog-card__tag {
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #D97706;
        background: rgba(217,119,6,0.12);
        border: 1px solid rgba(217,119,6,0.22);
        border-radius: 9999px;
        padding: 0.2em 0.65em;
    }
    .blog-card__meta time {
        font-size: 0.7rem;
        font-weight: 300;
        color: rgba(233,225,221,0.4);
    }
    .blog-card__title {
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: -0.025em;
        line-height: 1.25;
        margin: 0.2rem 0 0;
        color: #e9e1dd;
    }
    .blog-card__title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s;
    }
    .blog-card__title a:hover { color: #D97706; }
    .blog-card__excerpt {
        font-size: 0.875rem;
        font-weight: 300;
        line-height: 1.65;
        color: rgba(233,225,221,0.55);
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .blog-card__link {
        margin-top: auto;
        padding-top: 0.75rem;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #D97706;
        text-decoration: none;
        transition: gap 0.2s, opacity 0.2s;
    }
    .blog-card__link:hover { gap: 0.5rem; opacity: 0.85; }
    .blog-card__link .material-symbols-outlined { font-size: 14px; }

    /* Pagination */
    .blog-pagination {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    .blog-pagination a {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(233,225,221,0.55);
        text-decoration: none;
        transition: color 0.2s;
    }
    .blog-pagination a:hover { color: #D97706; }

    /* Empty state */
    .blog-empty {
        padding: 5rem 2rem;
        text-align: center;
    }
    .blog-empty__inner {
        max-width: 30rem;
        margin: 0 auto;
    }
    .blog-empty h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: rgba(233,225,221,0.7);
        margin: 0.75rem 0 0;
    }

    /* ═══════════════════════════════════════════════════════
       SINGLE POST (single.php)
    ═══════════════════════════════════════════════════════ */

    .single-post-layout {
        max-width: 100%;
    }

    /* Hero */
    .single-post-hero {
        padding: 10rem 0 4rem; /* horizontal handled by inner shell */
        background: linear-gradient(to bottom, rgba(217,119,6,0.08) 0%, transparent 100%);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: center;
    }
    .single-post-hero__inner {
        /* inherits shared shell: max-width 80rem, px-8 */
    }
    .single-post-hero__meta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 1.4rem;
        flex-wrap: wrap;
    }
    .single-post-hero__meta time {
        font-size: 0.75rem;
        font-weight: 300;
        color: rgba(233,225,221,0.4);
    }
    .single-post-hero__title {
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 1.05;
        color: #ffffff;
        margin: 0 0 1.5rem;
        /* Cap title width for readability, centered within the 80rem shell */
        max-width: 52rem;
        margin-left: auto;
        margin-right: auto;
    }
    .single-post-hero__excerpt {
        font-size: clamp(1rem, 2vw, 1.125rem);
        font-weight: 300;
        line-height: 1.75;
        color: rgba(233,225,221,0.6);
        max-width: 42rem;
        margin: 0 auto;
    }

    /* Featured image — full shell width */
    .single-post-media {
        /* inherits shared shell: max-width 80rem, px-8 */
        margin-top: 3rem;
        margin-bottom: 0;
    }
    .single-post-media__frame {
        border-radius: 1rem;
        overflow: hidden;
        aspect-ratio: 16 / 9;
    }
    .single-post-media__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Post body — shell width outer, prose width inner */
    .single-post-body {
        /* inherits shared shell: max-width 80rem, px-8 */
        padding-top: 2rem;
        padding-bottom: 4rem;
    }
    /* entry-content nested inside single-post-body already gets 2rem per side
       from the outer shell — remove its own horizontal padding to avoid doubling */
    .single-post-body .entry-content {
        padding-left: 0;
        padding-right: 0;
    }
    .post-content {
        /* Prose is readable at ~44rem, centered within the 80rem shell */
        max-width: 44rem;
        margin: 0 auto;
    }

    /* Prose styles for post content */
    .post-content {
        color: rgba(233,225,221,0.82);
        font-size: 1.0625rem;
        font-weight: 300;
        line-height: 1.8;
    }
    .post-content h2, .post-content h3, .post-content h4,
    .post-content h5, .post-content h6 {
        color: #ffffff;
        font-weight: 700;
        letter-spacing: -0.03em;
        line-height: 1.15;
        margin: 2.5rem 0 0.85rem;
    }
    .post-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
    .post-content h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
    .post-content h4 { font-size: 1.25rem; }
    .post-content p { margin: 0 0 1.25rem; }
    .post-content a {
        color: #D97706;
        text-decoration: underline;
        text-decoration-color: rgba(217,119,6,0.4);
        transition: text-decoration-color 0.2s;
    }
    .post-content a:hover { text-decoration-color: #D97706; }
    .post-content ul, .post-content ol {
        margin: 0 0 1.25rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
    .post-content li { line-height: 1.65; }
    .post-content ul li { list-style-type: disc; }
    .post-content ol li { list-style-type: decimal; }
    .post-content blockquote {
        border-left: 2px solid #D97706;
        padding: 0.5rem 0 0.5rem 1.5rem;
        margin: 2rem 0;
        font-size: 1.125rem;
        font-style: italic;
        color: rgba(233,225,221,0.7);
    }
    .post-content img {
        max-width: 100%;
        border-radius: 1rem;
        margin: 1.5rem 0;
    }
    .post-content hr {
        border: none;
        border-top: 1px solid rgba(255,255,255,0.08);
        margin: 2.5rem 0;
    }
    .post-content pre {
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 1rem;
        padding: 1.25rem 1.5rem;
        overflow-x: auto;
        margin: 1.5rem 0;
        font-size: 0.875rem;
        line-height: 1.65;
    }
    .post-content code:not(pre code) {
        background: rgba(255,255,255,0.07);
        border-radius: 1rem;
        padding: 0.15em 0.4em;
        font-size: 0.9em;
        color: #D97706;
    }

    /* Post navigation — inherits shared shell (max-width 80rem, px-8) */
    .single-post-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 1rem;
        align-items: center;
        padding-top: 2rem;
        padding-bottom: 5rem;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    .single-post-nav__item--prev { text-align: left; }
    .single-post-nav__item--back { text-align: center; }
    .single-post-nav__item--next { text-align: right; }
    .single-post-nav a {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: rgba(233,225,221,0.45);
        text-decoration: none;
        transition: color 0.2s;
    }
    .single-post-nav a:hover { color: #D97706; }

    @media (max-width: 640px) {
        .single-post-nav {
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto auto;
        }
        .single-post-nav__item--back {
            grid-column: 1 / -1;
            order: -1;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            padding-bottom: 1rem;
            margin-bottom: 0.25rem;
        }
        .blog-grid {
            grid-template-columns: 1fr;
        }

        /* Blog & single post — mobile: tighter vertical spacing only.
           Horizontal padding stays at 2rem (= px-8) to match navbar. */
        .blog-hero  { padding-top: 7rem;  padding-bottom: 3rem; }
        .blog-index { padding-top: 2.5rem; padding-bottom: 4rem; }
        .blog-grid  { gap: 1.25rem; margin-bottom: 2.5rem; }

        .single-post-hero   { padding-top: 8rem; padding-bottom: 2.5rem; }
        .single-post-media  { margin-top: 1.5rem; }
        .single-post-body   { padding-top: 1rem; padding-bottom: 3rem; }
        .single-post-nav    { padding-top: 1.5rem; padding-bottom: 3.5rem; }
    }

    /* Landing page + Blog/andere Seiten: 1rem Seitenabstand auf Smartphones */
    @media (max-width: 767px) {
        body.home #site-content [class*="max-w-screen-"][class~="px-8"],
        body.home #site-content [class~="max-w-content"][class~="px-8"] {
            padding-left: 1rem !important;
            padding-right: 1rem !important;
        }

        .blog-hero__inner,
        .blog-index__inner,
        .single-post-hero__inner,
        .single-post-media,
        .single-post-body,
        .single-post-nav {
            padding-left: 1rem;
            padding-right: 1rem;
        }
    }

    /* ══════════════════════════════════════════════════════
       Gute Gründe – Static 3-column card grid
       ══════════════════════════════════════════════════════ */

    .gruende-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .gruende-card {
        position: relative;
        border-radius: 1rem;
        padding: 1.75rem;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        overflow: hidden;
        background: rgb(22, 19, 17);
        border: 1.5px solid rgba(163,140,124,0.12);
        box-shadow: 0 8px 32px rgba(0,0,0,0.35);
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                    box-shadow 0.35s ease,
                    border-color 0.35s ease;
    }

    .gruende-card:hover {
        transform: scale(1.03);
        box-shadow: 0 24px 64px rgba(0,0,0,0.55),
                    0 0 48px -8px color-mix(in srgb, var(--card-color, #D97706) 30%, transparent);
        border-color: color-mix(in srgb, var(--card-color, #D97706) 45%, transparent);
    }

    .gruende-card-icon-wrap {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .gruende-card-icon-sym {
        font-size: 1.875rem !important;
        color: rgba(255, 255, 255, 0.92);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.40));
        font-variation-settings: 'FILL' 1 !important;
    }

    .gruende-card-body {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        flex: 1;
    }

    .gruende-card-meta {
        font-size: 0.625rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        line-height: 1;
    }

    .gruende-card-title {
        font-size: 1.375rem !important;
        font-weight: 800 !important;
        letter-spacing: -0.03em !important;
        color: #ffffff !important;
        line-height: 1.1 !important;
        margin: 0.125rem 0 0.375rem !important;
        font-family: 'Manrope', sans-serif !important;
    }

    .gruende-card-desc {
        font-size: 0.8125rem;
        font-weight: 300;
        line-height: 1.65;
        color: #a3a3a3;
        margin: 0 0 0.375rem;
        transition: color 0.35s ease;
    }

    .gruende-card:hover .gruende-card-desc {
        color: rgba(210,200,195,1);
    }

    .gruende-card-features {
        list-style: none;
        padding: 0;
        margin: auto 0 0;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .gruende-card-features li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.50);
        transition: color 0.35s ease;
    }

    .gruende-card:hover .gruende-card-features li {
        color: rgba(255, 255, 255, 0.75);
    }

    .gruende-dot {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        flex-shrink: 0;
        display: inline-block;
    }

    /* ── Tablet (≤ 1023px): reduce card padding, keep 3-col ── */
    @media (max-width: 1023px) {
        .gruende-grid {
            gap: 1rem;
        }

        .gruende-card {
            padding: 1.25rem;
            gap: 1rem;
        }

        .gruende-card-icon-wrap {
            width: 2.75rem;
            height: 2.75rem;
        }

        .gruende-card-icon-sym {
            font-size: 1.5rem !important;
        }

        .gruende-card-title {
            font-size: 1.125rem !important;
        }

        .gruende-card-desc {
            font-size: 0.75rem;
        }
    }

    /* ── Mobile (≤ 767px): horizontal layout, tap to expand description ── */
    @media (max-width: 767px) {
        .gruende-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .gruende-card {
            flex-direction: row;
            padding: 1rem;
            gap: 0.875rem;
            align-items: flex-start;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            /* padding-right leaves room for the chevron */
            padding-right: 2.5rem;
        }

        .gruende-card-icon-wrap {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 1rem;
            flex-shrink: 0;
            margin-top: 0.125rem;
        }

        .gruende-card-icon-sym {
            font-size: 1.25rem !important;
        }

        /* Description collapsed — animates open on .is-expanded */
        .gruende-card-desc {
            display: block;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            margin: 0;
            font-size: 0.8125rem;
            transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
        }

        .gruende-card.is-expanded .gruende-card-desc {
            max-height: 12rem;
            opacity: 1;
            margin-bottom: 0.5rem;
        }

        .gruende-card-title {
            font-size: 1rem !important;
            margin-bottom: 0.25rem !important;
        }

        .gruende-card-meta {
            font-size: 0.5625rem;
        }

        .gruende-card-features {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 0.25rem 0.625rem;
            margin: 0;
        }

        .gruende-card-features li {
            font-size: 0.6875rem;
        }

        /* Chevron icon injected by JS */
        .gruende-expand-icon {
            display: block;
            position: absolute;
            top: 0.8125rem;
            right: 0.75rem;
            font-size: 1.25rem !important;
            color: rgba(255, 255, 255, 0.28);
            transition: transform 0.3s ease, color 0.25s ease;
            pointer-events: none;
            user-select: none;
            z-index: 2;
        }

        .gruende-card.is-expanded .gruende-expand-icon {
            transform: rotate(180deg);
            color: rgba(255, 255, 255, 0.55);
        }
    }

    /* Hide chevron on tablet and desktop (description always visible) */
    @media (min-width: 768px) {
        .gruende-expand-icon { display: none; }
    }

    /* ══════════════════════════════════════════════════════════
       PROJECTS — Draggable card stack
    ══════════════════════════════════════════════════════════ */
    .testimonial-card {
        position: absolute;
        left: 0; top: 0;
        width: 350px; height: 450px;
        border-radius: 1rem;
        border: 1.5px solid rgba(163,140,124,0.16);
        background: rgba(22,19,17,0.92);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.45);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        user-select: none;
        -webkit-user-select: none;
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                    box-shadow 0.35s ease;
        will-change: transform;
    }
    .testimonial-card[data-pos="front"] {
        transform: translateX(0%) rotate(-6deg);
        z-index: 2;
        cursor: grab;
        box-shadow: 0 16px 48px rgba(0,0,0,0.55);
    }
    .testimonial-card[data-pos="front"]:hover {
        transform: translateX(0%) rotate(-6deg) scale(1.03);
        box-shadow: 0 24px 64px rgba(0,0,0,0.65),
                    0 0 48px -8px rgba(217,119,6,0.28);
        border-color: rgba(217,119,6,0.30);
    }
    .testimonial-card[data-pos="front"]:active { cursor: grabbing; }
    .testimonial-card[data-pos="middle"] {
        transform: translateX(33%) rotate(0deg);
        z-index: 1;
    }
    .testimonial-card[data-pos="back"] {
        transform: translateX(66%) rotate(6deg);
        z-index: 0;
    }

    /* Image area */
    .testimonial-card__img-wrap {
        position: relative;
        width: 100%;
        height: 195px;
        flex-shrink: 0;
        overflow: hidden;
    }
    .testimonial-card__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
        transition: transform 0.6s ease;
    }
    .testimonial-card[data-pos="front"] .testimonial-card__img {
        transform: scale(1.04);
    }
    .testimonial-card[data-pos="front"]:hover .testimonial-card__img {
        transform: scale(1.10);
    }
    .testimonial-card__img-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 40%, rgba(22,19,17,0.75) 100%);
    }
    .testimonial-card__badge {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        padding: 0.3rem 0.7rem;
        border-radius: 9999px;
        background: rgba(217,119,6,0.92);
        color: #fff;
        pointer-events: none;
    }

    /* Body */
    .testimonial-card__body {
        flex: 1;
        padding: 1.1rem 1.4rem 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .testimonial-card__title {
        font-size: 0.95rem;
        font-weight: 700;
        color: rgba(233,225,221,0.95);
        margin: 0 0 0.85rem;
        line-height: 1.35;
    }
    .testimonial-card__specs {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .testimonial-card__spec {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        font-size: 0.78rem;
        color: rgba(233,225,221,0.5);
        line-height: 1;
        transition: color 0.35s ease;
    }
    .testimonial-card__spec-icon {
        font-family: 'Material Symbols Outlined';
        font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
        font-size: 0.95rem;
        line-height: 1;
        color: rgba(217,119,6,0.75);
        flex-shrink: 0;
        transition: color 0.35s ease;
    }
    .testimonial-card__year {
        margin-top: auto;
        padding-top: 0.85rem;
        font-size: 0.67rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(217,119,6,0.6);
        transition: color 0.35s ease;
    }
    .testimonial-card[data-pos="front"]:hover .testimonial-card__spec {
        color: rgba(233,225,221,0.75);
    }
    .testimonial-card[data-pos="front"]:hover .testimonial-card__spec-icon {
        color: rgba(217,119,6,1);
    }
    .testimonial-card[data-pos="front"]:hover .testimonial-card__year {
        color: rgba(217,119,6,0.9);
    }

    @media (max-width: 480px) {
        .testimonial-card {
            width: 280px;
            height: 400px;
        }
        .testimonial-card__img-wrap { height: 155px; }
        #testimonialStack {
            width: 280px !important;
            height: 400px !important;
        }
    }
