/* mein-ausbildung.de design system · 2026-06 · Graphit-Blau + kühler Sand + Terrakotta
   Темы: dark (default) и light через [data-theme="light"] на <html> */

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

:root {
  /* палитра */
  --c-midnight: #10243F;
  --c-deep: #0A1626;
  --c-steel: #1E3A5F;
  --c-sand: #E4E1D6;
  --c-terra: #BE6E51;
  --c-cyan: #4FD1E3;
  --c-paper: #F4F2EC;

  /* семантика · dark по умолчанию */
  --bg: var(--c-deep);
  --glow1: rgba(30, 58, 95, 0.7);
  --glow2: rgba(190, 110, 81, 0.08);
  --fg: #F2F1EB;
  --fg-strong: var(--c-sand);
  --text: rgba(242, 241, 235, 0.82);
  --text-dim: rgba(242, 241, 235, 0.6);
  --text-faint: rgba(242, 241, 235, 0.52);
  --line: rgba(190, 110, 81, 0.18);
  --hairline: rgba(228, 225, 214, 0.1);
  --card-bg: rgba(30, 58, 95, 0.35);
  --card-hover: rgba(30, 58, 95, 0.65);
  --accent: var(--c-terra);
  --accent-fill: #A85A40;
  --on-accent: #FFF8F2;
  --accent-hover-bg: var(--c-sand);
  --link: var(--c-cyan);
  --link-border: rgba(79, 209, 227, 0.4);
  --chip-border: rgba(79, 209, 227, 0.3);
  --tldr-bg: rgba(79, 209, 227, 0.06);
  --tldr-border: rgba(79, 209, 227, 0.25);
  --ava-grad-a: var(--c-steel);
  --ava-grad-b: var(--c-midnight);
  --ava-text: var(--c-sand);
}

[data-theme="light"] {
  --bg: var(--c-paper);
  --glow1: rgba(30, 58, 95, 0.07);
  --glow2: rgba(190, 110, 81, 0.07);
  --fg: #1A2940;
  --fg-strong: var(--c-midnight);
  --text: rgba(20, 35, 58, 0.85);
  --text-dim: rgba(20, 35, 58, 0.68);
  --text-faint: rgba(20, 35, 58, 0.62);
  --line: rgba(154, 81, 56, 0.32);
  --hairline: rgba(16, 36, 63, 0.12);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-hover: #FFFFFF;
  --accent: #9A5138;
  --accent-fill: #9A5138;
  --on-accent: #FFFFFF;
  --accent-hover-bg: var(--c-midnight);
  --link: #11707F;
  --link-border: rgba(17, 112, 127, 0.4);
  --chip-border: rgba(17, 112, 127, 0.35);
  --tldr-bg: rgba(17, 112, 127, 0.06);
  --tldr-border: rgba(17, 112, 127, 0.28);
  --ava-grad-a: #2E4668;
  --ava-grad-b: var(--c-midnight);
  --ava-text: var(--c-sand);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Accessibility: skip link + keyboard focus */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: 0 0 10px 0;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px;
}
html, body { overflow-x: clip; }
h1, h2, h3, p, li, td, th, .kf .k, .kf .v, figcaption { overflow-wrap: break-word; }
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body {
  background:
    radial-gradient(ellipse at 80% 10%, var(--glow1) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, var(--glow2) 0%, transparent 50%),
    var(--bg);
  transition: background 0.25s ease, color 0.25s ease;
}

.page { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); }
.page--narrow { max-width: 880px; }
.page--wide { max-width: 1240px; }

/* Top bar */
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.top .brand { color: var(--accent); text-decoration: none; font-weight: 600; }
.top nav.menu { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav.menu a { color: var(--text-dim); text-decoration: none; font-size: 12px; letter-spacing: 0.08em; }
.top nav.menu a:hover { color: var(--fg); }
.top .right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 4px; }
.lang a { color: var(--text-dim); text-decoration: none; padding: 4px 8px; border-radius: 4px; font-size: 12px; letter-spacing: 0.08em; }
.lang a.active { color: var(--link); border: 1px solid var(--chip-border); }
.lang a:hover { color: var(--fg); }

