/* =========================================================================
   Das Integrationsparadox — Webseite
   Reduziertes, modernes Design · Schwarz / Weiß / Blau
   ========================================================================= */

:root{
  --ink:        #0a0b0d;   /* Schwarz       */
  --ink-soft:   #3b3f45;   /* Fließtext     */
  --ink-mute:   #6b7178;   /* Sekundär      */
  --line:       #e7e9ee;   /* Hairlines     */
  --line-strong:#d3d7df;
  --paper:      #ffffff;   /* Weiß          */
  --paper-2:    #f6f7f9;   /* Off-white     */
  --blue:       #1b48ff;   /* Blau (Akzent) */
  --blue-deep:  #0b2bb0;
  --blue-tint:  #eef1ff;   /* Blau, sehr hell */
  --blue-tint2: #f4f6ff;

  --maxw: 720px;
  --wide: 1120px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --r: 14px;   /* Radius */
  --r-s: 9px;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--sans);
  font-size:18px;
  line-height:1.72;
  color:var(--ink-soft);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ---------- Kopfzeile / Navigation ------------------------------------- */
.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  gap:24px;
  padding:0 clamp(20px,5vw,48px);
  height:62px;
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}
.topbar .home{
  font-weight:680; letter-spacing:-.015em; color:var(--ink);
  text-decoration:none; font-size:15.5px; white-space:nowrap;
  display:flex; align-items:center; gap:9px;
}
.topbar .home .dot{
  width:9px; height:9px; border-radius:50%; background:var(--blue);
  display:inline-block; flex:none;
}
.topbar nav{ display:flex; gap:2px; flex-wrap:wrap; justify-content:flex-end; }
.topbar nav a{
  color:var(--ink-mute); text-decoration:none;
  font-size:13.5px; font-weight:520; letter-spacing:.005em;
  padding:7px 10px; border-radius:8px; line-height:1; white-space:nowrap;
  transition:color .15s, background .15s;
}
.topbar nav a:hover{ color:var(--ink); background:var(--paper-2); }
.topbar nav a.active{ color:var(--blue); background:var(--blue-tint); }

/* ---------- Grundlayout ------------------------------------------------- */
main{ max-width:var(--maxw); margin:0 auto; padding:0 clamp(20px,5vw,32px); }
.wrap-wide{ max-width:var(--wide); margin:0 auto; padding:0 clamp(20px,5vw,48px); }

section{ scroll-margin-top:84px; }

/* ---------- Seitenkopf -------------------------------------------------- */
.page-head{ padding:72px 0 26px; border-bottom:1px solid var(--line); margin-bottom:46px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:13px; font-weight:640; letter-spacing:.14em; text-transform:uppercase;
  color:var(--blue);
}
.eyebrow::before{ content:""; width:26px; height:2px; background:var(--blue); display:inline-block; }
h1{
  font-size:clamp(33px,5.4vw,52px); line-height:1.05; letter-spacing:-.025em;
  color:var(--ink); font-weight:740; margin:.42em 0 .26em;
}
.lede{
  font-size:clamp(18px,2.2vw,21px); line-height:1.55; color:var(--ink-mute);
  max-width:42ch; font-weight:440;
}
.page-head .pages{
  margin-top:20px; font-size:13.5px; color:var(--ink-mute);
  font-variant-numeric:tabular-nums;
}

/* ---------- Fließtext --------------------------------------------------- */
h2{
  font-size:clamp(22px,2.8vw,27px); line-height:1.2; letter-spacing:-.018em;
  color:var(--ink); font-weight:700; margin:58px 0 4px;
  break-after:avoid; page-break-after:avoid;
}
h2 + p, h2 + .quote, h2 + .figure, h2 + .kernidee, h2 + ul{ margin-top:14px; }
h2 .num{
  color:var(--blue); font-variant-numeric:tabular-nums; margin-right:.5em;
  font-weight:740;
}
h3{ font-size:19px; color:var(--ink); font-weight:660; margin:34px 0 2px; letter-spacing:-.01em; }
p{ margin:0 0 20px; }
a{ color:var(--blue); text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset:3px; }
strong{ color:var(--ink); font-weight:650; }
em{ font-style:italic; }

/* ---------- Hero (Startseite) ------------------------------------------ */
.hero{ padding:96px 0 16px; }
.hero .eyebrow{ margin-bottom:18px; }
.hero h1{ font-size:clamp(40px,7vw,76px); margin:0 0 .28em; max-width:14ch; }
.hero .sub{
  font-size:clamp(19px,2.4vw,23px); color:var(--ink-mute); max-width:44ch;
  line-height:1.5; font-weight:440;
}
.hero .meta{
  margin-top:30px; font-size:14px; color:var(--ink-mute);
  display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center;
}
.hero .meta b{ color:var(--ink); font-weight:620; }
.hero .meta .sep{ width:4px; height:4px; border-radius:50%; background:var(--line-strong); }

