* {
    box-sizing: border-box;
}

:root {
    --black: #0b0b0b;
    --paper: #f4f2ec;
    --white: #fbfaf7;
    --line: #c9c5ba;
    --text: #111111;
    --muted: #67635c;
    --accent: #9b3d2e;
    --blue: #263f5c;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    background: var(--paper);
    color: var(--text);
}

/* HEADER */

#topHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 96px;
    background: var(--black);
    color: var(--white);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 36px;
}

.brand {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    line-height: 1.1;
    font-size: 20px;
}

.brand small {
    display: block;
    font-weight: 400;
    font-size: 14px;
    margin-top: 5px;
}

#topNav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

#topNav a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

#topNav a:hover {
    opacity: 1;
}

/* GENERAL */

main {
    padding-top: 96px;
}

.section {
    min-height: 100vh;
    padding: 90px 56px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 96px;
}

.eyebrow {
    margin: 0 0 26px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(62px, 9vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.07em;
    max-width: 1150px;
    margin-bottom: 42px;
}

h2 {
    font-size: clamp(48px, 7vw, 96px);
    line-height: 0.9;
    letter-spacing: -0.075em;
    max-width: 1000px;
    margin-bottom: 34px;
}

h3 {
    font-size: 22px;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

p {
    font-size: 17px;
    line-height: 1.55;
    max-width: 720px;
}

.lead {
    font-size: 22px;
    max-width: 760px;
}

/* KPI CARDS */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1080px;
    margin-top: 90px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.kpi-grid article {
    background: var(--white);
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.kpi-value {
    display: block;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--accent);
}

.kpi-grid p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 0;
}

.decision-box {
    max-width: 920px;
    margin-top: 28px;
    padding: 28px 34px;
    background: #d8d5ce;
    color: var(--white);
}

.decision-box p:last-child {
    color: #0b0b0b;
    margin-bottom: 0;
}

.finding-box {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    max-width: 980px;
    margin: 8px 0 30px;
    padding: 22px 24px;
    background: var(--paper);
    border-left: 6px solid var(--accent);
}

.finding-box strong {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.finding-box span {
    color: var(--text);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
}

.recommendation-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 13px;
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* HERO */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88.5vh;
}

/* GRID INTRO */

.grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    min-height: auto;
    padding: 80px 56px;
    border-bottom: 1px solid var(--line);
}

.grid-section article {
    border: 1px solid var(--line);
    border-left: 0;
    background: var(--white);
    padding: 60px 56px 60px;
    min-height: 320px;
}

.grid-section article:first-child {
    border-left: 1px solid var(--line);
}

.card-header {
    display: block;
    margin-bottom: 34px;
}

.number {
    display: block;
    font-size: 13px;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
}

.card-header h2,
.grid-section h2 {
    font-size: clamp(42px, 4.8vw, 70px);
    line-height: 0.9;
    letter-spacing: -0.075em;
    margin: 0;
}

.grid-section article p {
    max-width: 360px;
}

/* TEXT SECTION */

.text-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* QUESTION BOX */

.question-box {
    margin-top: 54px;
    padding: 34px;
    background: var(--white);
    border: 1px solid var(--line);
    max-width: 920px;
}

.question-box h3 {
    font-size: clamp(30px, 4vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    max-width: 840px;
    margin-bottom: 0;
}

/* VISUALISATIONS */

.visual-section {
    min-height: auto;
}

.visual-section > h2 {
    margin-bottom: 56px;
}

.story-intro {
    max-width: 900px;
    margin: 70px 0 38px;
    padding: 34px;
    border-left: 6px solid var(--accent);
    background: var(--white);
}

.story-intro:first-of-type {
    margin-top: 0;
}

.story-intro h3 {
    font-size: clamp(34px, 4.5vw, 64px);
    line-height: 0.92;
    letter-spacing: -0.06em;
    margin-bottom: 18px;
}

.story-intro p {
    color: var(--muted);
    margin-bottom: 0;
    max-width: 780px;
}

.embed-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 34px;
    margin-bottom: 48px;
}

.embed-card:last-child {
    margin-bottom: 0;
}

.embed-card .number {
    color: var(--accent);
    margin-bottom: 26px;
}

.embed-card h3 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 0.92;
    letter-spacing: -0.065em;
    margin-bottom: 18px;
    max-width: 780px;
}

