/* Repumedia — editorial layout for knowledge, legal and profile pages.
   Shares the design tokens of the homepage (index.html). */
:root {
    --bg: #0a0d14;
    --bg-soft: #11151e;
    --bg-raised: #151a25;
    --ink: #ffffff;
    --ink-body: rgba(255, 255, 255, 0.86);
    --ink-mid: rgba(255, 255, 255, 0.74);
    --ink-faint: rgba(255, 255, 255, 0.54);
    --line: rgba(255, 255, 255, 0.16);
    --line-strong: rgba(255, 255, 255, 0.32);
    --line-faint: rgba(255, 255, 255, 0.06);
    --serif: 'Fraunces', 'Times New Roman', Georgia, serif;
    --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gutter: 48px;
    --measure: 70ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 13px;
}
.skip-link:focus { top: 16px; }

.micro {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ---------------- NAV ---------------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    padding: 18px var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(10, 13, 20, 0.86);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border-bottom: 1px solid var(--line-faint);
}
.nav-brand {
    font-family: var(--serif); font-size: 20px; letter-spacing: -0.028em;
    font-variation-settings: "opsz" 144, "SOFT" 20;
    display: flex; align-items: center; gap: 12px;
}
.nav-brand-mark {
    width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-style: italic; line-height: 1; padding-bottom: 1px;
}
.nav-links { display: flex; gap: 30px; list-style: none; justify-self: center; }
.nav-links a { font-size: 13px; padding-bottom: 3px; position: relative; color: var(--ink-mid); transition: color .3s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
}
.nav-right { justify-self: end; }
.nav-cta {
    padding: 11px 20px 12px; background: var(--ink); color: var(--bg);
    border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap;
    transition: all .4s cubic-bezier(.2,.8,.2,1);
}
.nav-cta:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------------- BREADCRUMBS ---------------- */
.crumbs { padding: 28px var(--gutter) 0; max-width: 1440px; margin: 0 auto; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-faint); }
.crumbs li { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-mid); }
.crumbs a:hover { color: var(--ink); }

/* ---------------- ARTICLE HEADER ---------------- */
.doc-head {
    max-width: 1440px; margin: 0 auto;
    padding: 56px var(--gutter) 56px;
    border-bottom: 1px solid var(--line);
}
.doc-eyebrow { color: var(--ink-mid); display: block; margin-bottom: 26px; }
.doc-title {
    font-family: var(--serif);
    font-weight: 260;
    font-size: clamp(40px, 6.2vw, 92px);
    letter-spacing: -0.045em;
    line-height: 0.98;
    max-width: 18ch;
    font-variation-settings: "opsz" 144, "SOFT" 30;
}
.doc-title em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.doc-meta {
    display: flex; flex-wrap: wrap; gap: 14px 40px;
    margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-faint);
    color: var(--ink-mid); font-size: 14px;
}
.doc-meta .micro { display: block; color: var(--ink-faint); margin-bottom: 6px; }
.doc-meta a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.doc-meta strong { color: var(--ink); font-weight: 500; }

/* ---------------- LAYOUT ---------------- */
.doc {
    max-width: 1440px; margin: 0 auto;
    padding: 64px var(--gutter) 120px;
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: 80px;
}
.doc > * { min-width: 0; }
.toc { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 130px); overflow: auto; }
.toc summary { list-style: none; color: var(--ink-faint); display: block; margin-bottom: 18px; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc li a {
    display: block; padding: 7px 0 7px 16px; margin-left: -1px;
    font-size: 14px; line-height: 1.45; color: var(--ink-mid);
    border-left: 1px solid transparent; transition: color .25s, border-color .25s;
}
.toc li a:hover { color: var(--ink); border-left-color: var(--ink); }

/* ---------------- PROSE ---------------- */
.prose { max-width: var(--measure); color: var(--ink-body); font-size: 17px; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
    font-family: var(--serif); font-weight: 300; color: var(--ink);
    font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.03em; line-height: 1.12;
    margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line-faint);
    font-variation-settings: "opsz" 144, "SOFT" 20;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
    font-family: var(--sans); font-weight: 500; color: var(--ink);
    font-size: 19px; letter-spacing: -0.01em; line-height: 1.35; margin-top: 2em;
}
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose em { font-style: italic; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: border-color .25s; }
.prose a:hover { border-bottom-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--ink-faint); }
.prose blockquote {
    border-left: 1px solid var(--line-strong); padding: 4px 0 4px 22px;
    font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink);
    font-weight: 300;
}
.prose code { font-family: var(--mono); font-size: .86em; }

