/* === 1. BASIS & VARIABLEN (Mobile First) === */
*,
*::before,
*::after {
    box-sizing: border-box;
}
:root {
    --bg-body: #f8f9fa;       
    --bg-surface: #F1F3F4;    
    --text-main: #333333;     
    --text-muted: #666666;    
    --color-primary: #F88379; 
    --color-accent: #79AEF8;  
    --font-body: 'Roboto', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --gutter-mobile: 20px;
    --gutter-desktop: 44px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 500;
    padding-bottom: 0; 
    overflow-x: hidden;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* === 2. DAS GLOBALE RASTER (Grid System) === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px var(--gutter-mobile) 50px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    overflow-x: hidden;
}

/* === 3. LOGO === */
#logo-container {
    position: fixed; top: 20px; left: 20px; z-index: 1000;
    font-family: var(--font-body); font-size: 1.5rem; font-weight: 700;
    text-decoration: none; color: var(--color-primary);
}
.logo-wordmark { display: block; transition: all 0.3s ease; }
.logo-symbol { display: none; height: 40px; }
body.scrolled .logo-wordmark { display: none; }
body.scrolled .logo-symbol { display: block; animation: popIn 0.3s ease; }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* === 4. VIEWPORT 1: HERO === */
.hero-box {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #a78bfa 100%);
    border-radius: 20px;
    padding: 40px 20px;
    color: white;
    box-shadow: 0 10px 30px -10px rgba(248, 131, 121, 0.3);
    /* Mobile: text and emoji stay in one row */
    display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px;
    min-height: 35vh;
}
.hero-box h1 {
    font-family: var(--font-mono); font-weight: 500; margin: 0; line-height: 1; 
    letter-spacing: -0.02em; font-size: clamp(3rem, 12vw, 6.5rem);
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    border-right: 0.08em solid rgba(255, 255, 255, 0.9);
    animation: heroType 1.8s steps(8, end) 0.2s forwards, heroCaret 0.85s step-end infinite;
}
.hero-emoji { line-height: 1; font-size: clamp(4rem, 15vw, 8rem); }

@keyframes heroType {
    from { width: 0; }
    to { width: 8ch; }
}

@keyframes heroCaret {
    50% { border-right-color: transparent; }
}


/* About page hero variant - mobile: flex flow */
.about-hero-box {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #73a6e5 0%, #68dfbb 100%);
    padding: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}
.about-hero-box .about-hero-title {
    margin: 0;
    padding: 0 0 0 15%;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(3rem, 13vw, 5.2rem);
    letter-spacing: 0.01em;
    text-align: right;
    width: 100%;
    display: block;
    overflow: hidden;
    white-space: normal;
    border-right: none;
    animation: none;
}
/* About typewriter: same approach as index hero, but 2 lines + right-aligned */
.about-type-line {
    display: block;
    width: 0;
    margin-left: auto;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.08em solid rgba(255, 255, 255, 0.92);
    box-sizing: content-box;
    line-height: 1.15;
    font-family: var(--font-mono);
    font-weight: 500;
}
.about-type-line-1 {
    padding-right: 0.8ch;
    animation: aboutTypeLine1 720ms steps(5, end) 180ms forwards, aboutCaret1 240ms step-end 180ms 3 forwards, aboutCaretBlinkEnd 0.4s step-end 900ms 2, aboutCaretBlinkEnd 0.85s step-end 2300ms infinite;
}
.about-type-line-2 {
    padding-right: 0.4ch;
    animation: aboutTypeLine2 1320ms steps(11, end) 980ms forwards, aboutCaret1 264ms step-end 980ms 5 forwards, aboutCaretBlinkEnd 0.85s step-end 2300ms infinite;
}

@keyframes aboutTypeLine1 {
    from { width: 0; }
    to { width: 5ch; }
}

@keyframes aboutTypeLine2 {
    from { width: 0; }
    to { width: 11.4ch; }
}

@keyframes aboutCaret1 {
    50% { border-right-color: transparent; }
}

@keyframes aboutCaretBlinkEnd {
    0%, 100% { border-right-color: rgba(255, 255, 255, 0.92); }
    50% { border-right-color: transparent; }
}

