:root {
    --primary-color: #88a06c;      /* sage green – brand accent */
    --secondary-color: #e0a12f;    /* warm amber accent */
    --dark-gray: #2c3a47;          /* dark slate – headings */
    --medium-gray: #6c7670;        /* muted slate-green for secondary text */
    --light-gray: #edefe3;         /* pale sage section background */
    --cream: #f6f5ec;              /* warm page background */
    --white: #ffffff;
    --text-color: #38434c;         /* body text */

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    --border-radius: 14px;
    --box-shadow: 0 6px 26px rgba(44, 58, 71, 0.07);
    --card-border: 1px solid rgba(44, 58, 71, 0.06);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
    background-color: var(--cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--medium-gray);
}

.section-intro {
    font-size: 1.125rem;
    color: var(--medium-gray);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* Eyebrow / section label – matches the presentation's small uppercase labels */
.section-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* Header with Video Background */
.header-with-video {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh; /* avoids the iOS address-bar jump; falls back to vh */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dark-gray);
    text-align: center;
}

.header-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.header-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(246, 245, 236, 0.55);
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 3;
    padding: var(--spacing-xl) 0;
}

.header-with-video h1 {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
    font-size: 4rem;
    text-shadow: 0 2px 8px rgba(246, 245, 236, 0.85);
}

.header-with-video h1 .logo-accent {
    color: var(--primary-color);
}

.header-with-video .tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--dark-gray);
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    width: 40px;
    height: 40px;
    color: var(--dark-gray);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.8));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--light-gray);
}

/* Hero Section */
#hero {
    background: var(--cream);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h2 {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
}

/* Video Background Section */
.video-figure {
    margin: 0 0 var(--spacing-lg);
}

.video-caption {
    margin-top: var(--spacing-sm);
    text-align: center;
    font-size: 0.9375rem;
    color: var(--medium-gray);
    font-style: italic;
}

.video-background-section {
    position: relative;
    width: 100%;
    /* aspect ratio of the actual content inside the recording (black margins cropped) */
    aspect-ratio: 1816 / 1012;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: var(--card-border);
    background: transparent;
    line-height: 0;
    font-size: 0;
}

/* zoom/shift the video so its baked-in black border (≈15/47px top-bottom, 49px sides
   in 1080p) is cropped out on all four sides */
.background-video {
    position: absolute;
    width: 105.8%;
    height: auto;
    left: -2.9%;
    top: -1.8%;
    z-index: 1;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.content-grid-spaced {
    margin-bottom: var(--spacing-lg);
}

.content-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: var(--card-border);
}

.content-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Icon + heading row inside a card (Vision / Projektziel) */
.card-icon-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-sm);
}

.card-icon-head h3 {
    margin-bottom: 0;
}

