/* ShelfManager – Ratgeber
   Tokens, Kopfzeile, Fußzeile und Buttons stammen 1:1 aus ../index.html (Stand 02.10.2026).
   Neu hier: Artikel-Layout und ein Dunkelmodus für den Lesebereich. Die Kopfzeile bleibt
   in beiden Modi hell (wie auf der Startseite, das Logo ist dunkel auf transparent),
   die Fußzeile ist ohnehin dunkel. */

:root{
  --paper:#FFFFFF;
  --paper-dim:#F5F5F7;
  --ink:#0B2138;
  --ink-soft:#48566A;
  --line:#E4E7EA;
  --dark:#08111C;
  --dark-2:#0F1E30;
  --dark-line:rgba(255,255,255,.12);
  --dark-text:#F2F5F8;
  --dark-text-soft:#93A3B8;
  --accent:#E72722;
  --accent-2:#FF6E5C;
  --accent-text:#E72722;
  --ok:#3FAE7E;
  --font-display:'Manrope','SF Pro Display',-apple-system,'Segoe UI',sans-serif;
  --font-body:'Inter','SF Pro Text',-apple-system,'Segoe UI',sans-serif;
  /* Kopfzeile: immer hell */
  --nav-ink:#0B2138;
  --nav-soft:#48566A;
  --nav-bg:rgba(255,255,255,.78);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper:#0A1420; --paper-dim:#101E2E; --ink:#EAF1F5; --ink-soft:#9FB7C7; --line:#22374A; --accent-text:#FF8977; --nav-bg:rgba(255,255,255,.96);
  }
}
:root[data-theme="dark"]{
  --paper:#0A1420; --paper-dim:#101E2E; --ink:#EAF1F5; --ink-soft:#9FB7C7; --line:#22374A; --accent-text:#FF8977; --nav-bg:rgba(255,255,255,.96);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--font-body); font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
  padding-top:84px;
}
h1,h2,h3{ font-family:var(--font-display); line-height:1.05; text-wrap:balance; margin:0; letter-spacing:-.02em; }
p{ margin:0; }
a{ color:inherit; }
ul,ol{ margin:0; padding:0; list-style:none; }
img,svg{ display:block; max-width:100%; }
:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; border-radius:4px; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

.skip-link{
  position:absolute; left:-999px; background:var(--accent); color:#fff;
  padding:10px 16px; border-radius:0 0 8px 0; z-index:300; font-weight:700;
}
.skip-link:focus{ left:0; top:0; }

.wrap{ max-width:1180px; margin:0 auto; padding-inline:24px; }