.about-hero-runner {
    align-self: center;
    transform: scaleX(-1);
    font-size: clamp(4.8rem, 15vw, 8.1rem);
    line-height: 1;
    margin-top: 0.5em;
}

@media (max-width: 767px) {
    .about-hero-box {
        min-height: 320px;
        padding: 24px var(--gutter-mobile) 22px;
    }
    .about-hero-box .about-hero-title {
        padding: 0;
        font-size: clamp(2.2rem, 11vw, 3.8rem);
        line-height: 0.98;
        letter-spacing: 0;
    }
    .about-hero-runner {
        font-size: clamp(3.9rem, 16.5vw, 6rem);
    }
}

/* === 5. VIEWPORT 2: ACCESS === */
.access-section {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.access-title {
    color: #5f6368;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: clamp(1.28rem, 4vw, 2rem);
    width: 100%;
    max-width: 100%;
    text-align: left;
    padding-left: 30px;
    padding-right: 30px;
}
.access-title-primary {
    display: block;
    color: #999999;
    white-space: normal;
}
.access-title-secondary {
    display: block;
    color: #b7b7b7;
}

/* About access section: bars + words */
.access-section-bars {
    align-items: flex-start;
    text-align: left;
    overflow-x: hidden;
}
.access-section-bars .access-title {
    margin-bottom: 36px;
}
.access-bars-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 800px;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}
.access-bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
}
.access-bar-row-alt {
    flex-direction: row;
}
.access-bar-row .access-bar-word {
    flex-shrink: 0;
}
.access-bar {
    height: 15px;
    border-radius: 3px;
    background-color: #d1d3d6;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}
.access-bar-long {
    flex: 1.4;
}
.access-bar-short {
    flex: 0.92; /* 10% shorter than 1.02 */
}
.access-bar-word {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #9ca0a4;
}

/* Idea + Creativity row animation */
.access-bar-row-spot .access-bar {
    position: relative;
    overflow: hidden;
}
.access-bar-row-spot .access-bar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(ellipse 60% 80% at center, rgba(248, 131, 121, 0.65) 0%, rgba(248, 131, 121, 0.25) 50%, transparent 100%);
    filter: blur(8px);
    opacity: 0;
}
.access-bar-row-spot.is-visible .access-bar::before {
    animation: ideaSpotRun 1.8s ease-in-out forwards;
}
.access-bar-row-spot .access-bar-word {
    transition: color 0.4s ease;
}
.access-bar-row-spot.is-visible .access-bar-word {
    animation: ideaWordColor 1.8s ease-in-out forwards;
}