/* Short answer (featured snippet / AI overview target) */
.answer {
    border: 1px solid var(--line-strong);
    background: var(--bg-soft);
    padding: 28px 30px 26px;
}
.answer .micro { color: var(--ink-mid); display: block; margin-bottom: 12px; }
.answer p { color: var(--ink); font-size: 18px; line-height: 1.6; }
.answer p + p { margin-top: .7em; }

.note {
    border-left: 2px solid var(--ink); padding: 14px 0 14px 22px; color: var(--ink-body); font-size: 15.5px;
}
.note strong:first-child { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); margin-bottom: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mid); background: var(--bg-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose td strong { font-weight: 500; }

/* Checklist */
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
    content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
    border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(-45deg);
}

/* Decision cards (Rechtsprechung, Fälle) */
.case {
    border: 1px solid var(--line); padding: 30px 30px 26px; background: var(--bg-soft);
}
.case + .case { margin-top: 24px; }
.case h3 { margin-top: 0 !important; font-family: var(--serif); font-weight: 300; font-size: 26px; letter-spacing: -0.02em; }
.case dl { display: grid; grid-template-columns: 180px 1fr; gap: 12px 24px; margin-top: 20px; font-size: 16px; line-height: 1.6; }
.case dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding-top: 4px; }
.case dd { color: var(--ink-body); }

/* FAQ */
.faq { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line-faint); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
    color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-family: var(--serif); font-size: 24px; font-weight: 300; color: var(--ink-mid); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-body); }
.faq details > div > * + * { margin-top: .7em; }

/* Sources */
.sources { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line-faint); }
.sources ol { font-size: 15px; color: var(--ink-mid); }
.sources li a { color: var(--ink-body); }