/* ---------- These-Block ------------------------------------------------- */
.thesis{
  margin:70px 0; padding:46px clamp(26px,4vw,52px);
  background:var(--ink); color:#fff; border-radius:var(--r);
  position:relative; overflow:hidden;
}
.thesis::after{
  content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px;
  background:radial-gradient(circle, rgba(27,72,255,.55), transparent 70%);
}
.thesis .label{
  font-size:12.5px; font-weight:640; letter-spacing:.16em; text-transform:uppercase;
  color:#8aa0ff; margin-bottom:16px;
}
.thesis p{
  font-size:clamp(22px,3.2vw,30px); line-height:1.4; color:#fff;
  font-weight:560; letter-spacing:-.015em; margin:0; position:relative;
}
.thesis p .hl{ color:#a9bbff; }

/* ---------- Kernidee / Merksatz / Brücke ------------------------------- */
.kernidee, .merksatz, .bruecke{
  border-left:3px solid var(--blue);
  background:var(--blue-tint2);
  padding:20px 24px; border-radius:0 var(--r-s) var(--r-s) 0;
  margin:30px 0; font-size:17px; line-height:1.6; color:var(--ink-soft);
  break-inside:avoid;
}
.kernidee .k, .bruecke .k{
  display:block; font-size:12.5px; font-weight:680; letter-spacing:.12em;
  text-transform:uppercase; color:var(--blue); margin-bottom:6px;
}
.merksatz{
  border-left-color:var(--ink); background:var(--paper-2);
  font-size:18.5px; font-weight:520; color:var(--ink);
}

/* ---------- Zitat ------------------------------------------------------- */
.quote{
  margin:30px 0; padding:6px 0 6px 26px; border-left:2px solid var(--line-strong);
  break-inside:avoid;
}
.quote p{
  font-size:20px; line-height:1.5; color:var(--ink); font-weight:480;
  letter-spacing:-.01em; margin:0 0 12px; font-style:italic;
}
.quote .src{
  font-style:normal; font-size:13.5px; color:var(--ink-mute); font-weight:560;
  letter-spacing:.01em; display:inline-flex; align-items:center; gap:8px;
}
.quote .src::before{ content:""; width:18px; height:1px; background:var(--ink-mute); }

/* ---------- Begriffskarten --------------------------------------------- */
.cards{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:14px; margin:30px 0;
}
.card{
  border:1px solid var(--line); border-radius:var(--r-s); padding:18px 20px;
  background:var(--paper); transition:border-color .15s, transform .15s;
}
.card:hover{ border-color:var(--blue); }
.card .t{ font-weight:660; color:var(--ink); font-size:16px; margin-bottom:5px; letter-spacing:-.01em; }
.card .d{ font-size:14.5px; line-height:1.55; color:var(--ink-mute); }
.card .ref{ display:block; margin-top:8px; font-size:12.5px; color:var(--blue); font-weight:560; }

/* ---------- Kapitel-Übersicht (Startseite) ----------------------------- */
.chapters{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin:18px 0 10px; }
.chapter{
  display:block; text-decoration:none; color:inherit;
  border:1px solid var(--line); border-radius:var(--r); padding:24px 24px 22px;
  background:var(--paper); transition:border-color .15s, transform .15s, box-shadow .15s;
}
.chapter:hover{ border-color:var(--blue); transform:translateY(-2px);
  box-shadow:0 10px 30px -18px rgba(27,72,255,.5); text-decoration:none; }
.chapter .idx{
  font-size:13px; font-weight:640; letter-spacing:.04em; color:var(--blue);
  font-variant-numeric:tabular-nums; display:flex; justify-content:space-between;
}
.chapter .idx .pg{ color:var(--ink-mute); font-weight:500; }
.chapter h3{ margin:12px 0 6px; font-size:20px; color:var(--ink); }
.chapter p{ margin:0; font-size:14.5px; line-height:1.55; color:var(--ink-mute); }
.chapter.full{ grid-column:1 / -1; }

/* ---------- Tabellen ---------------------------------------------------- */
.tbl{ width:100%; border-collapse:collapse; margin:26px 0; font-size:15.5px; break-inside:avoid; }
.tbl th, .tbl td{ text-align:left; padding:13px 16px; border-bottom:1px solid var(--line); vertical-align:top; }
.tbl thead th{
  font-size:12.5px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--ink-mute); font-weight:640; border-bottom:1.5px solid var(--line-strong);
}
.tbl td:first-child{ color:var(--ink); font-weight:600; width:38%; }
.tbl tr:last-child td{ border-bottom:none; }