/* ---------- Nav (wie Startseite) ---------- */
.site-header{
    position:fixed; top:0; left:0; right:0; z-index:200;
    background:var(--nav-bg); backdrop-filter:saturate(180%) blur(20px); -webkit-backdrop-filter:saturate(180%) blur(20px);
    border-bottom:1px solid rgba(11,33,56,.08);
  }
  .header-row{ display:flex; align-items:center; gap:32px; height:84px; }
  .brand{ display:flex; align-items:center; text-decoration:none; flex:none; }
  .brand img{ height:52px; width:auto; display:block; }
  .tabs{ display:flex; align-items:center; gap:30px; flex:1; }
  .tabs a{
    text-decoration:none; color:var(--nav-soft); font-size:16px; font-weight:600;
    white-space:nowrap; padding:8px 2px; border-bottom:2px solid transparent; transition:color .15s ease, border-color .15s ease;
  }
  .tabs a:hover{ color:var(--nav-ink); }
  .tabs a.is-active{ color:var(--nav-ink); border-color:var(--accent); }
  .tab-mobile, .tab-demo{ display:none; }
  .menu-toggle{ display:none; }
  .header-cta{
    flex:none; text-decoration:none; background:var(--nav-ink); color:#fff;
    font-size:16px; font-weight:700; padding:10px 22px; border-radius:999px; white-space:nowrap;
    transition:background-color .15s ease;
  }
  .header-cta:hover{ background:var(--accent); }
  .header-login{
    flex:none; text-decoration:none; color:var(--nav-ink); font-size:16px; font-weight:700; white-space:nowrap;
    padding:9px 18px; border:1.5px solid rgba(11,33,56,.18); border-radius:999px; transition:border-color .15s ease, color .15s ease;
  }
  .header-login:hover{ border-color:var(--accent); color:var(--accent); }
  @media (max-width:1100px){
    .header-row{ gap:14px; }
    .header-cta{ display:none; }
    .header-login{ margin-left:auto; font-size:14px; padding:7px 14px; }
    /* Ohne JavaScript: wie bisher eine scrollbare Leiste mit allen Punkten */
    .tabs{ gap:14px; overflow-x:auto; scrollbar-width:none; }
    .tabs::-webkit-scrollbar{ display:none; }
    .tabs a{ font-size:13px; padding:6px 2px; }
    .tab-mobile{ display:inline; }
    /* Mit JavaScript: Burger-Menü */
    .js .tabs{
      display:none; position:fixed; top:84px; left:0; right:0; flex-direction:column; align-items:stretch; gap:0;
      padding:6px 24px 22px; overflow-x:visible; overflow-y:auto; max-height:calc(100vh - 84px);
      background:#fff; border-bottom:1px solid rgba(11,33,56,.1); box-shadow:0 24px 40px -24px rgba(11,33,56,.35);
    }
    .js.menu-open .tabs{ display:flex; }
    .js .tabs a{ font-size:18px; padding:15px 2px; border-bottom:1px solid rgba(11,33,56,.08); }
    .js .tabs a.is-active{ color:var(--accent); }
    .js .tabs a.tab-demo{
      display:inline-flex; justify-content:center; margin-top:18px; padding:14px 22px; border:0;
      border-radius:999px; background:var(--nav-ink); color:#fff; font-weight:700;
    }
    .js .menu-toggle{
      display:inline-flex; flex:none; flex-direction:column; justify-content:center; align-items:center; gap:5px;
      width:42px; height:38px; padding:0; border:1.5px solid rgba(11,33,56,.18); border-radius:999px; background:transparent; cursor:pointer;
    }
    .menu-toggle span{ display:block; width:18px; height:2px; border-radius:2px; background:var(--nav-ink); transition:transform .2s ease, opacity .2s ease; }
    .js.menu-open .menu-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
    .js.menu-open .menu-toggle span:nth-child(2){ opacity:0; }
    .js.menu-open .menu-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  }
  @media (max-width:600px){
    .header-row{ gap:10px; height:68px; }
    .brand img{ height:34px; }
    .header-login{ font-size:13px; padding:5px 11px; border-width:1px; }
    .js .tabs{ top:68px; max-height:calc(100vh - 68px); }
    .js .menu-toggle{ width:38px; height:34px; }
    body{ padding-top:68px; }
  }

/* ---------- Buttons (wie Startseite) ---------- */
.btnrow{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; margin-top:28px; }
.btn-pill{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  background:var(--accent); color:#fff; font-weight:700; font-size:16px;
  padding:14px 28px; border-radius:999px; transition:transform .15s ease, box-shadow .15s ease;
  box-shadow:0 14px 30px -12px rgba(231,39,34,.55);
}
.btn-pill:hover{ transform:translateY(-1px); }
.link-more{ display:inline-flex; align-items:center; gap:6px; text-decoration:none; font-weight:600; font-size:16px; color:var(--ink); border-bottom:1px solid transparent; }
.link-more:hover{ border-color:currentColor; }

.eyebrow{
  display:inline-block; font-size:13px; font-weight:700; letter-spacing:.04em;
  color:var(--accent-text); text-transform:uppercase; margin-bottom:18px;
}