.card-icon-head i {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.content-card .card-icon-head + p {
    margin-bottom: 0;
}

.content-card ul {
    list-style-type: disc;
    line-height: 1.8;
}

.content-card ul li {
    margin-bottom: var(--spacing-xs);
}

.card-list {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

/* Methodology Steps */
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.step {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border: var(--card-border);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
}

.step h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Result figure (traffic-change map) */
.result-figure {
    margin: var(--spacing-lg) 0 0;
}

.result-figure img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: var(--card-border);
}

/* Scenario overview (color-coded by dimension) */
.scenario-groups {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.scenario-group {
    --accent: var(--primary-color);
    --accent-soft: rgba(136, 160, 108, 0.16);
    display: flex;
    align-items: baseline;
    gap: var(--spacing-md);
    background: var(--white);
    border: var(--card-border);
    border-left: 4px solid var(--accent);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: var(--spacing-sm) var(--spacing-md);
}

.scenario-group.dim-mile  { --accent: #3f6f8f; --accent-soft: rgba(63, 111, 143, 0.12); }
.scenario-group.dim-drive { --accent: #6f8755; --accent-soft: rgba(111, 135, 85, 0.16); }
.scenario-group.dim-time  { --accent: #d68a26; --accent-soft: rgba(214, 138, 38, 0.16); }

.scenario-group-label {
    flex-shrink: 0;
    width: 110px;
    font-weight: 700;
    color: var(--accent);
}

.scenario-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.scenario-chip {
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Transferability note closing the Vorgehen section */
.transfer-note {
    max-width: 820px;
    margin: var(--spacing-lg) auto 0;
    text-align: center;
    font-size: 1.0625rem;
    color: var(--medium-gray);
}

.transfer-note strong {
    color: var(--primary-color);
}

/* Process steps (Vorgehen) */
.process-title {
    text-align: center;
    margin-top: var(--spacing-lg);
    margin-bottom: 0;
}

.process-steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: var(--spacing-md);
}

.process-steps .step p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Partners */
.partner-category {
    margin-bottom: var(--spacing-xl);
}

.partner-category:last-child {
    margin-bottom: 0;
}

.partner-category h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.partner-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border: var(--card-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.partner-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.partner-logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin-bottom: var(--spacing-md);
}

/* Shared sizing for all partner & funding logos */
.partner-logo-container img,
.funding-logo-container img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.partner-text-container {
    margin-top: auto;
}

.partner-card h4 {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xs);
}

.partner-role {
    color: var(--medium-gray);
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 0;
}

/* Funding */
.funding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.funding-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border: var(--card-border);
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.funding-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.funding-logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin-bottom: var(--spacing-md);
}

.funding-text-container {
    margin-top: auto;
}

.funding-card h4 {
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Results */
.result-card {
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--accent);
    --accent: var(--primary-color);
    --accent-soft: rgba(136, 160, 108, 0.16);
}

.result-card.accent-blue  { --accent: #3f6f8f; --accent-soft: rgba(63, 111, 143, 0.12); }
.result-card.accent-amber { --accent: #d68a26; --accent-soft: rgba(214, 138, 38, 0.14); }
.result-card.accent-green { --accent: #6f8755; --accent-soft: rgba(111, 135, 85, 0.16); }

.result-head {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.result-head h3 {
    margin-bottom: 0;
    color: var(--dark-gray);
}

.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}

.result-icon svg {
    width: 22px;
    height: 22px;
}

.result-metric {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin: var(--spacing-sm) 0;
}

.result-metric .result-prefix {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 0.15rem;
}

.result-metric .result-metric-sub {
    display: block;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--medium-gray);
    margin-top: var(--spacing-xs);
    line-height: 1.5;
}

/* Uncertainty as a small ± figure tucked right under the headline number */
.result-metric .result-pm {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--medium-gray);
    margin-top: 0.1rem;
    line-height: 1.2;
}

.result-note {
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--medium-gray);
    font-style: italic;
}

/* Subsection title (within a section) */
.subsection-title {
    text-align: center;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xs);
}

/* Data insights ("Was die Daten zeigen") */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.insight {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: var(--card-border);
}

.insight-head {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.insight-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(136, 160, 108, 0.16);
    color: var(--primary-color);
}

.insight-icon svg {
    width: 22px;
    height: 22px;
}

.insight-figure {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.15;
}

.insight-text {
    font-size: 0.9375rem;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.55;
}

/* Empfehlung footer inside a result card */
.card-recommendation {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--accent-soft);
}

.card-rec-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.card-recommendation p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Empfehlungen zum weiteren Vorgehen */
.recommendations {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.recommendations.two-up {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.rec-card {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: var(--card-border);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.rec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.rec-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(136, 160, 108, 0.16);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-icon svg {
    width: 24px;
    height: 24px;
}

.rec-body h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.35rem;
}

.rec-body p {
    margin-bottom: 0;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.contact-card {
    background: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

.contact-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-card p {
    margin-bottom: var(--spacing-xs);
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

footer h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

footer a {
    color: var(--white);
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator i {
        width: 32px;
        height: 32px;
    }

    .header-with-video h1 {
        font-size: 2.5rem;
    }

    .header-with-video .tagline {
        font-size: 1.125rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: var(--spacing-md) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .content-grid,
    .partner-grid,
    .methodology-steps {
        grid-template-columns: 1fr;
    }

    .scenario-group {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .scenario-group-label {
        width: auto;
    }
}
