/* ==========================================================================
   SYSTEM-FLOW · Light Variant
   Wird angewendet, wenn die System-Section auf hellem Hintergrund läuft
   (z. B. auf der Homepage als Rhythmusbruch zwischen schwarzen Blöcken).
   Erbt die Layout-Logik von system-flow.css und überschreibt nur Farben.
   Dossier Edition · v05.18
   ========================================================================== */

.section-system-light {
    background: var(--paper, #f5f1e8);
    color: var(--ink, #111);
    padding: 0;
    max-width: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    isolation: isolate;
}

/* Inner padding (entspricht der Dark-Variante) */
.section-system-light > .section-inner {
    max-width: var(--max-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding: var(--section-py, clamp(72px, 10vw, 120px)) var(--gutter, 32px);
    position: relative;
    z-index: 1;
}

/* -------------------------
   GHOST BACKGROUND · Light Override
   Dezent, gräulich statt dunkel
   ------------------------- */
.section-system-light .section-ghost-bg img {
    filter: grayscale(1) contrast(0.95) brightness(1.05);
    opacity: 0.08;
}

.section-system-light .section-ghost-bg::after {
    background:
        linear-gradient(
            180deg,
            rgba(245, 241, 232, 0.92) 0%,
            rgba(245, 241, 232, 0.55) 25%,
            rgba(245, 241, 232, 0.55) 75%,
            rgba(245, 241, 232, 0.92) 100%
        ),
        radial-gradient(
            ellipse at center,
            transparent 45%,
            rgba(245, 241, 232, 0.6) 100%
        );
}

/* -------------------------
   HEADLINE & LEAD · dark text on light bg
   ------------------------- */
.section-system-light .section-headline {
    color: var(--ink, #111);
}

.section-system-light .section-headline .accent {
    color: var(--accent, #FF6A00);
}

.section-system-light .system-lead {
    color: var(--ink, #111);
    opacity: 0.85;
}

/* -------------------------
   SYSTEM FLOW · borders & text in dark
   ------------------------- */
.section-system-light .system-flow {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.section-system-light .flow-num {
    color: var(--accent, #FF6A00);
}

.section-system-light .flow-name {
    color: var(--ink, #111);
}

.section-system-light .flow-desc {
    color: rgba(17, 17, 17, 0.62);
}

.section-system-light .flow-arrow {
    color: rgba(255, 90, 31, 0.85);
}

/* -------------------------
   SYSTEM FOOTER
   ------------------------- */
.section-system-light .system-footer {
    margin-top: clamp(20px, 2.5vh, 32px);
    padding-top: 0;
    border-top: 0;
}

.section-system-light .system-footer p {
    color: var(--ink, #111);
    margin: 0;
}

.section-system-light .system-footer .accent {
    color: var(--accent, #FF6A00);
}

/* -------------------------
   SYSTEM HEAD · Editorial 12-Column Grid (7/5)
   Container 1400px / Content 1280px / Centered.
   ------------------------- */

/* Container-Override für die System-Section: 1400px / 1280px Content */
.section-system-light > .section-inner {
    max-width: 1400px;
    padding-left: clamp(24px, 4vw, 60px);
    padding-right: clamp(24px, 4vw, 60px);
    padding-top: clamp(64px, 8vh, 96px);
    padding-bottom: clamp(56px, 7vh, 88px);
}

/* 12-Spalten-Grid für Top-Section */
.section-system .system-head-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(24px, 2.5vw, 32px);
    row-gap: 0;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: clamp(48px, 6vh, 80px);
}

/* Linke Spalte: 7 von 12 */
.section-system .system-head-text {
    grid-column: 1 / span 7;
    min-width: 0;
    padding-right: clamp(40px, 5vw, 80px);
}

/* Rechte Spalte: 5 von 12 */
.section-system .system-visual {
    grid-column: 8 / span 5;
    width: 100%;
    margin: 0;
}

/* Headline — 88-100px, weight 900, line-height 0.9 */
.section-system .system-head-text .section-headline {
    font-size: clamp(56px, 7vw, 100px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.025em;
    margin: 0 0 clamp(24px, 2.5vw, 36px) 0;
    max-width: 650px;
}

/* Lead — max-width 600px */
.section-system .system-head-text .system-lead {
    font-size: clamp(17px, 1.25vw, 20px);
    line-height: 1.5;
    max-width: 600px;
    margin: 0;
}

/* Image — Portrait, dominant in der rechten Spalte */
.section-system .system-visual .strategic-image {
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    overflow: hidden;
}

/* Subtiler Hover-Zoom */
.section-system .system-visual .strategic-image img {
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
}

.section-system .system-visual .strategic-image:hover img {
    transform: scale(1.04);
}

.section-system-light .system-visual .strategic-image {
    background: var(--ink, #111);
}

/* Process-Flow direkt unter Hero — kompakter, damit alles in Viewport passt */
.section-system-light .system-flow {
    margin-top: 0;
    padding: clamp(28px, 3vh, 40px) 0;
}

/* -------------------------
   TABLET (≤1024px): 50/50 (6/6 columns)
   ------------------------- */
@media (max-width: 1024px) {
    .section-system .system-head-text {
        grid-column: 1 / span 6;
        padding-right: clamp(24px, 3vw, 40px);
    }
    .section-system .system-visual {
        grid-column: 7 / span 6;
    }
    .section-system .system-head-text .section-headline {
        font-size: clamp(48px, 6vw, 72px);
    }
    .section-system .system-visual .strategic-image {
        max-width: 100%;
        aspect-ratio: 3 / 4;
    }

    /* Process-Flow: 2 Reihen */
    .section-system-light .system-flow {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px 16px;
    }
    .section-system-light .system-flow .flow-arrow {
        display: none;
    }
}

/* -------------------------
   MOBILE (≤720px): Stack
   ------------------------- */
@media (max-width: 720px) {
    .section-system .system-head-grid {
        grid-template-columns: 1fr;
        padding-bottom: 32px;
    }
    .section-system .system-head-text {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 32px;
    }
    .section-system .system-visual {
        grid-column: 1 / -1;
    }
    .section-system .system-head-text .section-headline {
        font-size: clamp(38px, 9vw, 56px);
    }
    .section-system .system-visual .strategic-image {
        aspect-ratio: 4 / 5;
        max-width: 100%;
    }

    /* Process-Flow: vertikaler Stack */
    .section-system-light .system-flow {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 0;
    }
}