@keyframes ideaSpotRun {
    0% { left: 0; opacity: 1; }
    85% { left: 100%; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes ideaWordColor {
    0% { color: #9ca0a4; }
    70% { color: #9ca0a4; }
    100% { color: #F88379; }
}

/* Expertise + Experience: spot right-to-left, green */
.access-bar-row-spot-rtl .access-bar {
    position: relative;
    overflow: hidden;
}
.access-bar-row-spot-rtl .access-bar::before {
    content: "";
    position: absolute;
    right: 0;
    left: auto;
    top: 50%;
    transform: translate(50%, -50%);
    width: 80px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(ellipse 60% 80% at center, #BCECAC 0%, rgba(188, 236, 172, 0.5) 45%, transparent 100%);
    filter: blur(8px);
    opacity: 0;
}
.access-bar-row-spot-rtl.is-visible .access-bar::before {
    animation: spotRunRtl 1.8s ease-in-out forwards;
}
.access-bar-row-spot-rtl .access-bar-word {
    transition: color 0.4s ease;
}
.access-bar-row-spot-rtl.is-visible .access-bar-word {
    animation: wordColorGreen 1.8s ease-in-out forwards;
}

@keyframes spotRunRtl {
    0% { right: 0; opacity: 1; }
    85% { right: 100%; opacity: 1; }
    100% { right: 100%; opacity: 0; }
}

@keyframes wordColorGreen {
    0% { color: #9ca0a4; }
    70% { color: #9ca0a4; }
    100% { color: #BCECAC; }
}

/* access-bars-list only: pink→79F8C3, green→79AEF8 */
.access-bars-list .access-bar-row-spot .access-bar::before {
    background: radial-gradient(ellipse 60% 80% at center, rgba(121, 248, 195, 0.65) 0%, rgba(121, 248, 195, 0.25) 50%, transparent 100%);
}
.access-bars-list .access-bar-row-spot.is-visible .access-bar-word {
    animation: ideaWordColorBars 1.8s ease-in-out forwards;
}
@keyframes ideaWordColorBars {
    0% { color: #9ca0a4; }
    70% { color: #9ca0a4; }
    100% { color: #79F8C3; }
}
.access-bars-list .access-bar-row-spot-rtl .access-bar::before {
    background: radial-gradient(ellipse 60% 80% at center, #79AEF8 0%, rgba(121, 174, 248, 0.5) 45%, transparent 100%);
}
.access-bars-list .access-bar-row-spot-rtl.is-visible .access-bar-word {
    animation: wordColorGreenBars 1.8s ease-in-out forwards;
}
@keyframes wordColorGreenBars {
    0% { color: #9ca0a4; }
    70% { color: #9ca0a4; }
    100% { color: #79AEF8; }
}

.access-visuals-row {
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    gap: 15px; width: 100%; max-width: 800px;
}
.visual-container {
    border-radius: 16px; padding: 20px 10px; font-size: 2.2rem;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04); flex: 1;
}
.gradient-left { background: linear-gradient(135deg, #ffffff 0%, #e6e8eb 100%); }
.gradient-right { background: linear-gradient(45deg, #e6e8eb 0%, #ffffff 100%); }
.visual-separator {
    font-size: 1.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.wand-stars {
    display: inline-block;
    opacity: 0.78;
    transform-origin: center;
}
.visual-separator.is-sparkling .wand-stars {
    animation: wandSparkle 1.4s ease-in-out infinite;
}

@keyframes wandSparkle {
    0%, 100% { transform: scale(0.92); opacity: 0.6; }
    50% { transform: scale(1.14); opacity: 1; }
}

/* === 5b. VIEWPORT 2B: CAPACITY CARD === */
.capacity-section {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}
.capacity-card {
    width: 100%;
    max-width: 100%;
    border-radius: 28px;
    padding: 24px 20px 0;
    background: linear-gradient(145deg, #f3f3f3 0%, #f0f0ea 52%, #d7f15e 80%, #f0987f 100%);
}
.capacity-title {
    padding-left: 10px;
    padding-right: 10px;
}
.capacity-title .access-title-primary {
    white-space: normal;
}
.capacity-visuals-row {
    justify-content: center;
    max-width: none;
    margin: 0;
}
.capacity-bars {
    width: fit-content;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    margin: 0 auto;
}
.capacity-bar {
    width: 22px;
    border-radius: 2px 2px 0 0;
    background-color: #dadada;
    transform-origin: bottom;
    transform: scaleY(0);
}
.capacity-bars.is-visible .capacity-bar {
    animation: capacityGrow 480ms ease-out forwards;
}
.capacity-bars.is-visible .capacity-bar:nth-child(1) { animation-delay: 0ms; }
.capacity-bars.is-visible .capacity-bar:nth-child(2) { animation-delay: 120ms; }
.capacity-bars.is-visible .capacity-bar:nth-child(3) { animation-delay: 240ms; }
.capacity-bars.is-visible .capacity-bar:nth-child(4) { animation-delay: 360ms; }
.capacity-bars.is-visible .capacity-bar:nth-child(5) { animation-delay: 480ms; }
.capacity-bars.is-visible .capacity-bar:nth-child(6) { animation-delay: 600ms; }

@keyframes capacityGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}
.capacity-bar.bar-1 { height: 52px; }
.capacity-bar.bar-2 { height: 72px; }
.capacity-bar.bar-3 { height: 102px; }
.capacity-bar.bar-4 { height: 130px; }
.capacity-bar.bar-5 { height: 168px; background-color: #a8a8a8; }
.capacity-bar.bar-6 { height: 220px; background-color: #8e8e8e; }

/* === Solutions workflow section (about page) === */
.solutions-section {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}
.solutions-card {
    width: 100%;
    max-width: 100%;
    border-radius: 28px;
    padding: 32px 24px 36px;
    background: linear-gradient(135deg, #edf879 0%, #fafafa 50%, #f88379 100%);
    overflow-x: auto;
}
.solutions-title {
    margin-bottom: 28px;
    padding-left: 6px;
    padding-right: 6px;
    box-sizing: border-box;
}
.solutions-title .access-title-primary {
    white-space: normal;
}
.solutions-title .access-title-primary strong {
    font-weight: 700;
    color: #999999;
}
.solutions-workflow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    justify-content: flex-start;
}
.workflow-step {
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.solutions-workflow .workflow-step:nth-child(odd) {
    align-self: flex-start;
    justify-content: flex-start;
}
.solutions-workflow .workflow-step:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-end;
}
.workflow-connector {
    flex: 0 0 32px;
    min-width: 24px;
    width: 32px;
    height: 0;
    border: none;
    border-top: 2px dashed #c8cacc;
}
.workflow-icon {
    font-size: 2rem;
    line-height: 1;
}
.workflow-icon-shovel {
    font-size: 2.2rem;
}
.workflow-bubble {
    background: #fafafa;
    border-radius: 14px;
    padding: 12px 14px;
    max-width: 85%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    box-sizing: border-box;
}
.workflow-bubble p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #5f6368;
}

.workflow-step {
    opacity: 0;
}
.solutions-workflow.is-visible .workflow-step {
    animation: workflowStepIn 0.45s ease-out forwards;
}
.solutions-workflow.is-visible .workflow-step:nth-child(1) { animation-delay: 0ms; }
.solutions-workflow.is-visible .workflow-step:nth-child(2) { animation-delay: 120ms; }
.solutions-workflow.is-visible .workflow-step:nth-child(3) { animation-delay: 240ms; }
.solutions-workflow.is-visible .workflow-step:nth-child(4) { animation-delay: 360ms; }
.solutions-workflow.is-visible .workflow-step:nth-child(5) { animation-delay: 480ms; }
.solutions-workflow.is-visible .workflow-step:nth-child(6) { animation-delay: 600ms; }
@keyframes workflowStepIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 5c. VIEWPORT 2C: SERVICE LEVELS CARD === */
.service-section {
    width: 100%;
    max-width: 100%;
}
.service-card {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 30px 20px;
    background: transparent;
    display: grid;
    grid-template-areas: "content";
    grid-template-rows: minmax(180px, auto);
    align-items: center;
}
.service-title {
    grid-area: content;
    padding: 0 10px;
    margin-bottom: 0;
    z-index: 2;
}
.service-visuals-row {
    grid-area: content;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    z-index: 1;
    pointer-events: none;
}
.service-circle {
    width: clamp(170px, 33vw, 277px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    flex: 0 0 auto;
    box-sizing: border-box;
    position: relative;
}
/* Spinning gradient border – about page only (no service-highlight) */
.service-section:not(:has(.service-highlight)) .service-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: conic-gradient(from 0deg, #f5f5f5, #e0e0e0, #f5f5f5);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: serviceBorderSpin 4s linear infinite;
    z-index: 0;
}
@keyframes serviceBorderSpin {
    to { transform: rotate(360deg); }
}
/* Rotating red quarter – index page only */
.service-highlight {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(242, 160, 160, 0) 0deg, rgba(242, 160, 160, 0.2) 38deg, rgba(242, 160, 160, 0.52) 74deg, rgba(242, 160, 160, 0.78) 105deg, rgba(242, 160, 160, 0) 106deg, rgba(242, 160, 160, 0) 360deg);
    animation: serviceHighlightOrbit 3.2s linear infinite;
}
@keyframes serviceHighlightOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Both circles spin – about page only */
body.page-about .service-circle {
    animation: serviceCircleSpin 8s linear infinite;
}
@keyframes serviceCircleSpin {
    to { transform: rotate(360deg); }
}
.service-circle-left {
    background: linear-gradient(135deg, #ffffff 0%, #e6e8eb 100%);
    z-index: 1;
}
.service-circle-right {
    background: linear-gradient(45deg, #e6e8eb 0%, #ffffff 100%);
    margin-left: 0;
    overflow: hidden;
    z-index: 2;
}
/* === 5c2. STORY CARD === */
.story-section {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}
.story-card {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #efefef 100%);
    border-radius: 20px;
    padding: 28px 20px;
    color: #5f6368;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
}
.story-card .access-title,
.story-card .service-title {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}
.story-card h2,
.story-card .access-title-primary,
.story-card .access-title-secondary {
    transition: color 5s ease;
}
.story-card h2 {
    margin: 0 0 1.25em 0;
}
.story-card h2:last-child {
    margin-bottom: 0;
}
.story-card.is-visible h2,
.story-card.is-visible .access-title-primary,
.story-card.is-visible .access-title-secondary {
    color: var(--color-primary);
}

/* About page story section: extra spacing before nav + scroll-in */
body.page-about .story-section {
    margin-bottom: 25px; /* 50% more space (padding 50px + 25px = 75px total) */
}
body.page-about .story-section .story-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
body.page-about .story-section .story-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Story cards: blue base with animated soft green sweep (background-clip: text) */
body.page-about .story-section .story-card .access-title-primary,
body.page-about .story-section .story-card .access-title-secondary {
    color: transparent;
    background: linear-gradient(
        90deg,
        #79AEF8 0%,
        #79AEF8 18%,
        #79AEF8 24%,
        #8ec5f0 28%,
        #9dd4e8 32%,
        #ace0e0 36%,
        #79F8C3 42%,
        #79F8C3 58%,
        #ace0e0 64%,
        #9dd4e8 68%,
        #8ec5f0 72%,
        #79AEF8 76%,
        #79AEF8 100%
    );
    background-size: 300% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: storyTextSweep 5s ease-in-out infinite;
    transition: opacity 0.6s ease;
}
@keyframes storyTextSweep {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === 5c2b. VISION / NEXT PAGE === */
@keyframes nextBgFade {
    from { background-color: var(--bg-body); }
    to { background-color: #f5f5f5; }
}
body.page-next {
    animation: nextBgFade 3s ease-out forwards;
}
body.page-next .vision-manifesto-section {
    background-color: #f5f5f5;
}
.vision-manifesto-section {
    background-color: #f5f5f5;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* 25% less top spacing on next page */
.container:has(> .vision-manifesto-section) {
    padding-top: 75px;
}
.container:has(> .vision-manifesto-section) .vision-manifesto-section {
    padding: 60px 40px;
}
.vision-manifesto-section .access-title {
    padding-left: 0;
    padding-right: 0;
}
body.page-next .vision-manifesto-section .access-title {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    z-index: 10;
    padding: 90px 40px 0.5em 40px;
    margin: 0;
    background-color: #f5f5f5;
}
body.page-next .vision-manifesto-section {
    padding-top: 240px;
    padding-left: 40px;
    padding-right: 40px;
}
body.page-next .vision-manifesto-section .vision-gradient-text {
    margin-top: 1.5em;
    padding-left: 0;
    margin-left: 0;
}
.vision-manifesto-section .access-title .access-title-primary {
    font-weight: 440;
    background: linear-gradient(to right, #F88479, #F879AE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.vision-gradient-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.28rem, 4vw, 2rem);
    line-height: 1.5;
    text-align: left;
    max-width: 1000px;
    margin: 0;
    background: linear-gradient(to right, #F88479, #F879AE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* === 5c3. LEGAL / PRIVACY PAGE === */
.legal-section {
    width: 100%;
    display: flex;
    justify-content: center;
}
.legal-card {
    width: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #efefef 100%);
    border-radius: 20px;
    padding: 32px 24px;
    color: #5f6368;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
}
.legal-title {
    color: #36454F;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0 0 24px 0;
}
.legal-subtitle {
    color: #36454F;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 28px 0 12px 0;
}
.legal-label {
    font-weight: 500;
    color: #5f6368;
    margin: 0 0 8px 0;
}
.legal-text {
    margin: 0 0 16px 0;
    color: #5f6368;
}
.legal-link {
    color: var(--color-primary);
    text-decoration: none;
}
.legal-link:hover {
    text-decoration: underline;
}
/* About page: black background, light text */
body.page-about {
    background-color: #000;
}
body.page-about h1,
body.page-about h2,
body.page-about h3,
body.page-about p,
body.page-about .access-section-bars .access-title .access-title-primary {
    color: #eeeeee;
}
body.page-about .access-title,
body.page-about .access-title-primary,
body.page-about .access-title-secondary,
body.page-about .access-bar-word,
body.page-about .workflow-bubble p,
body.page-about .solutions-title .access-title-primary strong {
    color: #fafafa;
}
body.page-about .solutions-section .access-title-primary,
body.page-about .solutions-section .access-title-primary strong {
    color: #999999;
}
body.page-about .solutions-section .access-title-secondary {
    color: #b7b7b7;
}
body.page-about .solutions-section .workflow-bubble p {
    color: #5f6368;
}

/* Service section: desktop uses gradient, mobile uses mix-blend-mode */
body.page-about .service-section .service-title,
body.page-about .service-section .access-title-primary,
body.page-about .service-section .access-title-secondary {
    color: transparent;
    background: linear-gradient(to right, #000 0%, #000 30%, #fafafa 50%, #fafafa 70%, #000 85%, #000 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
/* Mobile: mix-blend-mode for dynamic text color over black/white */
@media (max-width: 767px) {
    body.page-about .service-section .service-title,
    body.page-about .service-section .access-title-primary,
    body.page-about .service-section .access-title-secondary {
        color: #fafafa;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        mix-blend-mode: difference;
        position: relative;
        z-index: 2;
    }
    body.page-about .service-section .service-circle-left,
    body.page-about .service-section .service-circle-right {
        background: #ffffff;
        z-index: 1;
    }
}
@media (min-width: 768px) {
    body.page-about .service-section .service-title,
    body.page-about .service-section .access-title-primary,
    body.page-about .service-section .access-title-secondary {
        background: linear-gradient(to right, #fafafa 0%, #fafafa 25%, #000 40%, #000 60%, #fafafa 75%, #fafafa 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

/* Legal & Privacy: sticky footer for short pages */
body.page-legal .container,
body.page-privacy .container {
    flex: 1;
    padding: 100px 20px 50px 20px; /* same as index */
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}
body.page-legal .legal-section,
body.page-privacy .legal-section {
    max-width: none;
    width: 100%;
}
/* Footer: same as index (34px top, 10px bottom) + 100px bottom to clear fixed nav on short pages */
body.page-legal .site-footer,
body.page-privacy .site-footer {
    flex-shrink: 0;
    margin: 34px 20px 10px 20px;
}


/* === 5d. VIEWPORT 2D: INFRASTRUCTURE CARD === */
.infrastructure-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.infrastructure-card {
    width: 100%;
    border-radius: 42px;
    padding: 26px 18px 24px 18px;
    background: linear-gradient(180deg, #515355 0%, #6a6c6f 48%, #e3e3e3 100%);
}
.infrastructure-title {
    padding-left: 0;
    padding-right: 0;
}
.infrastructure-title .access-title-primary {
    color: #adadad;
    white-space: normal;
}
.infrastructure-title .access-title-secondary {
    color: #c5c5c5;
}
.infrastructure-cards-row {
    display: flex;
    gap: 16px;
    width: 100%;
}
.infrastructure-mini-card {
    flex: 1;
    display: grid;
    grid-template-rows: minmax(62px, auto) 1fr;
    background: #efefef;
    border-radius: 18px;
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
}
.infrastructure-icon-wrap {
    min-height: 62px;
    display: flex;
    align-items: flex-start;
}
.infrastructure-mini-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #D1E0D1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 620ms ease-out, opacity 500ms ease-out;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.infrastructure-mini-card.is-filled.is-faded::before {
    opacity: 0;
}
.infrastructure-mini-card > * {
    position: relative;
    z-index: 1;
}
.infrastructure-mini-card-systems::before {
    background: linear-gradient(180deg, #efefef 0%, #efefef 35%, #FADAD9 100%);
    transform-origin: top;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
}
.infrastructure-mini-card-experience::before {
    background: linear-gradient(180deg, #efefef 0%, #efefef 35%, #D1E0D1 100%);
    transform-origin: top;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
}
.infrastructure-mini-card-experience.is-filled::before {
    transform: scaleY(1);
}
.infrastructure-mini-card-systems.is-filled::before {
    transform: scaleY(1);
}
.infrastructure-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 18px;
}
.infrastructure-icon-image {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.infrastructure-icon-image-rocket {
    width: 62px;
    height: 62px;
}
.infrastructure-mini-text {
    margin: 0;
    align-self: start;
    font-size: clamp(1.12rem, 3.84vw, 1.36rem); /* 20% smaller */
    line-height: 1.2;
    color: #5a6578;
    font-weight: 500;
}

/* === 6. VIEWPORT 3: CONTENT GRID === */
.content-grid {
    display: grid; gap: 20px;
    /* Mobile First: 1 Spalte (12 von 12) */
    grid-template-columns: 1fr; 
}
.content-box { background-color: var(--bg-surface); border-radius: var(--border-radius); padding: 30px; }
.dark-box { background-color: #E8EAED; }
.box-title { color: var(--color-accent); font-family: var(--font-mono); font-size: 0.9rem; text-transform: uppercase; margin: 0 0 15px 0; }
.box-text { font-size: 1.1rem; line-height: 1.5; color: var(--text-main); margin: 0; }

/* === 7. FOOTER & NAV === */
.site-footer {
    position: static;
    margin: 34px 20px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 6px 12px;
    border-top: none;
    background-color: rgba(248, 131, 121, 0.1);
    border-radius: 8px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}
.footer-links { display: flex; justify-content: center; gap: 14px; margin-bottom: 0; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.bottom-nav {
    position: fixed; bottom: 42px; left: 50%; transform: translateX(-50%) translateY(100px);
    background-color: var(--bg-surface); padding: 15px 40px; border-radius: 8pt;
    display: flex; gap: 15px; opacity: 0; transition: all 0.5s ease; z-index: 999;
    justify-content: center;
    width: max-content;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}
.bottom-nav.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.nav-item {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8pt;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
}
.nav-item.cta { background-color: var(--color-primary); color: white; }

/* === 7b. MOBILE: consistent grid, no overflow === */
@media (max-width: 767px) {
    .container {
        padding-left: var(--gutter-mobile);
        padding-right: var(--gutter-mobile);
    }
    .access-title { padding-left: 18px; padding-right: 18px; }
    .access-section-bars .access-title,
    .access-section-bars .access-bars-list { padding-left: 0; padding-right: 0; }
    .capacity-card { padding: 24px 18px 0; }
    .capacity-title { padding-left: 0; padding-right: 0; }
    .solutions-card { padding: 32px 0 36px; }
    .solutions-title { padding-left: 0; padding-right: 0; }
    .service-card { padding: 30px 18px; }
    .service-title { padding-left: 0; padding-right: 0; }
    /* About: all sections use same 20px gutter */
    body.page-about .about-hero-box { padding: 24px 0 22px; }
    body.page-about .about-hero-box .about-hero-title { padding: 0 var(--gutter-mobile); }
    body.page-about .access-section-bars .access-title,
    body.page-about .access-section-bars .access-bars-list { padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); }
    body.page-about .solutions-card { padding: 32px var(--gutter-mobile) 36px; }
    body.page-about .service-card { padding: 30px var(--gutter-mobile); }
    body.page-about .story-section .story-card { padding: 28px var(--gutter-mobile); box-sizing: border-box; }
}

/* === 8. DESKTOP OVERRIDES (Ab 768px aufwärts) === */
@media (min-width: 768px) {
    .container { max-width: 1200px; }
    .container:has(> .hero-box:not(.about-hero-box)),
    body.page-about .container { max-width: 1280px; }
    .container > section:not(.hero-box):not(.legal-section) {
        width: 100%;
        max-width: 980px;
        margin-left: auto;
        margin-right: auto;
    }
    /* About page: hero 1280px, all sections same left/right padding (44px) */
    body.page-about .about-hero-box {
        width: 1280px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    body.page-about .container > section:not(.hero-box):not(.legal-section) {
        max-width: 1280px;
        box-sizing: border-box;
    }
    body.page-about .access-section-bars .access-title,
    body.page-about .access-section-bars .access-bars-list {
        padding-left: 44px;
        padding-right: 44px;
    }
    body.page-about .solutions-card { padding: 40px 44px 44px; }
    body.page-about .solutions-title { padding-left: 0; padding-right: 0; }
    body.page-about .service-card { padding: 36px 44px; }
    body.page-about .service-title { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
    body.page-about .story-section { padding-left: 44px; padding-right: 44px; box-sizing: border-box; }
    body.page-legal .container,
    body.page-privacy .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    body.page-legal .site-footer,
    body.page-privacy .site-footer {
        margin: 34px 24px 10px 24px;
    }
    .about-hero-box {
        position: relative;
        min-height: 420px;
        padding: 40px 44px 36px;
        display: block;
    }
    .about-hero-box .about-hero-title {
        position: absolute;
        left: 0; right: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 0 42px 0 44px;
    }
    .about-hero-runner {
        position: absolute;
        left: 26%;
        top: 44%;
        transform: translate(-50%, -50%) scaleX(-1);
        margin-top: 0;
        font-size: clamp(6rem, 9vw, 8.7rem);
    }

    /* Hero Section: index hero 1280px width on desktop */
    .hero-box:not(.about-hero-box) {
        width: 1280px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-box { flex-direction: row; gap: 8%; min-height: 45vh; padding: 60px 40px; }
    
    /* Viewport 2 atmet durch */
    .access-title { margin-bottom: 50px; }
    .access-visuals-row { gap: 30px; }
    .visual-container { padding: 40px; font-size: 4rem; }
    .visual-separator { font-size: 3.5rem; }
    .capacity-card { padding: 28px 18px 0; }
    .capacity-title { padding-left: 0; padding-right: 0; }
    .capacity-bars { min-height: 260px; gap: 18px; }
    .capacity-bar { width: 28px; }
    .capacity-bar.bar-1 { height: 60px; }
    .capacity-bar.bar-2 { height: 82px; }
    .capacity-bar.bar-3 { height: 118px; }
    .capacity-bar.bar-4 { height: 152px; }
    .capacity-bar.bar-5 { height: 194px; }
    .capacity-bar.bar-6 { height: 260px; }
    .solutions-card { padding: 40px 36px 44px; }
    .solutions-title { margin-bottom: 32px; }
    .solutions-workflow { padding-left: 15%; padding-right: 15%; box-sizing: border-box; }
    .workflow-connector { flex: 0 0 32px; min-width: 28px; width: 32px; }
    .workflow-icon { font-size: 2.4rem; }
    .workflow-icon-shovel { font-size: 2.6rem; }
    .workflow-bubble { padding: 14px 18px; max-width: 400px; }
    .workflow-bubble p { font-size: 0.84rem; }
    .service-card { padding: 36px 28px; }
    .service-title { padding-left: 0; padding-right: 0; }
    .service-visuals-row {
        width: max-content;
        justify-content: center;
        justify-self: center;
        align-self: center;
        gap: 0;
    }
    .service-circle { width: clamp(216px, 26.4vw, 300px); }
    .service-circle-right { margin-left: -2px; }
    .infrastructure-card { padding: 34px 18px 28px; }
    .infrastructure-title { padding-left: 0; padding-right: 0; }
    .infrastructure-cards-row { gap: 24px; }
    .infrastructure-mini-card { grid-template-rows: minmax(70px, auto) 1fr; border-radius: 20px; padding: 24px 20px; }
    .infrastructure-icon-wrap { min-height: 70px; }
    .infrastructure-icon { font-size: 3.4rem; }
    .infrastructure-icon-image { width: 64px; height: 64px; }
    .infrastructure-icon-image-rocket { width: 70px; height: 70px; }
    .infrastructure-mini-text { font-size: clamp(1.2rem, 1.76vw, 1.68rem); } /* 20% smaller */
    .site-footer { margin: 24px 24px 10px 24px; }
    .bottom-nav { bottom: 46px; max-width: calc(100vw - 48px); }

    /* Content Grid nutzt jetzt 2 Spalten (jeweils 6 von 12) */
    .content-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .content-box { padding: 40px; }
    .box-text { font-size: 1.3rem; }
}