.embed-card p {
    color: var(--muted);
    margin-bottom: 30px;
    max-width: 760px;
}

.embed-card iframe {
    display: block;
    width: 100%;
    min-width: 100%;
    border: none;
    background: var(--white);
}

.embed-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

.interpretation {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--text) !important;
    font-weight: 500;
}

.interpretation-box {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    margin-top: 28px;
    padding: 22px 24px;
    background: var(--paper);
    border-left: 6px solid var(--accent);
}

.interpretation-box strong {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.interpretation-box span {
    color: var(--text);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
}

.map-link {
    margin-top: 18px;
    font-size: 16px;
}

.map-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.map-link a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* CONSISTENT RESOURCE LINKS */

.resource-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.resource-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* STAKEHOLDER */

.stakeholder-section {
    min-height: auto;
}

.stakeholder-text {
    max-width: 760px;
}

.stakeholder-center {
    display: grid;
    grid-template-columns: 540px 1fr;
    gap: 90px;
    align-items: center;
    margin-top: 70px;
}

.stakeholder-onion {
    position: relative;
    width: 480px;
    height: 480px;
    margin: 0 auto;
}

.onion-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    justify-content: center;
    align-items: center;
}

.outer-circle {
    inset: 0;
    background: rgba(255,255,255,0.65);
}

.middle-circle {
    inset: 86px;
    background: rgba(255,255,255,0.82);
}

.inner-circle {
    inset: 172px;
    background: var(--accent);
    color: white;
}

.inner-circle span {
    text-align: center;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.outer-text {
    position: absolute;
    top: 48px;
    font-size: 20px;
    color: #8d8981;
    font-weight: 700;
}

.middle-text {
    position: absolute;
    top: 38px;
    font-size: 18px;
    color: #8d8981;
    font-weight: 700;
}

.stakeholder-caption article {
    margin-bottom: 42px;
}

.stakeholder-caption h3 {
    font-size: 30px;
    margin-bottom: 12px;
}

.stakeholder-caption p {
    color: var(--muted);
    max-width: 500px;
}

#stakeholders {
    scroll-margin-top: 140px;
}

/* ANALYSIS */

.analysis-section {
    min-height: auto;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 60px;
}

.analysis-grid article {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 0;
    padding: 34px;
    min-height: 280px;
}

.analysis-grid article:first-child {
    border-left: 1px solid var(--line);
}

.analysis-grid h3 {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.055em;
}

/* RECOMMENDATIONS */

.recommendation-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 1050px;
    margin-top: 52px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.recommendation-list article {
    background: var(--white);
    padding: 34px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.recommendation-list h3 {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.recommendation-list p {
    color: var(--muted);
}

/* LIMITATIONS */

.limitations-section {
    min-height: auto;
}

.limitations-list {
    max-width: 820px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.limitations-list li {
    font-size: 18px;
    line-height: 1.5;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

/* ABOUT */

.about-section {
    padding: 90px 56px;
    background: var(--black);
    color: var(--white);
    min-height: 80vh;
    scroll-margin-top: 96px;
}

.about-section .eyebrow {
    color: #d98256;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.28);
    border-left: 1px solid rgba(255,255,255,0.28);
}

.about-grid article {
    padding: 28px;
    border-right: 1px solid rgba(255,255,255,0.28);
    border-bottom: 1px solid rgba(255,255,255,0.28);
}

.about-grid p {
    color: #d8d5ce;
    font-size: 15px;
}

.comparison-image {
    width: 100%;
    max-width: 1100px;
    display: block;
    margin: 2.5rem auto;
}

/* MOBILE */

@media (max-width: 850px) {
    #topHeader {
        min-height: 92px;
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }

    .brand {
        font-size: 17px;
    }

    .brand small {
        font-size: 12px;
    }

    #topNav {
        gap: 12px;
    }

    #topNav a {
        font-size: 10px;
    }

    main {
        padding-top: 170px;
    }

    .section {
        padding: 64px 20px;
        min-height: auto;
    }

    h1 {
        font-size: clamp(56px, 18vw, 86px);
    }

    h2 {
        font-size: clamp(44px, 14vw, 72px);
    }

    .lead {
        font-size: 19px;
    }

    .grid-section,
    .analysis-grid,
    .about-grid,
    .recommendation-list,
    .kpi-grid,
    .stakeholder-center,
    .finding-box {
        grid-template-columns: 1fr;
    }

    .grid-section {
        padding: 0 20px 64px;
    }

    .grid-section article,
    .analysis-grid article {
        border-left: 1px solid var(--line);
        border-top: 0;
    }

    .grid-section article:first-child,
    .analysis-grid article:first-child {
        border-top: 1px solid var(--line);
    }

    .story-intro,
    .embed-card,
    .question-box {
        padding: 20px;
    }

    .embed-card {
        margin-bottom: 32px;
    }

    .embed-card h3 {
        font-size: clamp(32px, 11vw, 48px);
    }

    .embed-card iframe {
        width: 100%;
        min-width: 100%;
    }

    .stakeholder-center {
        gap: 38px;
        margin-top: 44px;
    }

    .stakeholder-onion {
        width: min(330px, 88vw);
        height: min(330px, 88vw);
    }

    .middle-circle {
        inset: 58px;
    }

    .inner-circle {
        inset: 116px;
    }

    .outer-text {
        top: 35px;
        font-size: 16px;
    }

    .middle-text {
        top: 28px;
        font-size: 15px;
    }

    .inner-circle span {
        font-size: 16px;
    }

    .finding-box {
        gap: 10px;
    }

    .about-section {
        padding: 64px 20px;
    }

    .about-grid {
        margin-top: 48px;
    }
}

/* DATA CATALOGUE */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    margin-top: 64px;
}