/* ---------- Schaubilder ------------------------------------------------- */
.figure{
  margin:36px 0; padding:26px clamp(18px,3vw,30px) 18px;
  border:1px solid var(--line); border-radius:var(--r); background:var(--paper-2);
  break-inside:avoid;
}
.figure svg{ width:100%; height:auto; display:block; }
.figure figcaption{
  margin-top:16px; font-size:13.5px; line-height:1.5; color:var(--ink-mute);
  text-align:center;
}
/* SVG-Farbtokens */
.svg-ink{ fill:var(--ink); }
.svg-blue{ fill:var(--blue); }
.svg-mute{ fill:var(--ink-mute); }
.s-stroke-ink{ stroke:var(--ink); }
.s-stroke-blue{ stroke:var(--blue); }
.s-stroke-line{ stroke:var(--line-strong); }
.svg-label{ font-family:var(--sans); font-size:13px; fill:var(--ink-soft); font-weight:520; }
.svg-label-sm{ font-family:var(--sans); font-size:11.5px; fill:var(--ink-mute); font-weight:500; }
.svg-label-b{ font-family:var(--sans); font-size:13px; fill:var(--blue); font-weight:640; }
.svg-big{ font-family:var(--sans); font-size:21px; fill:var(--ink); font-weight:720; }

/* ---------- Pager ------------------------------------------------------- */
.pager{
  display:flex; gap:14px; margin:64px 0 0; border-top:1px solid var(--line); padding-top:26px;
}
.pager a{
  flex:1; text-decoration:none; border:1px solid var(--line); border-radius:var(--r-s);
  padding:16px 20px; color:var(--ink); transition:border-color .15s, background .15s;
}
.pager a:hover{ border-color:var(--blue); background:var(--blue-tint2); text-decoration:none; }
.pager .dir{ font-size:12.5px; color:var(--ink-mute); font-weight:560; letter-spacing:.04em; }
.pager .ttl{ font-size:16px; font-weight:620; color:var(--ink); margin-top:3px; letter-spacing:-.01em; }
.pager a.next{ text-align:right; }

/* ---------- Inhaltsanker (Mini-TOC) ------------------------------------ */
.minitoc{
  display:flex; flex-wrap:wrap; gap:8px; margin:0 0 8px;
}
.minitoc a{
  font-size:13px; color:var(--ink-mute); text-decoration:none; font-weight:540;
  padding:6px 12px; border:1px solid var(--line); border-radius:99px;
  transition:all .15s;
}
.minitoc a:hover{ color:var(--blue); border-color:var(--blue); text-decoration:none; }

/* ---------- Fußzeile ---------------------------------------------------- */
footer{
  margin-top:80px; border-top:1px solid var(--line);
  padding:36px clamp(20px,5vw,48px) 56px;
}
footer .fwrap{ max-width:var(--wide); margin:0 auto; display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; }
footer p{ margin:0; font-size:13px; color:var(--ink-mute); }
footer a{ color:var(--ink-mute); }
footer a:hover{ color:var(--blue); }
footer .fnav{ display:flex; gap:18px; flex-wrap:wrap; }

/* ---------- Quellenleiste (Wirkung) ------------------------------------ */
.sources{ margin:34px 0; display:grid; gap:10px; }
.sources a{
  display:flex; align-items:center; gap:12px; padding:14px 18px;
  border:1px solid var(--line); border-radius:var(--r-s); color:var(--ink);
  font-size:15px; font-weight:540; transition:border-color .15s, background .15s;
}
.sources a:hover{ border-color:var(--blue); background:var(--blue-tint2); text-decoration:none; }
.sources a .arw{ margin-left:auto; color:var(--blue); }

/* ---------- Glossar ----------------------------------------------------- */
.glos-group{ margin:44px 0; }
.glos-group > h2{ margin-bottom:18px; }
.gitem{ padding:18px 0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:minmax(170px,230px) 1fr; gap:24px; }
.gitem .term{ color:var(--ink); font-weight:640; font-size:16.5px; letter-spacing:-.01em; }
.gitem .def{ font-size:15.5px; line-height:1.6; color:var(--ink-soft); }
.gitem .def .ref{ color:var(--blue); font-weight:560; font-size:13.5px; }

/* ---------- Responsiv --------------------------------------------------- */
@media (max-width:680px){
  body{ font-size:17px; }
  .topbar{ height:auto; flex-direction:column; align-items:flex-start; gap:6px; padding:10px 18px; }
  .topbar nav{ justify-content:flex-start; }
  .chapters{ grid-template-columns:1fr; }
  .gitem{ grid-template-columns:1fr; gap:6px; }
  .pager{ flex-direction:column; }
  .hero{ padding:60px 0 8px; }
}

@media print{
  .topbar, .pager, .minitoc{ display:none; }
  body{ font-size:11pt; color:#000; }
  h2, h3{ page-break-after:avoid; }
  .quote, .figure, .kernidee, .card, .tbl{ page-break-inside:avoid; }
}