.theme-toggle {
  cursor: pointer; background: none; border: 1px solid var(--line); border-radius: 100px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-dim); transition: all 0.2s ease; line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--fg); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: inline; }
[data-theme="light"] .theme-toggle .sun { display: inline; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* Typography */
h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.04; font-weight: 300; letter-spacing: -0.025em; margin-bottom: 1.4rem; }
h1 strong { font-weight: 600; color: var(--fg-strong); }
[data-theme="light"] h1 strong { color: var(--accent); }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 500; }
.lead { font-size: clamp(17px, 2vw, 21px); font-weight: 300; line-height: 1.6; color: var(--text); max-width: 700px; margin-bottom: 2.5rem; }
.lead .accent { color: var(--link); font-weight: 400; }
h2 { font-size: clamp(23px, 3vw, 30px); font-weight: 600; color: var(--fg-strong); margin: 3rem 0 1.1rem; letter-spacing: -0.01em; }
h3 { font-size: clamp(18px, 2.2vw, 21px); font-weight: 600; color: var(--fg); margin: 1.8rem 0 0.7rem; }
p { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 1.1rem; max-width: 720px; }
p strong, li strong { color: var(--fg); font-weight: 600; }
article ul, article ol { margin: 0.4rem 0 1.2rem 1.3rem; max-width: 700px; }
article li { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 0.35rem; }
a.inline { color: var(--link); text-decoration: none; border-bottom: 1px dotted var(--link-border); }
a.inline:hover { border-bottom-style: solid; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 1.5rem 0 2.5rem; }
.card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px;
  text-decoration: none; color: var(--fg);
  transition: all 0.2s ease; backdrop-filter: blur(6px);
}
.card:hover { background: var(--card-hover); border-color: var(--accent); transform: translateY(-2px); }
.card.primary { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.card.primary:hover { background: var(--accent-hover-bg); border-color: var(--accent-hover-bg); }
[data-theme="light"] .card.primary:hover { color: #F2F1EB; }
.card .kicker { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--link); font-weight: 500; }
.card.primary .kicker { color: inherit; opacity: 0.7; }
.card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0; color: inherit; }
.card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin: 0; }
.card.primary p { color: inherit; opacity: 0.8; }
.card .arrow { font-size: 13px; margin-top: auto; padding-top: 8px; letter-spacing: 0.02em; font-weight: 500; }
.card .meta { font-size: 12px; color: var(--text-faint); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 2.4rem; }
.btn {
  padding: 12px 22px; border-radius: 100px; text-decoration: none; font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--line); color: var(--fg); transition: all 0.2s ease;
}
.btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.solid { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.btn.solid:hover { background: var(--accent-hover-bg); border-color: var(--accent-hover-bg); }
[data-theme="light"] .btn.solid:hover { color: #F2F1EB; }

/* Article components */
.breadcrumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--text-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--fg); }

.byline {
  display: flex; align-items: center; gap: 14px; margin: 1.4rem 0 2.2rem;
  padding: 14px 18px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px;
  font-size: 13.5px; color: var(--text-dim); max-width: 720px;
}
.byline .ava, .avatar {
  border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ava-grad-a), var(--ava-grad-b));
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--ava-text); letter-spacing: 0.04em;
}
.byline .ava { width: 44px; height: 44px; font-size: 15px; border-width: 1.5px; }
.avatar { width: 108px; height: 108px; font-size: 34px; }
.byline a { color: var(--link); text-decoration: none; }
.byline .date { color: var(--text-faint); }

.hero-profile { display: flex; gap: 28px; align-items: center; margin-bottom: 3rem; flex-wrap: wrap; }