/* ---------- Footer (wie Startseite) ---------- */
.site-footer{ background:var(--dark); color:var(--dark-text-soft); padding-block:32px; font-size:13px; }
.footer-row{ display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center; }
.footer-links{ display:flex; gap:20px; flex-wrap:wrap; }
.footer-links a{ text-decoration:none; color:var(--dark-text-soft); }
.footer-links a:hover{ color:#fff; }
.footer-row a{ text-decoration:none; }

/* ---------- Artikel ---------- */
.page{ padding-block:clamp(36px,6vw,72px) clamp(56px,8vw,110px); }
.col{ max-width:760px; margin-inline:auto; }
.crumbs{ font-size:14px; color:var(--ink-soft); margin-bottom:28px; }
.crumbs ol{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.crumbs li + li::before{ content:"›"; margin-right:6px; opacity:.6; }
.crumbs a{ text-decoration:none; }
.crumbs a:hover{ text-decoration:underline; }

.article-head h1{ font-size:clamp(34px,5.4vw,56px); font-weight:800; line-height:1.06; }
.meta{ margin-top:18px; font-size:14px; color:var(--ink-soft); }

.answer{
  margin-top:28px; padding:20px 24px; border-radius:14px; background:var(--paper-dim);
  border-left:5px solid var(--accent); font-size:18px; line-height:1.6;
}
.answer strong{ font-family:var(--font-display); }

.note{
  margin-top:20px; padding:14px 18px; border-radius:12px; border:1px solid var(--line);
  font-size:15px; color:var(--ink-soft);
}
.note strong{ color:var(--ink); }

.toc{ margin-top:36px; padding:22px 24px; border:1px solid var(--line); border-radius:14px; }
.toc h2{ font-size:15px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); font-weight:800; }
.toc ol{ margin-top:12px; counter-reset:t; columns:2; column-gap:32px; }
.toc li{ counter-increment:t; break-inside:avoid; padding:5px 0; font-size:15.5px; }
.toc li::before{ content:counter(t) "."; display:inline-block; width:1.6em; color:var(--accent-text); font-weight:700; }
.toc a{ text-decoration:none; }
.toc a:hover{ text-decoration:underline; }
@media (max-width:620px){ .toc ol{ columns:1; } }

.prose h2{
  margin-top:clamp(44px,6vw,64px); font-size:clamp(26px,3.6vw,36px); font-weight:800; line-height:1.12;
  scroll-margin-top:100px;
}
.prose h2 .n{ display:block; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--accent-text); margin-bottom:8px; font-family:var(--font-body); font-weight:700; }
.prose h3{ margin-top:30px; font-size:20px; font-weight:800; line-height:1.2; }
.prose p{ margin-top:16px; font-size:18px; line-height:1.7; }
.prose ul.list{ margin-top:14px; }
.prose ul.list li{ position:relative; padding-left:24px; margin-top:10px; font-size:18px; line-height:1.65; }
.prose ul.list li::before{ content:""; position:absolute; left:4px; top:.72em; width:8px; height:8px; border-radius:50%; background:var(--accent); }
.prose strong{ font-weight:700; }
.prose a{ text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:3px; }

.example{
  margin-top:22px; padding:18px 22px; border-radius:14px; border:1.5px dashed var(--line); background:var(--paper-dim);
}
.example .label{ display:inline-block; font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:6px; }
.example p{ margin-top:8px; font-size:16.5px; line-height:1.6; }
.example p:first-of-type{ margin-top:0; }

.models{ margin-top:22px; display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media (max-width:860px){ .models{ grid-template-columns:1fr; } }
.model{ padding:20px; border:1px solid var(--line); border-radius:14px; background:var(--paper-dim); }
.model h3{ margin-top:0; font-size:19px; }
.model h4{ margin:14px 0 6px; font-size:12px; letter-spacing:.06em; text-transform:uppercase; font-family:var(--font-body); font-weight:800; }
.model h4.pro{ color:var(--ok); }
.model h4.con{ color:var(--accent-text); }
.model ul li{ position:relative; padding-left:16px; margin-top:6px; font-size:15.5px; line-height:1.5; }
.model ul li::before{ content:""; position:absolute; left:0; top:.62em; width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.55; }

.tool{
  margin-top:22px; padding:18px 22px; border-radius:14px; border:1px solid var(--line);
  border-left:5px solid var(--ok);
}
.tool .label{ display:block; font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--ok); margin-bottom:6px; }
.tool p{ margin-top:0; font-size:16.5px; line-height:1.6; }
.tool p + p{ margin-top:10px; }

figure{ margin:26px 0 0; }
figure img{ width:100%; height:auto; border-radius:12px; border:1px solid var(--line); box-shadow:0 20px 50px -28px rgba(11,33,56,.35); }
figcaption{ margin-top:10px; font-size:14px; color:var(--ink-soft); text-align:center; }

.timeline{ margin-top:22px; border-left:3px solid var(--line); margin-left:6px; }
.timeline li{ position:relative; padding:0 0 22px 26px; }
.timeline li:last-child{ padding-bottom:0; }
.timeline li::before{ content:""; position:absolute; left:-9px; top:.45em; width:15px; height:15px; border-radius:50%; background:var(--paper); border:3px solid var(--accent); }
.timeline strong{ display:block; font-family:var(--font-display); font-size:18px; margin-bottom:4px; }
.timeline span{ font-size:16.5px; line-height:1.6; color:var(--ink-soft); }

.checklist{ margin-top:22px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:760px){ .checklist{ grid-template-columns:1fr; } }
.check-group{ padding:18px 20px; border:1px solid var(--line); border-radius:14px; }
.check-group h3{ margin:0 0 8px; font-size:16px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-soft); font-family:var(--font-body); font-weight:800; }
.check-group li{ position:relative; padding:7px 0 7px 30px; font-size:16px; line-height:1.5; }
.check-group li::before{ content:""; position:absolute; left:0; top:.55em; width:18px; height:18px; border-radius:5px; border:2px solid var(--ink-soft); }