/* Related */
.related { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line-faint); }
.related ul { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.related li { margin: 0 !important; border-bottom: 1px solid var(--line); }
.related li a { display: block; padding: 16px 14px 16px 0; border: 0 !important; color: var(--ink); font-size: 15.5px; }
.related li a span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.related li a:hover { color: var(--ink-mid); }

/* Author box */
.author-box {
    margin-top: 2.4em; display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: start;
    padding: 24px; border: 1px solid var(--line);
}
.author-box img { width: 88px; height: 110px; object-fit: cover; filter: grayscale(100%) contrast(1.05); }
.author-box p { font-size: 15px; color: var(--ink-mid); margin-top: 6px !important; }
.author-box .name { color: var(--ink); font-size: 17px; font-weight: 500; }
.author-box a { color: var(--ink); }

/* Disclaimer */
.disclaimer { margin-top: 2.4em; font-size: 14px; line-height: 1.6; color: var(--ink-faint); max-width: var(--measure); }

/* CTA */
.cta {
    max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 120px;
}
.cta-inner {
    border-top: 1px solid var(--line-strong);
    padding-top: 56px;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end;
}
.cta h2 {
    font-family: var(--serif); font-weight: 260; font-size: clamp(32px, 4.4vw, 60px);
    letter-spacing: -0.04em; line-height: 1.02; font-variation-settings: "opsz" 144, "SOFT" 30;
}
.cta h2 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.cta p { color: var(--ink-mid); font-size: 15px; margin-bottom: 26px; max-width: 46ch; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 17px 26px 18px; background: var(--ink); color: var(--bg); border-radius: 999px;
    font-size: 13px; font-weight: 500; transition: all .5s cubic-bezier(.2,.8,.2,1);
}
.btn-primary:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Profile */
.profile-grid { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: 72px; align-items: start; }
.profile-photo { position: sticky; top: 104px; }
.profile-photo img { width: 100%; filter: grayscale(100%) contrast(1.06); background: var(--bg-soft); }
.profile-photo figcaption { margin-top: 12px; color: var(--ink-faint); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 1.6em; }
.facts div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.facts .micro { color: var(--ink-faint); display: block; margin-bottom: 6px; }
.facts strong { font-family: var(--serif); font-weight: 300; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }

/* ---------------- FOOTER ---------------- */
.footer { border-top: 1px solid var(--line); padding: 80px var(--gutter) 40px; background: var(--bg); }
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-faint); }
.footer-brand { font-family: var(--serif); font-size: 34px; font-weight: 300; letter-spacing: -0.03em; }
.footer-brand em { font-style: italic; }
.footer-tagline { color: var(--ink-mid); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer-col h5 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 15px; color: var(--ink-mid); transition: color .3s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 32px; padding-top: 28px; color: var(--ink-faint); font-size: 13px; line-height: 1.6; }
.footer-bottom div:last-child { max-width: 70ch; text-align: right; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1180px) {
    .nav-links { gap: 22px; }
    .doc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .toc { position: static; max-height: none; border: 1px solid var(--line); padding: 0; }
    .toc summary {
        margin: 0; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center;
        color: var(--ink); font-size: 12px;
    }
    .toc summary::after { content: '+'; font-family: var(--sans); font-size: 20px; line-height: 1; color: var(--ink-mid); }
    .toc[open] summary::after { content: '–'; }
    .toc ol { margin: 0 18px 16px; }
    .profile-grid { grid-template-columns: 1fr; gap: 40px; }
    .profile-photo { position: static; max-width: 340px; }
}
@media (max-width: 960px) {
    :root { --gutter: 32px; }
    .nav { padding: 14px var(--gutter); }
    .doc-head { padding-top: 36px; padding-bottom: 40px; }
    .doc { padding-top: 40px; padding-bottom: 80px; }
    .prose { font-size: 16.5px; }
    .cta-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; }
    .footer-bottom div:last-child { text-align: left; }
}
@media (max-width: 620px) {
    :root { --gutter: 20px; }
    .doc-title { font-size: clamp(36px, 10.5vw, 48px); line-height: 1.04; }
    .doc-meta { gap: 14px; flex-direction: column; }
    .prose h2 { font-size: 28px; }
    .prose h3 { font-size: 18px; }
    .prose table { min-width: 0; font-size: 14.5px; }
    .prose th, .prose td { padding: 12px 10px; }
    .table-wrap:has(table.stack) { border: 0; overflow: visible; }
    .prose table.stack, .prose table.stack tbody, .prose table.stack tr, .prose table.stack td { display: block; width: 100%; }
    .prose table.stack thead { display: none; }
    .prose table.stack tr { border: 1px solid var(--line); padding: 6px 16px; }
    .prose table.stack tr + tr { margin-top: 12px; }
    .prose table.stack td { border-bottom: 1px solid var(--line-faint); padding: 12px 0; font-size: 15.5px; }
    .prose table.stack td:last-child { border-bottom: 0; }
    .prose table.stack td[data-label]:not([data-label=""])::before {
        content: attr(data-label); display: block; margin-bottom: 4px;
        font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
    }
    .prose th { letter-spacing: .08em; }
    .answer p { font-size: 17px; }
    .faq summary { font-size: 16.5px; }
    .cta { padding-bottom: 80px; }
    .cta-inner { padding-top: 40px; }
    .related ul { grid-template-columns: 1fr; }
    .case { padding: 22px 18px; }
    .case dl { grid-template-columns: 1fr; gap: 2px; }
    .case dd { margin-bottom: 10px; }
    .answer { padding: 22px 20px; }
    .facts { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .author-box { grid-template-columns: 64px 1fr; padding: 18px; }
    .author-box img { width: 64px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ---------------- TYPE (readability) ---------------- */

/* Readable serif: no "wonky"/soft letterforms, automatic optical sizing */
h1, h2, h3, h4, h5, em, .display, .doc-title, .footer-brand, .nav-brand, .nav-brand-mark,
[class*="-title"], [class*="-name"], [class*="-quote"], [class*="-stat"], [class*="-value"],
.faq-q-text, .price-display-main, .price-display-caption strong, .price-comp-item .label,
.mandate-result-num, .knowledge-list strong, .marquee-item, .position-text .lede,
.form-field-content label, .facts strong, .case h3, .cta h2, .mnav-main a, .answer p {
    font-variation-settings: "SOFT" 0, "WONK" 0 !important;
}

.doc-title { font-weight: 360; letter-spacing: -0.03em; line-height: 1.02; }
.prose h2, .cta h2 { font-weight: 400; letter-spacing: -0.015em; }
.case h3, .facts strong, .footer-brand { font-weight: 400; letter-spacing: -0.01em; }
.micro, .crumbs li, .prose th, .case dt, .related li a span, .footer-col h5,
.note strong:first-child, .answer .micro, .doc-meta .micro, .toc summary {
    font-weight: 500; letter-spacing: 0.1em;
}
.prose { font-size: 17.5px; line-height: 1.75; }
@media (max-width: 960px) { .prose { font-size: 17px; } }