.keyfacts, .facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 13px; margin: 0 0 2.4rem; max-width: 800px;
}
.keyfacts .kf, .facts .fact {
  padding: 16px 17px; border-radius: 6px;
  background: var(--card-bg); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.keyfacts .kf .v, .facts .fact .num { font-size: 22px; font-weight: 600; color: var(--fg-strong); line-height: 1.15; }
[data-theme="light"] .keyfacts .kf .v, [data-theme="light"] .facts .fact .num { color: var(--accent); }
.keyfacts .kf .k, .facts .fact .label { font-size: 12px; color: var(--text-dim); margin-top: 5px; line-height: 1.45; }

.tldr {
  margin: 0 0 2.4rem; padding: 20px 24px; max-width: 720px;
  background: var(--tldr-bg); border: 1px solid var(--tldr-border); border-radius: 6px;
}
.tldr .t { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--link); font-weight: 600; margin-bottom: 0.7rem; }
.tldr ul { margin: 0 0 0 1.2rem; }
.tldr li { font-size: 15.5px; line-height: 1.65; color: var(--text); margin-bottom: 0.45rem; }

.toc {
  margin: 0 0 2.8rem; padding: 18px 22px; max-width: 720px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px;
}
.toc .t { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 0.6rem; }
.toc ol { margin: 0 0 0 1.3rem; }
.toc li { font-size: 14.5px; line-height: 1.8; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--link); }

.note {
  margin: 1.6rem 0; padding: 18px 20px; border-left: 3px solid var(--accent);
  background: var(--card-bg); border-radius: 0 6px 6px 0;
  font-size: 15.5px; line-height: 1.65; color: var(--text); max-width: 720px;
}
.note.personal { border-left-color: var(--link); }
.note .nt { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: block; margin-bottom: 0.4rem; }
.note.personal .nt { color: var(--link); }

.timeline { list-style: none; margin: 1.5rem 0 0.5rem; max-width: 680px; }
.timeline li {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--hairline);
  font-size: 15.5px; line-height: 1.55; color: var(--text);
}
.timeline .year { color: var(--link); font-weight: 600; font-size: 15px; }

ul.src { margin: 0.4rem 0 1.1rem 1.2rem; max-width: 660px; }
ul.src li { font-size: 15.5px; line-height: 1.7; color: var(--text); }

.contact { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 0; }
.contact a {
  padding: 10px 18px; border-radius: 100px; text-decoration: none; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); color: var(--fg); transition: all 0.2s ease;
}
.contact a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

table { border-collapse: collapse; width: 100%; max-width: 760px; margin: 1.2rem 0 1.8rem; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hairline); line-height: 1.5; }
th { color: var(--fg-strong); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 2px solid var(--line); }
td { color: var(--text); }
tr:hover td { background: var(--card-bg); }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }

details.faq {
  max-width: 720px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--card-bg); margin-bottom: 10px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 15px 20px; font-size: 15.5px; font-weight: 600; color: var(--fg);
  list-style: none; position: relative; padding-right: 44px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 20px; font-weight: 400;
}
details.faq[open] summary::after { content: "−"; }
details.faq .a { padding: 0 20px 16px; }
details.faq .a p { font-size: 15px; margin-bottom: 0.6rem; }

.sources { max-width: 720px; margin: 1rem 0 2rem; }
.sources li { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }
.sources a { color: var(--text-dim); }
.sources a:hover { color: var(--link); }

.updated { font-size: 13px; color: var(--text-faint); margin: 2.5rem 0 0; }

.legal-card {
  padding: 22px 24px; border-radius: 6px; margin-bottom: 1rem; max-width: 720px;
  background: var(--card-bg); border: 1px solid var(--line);
}
.legal-card p { margin-bottom: 0.3rem; }

/* Footer */
footer.site {
  margin-top: 4.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-faint); line-height: 1.6;
}
footer.site .row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; margin-bottom: 0.8rem; }
footer.site a { color: var(--text-dim); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site strong.brandline { color: var(--fg-strong); }

/* Hub list */
.hub-item { display: block; padding: 20px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; max-width: 760px; }
.hub-item h3 { margin: 0 0 6px; font-size: 19px; color: var(--fg); transition: color 0.15s ease; }
a.hub-item:hover h3 { color: var(--link); }
.hub-item p { margin: 0 0 6px; font-size: 14.5px; color: var(--text-dim); }
.hub-item .meta { font-size: 12.5px; color: var(--text-faint); }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line); border-radius: 100px;
  padding: 3px 10px; margin-bottom: 8px;
}
.tag.soon { color: var(--text-faint); border-color: var(--hairline); }

@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .timeline li { grid-template-columns: 52px 1fr; gap: 12px; }
}

