:root {
    --ink: #17212b;
    --muted: #5b6875;
    --paper: #f5f7f8;
    --surface: #ffffff;
    --deep: #0e2638;
    --lake: #0b7895;
    --lake-soft: #dff3f7;
    --copper: #c76532;
    --line: #d8e0e5;
    --max: 1180px;
    --radius: 18px;
    --shadow: 0 16px 40px rgba(14, 38, 56, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
a { color: var(--lake); text-underline-offset: .18em; }
a:hover { color: var(--copper); }
img { max-width: 100%; height: auto; }
.shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; background: #fff; padding: .7rem 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 38, 56, .96);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: #fff; text-decoration: none; display: grid; line-height: 1.05; }
.brand:hover { color: #fff; }
.brand-kicker { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #a8dfe9; }
.brand-title { font-size: 1.32rem; font-weight: 800; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem; }
.site-nav a { color: #e9f4f6; text-decoration: none; font-size: .86rem; padding: .48rem .6rem; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; padding: .55rem .75rem; border-radius: 10px; }

.hero {
    padding: clamp(4rem, 9vw, 8rem) 0;
    color: #fff;
    background:
      radial-gradient(circle at 82% 25%, rgba(199,101,50,.42), transparent 28%),
      radial-gradient(circle at 15% 80%, rgba(11,120,149,.58), transparent 34%),
      linear-gradient(135deg, #0e2638, #173f56 58%, #102e40);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.5rem; align-items: end; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 750; font-size: .78rem; color: #9edbe6; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 7vw, 5.7rem); margin: .35rem 0 1rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.42rem); max-width: 48rem; color: #dcecf0; }
.role-line { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.role-line span { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); border-radius: 999px; padding: .38rem .68rem; font-size: .86rem; }
.hero-note { border-left: 3px solid #f1a36d; padding-left: 1.2rem; color: #dcecf0; }

main { min-height: 55vh; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.alt { background: #edf2f4; }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.45rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; font-size: 1.25rem; }
.card p { color: var(--muted); }
.card-link { display: inline-flex; font-weight: 760; text-decoration: none; }

.page-hero { padding: 3.5rem 0 2.8rem; background: linear-gradient(135deg, #14384c, #0e2638); color: #fff; }
.page-hero h1 { font-size: clamp(2.35rem, 6vw, 4.7rem); }
.page-hero p { max-width: 760px; color: #dcecf0; font-size: 1.13rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.3rem; align-items: start; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); }
.prose h2:first-child { margin-top: 0; }
.sidebar { background: var(--lake-soft); border-radius: var(--radius); padding: 1.35rem; }
.sidebar h2 { font-size: 1.15rem; }
.link-list { margin: 0; padding-left: 1.1rem; }
.link-list li + li { margin-top: .55rem; }
.note { border-left: 4px solid var(--copper); background: #fff5ef; padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; }

.site-footer { background: #0e2638; color: #dcecf0; padding: 2.7rem 0 1.3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.site-footer a { color: #a8dfe9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }

@media (max-width: 980px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid, .content-grid { grid-template-columns: 1fr; }
    .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #0e2638; padding: 1rem; flex-direction: column; }
    .site-nav.is-open { display: flex; }
    .nav-toggle { display: inline-block; }
}
@media (max-width: 650px) {
    .cards, .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .shell { width: min(calc(100% - 1.25rem), var(--max)); }
}


/* Curated historical articles */
.article-shell { max-width: 920px; }
.article-hero { padding: 4.5rem 0 2rem; background: linear-gradient(180deg, rgba(23,48,69,.08), transparent); }
.article-hero h1 { max-width: 18ch; margin: .35rem 0 .8rem; }
.article-deck { max-width: 65ch; color: var(--muted); font-size: 1.08rem; }
.historical-banner { margin: 0 0 2rem; padding: 1rem 1.15rem; border-left: 4px solid var(--accent); background: var(--panel); border-radius: .5rem; }
.legacy-article { overflow-wrap: anywhere; }
.legacy-article h2, .legacy-article h3, .legacy-article h4 { margin-top: 1.8em; }
.legacy-article .data-table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 1.4rem 0; }
.legacy-article .data-table th, .legacy-article .data-table td { border: 1px solid var(--line); padding: .5rem .65rem; min-width: 7rem; }
.archive-image { max-width: 100%; height: auto; border-radius: .65rem; }
.article-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.topic-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.topic-card h3 { margin-top: 0; }
.topic-card a { color: inherit; }
.text-link { font-weight: 700; }
@media (max-width: 700px) { .article-hero { padding-top: 3rem; } }


/* Long-form article typography: calmer hierarchy */
.prose h2 {
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    line-height: 1.25;
    margin-top: 2.35rem;
    margin-bottom: 0.9rem;
}

.prose h3 {
    font-size: clamp(1.12rem, 1.5vw, 1.3rem);
    line-height: 1.3;
    margin-top: 1.7rem;
    margin-bottom: 0.65rem;
}

/* Ockham: visual comparison of explanatory "costs" */
.cost-matrix {
    display: grid;
    grid-template-columns: minmax(10rem, 1.05fr) minmax(12rem, 1.45fr) minmax(12rem, 1.45fr);
    gap: 0.7rem;
    margin: 1.8rem 0 2.3rem;
}

.cost-matrix-head,
.cost-matrix-label,
.cost-matrix-cell {
    padding: 0.95rem 1rem;
    border-radius: 0.8rem;
}

.cost-matrix-head {
    font-weight: 750;
    letter-spacing: 0.01em;
    box-shadow: 0 0.2rem 0.7rem rgba(15, 23, 42, 0.08);
}

.cost-matrix-question {
    background: #263241;
    color: #fff;
}

.cost-matrix-label {
    display: flex;
    align-items: center;
    background: #eef2f6;
    color: #263241;
    font-weight: 700;
    border-left: 0.28rem solid #7d8b99;
}

.cost-matrix-low {
    background: #eaf7ef;
    color: #235c35;
    border: 1px solid #c7e8d1;
}

.cost-matrix-high {
    background: #fff0ef;
    color: #842d2a;
    border: 1px solid #f1cfcc;
}

.cost-matrix-cell {
    position: relative;
    line-height: 1.45;
    box-shadow: 0 0.18rem 0.65rem rgba(15, 23, 42, 0.055);
}

.cost-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.55rem;
    height: 1.55rem;
    margin-right: 0.45rem;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.88rem;
    vertical-align: 0.05rem;
    background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 820px) {
    .cost-matrix {
        display: block;
    }

    .cost-matrix-head {
        display: none;
    }

    .cost-matrix-label {
        margin-top: 1.25rem;
        border-radius: 0.8rem 0.8rem 0.25rem 0.25rem;
    }

    .cost-matrix-cell {
        margin-top: 0.42rem;
        padding-left: 1rem;
    }

    .cost-matrix-cell.cost-matrix-low::before,
    .cost-matrix-cell.cost-matrix-high::before {
        display: block;
        margin-bottom: 0.35rem;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .cost-matrix-cell.cost-matrix-low::before {
        content: "Niedrige Kosten";
    }

    .cost-matrix-cell.cost-matrix-high::before {
        content: "Hohe Kosten";
    }
}