.catalogue-grid article {
    background: var(--white);
    padding: 48px 36px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 520px;
}

.catalogue-grid h3 {
    margin: 24px 0 28px;
    font-size: 28px;
    line-height: 0.95;
}

.catalogue-grid p {
    margin-bottom: 22px;
}

.catalogue-grid strong {
    display: inline-block;
    margin-bottom: 4px;
}

.catalogue-grid a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.catalogue-grid a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .catalogue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .catalogue-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HEATMAP LEGEND ===== */

.map-wrapper {
    position: relative;
    width: 100%;
}

.map-wrapper iframe {
    display: block;
}

.map-legend {
    position: absolute;
    right: 3px;
    bottom: 20px;
    background: #f4efe6;
    border: 1px solid #d6d0c5;
    padding: 6px;
    z-index: 5;
}

.map-legend img {
    width: 90px;
    height: auto;
    display: block;
}

@media (max-width: 700px) {
    .map-legend img {
        width: 90px;
    }
}

.placeholder-section{
    margin:80px 0;
}

.placeholder{
    padding:28px;
    border:2px dashed #cfcfcf;
    border-radius:12px;
    background:#fafafa;
    color:#666;
    line-height:1.7;
    font-style:italic;
}

/* ------ METHODS ------ */

#methods {
    min-height: auto;
}

#methods h2 {
    margin-bottom: 48px;
}

#methods > p {
    margin-bottom: 40px;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.method-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 260px;

    background: var(--white);
    border: 1px solid var(--line);
    padding: 28px;
}

.method-card h3 {
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0 0 18px;
}

.method-card p {
    max-width: none;
    margin-bottom: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.method-card p:last-child {
    margin-bottom: 0;
}

.method-card strong {
    color: var(--text);
}

@media (max-width: 900px) {
    .method-grid {
        grid-template-columns: 1fr;
    }

    .method-card {
        min-height: auto;
    }
}

/* ------ NEXT STEPS ------ */

.next-steps-section {
    min-height: auto !important;
    height: auto !important;
    display: block !important;

    padding-top: 4rem !important;
    padding-bottom: 4rem !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.next-steps-section .eyebrow {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.next-steps-section h2 {
    margin-top: 0 !important;
    margin-bottom: 2.5rem !important;
}

.next-steps-section ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Übergänge kompakter machen */

.limitations-section {
    padding-bottom: 4rem !important;
}

.next-steps-section + .text-section {
    padding-top: 4rem !important;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.reference-grid article {
    background: var(--white);
    padding: 40px 34px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 420px;
}

.reference-grid h3 {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 30px;
}

.reference-grid p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.reference-grid strong {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.reference-grid a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.reference-grid a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .reference-grid {
        grid-template-columns: 1fr;
    }
}

.reference-author {
    margin-top: 0rem;
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}