/* ============ v3: Lesefortschritt, Sidebar, Menü, Medien, Animation ============ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--link));
  z-index: 200; transition: width 0.08s linear;
}

/* Brand logo */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand svg { width: 26px; height: 26px; flex-shrink: 0; display: block; }
.brand .bx { fill: var(--accent); }
.brand .bt { fill: #FFF8F2; }
[data-theme="light"] .brand .bt { fill: #FFFFFF; }

/* Burger menu */
.nav-toggle {
  display: none; cursor: pointer; background: none; border: 1px solid var(--line);
  border-radius: 6px; width: 34px; height: 34px; color: var(--text-dim);
  font-size: 17px; line-height: 1; align-items: center; justify-content: center;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--fg); }
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .top { position: relative; }
  .top nav.menu {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; left: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border: 1px solid var(--line); border-radius: 8px; padding: 6px; z-index: 150;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }
  .top.open nav.menu { display: flex; }
  .top nav.menu a { padding: 11px 14px; font-size: 13px; border-radius: 5px; }
  .top nav.menu a:hover { background: var(--card-bg); }
}

/* Article layout with right sidebar (built by site.js) */
body.layout-active .page--narrow { max-width: 1460px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(250px, 19em, 320px); gap: clamp(32px, 3.5vw, 56px); align-items: start; }
.layout article p, .layout article ul, .layout article ol,
.layout .tldr, .layout .note, .layout details.faq, .layout .sources { max-width: 940px; }
.layout article table, .layout figure.img, .layout .yt, .layout .toc { max-width: 100%; }
.layout .keyfacts { max-width: 100%; }
.sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.sidebar .sb-box {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px;
}
.sidebar .sb-title {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.7rem;
}
.sidebar .read-pct { font-size: 12px; color: var(--text-faint); float: right; }
.toc-side { display: flex; flex-direction: column; }
.toc-side a {
  font-size: 13.5px; line-height: 1.45; color: var(--text-dim); text-decoration: none;
  padding: 6px 10px; border-left: 2px solid var(--hairline); transition: all 0.15s ease;
}
.toc-side a:hover { color: var(--fg); }
.toc-side a.active { color: var(--link); border-left-color: var(--link); font-weight: 600; }
.sidebar .sb-author { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.sidebar .sb-author .ava {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ava-grad-a), var(--ava-grad-b));
  border: 1.5px solid var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--ava-text);
}
.sidebar .sb-author a { color: var(--link); text-decoration: none; }
.sidebar .sb-cta {
  display: block; text-align: center; background: var(--accent-fill); color: var(--on-accent);
  border-radius: 8px; padding: 13px 16px; text-decoration: none; font-size: 14px; font-weight: 600;
  transition: all 0.2s ease;
}
.sidebar .sb-cta:hover { background: var(--accent-hover-bg); }
[data-theme="light"] .sidebar .sb-cta:hover { color: #F2F1EB; }
.sidebar .sb-cta small { display: block; font-weight: 400; font-size: 11.5px; opacity: 0.8; margin-top: 3px; }
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
}
.layout article { min-width: 0; }
.sidebar { min-width: 0; }
.toc-side a { hyphens: none; }
@media (min-width: 1081px) {
  .layout-active article .toc { display: none; }
}

/* Figures / images */
figure.img { margin: 1.8rem 0 2rem; max-width: 720px; }
figure.img img { width: 100%; height: auto; border-radius: 8px; display: block; border: 1px solid var(--hairline); }
figure.img figcaption { font-size: 12px; color: var(--text-faint); margin-top: 7px; }
figure.img figcaption a { color: var(--text-faint); }
figure.img.hero { margin-top: 0; }