.cta-block{
  margin-top:clamp(48px,6vw,72px); padding:clamp(28px,5vw,48px); border-radius:20px;
  background:linear-gradient(180deg,var(--dark),var(--dark-2)); color:var(--dark-text);
}
.cta-block .eyebrow{ color:var(--accent-2); margin-bottom:12px; }
.cta-block h2{ font-size:clamp(26px,4vw,38px); font-weight:800; line-height:1.1; }
.cta-block p{ margin-top:14px; font-size:18px; line-height:1.55; color:var(--dark-text-soft); max-width:560px; }
.cta-block .link-more{ color:var(--dark-text); }
.cta-block .btnrow{ margin-top:26px; }

.back-link{ display:inline-block; margin-top:40px; font-weight:600; text-decoration:none; }
.back-link:hover{ text-decoration:underline; }

/* ---------- Übersicht ---------- */
.index-head h1{ font-size:clamp(36px,6vw,64px); font-weight:800; line-height:1.05; }
.index-head .lede{ margin-top:20px; font-size:clamp(17px,1.6vw,21px); color:var(--ink-soft); line-height:1.5; max-width:620px; }
.cards{ margin-top:44px; display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px; }
.card{
  display:flex; flex-direction:column; gap:10px; padding:26px; border:1px solid var(--line); border-radius:18px;
  background:var(--paper); text-decoration:none; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.card:hover{ transform:translateY(-2px); box-shadow:0 24px 50px -30px rgba(11,33,56,.4); border-color:var(--accent); }
.card .kicker{ font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--accent-text); }
.card h2{ font-size:22px; font-weight:800; line-height:1.18; }
.card p{ font-size:16px; color:var(--ink-soft); line-height:1.55; }
.card .more{ margin-top:auto; padding-top:8px; font-weight:700; font-size:15px; }
.card.soon{ background:var(--paper-dim); border-style:dashed; }
.card.soon h2, .card.soon p{ opacity:.75; }
.badge{ display:inline-block; align-self:flex-start; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.04em; background:var(--line); color:var(--ink-soft); }

/* ---------- Berechnungstabelle und Weiterlesen ---------- */
.calc-wrap{ margin-top:18px; overflow-x:auto; }
.calc{ width:100%; border-collapse:collapse; font-size:15.5px; min-width:560px; }
.calc caption{ text-align:left; font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-soft); padding-bottom:8px; }
.calc th, .calc td{ padding:10px 12px; border-bottom:1px solid var(--line); text-align:right; }
.calc th:first-child, .calc td:first-child{ text-align:left; }
.calc thead th{ font-family:var(--font-display); font-weight:800; font-size:14px; text-align:center; background:var(--paper-dim); }
.calc thead th:first-child{ text-align:left; }
.calc tbody td:first-child{ font-weight:700; }

.related{ margin-top:clamp(40px,5vw,64px); }
.related h2{ font-size:22px; font-weight:800; }
.related .cards{ margin-top:16px; grid-template-columns:repeat(2,1fr); }
@media (max-width:640px){ .related .cards{ grid-template-columns:1fr; } }
.card h3{ font-family:var(--font-display); font-size:19px; font-weight:800; line-height:1.2; letter-spacing:-.01em; }

/* ---------- Autor, FAQ und Quellen ---------- */
.meta a{ text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:3px; }
.faq h3{ font-size:19px; }
.faq h3 + p{ margin-top:8px; }
.sources{ margin-top:48px; padding-top:24px; border-top:1px solid var(--line); }
.sources h2{ font-size:15px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); font-weight:800; }
.sources p{ margin-top:10px; font-size:15px; line-height:1.6; color:var(--ink-soft); }
.sources ul{ margin-top:10px; }
.sources li{ position:relative; padding:4px 0 4px 18px; font-size:15px; line-height:1.55; color:var(--ink-soft); }
.sources li::before{ content:""; position:absolute; left:2px; top:.95em; width:6px; height:6px; border-radius:50%; background:var(--accent); }
.sources a{ color:var(--ink); font-weight:600; text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:3px; }
.author-box{ margin-top:28px; padding:18px 20px; border-radius:14px; background:var(--paper-dim); display:flex; gap:16px; align-items:flex-start; }
.author-box .avatar{ flex:none; width:46px; height:46px; border-radius:50%; background:var(--ink); color:var(--paper); display:grid; place-items:center; font-family:var(--font-display); font-weight:800; font-size:16px; }
.author-box p{ font-size:15.5px; line-height:1.6; }