/* YouTube facade (DSGVO: lädt erst nach Klick) */
.yt {
  position: relative; max-width: 720px; aspect-ratio: 16 / 9; margin: 1.8rem 0 2rem;
  border-radius: 8px; overflow: hidden; background: var(--c-midnight);
  border: 1px solid var(--line);
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt .yt-cover {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; cursor: pointer;
  background: radial-gradient(ellipse at center, rgba(30, 58, 95, 0.55), rgba(10, 22, 38, 0.92));
  color: #F2F1EB; border: 0; padding: 20px; text-align: center;
}
.yt .yt-cover:hover .yt-play { background: var(--accent); transform: scale(1.06); }
.yt .yt-play {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(190, 110, 81, 0.9);
  display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.yt .yt-play svg { width: 24px; height: 24px; fill: #FFF8F2; margin-left: 3px; }
.yt .yt-title { font-size: 15px; font-weight: 600; max-width: 520px; line-height: 1.4; }
.yt .yt-note { font-size: 11.5px; opacity: 0.7; max-width: 460px; line-height: 1.45; }

/* CTA banner */
.cta-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin: 3rem 0; padding: 30px 32px; border-radius: 10px;
  background: linear-gradient(120deg, rgba(30, 58, 95, 0.55), rgba(190, 110, 81, 0.18));
  border: 1px solid var(--line);
}
[data-theme="light"] .cta-banner { background: linear-gradient(120deg, rgba(30, 58, 95, 0.08), rgba(168, 90, 64, 0.1)); }
.cta-banner h2 { margin: 0 0 6px; font-size: clamp(20px, 2.6vw, 26px); }
.cta-banner p { margin: 0; font-size: 14.5px; color: var(--text-dim); max-width: 520px; }
.cta-banner .btn { white-space: nowrap; }

/* Rich footer */
footer.site .footcols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 26px; margin-bottom: 1.8rem;
}
footer.site .fc h4 {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.7rem;
}
footer.site .fc a { display: block; padding: 3px 0; font-size: 13px; }
footer.site .fc p { font-size: 12.5px; color: var(--text-faint); line-height: 1.6; margin: 0; max-width: 320px; }
footer.site .legalrow {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  padding-top: 1.2rem; border-top: 1px solid var(--hairline);
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* Rechner embed */
.rechner-frame { width: 100%; border: 0; border-radius: 10px; min-height: 480px; background: transparent; }

/* ============ v4: floating article card, thumbnails, mobile typography ============ */

/* Article as floating card on contrasting background */
:root { --article-bg: rgba(16, 36, 63, 0.34); --article-shadow: 0 16px 48px rgba(0, 0, 0, 0.28); }
[data-theme="light"] { --article-bg: #FCFBF8; --article-shadow: 0 16px 48px rgba(16, 36, 63, 0.08); }
.layout article {
  background: var(--article-bg);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 52px);
  box-shadow: var(--article-shadow);
}

/* Card thumbnails (homepage) */
.card .thumb { margin: -24px -24px 6px; }
.card .thumb img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: 6px 6px 0 0;
}

/* Hub item thumbnails */
.hub-item.with-thumb { display: grid; grid-template-columns: 156px 1fr; column-gap: 18px; align-items: start; }
.hub-item.with-thumb > :not(.thumb) { grid-column: 2; }
.hub-item.with-thumb .thumb { grid-column: 1; grid-row: 1 / span 4; }
.hub-item.with-thumb .thumb img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; display: block; border-radius: 8px;
}
@media (max-width: 560px) {
  .hub-item.with-thumb { grid-template-columns: 1fr; }
  .hub-item.with-thumb > :not(.thumb) { grid-column: 1; }
  .hub-item.with-thumb .thumb { grid-column: 1; grid-row: auto; margin-bottom: 10px; }
  .hub-item.with-thumb .thumb img { aspect-ratio: 16 / 8; }
}

/* Mobile typography: larger and calmer */
@media (max-width: 640px) {
  p, article li { font-size: 17px; line-height: 1.75; }
  .lead { font-size: 19px; }
  .tldr li { font-size: 16.5px; }
  .note { font-size: 16.5px; }
  .toc li { font-size: 15.5px; }
  details.faq summary { font-size: 16.5px; }
  details.faq .a p { font-size: 16px; }
  .byline { font-size: 14.5px; }
  td, th { font-size: 14px; padding: 10px 10px; }
  .keyfacts .kf .v, .facts .fact .num { font-size: 20px; }
  .keyfacts .kf .k, .facts .fact .label { font-size: 12.5px; }
  .sources li { font-size: 14px; }
  .layout article { padding: 20px 16px; border-radius: 12px; }
}

