/* =========================================================================
   Website Michael Kleen
   Designsystem im Stil eines dunklen Web3/Crypto-Landingpage-Templates
   (Crypgo / shadcn UI): tiefes Navy/Schwarz, Neon-Grün + Cyan, weiche
   verschwommene Glow-Orbs im Hintergrund, abgerundete Karten.
   ========================================================================= */

:root{
  color-scheme: dark;

  /* Smaragdgrün – Hauptakzent (Energie/Wachstum), Cyan als zweiter Pol (Strom/Netz).
     Kräftiger/dunkler als die vorherige Pastell-Version, damit Text in beiden
     Themes ausreichend Kontrast hat (im hellen Theme unten gesondert gesetzt). */
  --primary:       oklch(72% 0.17 152);
  --primary-600:   oklch(64% 0.17 152);
  --primary-ink:   #04130a;
  --primary-soft:  oklch(72% 0.17 152 / 0.16);
  --primary-glow:  oklch(72% 0.17 152 / 0.45);

  --secondary:      oklch(70% 0.14 202);
  --secondary-soft: oklch(70% 0.14 202 / 0.16);
  --secondary-glow: oklch(70% 0.14 202 / 0.45);

  --tealGreen:  #477e70;
  --charcoal:   #666c78;

  /* Rückwärtskompatible Aliase */
  --accent:        var(--primary);
  --accent-600:    var(--primary-600);
  --accent-soft:   var(--primary-soft);
  --accent-glow:   var(--primary-glow);
  --accent-ink:    var(--primary-ink);

  --bg:            #090c13;
  --bg-elev:       #0d111a;
  --bg-alt:        #0c0f17;
  --surface:       #10141e;
  --surface-2:     #141a26;
  --surface-3:     #1a2130;

  --text:          #ffffff;
  --text-2:        rgba(255,255,255,.68);
  --text-3:        rgba(255,255,255,.46);
  --text-muted:    rgba(255,255,255,.68);
  --border:        rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.20);
  --nav-bg:        rgba(9,12,19,.82);

  /* Rechner-Module: Modul 1 = Cyan, Modul 2 = Grün */
  --m1:            var(--secondary);
  --m1-soft:       var(--secondary-soft);
  --m1-glow:       var(--secondary-glow);
  --m2:            var(--primary);
  --m2-soft:       var(--primary-soft);
  --m2-glow:       var(--primary-glow);

  --ink:           #05070c;
  --ink-2:         #0d111a;

  --gold:          #f5c76b;
  --gold-soft:     rgba(245,199,107,.14);
  --success:       #86f0b0;
  --success-soft:  rgba(134,240,176,.14);
  --danger:        #ff8080;
  --danger-soft:   rgba(255,128,128,.14);

  --shadow-sm: 0 2px 10px rgba(0,0,0,.28);
  --shadow-md: 0 10px 30px rgba(0,0,0,.38);
  --shadow:    0 16px 44px rgba(0,0,0,.44);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.5);

  --r-sm: 9px;
  --r:    13px;
  --r-lg: 18px;
  --radius: 13px;
  --radius-sm: 9px;

  --maxw: 1220px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  --orb-opacity: 1;
}

/* ---------- Helles Theme ----------
   Wird über data-theme="light" auf <html> aktiviert (Umschalter im Header,
   Zustand in localStorage). Gleiche Struktur/Akzentfarben wie das dunkle
   Theme, nur Flächen/Text invertiert und Status-Farben für Lesbarkeit auf
   hellem Grund angepasst. */
[data-theme="light"]{
  color-scheme: light;

  /* Dunklere, stärker gesättigte Fassung von Primär/Sekundär – auf weißem
     Grund wäre die helle Dark-Theme-Variante kaum lesbar. */
  --primary:       oklch(42% 0.15 152);
  --primary-600:   oklch(36% 0.15 152);
  --primary-ink:   #ffffff;
  --primary-soft:  oklch(42% 0.15 152 / 0.10);
  --primary-glow:  oklch(42% 0.15 152 / 0.22);

  --secondary:      oklch(40% 0.12 205);
  --secondary-soft: oklch(40% 0.12 205 / 0.10);
  --secondary-glow: oklch(40% 0.12 205 / 0.22);

  --bg:            #f6f8f7;
  --bg-elev:       #ffffff;
  --bg-alt:        #eef2ef;
  --surface:       #ffffff;
  --surface-2:     #f2f5f3;
  --surface-3:     #e8ece9;

  --text:          #0b1210;
  --text-2:        rgba(11,18,16,.66);
  --text-3:        rgba(11,18,16,.46);
  --text-muted:    rgba(11,18,16,.66);
  --border:        rgba(11,18,16,.12);
  --border-strong: rgba(11,18,16,.24);
  --nav-bg:        rgba(246,248,247,.88);

  --ink:           #0b1210;
  --ink-2:         #16201c;

  --gold:          #8a620a;
  --gold-soft:     #faf0d6;
  --success:       #1f8f52;
  --success-soft:  #e3f6ea;
  --danger:        #c62828;
  --danger-soft:   #fce3e3;

  --shadow-sm: 0 2px 10px rgba(16,24,20,.06);
  --shadow-md: 0 10px 26px rgba(16,24,20,.09);
  --shadow:    0 16px 38px rgba(16,24,20,.12);
  --shadow-lg: 0 24px 54px rgba(16,24,20,.14);

  --orb-opacity: .4;
}

/* ---------- Grundlagen ---------- */
*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:84px; }
body{
  margin:0; font-family:var(--font); font-size:15px; line-height:1.6;
  color:var(--text); background:var(--bg); -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
h1,h2,h3,h4{ margin:0; font-weight:600; letter-spacing:-.02em; line-height:1.2; color:var(--text); }
p{ margin:0 0 .8em; }
a{ color:var(--primary); text-decoration:none; }
a:hover{ text-decoration:underline; }
button{ font:inherit; color:inherit; }
svg{ max-width:100%; }
::selection{ background:var(--primary); color:var(--primary-ink); }
:focus-visible{ outline:2.5px solid var(--primary); outline-offset:3px; border-radius:4px; }
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:clamp(16px,3vw,30px); }
.skip-link{ position:absolute; left:-999px; top:8px; z-index:200; background:var(--primary); color:var(--primary-ink); padding:8px 14px; border-radius:8px; }
.skip-link:focus{ left:8px; }

/* ---------- Glow-Orbs (Signaturmotiv: weiche verschwommene Leuchtflecken) ---------- */
.glow-orb{ position:absolute; border-radius:50%; pointer-events:none; filter:blur(10px); z-index:0; opacity:var(--orb-opacity); }
.glow-orb.g1{
  width:620px; height:620px; background:radial-gradient(circle, var(--primary-glow), transparent 70%);
}
.glow-orb.g2{
  width:520px; height:520px; background:radial-gradient(circle, var(--secondary-glow), transparent 70%);
}
.glow-orb.g3{
  width:460px; height:460px;
  background:radial-gradient(circle, color-mix(in oklab, var(--tealGreen) 70%, var(--primary)), transparent 72%);
  opacity:.55;
}

/* ---------- Scroll-Fortschritt ---------- */
.progress{
  position:fixed; top:0; left:0; height:3px; width:100%; z-index:120;
  background:linear-gradient(90deg, var(--secondary), var(--primary));
  transform-origin:0 50%; transform:scaleX(0);
  box-shadow:0 0 14px var(--primary-glow);
}

/* ---------- Kopfzeile ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  background:transparent;
  border-bottom:1px solid transparent; transition:border-color .25s ease, background-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled{ background:var(--nav-bg); backdrop-filter:blur(10px); border-bottom-color:var(--border); }
.header-inner{ display:flex; align-items:center; gap:18px; min-height:68px; }
.brand{ display:flex; align-items:center; gap:10px; color:var(--text); font-weight:700; letter-spacing:-.01em; }
.brand:hover{ text-decoration:none; }
.brand .logo{
  position:relative; width:36px; height:36px; border-radius:var(--r-sm); flex:none; display:grid; place-items:center;
  background:var(--surface-2); border:1px solid var(--border-strong); color:var(--primary);
}
.brand .logo::after{
  content:""; position:absolute; inset:-6px; border-radius:calc(var(--r-sm) + 6px);
  background:radial-gradient(circle, var(--primary-glow), transparent 70%); opacity:.7; z-index:-1;
}
.brand .logo svg{ width:18px; height:18px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text b{ font-size:16px; color:var(--text); }
.brand-text span{ font-size:10.5px; font-weight:600; color:var(--text-3); letter-spacing:.1em; text-transform:uppercase; }
.header-nav{ margin-left:auto; display:flex; align-items:center; gap:4px; }
.header-nav a{ padding:8px 14px; border-radius:999px; font-size:14px; font-weight:550; color:var(--text-2); transition:color .2s,background .2s; }
.header-nav a:hover{ background:var(--surface-2); color:var(--text); text-decoration:none; }
.header-nav a[aria-current="page"]{ background:var(--primary-soft); color:var(--primary); }
.icon-btn{
  height:40px; min-width:40px; padding:0 10px; border-radius:999px; border:1px solid var(--border-strong);
  background:var(--surface-2); color:var(--text); cursor:pointer; display:none; align-items:center; justify-content:center;
  gap:6px; font-size:13px; transition:border-color .2s;
}
.icon-btn:hover{ border-color:var(--primary); color:var(--primary); }
.icon-btn svg{ width:18px; height:18px; }

/* ---------- Theme-Umschalter ---------- */
.theme-btn{
  height:40px; width:40px; flex:none; padding:0; border-radius:999px; border:1px solid var(--border-strong);
  background:var(--surface-2); color:var(--text-2); cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  transition:border-color .2s, color .2s;
}
.theme-btn:hover{ border-color:var(--primary); color:var(--primary); }
.theme-btn svg{ width:18px; height:18px; }
.theme-btn .i-moon-icon{ display:none; }
/* Zeigt jeweils das Symbol des Ziel-Themes (worauf ein Klick umschaltet) */
[data-theme="light"] .theme-btn .i-sun-icon{ display:none; }
[data-theme="light"] .theme-btn .i-moon-icon{ display:block; }
@media (max-width:920px){
  .header-nav{
    position:fixed; top:68px; left:0; right:0; margin:0; flex-direction:column; align-items:stretch; gap:0;
    background:var(--bg-elev); border-bottom:1px solid var(--border); padding:8px 16px 16px;
    transform:translateY(-120%); transition:transform .35s ease; z-index:-1;
  }
  .header-nav.open{ transform:translateY(0); }
  .header-nav a{ display:block; padding:12px 14px; border-radius:10px; }
  .icon-btn{ display:inline-flex; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:13px 22px; border-radius:var(--r-sm); border:1px solid var(--border-strong);
  background:var(--surface-2); color:var(--text); font-size:14.5px; font-weight:650;
  cursor:pointer; transition:border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
  text-align:center;
}
.btn:hover{ text-decoration:none; border-color:var(--primary); color:var(--primary); }
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; }
.btn svg{ width:17px; height:17px; flex:none; }
.btn.primary{ background:var(--primary); color:var(--primary-ink); border-color:var(--primary); box-shadow:0 10px 28px -10px var(--primary-glow); }
.btn.primary:hover{ background:var(--primary-600); border-color:var(--primary-600); color:var(--primary-ink); box-shadow:0 14px 34px -10px var(--primary-glow); }
.btn.white{ background:var(--text); color:var(--ink); border-color:var(--text); }
.btn.white:hover{ background:var(--primary); border-color:var(--primary); color:var(--primary-ink); }
.btn.outline{ background:transparent; color:var(--text); border-color:var(--border-strong); }
.btn.outline:hover{ border-color:var(--primary); color:var(--primary); }
.btn.row{ display:flex; }
.btn-pair{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page{ padding:130px 0 64px; }
.page-head{ max-width:64ch; margin-bottom:28px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600;
  letter-spacing:.04em; color:var(--primary);
  background:var(--primary-soft); padding:7px 15px; border-radius:999px; border:1px solid var(--border);
  margin-bottom:16px;
}
.eyebrow .dot{ display:none; }
.page-head h1{ font-size:clamp(30px,4.4vw,46px); letter-spacing:-.03em; margin-bottom:12px; font-weight:600; }
.page-head .lead{ font-size:17px; color:var(--text-2); margin:0; }

/* ---------- Grundlayout Rechner ---------- */
.shell{ display:grid; grid-template-columns:minmax(0,1fr) 372px; gap:24px; align-items:start; }

/* ---------- Karten ---------- */
.card{
  position:relative; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); box-shadow:var(--shadow-sm); overflow:hidden;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card + .card{ margin-top:20px; }
.stats-grid .card, .pillars .card, .doc-grid .card{ margin-top:0; }
.card-head{ display:flex; align-items:center; gap:13px; padding:20px 24px 0; }
.card-head .ic{
  width:36px; height:36px; flex:none; border-radius:999px; display:grid; place-items:center;
  background:var(--primary-soft); color:var(--primary); border:1px solid var(--border);
}
.card-head .ic svg{ width:18px; height:18px; }
.card-head h2{ font-size:15.5px; }
.card-head .sub{ font-size:12.5px; color:var(--text-3); margin-top:1px; }
.card-body{ padding:18px 24px 24px; }

/* Spotlight-Hover (folgt dem Mauszeiger) */
.card.spot::before{
  content:""; position:absolute; inset:0; opacity:0; transition:opacity .3s; pointer-events:none;
  background:radial-gradient(420px circle at var(--x,50%) var(--y,50%), var(--primary-soft), transparent 60%);
}
.card.spot:hover::before{ opacity:1; }
.card.spot:hover{ border-color:color-mix(in oklab, var(--primary) 45%, var(--border-strong)); transform:translateY(-4px); box-shadow:var(--shadow); }
.card > *{ position:relative; }

/* ---------- Formularfelder (Rechner/Admin) ---------- */
.grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:16px; }
.grid.two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid.three{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.f-wide{ grid-column:1 / -1; }
.opt{ font-weight:500; text-transform:none; letter-spacing:0; color:var(--text-3); }

.field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.field > label{
  font-size:11.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--text-3);
}
.control{ display:flex; align-items:stretch; position:relative; }
.control input{
  flex:1 1 auto; min-width:0; width:100%;
  padding:11px 14px; font-size:15px; font-weight:550; font-family:var(--font);
  color:var(--text); background:var(--surface-2);
  border:1px solid var(--border-strong); border-radius:var(--r-sm); transition:.15s;
}
.control input::placeholder{ color:var(--text-3); font-weight:450; }
.control input:focus{
  outline:none; background:var(--surface-3); border-color:var(--primary); z-index:2;
  box-shadow:0 0 0 3px var(--primary-soft);
}
.control.has-suffix input{ border-radius:var(--r-sm) 0 0 var(--r-sm); border-right:0; }
.control .suffix{
  flex:none; display:flex; align-items:center; padding:0 14px; white-space:nowrap;
  font-size:13px; font-weight:600; color:var(--text-3);
  background:var(--surface-3); border:1px solid var(--border-strong);
  border-radius:0 var(--r-sm) var(--r-sm) 0;
}
.field-note{ margin:0; font-size:12px; color:var(--text-3); line-height:1.45; }
.field-note.warn{ color:var(--gold); }

/* Rechenparameter Modul 1 */
.params{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.param{
  background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r);
  padding:12px 14px;
}
.param .k{
  display:block; font-size:11px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--text-3);
  overflow-wrap:break-word;
}
.param .v{ display:block; font-family:var(--mono); font-size:16px; font-weight:700; margin-top:5px; color:var(--text); }
.param .v small{ font-size:11.5px; font-weight:600; color:var(--text-3); margin-left:3px; }

/* ---------- Ergebnisspalte Rechner ---------- */
.panel{ position:sticky; top:100px; display:grid; gap:16px; }
.result-card{
  position:relative; border-radius:var(--r-lg); border:1px solid var(--border); background:var(--surface);
  box-shadow:var(--shadow-sm); overflow:hidden;
}
.result-card:nth-of-type(1){ box-shadow:var(--shadow-sm), 0 0 60px -22px var(--m1-glow); }
.result-card:nth-of-type(2){ box-shadow:var(--shadow-sm), 0 0 60px -22px var(--m2-glow); }
.result-card .rc-head{
  display:flex; align-items:center; gap:10px; padding:15px 20px;
  border-bottom:1px solid var(--border);
}
.rc-dot{ width:11px; height:11px; border-radius:4px; flex:none; box-shadow:0 0 10px 1px currentColor; }
.rc-head h3{ font-size:14px; letter-spacing:-.01em; font-weight:600; }
.rc-head .badge{
  margin-left:auto; font-size:10.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  padding:4px 10px; border-radius:999px; background:var(--gold-soft); color:var(--gold);
}
.rc-body{ padding:18px 20px 20px; }
.amount{ display:flex; align-items:baseline; gap:7px; }
.amount .num{ font-size:34px; font-weight:750; letter-spacing:-.035em; font-family:var(--mono); color:var(--text); }
.amount .cur{ font-size:16px; font-weight:650; color:var(--text-2); }
.amount .per{ font-size:12.5px; color:var(--text-3); margin-left:auto; }
.rc-sub{ margin:12px 0 0; font-size:12.5px; color:var(--text-3); line-height:1.5; }

.mini{ list-style:none; margin:14px 0 0; padding:12px 0 0; border-top:1px solid var(--border); display:grid; gap:9px; }
.mini li{ display:flex; align-items:baseline; gap:10px; font-size:13px; color:var(--text-2); }
.mini .v{ margin-left:auto; font-family:var(--mono); font-weight:650; color:var(--text); white-space:nowrap; }

.verdict{
  border-radius:var(--r-lg); padding:16px 20px; border:1px solid var(--border);
  background:var(--m2-soft); color:var(--m2);
  font-size:13.5px; font-weight:600; line-height:1.5;
  display:flex; gap:11px; align-items:flex-start;
}
.verdict svg{ width:18px; height:18px; flex:none; margin-top:1px; }
.verdict.m1{ background:var(--m1-soft); color:var(--m1); }
.verdict.idle{ background:var(--surface-2); color:var(--text-3); border-color:var(--border); }
.verdict b{ color:inherit; }

.actions{ display:grid; gap:10px; }
.msg{ margin:0; font-size:12.5px; font-weight:600; color:var(--gold); min-height:1em; }
.msg.ok{ color:var(--success); }

/* ---------- Diagramm ---------- */
.chart-card{ margin-top:22px; }
.chart-card .card-body{ padding:14px 18px 8px; }
.chart-card svg{ width:100%; height:auto; display:block; overflow:visible; }
.chart-foot{
  padding:13px 24px; border-top:1px solid var(--border); background:var(--surface-2);
  border-radius:0 0 var(--r-lg) var(--r-lg);
  font-size:12.5px; color:var(--text-2); display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center;
}
.legend{ display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12px; font-weight:650; color:var(--text-2); }
.legend span{ display:inline-flex; align-items:center; gap:6px; }
.legend i{ width:10px; height:10px; border-radius:3px; }

.grid-line{ stroke:var(--border); stroke-width:1; stroke-dasharray:3 4; }
.axis-line{ stroke:var(--border-strong); stroke-width:1; }
.tick-txt{ font-size:10.5px; fill:var(--text-3); font-family:var(--font); font-weight:600; }
.val-txt{ font-size:11.5px; fill:var(--text); font-family:var(--mono); font-weight:700; }

.formula{ margin:22px 2px 0; font-size:12.5px; color:var(--text-3); line-height:1.75; }

/* ---------- Fußzeile ---------- */
.site-footer{ padding:40px 0 50px; color:var(--text-3); font-size:14px; }
.footer-inner{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; align-items:center;
  border-top:1px solid var(--border); padding-top:28px;
}
.footer-links{ display:flex; gap:18px; flex-wrap:wrap; }
.footer-links a{ color:var(--text-2); text-decoration:none; }
.footer-links a:hover{ color:var(--primary); }

/* ---------- Rechtsseiten ---------- */
.legal{ padding:130px 0 60px; }
.legal .wrap{ max-width:820px; }
.legal h1{ font-size:clamp(32px,5vw,50px); letter-spacing:-.03em; line-height:1.06; margin:14px 0 30px; font-weight:600; }
.legal .updated{ color:var(--text-3); font-size:13px; margin:-20px 0 26px; }
.legal h2{ font-size:20px; margin:38px 0 10px; letter-spacing:-.01em; }
.legal h2.first{ margin-top:0; }
.legal h3{ font-size:16px; margin:22px 0 6px; }
.legal p, .legal li{ color:var(--text-2); font-size:15px; }
.legal ul{ list-style:none; padding:0; margin:0 0 16px; display:grid; gap:8px; }
.legal li{ position:relative; padding-left:20px; }
.legal li::before{ content:""; position:absolute; left:0; top:.62em; width:7px; height:7px; border-radius:2px; background:var(--primary); }
.legal address{ font-style:normal; color:var(--text); line-height:1.8; }
.legal .card{ padding:24px 28px; margin:20px 0; }
.legal .card h2{ margin-top:0; }
.back-link{ display:inline-flex; align-items:center; gap:7px; font-size:14.5px; font-weight:650; margin-bottom:20px; color:var(--primary); }
.back-link svg{ width:16px; height:16px; }

/* ---------- Whitepaper-Hinweis (Download-Bestätigung) ---------- */
.disclaimer-text p{ margin:0 0 14px; font-size:14.5px; line-height:1.65; color:var(--text-2); }
.disclaimer-text p:last-child{ margin-bottom:0; }
.disclaimer-meta{
  margin:24px 0 0; padding:16px 18px; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r);
  display:grid; grid-template-columns:1fr 1fr; gap:14px 20px;
}
.disclaimer-meta div{ display:flex; flex-direction:column; gap:2px; }
.disclaimer-meta dt{ font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--text-3); }
.disclaimer-meta dd{ margin:0; font-size:13.5px; color:var(--text); }
@media (max-width:520px){ .disclaimer-meta{ grid-template-columns:1fr; } }

/* ---------- Whitepaper-Dokumentkarten ---------- */
.doc-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.doc-card{ display:flex; flex-direction:column; padding:26px; }
.doc-card .ico{ width:46px; height:46px; border-radius:999px; background:var(--primary-soft); color:var(--primary); border:1px solid var(--border); display:grid; place-items:center; margin-bottom:16px; }
.doc-card .ico svg{ width:22px; height:22px; }
.doc-card .meta-tag{ position:absolute; top:22px; right:22px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); }
.doc-card h3{ font-size:18px; margin:0 0 8px; letter-spacing:-.01em; font-weight:600; }
.doc-card p{ color:var(--text-2); font-size:14.5px; margin:0 0 16px; flex:1; }
.doc-card .doc-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:14px; border-top:1px solid var(--border); }
.doc-card .doc-date{ font-family:var(--mono); font-size:12px; color:var(--text-3); }
.doc-card .doc-dl{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:650; color:var(--primary); }
.doc-card .doc-dl svg{ width:15px; height:15px; }
.tag-new{
  display:inline-flex; align-items:center; font-size:10px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; color:var(--primary-ink); background:var(--primary);
  padding:3px 8px; border-radius:999px; vertical-align:middle; margin-left:8px;
}
.empty-note{ padding:32px 0; border-top:1px solid var(--border); color:var(--text-3); font-size:14.5px; }

/* ---------- Admin-Statistik ---------- */
.admin-stats{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.admin-stat{ position:relative; padding:16px 16px 16px 22px; border:1px solid var(--border); border-radius:var(--r); background:var(--surface); overflow:hidden; }
.admin-stat::before{ content:""; position:absolute; left:0; top:14px; bottom:14px; width:3px; border-radius:3px; background:var(--m1); }
.admin-stat:nth-child(2n)::before{ background:var(--m2); }
.admin-stat-num{ font-size:26px; font-weight:750; color:var(--text); line-height:1.15; font-variant-numeric:tabular-nums; }
.admin-stat-label{ margin-top:4px; font-size:12.5px; color:var(--text-3); }
@media (max-width:760px){ .admin-stats{ grid-template-columns:repeat(2, 1fr); } }

.stat-charts{ display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:24px; }
@media (max-width:760px){ .stat-charts{ grid-template-columns:1fr; } }
.stat-chart-title{ font-size:12.5px; font-weight:650; color:var(--text-2); margin-bottom:12px; }
.stat-chart-wrap{ overflow-x:auto; }
.stat-chart{ display:flex; align-items:flex-end; gap:4px; height:110px; min-width:max-content; }
.stat-bar{
  flex:none; width:18px; background:linear-gradient(180deg, var(--secondary), var(--primary)); border-radius:4px 4px 0 0;
  min-height:3px; transition:filter .15s;
}
.stat-bar:hover{ filter:brightness(1.25); }
.stat-chart-axis{ display:flex; gap:4px; margin-top:6px; min-width:max-content; }
.stat-chart-axis span{ flex:none; width:18px; font-size:9.5px; color:var(--text-3); text-align:center; }

/* ---------- Admin-Statistik: Aufrufe nach Tag (genaue Werte) ---------- */
.daily-table-wrap{ max-height:360px; overflow-y:auto; border:1px solid var(--border); border-radius:var(--r); }
.daily-table{ width:100%; border-collapse:collapse; font-size:13px; }
.daily-table th, .daily-table td{ padding:8px 12px; border-bottom:1px solid var(--border); text-align:left; vertical-align:middle; }
.daily-table thead th{
  position:sticky; top:0; z-index:1; background:var(--surface-2);
  font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3);
}
.daily-table tbody tr:last-child td{ border-bottom:0; }
.daily-table tbody tr:hover td{ background:var(--surface-2); }
.daily-table td.n{ font-family:var(--mono); font-weight:700; text-align:right; white-space:nowrap; }
.daily-table td.today{ color:var(--primary); font-weight:700; }
.daily-table .wd{ color:var(--text-3); font-size:11.5px; }
.daily-table .bar-cell{ width:30%; }
.mini-bar{ position:relative; height:8px; min-width:50px; border-radius:4px; background:var(--surface-3); overflow:hidden; }
.mini-bar span{ position:absolute; inset:0 auto 0 0; display:block; border-radius:4px; background:linear-gradient(90deg, var(--secondary), var(--primary)); }

/* ---------- Admin-Tabelle ---------- */
.admin-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.admin-table th, .admin-table td{ padding:10px 12px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.admin-table th{ font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); }
.admin-table tbody tr:last-child td{ border-bottom:0; }
.admin-table td:nth-last-child(-n+2){ white-space:nowrap; }
.admin-table td:first-child{ max-width:320px; }
.admin-row-actions{ display:flex; gap:8px; }
.admin-table td:first-child .field-note{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; word-break:break-word; margin-top:3px;
}

.wp-status{
  display:inline-flex; align-items:center; font-size:10.5px; font-weight:700;
  letter-spacing:.05em; text-transform:uppercase; padding:3px 9px; border-radius:999px;
}
.wp-status-aktiv{ color:var(--success); background:var(--success-soft); }
.wp-status-geplant{ color:var(--gold); background:var(--gold-soft); }
.wp-status-abgelaufen{ color:var(--text-3); background:var(--surface-3); }
.table-scroll{ overflow-x:auto; }

/* ---------- Energiekosten-Vergleichstabelle (6 Ausstattungsvarianten) ---------- */
.ek-table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--r); }
.ek-table{ width:100%; border-collapse:collapse; font-size:12.5px; min-width:980px; }
.ek-table th, .ek-table td{ padding:9px 11px; border-bottom:1px solid var(--border); text-align:right; white-space:nowrap; }
.ek-table thead th{
  background:var(--surface-2); font-size:10px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; color:var(--text-3); position:sticky; top:0; z-index:2;
}
.ek-table thead th:first-child{ left:0; z-index:3; text-align:left; }
.ek-table th[scope="row"]{
  text-align:left; font-weight:600; color:var(--text); white-space:normal; max-width:230px;
  position:sticky; left:0; background:var(--surface); z-index:1;
}
.ek-table th[scope="row"] .u{ font-weight:500; color:var(--text-3); font-size:10.5px; }
.ek-table td.n{ font-family:var(--mono); color:var(--text-2); }
.ek-table td.strong{ font-weight:700; color:var(--text); }
.ek-table tr.sum td, .ek-table tr.sum th{ border-top:1.5px solid var(--border-strong); background:var(--surface-2); }
.ek-table tr.ek-group th{
  background:var(--primary-soft); color:var(--primary); font-size:10.5px; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em; position:static; text-align:left;
}
.chart-scroll{ overflow-x:auto; }
@media (max-width:700px){ .ek-table{ font-size:11.5px; } .ek-table th, .ek-table td{ padding:7px 9px; } }

/* =========================================================================
   Startseite
   ========================================================================= */

/* ---------- Hero ---------- */
.hero{ position:relative; min-height:100vh; min-height:100svh; display:flex; align-items:center; padding:120px 0 60px; overflow:hidden; }
.hero .glow-orb.g1{ top:-220px; left:-160px; }
.hero .glow-orb.g2{ bottom:-260px; right:-200px; }

.hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1.1fr 1fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(40px,7vw,76px); line-height:1.04; letter-spacing:-.03em; margin:22px 0 14px; font-weight:600; }
.hero h1 .accent{ color:var(--primary); }
.typed{ font-size:clamp(19px,2.4vw,25px); font-weight:600; color:var(--text-2); min-height:1.5em; margin:0 0 18px; }
.typed .caret{ display:inline-block; width:3px; height:1em; background:var(--primary); vertical-align:-.12em; margin-left:3px; animation:blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.hero-lead{ font-size:17.5px; color:var(--text-2); max-width:560px; margin:0 0 30px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; }

/* ---------- Energie-Netz-Grafik (selbst erzeugte SVG-Illustration,
   ersetzt das Porträtfoto) ---------- */
.energy-art{ position:relative; justify-self:center; width:min(440px,100%); aspect-ratio:1/1; }
.energy-art svg{ width:100%; height:100%; display:block; overflow:visible; }
.energy-art .ea-plate{ fill:var(--surface); stroke:var(--border); stroke-width:1; }
.energy-art .ea-line{ stroke:url(#eaLineGrad); stroke-width:1.4; opacity:.55; fill:none; }
.energy-art .ea-ring{ stroke:var(--border); stroke-width:1; fill:none; stroke-dasharray:2 7; animation:eaSpin 60s linear infinite; transform-origin:260px 260px; }
.energy-art .ea-node{ fill:url(#eaNodeGrad); filter:drop-shadow(0 0 6px var(--primary-glow)); }
.energy-art .ea-node.hub{ filter:drop-shadow(0 0 14px var(--primary-glow)); animation:eaPulse 2.6s ease-in-out infinite; transform-origin:260px 260px; }
.energy-art .ea-pulse{ fill:none; stroke:var(--primary); stroke-width:2; opacity:0; transform-origin:260px 260px; animation:eaPing 3s ease-out infinite; }
.energy-art .ea-pulse.d2{ animation-delay:1.5s; }
@keyframes eaSpin{ to{ transform:rotate(360deg); } }
@keyframes eaPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.15); } }
@keyframes eaPing{ 0%{ transform:scale(.3); opacity:.6; } 100%{ transform:scale(1.7); opacity:0; } }

/* ---------- Porträtfoto (optional – wird automatisch statt der
   Energie-Netz-Grafik angezeigt, sobald assets/img/michael-kleen.jpg
   vorhanden ist; siehe index.php) ---------- */
.photo-wrap{ position:relative; justify-self:center; width:min(340px,100%); }
.photo-wrap::before{
  content:""; position:absolute; inset:-3px; border-radius:calc(var(--r-lg) + 3px); z-index:-1;
  background:linear-gradient(135deg, var(--secondary), var(--primary));
  opacity:.9;
}
.photo-card{
  position:relative; border-radius:var(--r-lg); overflow:hidden; aspect-ratio:3/4;
  box-shadow:var(--shadow); border:3px solid var(--bg); transform-style:preserve-3d;
  transition:transform .2s ease-out; background:var(--surface-3);
}
.photo-card img{ width:100%; height:100%; object-fit:cover; }
.photo-card::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at var(--mx,50%) var(--my,30%), rgba(255,255,255,.16), transparent 45%);
  pointer-events:none;
}

.float-badge{
  position:absolute; display:flex; align-items:center; gap:10px; background:var(--surface);
  border:1px solid var(--border-strong); padding:10px 14px; border-radius:var(--r); box-shadow:var(--shadow-sm);
  font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; animation:hfloat 6s ease-in-out infinite;
}
.float-badge small{ display:block; font-weight:500; color:var(--text-2); font-size:11px; }
.float-badge .dot{ width:34px; height:34px; border-radius:999px; background:var(--primary-soft); color:var(--primary); display:grid; place-items:center; }
.float-badge .dot svg{ width:18px; height:18px; }
.fb-1{ right:-10px; bottom:6%; animation-delay:-3s; }
@keyframes hfloat{ 50%{ transform:translateY(-10px); } }

.scroll-cue{ position:absolute; left:50%; bottom:26px; transform:translateX(-50%); z-index:2; color:var(--text-3); text-decoration:none; font-size:12px; display:flex; flex-direction:column; align-items:center; gap:6px; }
.scroll-cue .mouse{ width:22px; height:34px; border:2px solid currentColor; border-radius:12px; position:relative; }
.scroll-cue .mouse::after{ content:""; position:absolute; left:50%; top:6px; width:3px; height:7px; background:var(--primary); border-radius:2px; transform:translateX(-50%); animation:wheel 1.6s ease infinite; }
@keyframes wheel{ to{ transform:translate(-50%,10px); opacity:0; } }

@media (max-width:920px){
  .hero-grid{ grid-template-columns:1fr; gap:48px; }
  .energy-art, .photo-wrap{ order:-1; width:min(320px,82%); }
  .fb-1{ right:0; bottom:-6%; }
  .scroll-cue{ display:none; }
}
@media (max-width:480px){
  .float-badge{ padding:8px 10px; font-size:12px; }
  .float-badge .dot{ width:28px; height:28px; }
}

/* ---------- Kennzahlen ---------- */
.stats{ margin-top:48px; position:relative; z-index:2; }
.stats-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.stat{ padding:26px; }
.stat .num{ font-size:clamp(32px,4vw,44px); font-weight:700; letter-spacing:-.03em; line-height:1; color:var(--primary); font-variant-numeric:tabular-nums; }
.stat .label{ color:var(--text-2); font-size:13.5px; margin-top:10px; }
@media (max-width:920px){ .stats-grid{ grid-template-columns:1fr; } }

/* ---------- Reveal-Animationen ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }
.reveal-d1{ transition-delay:.1s; }
.reveal-d2{ transition-delay:.2s; }
.reveal-d3{ transition-delay:.3s; }

/* ---------- Hinweise (Unabhängigkeit, "Neu") – zwischen Hero und Kennzahlen,
   leicht in den Hero-Fade hineingezogen für einen fließenden Übergang. ---------- */
.top-notices{ display:flex; flex-direction:column; gap:14px; margin-top:-40px; position:relative; z-index:2; }
.notice-independence{
  padding:16px 20px; border:1px solid var(--border); border-radius:var(--r);
  background:var(--surface); box-shadow:var(--shadow-sm);
}
.notice-independence h2{ font-size:13px; font-weight:700; letter-spacing:.01em; margin:0 0 6px; color:var(--text); }
.notice-independence p{ margin:0; font-size:13px; line-height:1.6; color:var(--text-2); }
@media (max-width:640px){ .notice-independence{ padding:14px 16px; } }

.notice-new{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  padding:16px 22px; border:1px solid var(--border-strong); border-left:3px solid var(--primary); border-radius:var(--r);
  background:linear-gradient(135deg, var(--primary-soft), var(--surface) 55%); color:var(--text); box-shadow:var(--shadow-sm);
}
.notice-new:hover{ text-decoration:none; border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-soft); }
.notice-new-tag{
  flex:none; font-size:11px; font-weight:800; letter-spacing:.08em;
  text-transform:uppercase; color:var(--primary-ink); background:var(--primary); padding:5px 11px; border-radius:999px;
}
.notice-new-body{ flex:1 1 320px; min-width:0; display:flex; flex-direction:column; gap:3px; }
.notice-new-body b{ color:var(--text); font-size:15px; font-weight:700; line-height:1.3; }
.notice-new-text{
  font-size:13px; color:var(--text-2); line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.notice-new-cta{
  flex:none; display:inline-flex; align-items:center; gap:6px;
  font-size:13px; font-weight:700; color:var(--primary-ink); background:var(--primary);
  padding:9px 16px; border-radius:999px; transition:gap .15s, filter .15s;
}
.notice-new:hover .notice-new-cta{ gap:9px; filter:brightness(1.08); }
.notice-new-cta svg{ width:15px; height:15px; }
@media (max-width:640px){
  .notice-new{ padding:14px 16px; }
}

/* ---------- Abschnittskopf ---------- */
.section{ padding:100px 0; position:relative; }
.section-alt{ position:relative; overflow:hidden; background:var(--bg-alt); }
.section-alt > .wrap{ position:relative; z-index:1; }
.section-head{ max-width:720px; margin-bottom:48px; }
.section-head.split{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; max-width:none; flex-wrap:wrap; }
.section-kicker{
  display:flex; align-items:center; gap:10px; margin:0 0 10px;
  font-size:13.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--primary);
}
.section-kicker::before{ content:""; width:22px; height:2px; border-radius:2px; background:var(--primary); box-shadow:0 0 8px var(--primary-glow); }
.section-kicker.light{ color:var(--secondary); }
.section-kicker.light::before{ background:var(--secondary); box-shadow:0 0 8px var(--secondary-glow); }
.section-head h2{ font-size:clamp(28px,4vw,44px); letter-spacing:-.03em; margin-bottom:8px; font-weight:600; }
.section-head p{ color:var(--text-2); font-size:16.5px; margin:0; max-width:56ch; }
.more{ display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:650; white-space:nowrap; padding-bottom:2px; color:var(--primary); }
.more svg{ width:15px; height:15px; }
@media (max-width:600px){ .section{ padding:70px 0; } }

/* ---------- Profil ---------- */
.profile-text p{ font-size:18px; line-height:1.7; margin:0 0 22px; color:var(--text-2); }
.profile-text p strong{ color:var(--text); font-weight:700; }
.pillars{
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:16px;
  padding:48px 32px; border:1px solid var(--border); border-radius:var(--r-lg);
  background:var(--surface); position:relative; overflow:hidden;
}
/* Pillars liegen als Card-Komponente einzeln vor, sitzen hier aber in einem
   gemeinsam umrandeten Container (wie die Perks-Karten im Referenz-Template) –
   die eigene Card-Umrandung/-Fläche wird daher zurückgenommen. */
.pillars .pillar.card{ background:transparent; border:none; box-shadow:none; }
.pillars .pillar.card:hover{ transform:none; box-shadow:none; }
.pillar{ padding:0; position:relative; z-index:1; text-align:center; display:flex; flex-direction:column; align-items:center; }
.pillar .ico{ width:64px; height:64px; border-radius:999px; background:var(--primary-soft); color:var(--primary); display:grid; place-items:center; margin-bottom:16px; }
.pillar .ico svg{ width:28px; height:28px; }
.pillars .pillar:nth-child(2) .ico{ background:var(--secondary-soft); color:var(--secondary); }
.pillar h3{ font-size:17px; margin:0 0 6px; font-weight:600; }
.pillar p{ font-size:14px; color:var(--text-2); margin:0; }
@media (max-width:760px){ .pillars{ grid-template-columns:1fr; padding:36px 24px; gap:32px; } }

.quote-block{
  margin:28px 0; padding:4px 0 4px 20px; border-left:3px solid var(--primary);
  font-size:17px; font-weight:560; color:var(--text); line-height:1.55;
}

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  display:inline-flex; align-items:center; gap:6px; font-size:13.5px; padding:7px 14px; border-radius:999px;
  background:var(--surface-2); border:1px solid var(--border); color:var(--text-2);
}

/* ---------- Segmentierter Umschalter (z. B. Gas/Wärmepumpe, Diesel/E-Auto) ---------- */
.toggle-group{ display:flex; flex-wrap:wrap; gap:6px; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r-sm); padding:4px; }
.toggle-group button{
  flex:1 1 0; min-width:max-content; display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:9px 14px; border-radius:calc(var(--r-sm) - 2px); border:0; background:transparent; color:var(--text-2);
  font-size:13.5px; font-weight:650; cursor:pointer; transition:background .15s, color .15s;
}
.toggle-group button svg{ width:16px; height:16px; }
.toggle-group button[aria-pressed="true"]{ background:var(--primary); color:var(--primary-ink); }
.toggle-group button:not([aria-pressed="true"]):hover{ background:var(--surface-3); color:var(--text); }

/* ---------- Kennzahlen-Kacheln (Energiekosten-Rechner) ---------- */
.kpi-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; }
.kpi{ background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r); padding:12px 14px; }
.kpi .k{ display:block; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); }
.kpi .v{ display:block; font-family:var(--mono); font-size:16px; font-weight:700; margin-top:5px; color:var(--text); }
.kpi .v small{ font-size:11px; font-weight:600; color:var(--text-3); margin-left:2px; }

/* ---------- Werkzeug (Rechner) ---------- */
.tool-card{ display:flex; align-items:center; gap:28px; flex-wrap:wrap; padding:36px clamp(24px,4vw,40px); }
.tool-card .ico{ width:56px; height:56px; border-radius:999px; background:var(--primary-soft); color:var(--primary); display:grid; place-items:center; }
.tool-card .ico svg{ width:26px; height:26px; }
.tool-text{ flex:1 1 320px; }
.tool-text h3{ font-size:22px; margin:0 0 8px; letter-spacing:-.01em; font-weight:600; }
.tool-text p{ margin:0; color:var(--text-2); font-size:15px; max-width:58ch; }

/* ---------- Kontakt ---------- */
.contact{
  position:relative; overflow:hidden; border-radius:var(--r-lg); padding:64px; color:var(--text);
  background:var(--surface); border:1px solid var(--border);
}
.contact .glow-orb.g3{ bottom:-220px; left:-160px; }
.contact > *{ position:relative; z-index:1; }
.contact h2{ color:var(--text); }
.contact-lead{ font-size:18px; color:var(--text-2); max-width:560px; margin:0 0 32px; }
.contact-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-bottom:30px; }
.c-item{
  display:flex; align-items:center; gap:14px; padding:18px; border-radius:var(--r); text-decoration:none;
  background:var(--surface-2); border:1px solid var(--border); color:var(--text); min-width:0;
  transition:border-color .2s, transform .2s; font:inherit; text-align:left; cursor:pointer;
}
.c-item:hover{ border-color:var(--primary); transform:translateY(-3px); text-decoration:none; }
.c-item .ico{ width:44px; height:44px; flex:none; border-radius:999px; background:var(--primary-soft); color:var(--primary); display:grid; place-items:center; }
.c-item .ico svg{ width:20px; height:20px; }
.c-item small{ display:block; font-size:12px; color:var(--text-3); }
.c-item span{ display:block; font-weight:600; font-size:14.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.c-item > div{ min-width:0; }
@media (max-width:700px){ .contact-grid{ grid-template-columns:1fr; } .contact{ padding:44px 28px; } }
@media (max-width:420px){ .contact{ padding:36px 20px; border-radius:var(--r); } }

/* ---------- Toast ---------- */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translate(-50%,140%); z-index:150;
  background:var(--surface-3); color:var(--text); border:1px solid var(--border-strong); padding:12px 20px; border-radius:999px; font-size:14px; font-weight:600;
  display:flex; align-items:center; gap:8px; transition:transform .4s cubic-bezier(.2,.7,.2,1); box-shadow:var(--shadow);
  max-width:calc(100% - 32px);
}
.toast.show{ transform:translate(-50%,0); }
.toast svg{ width:18px; height:18px; color:var(--primary); flex:none; }

/* ---------- Nach oben ---------- */
.to-top{
  position:fixed; right:20px; bottom:20px; width:48px; height:48px; border-radius:50%; border:1px solid var(--border-strong); z-index:90;
  background:var(--surface-2); color:var(--primary); cursor:pointer; display:grid; place-items:center;
  box-shadow:var(--shadow-sm); opacity:0; transform:translateY(20px); pointer-events:none;
  transition:opacity .3s, transform .3s, border-color .2s;
}
.to-top:hover{ border-color:var(--primary); }
.to-top.show{ opacity:1; transform:none; pointer-events:auto; }
.to-top svg{ width:20px; height:20px; }

/* ---------- Responsiv (allgemein) ---------- */
@media (max-width:1040px){
  .shell{ grid-template-columns:1fr; }
  .panel{ position:static; }
}
@media (max-width:760px){
  .doc-grid{ grid-template-columns:1fr; }
  .tool-card{ flex-direction:column; align-items:flex-start; }
  .tool-card .btn{ width:100%; justify-content:center; }
}
@media (max-width:620px){
  .grid.two, .grid.three{ grid-template-columns:1fr; }
  .card-body{ padding:16px 18px 20px; }
  .card-head{ padding:18px 18px 0; }
  .amount .num{ font-size:30px; }
  .btn-pair{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1; transform:none; }
}

/* =========================================================================
   Druckbogen (PDF-Export) – bewusst HELL gehalten (Tintenersparnis, Lesbarkeit),
   unabhängig vom dunklen Website-Theme. Layoutregeln stehen bewusst ausserhalb
   von @media print, damit sich der Bogen auch ohne Druckdialog pruefen laesst.
   ========================================================================= */
.print-sheet{ display:none; background:#fff; color:#111; }

.ps-head{
  display:flex; align-items:flex-start; gap:14px;
  padding-bottom:10px; border-bottom:2px solid #2f9e6e; margin-bottom:18px;
}
.ps-mark{
  width:34px; height:34px; border-radius:9px; flex:none;
  background:#0d2b1d; color:#6eeeA0; display:grid; place-items:center;
  font-weight:800; font-size:17px; line-height:1;
  -webkit-print-color-adjust:exact; print-color-adjust:exact;
}
.ps-head .t b{ display:block; font-size:15pt; letter-spacing:-.02em; }
.ps-head .t span{ display:block; font-size:8.5pt; color:#555; letter-spacing:.08em; text-transform:uppercase; margin-top:2px; }
.ps-head .d{ margin-left:auto; text-align:right; font-size:8.5pt; color:#555; line-height:1.6; }

.ps-title{ font-size:16pt; letter-spacing:-.03em; margin:0 0 4px; }
.ps-lead{ font-size:9.5pt; color:#555; margin:0 0 18px; }

.ps-project{
  border:1px solid #ddd; border-radius:6px; padding:12px 14px; margin-bottom:18px;
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px 18px;
}
.ps-project .k{ font-size:7.5pt; letter-spacing:.09em; text-transform:uppercase; color:#777; display:block; }
.ps-project .v{ font-size:10pt; font-weight:600; display:block; margin-top:2px; }
.ps-project .full{ grid-column:1 / -1; }

.ps-cards{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.ps-card{ border:1px solid #ddd; border-radius:6px; padding:12px 14px; }
.ps-card.win{ border-color:#2f9e6e; border-width:1.5px; }
.ps-card .lbl{ font-size:8pt; letter-spacing:.09em; text-transform:uppercase; color:#777; }
.ps-card .amt{ font-size:19pt; font-weight:750; letter-spacing:-.03em; margin-top:3px; }
.ps-card .amt small{ font-size:10pt; font-weight:600; color:#555; }
.ps-card .note{ font-size:8.5pt; color:#555; margin-top:4px; }

.ps-verdict{
  border-left:3px solid #2f9e6e; padding:8px 12px; margin-bottom:18px;
  font-size:9.5pt; font-weight:600; background:#e7f7ee;
  -webkit-print-color-adjust:exact; print-color-adjust:exact;
}

table.ps-table{ width:100%; border-collapse:collapse; font-size:9.5pt; margin-bottom:18px; }
table.ps-table caption{
  text-align:left; font-size:8pt; letter-spacing:.09em; text-transform:uppercase;
  color:#777; padding-bottom:5px;
}
table.ps-table th, table.ps-table td{ padding:6px 8px; border-bottom:1px solid #e5e5e5; text-align:left; }
table.ps-table td.n{ text-align:right; font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }
table.ps-table tr.sum td{ border-top:1.5px solid #999; border-bottom:0; font-weight:750; }

.ps-chart{ border:1px solid #ddd; border-radius:6px; padding:10px; margin-bottom:16px; break-inside:avoid; }
.ps-chart h3{ font-size:8pt; letter-spacing:.09em; text-transform:uppercase; color:#777; margin-bottom:6px; }
.ps-chart svg{ width:100%; height:auto; }
.ps-chart .grid-line{ stroke:#e0e0e0; }
.ps-chart .axis-line{ stroke:#999; }
.ps-chart .tick-txt{ fill:#666; }
.ps-chart .val-txt{ fill:#111; }

.ps-formula{ font-size:8.5pt; color:#555; line-height:1.7; margin-bottom:16px; }

.ps-disclaimer{
  border:1px solid #d8d8d8; border-radius:6px; padding:11px 14px;
  font-size:8.5pt; line-height:1.6; color:#333; break-inside:avoid;
}
.ps-disclaimer b{ display:block; margin-bottom:3px; font-size:9pt; }

.ps-foot{
  margin-top:14px; padding-top:9px; border-top:1px solid #ddd;
  font-size:8pt; color:#555; line-height:1.6;
  display:flex; gap:16px; align-items:flex-start;
}
.ps-foot .r{ margin-left:auto; text-align:right; }

@media print{
  @page{ size:A4 portrait; margin:14mm 13mm 16mm; }

  :root{
    --m1:#2f8f9e; --m2:#2f9e6e; --border:#e0e0e0; --border-strong:#999;
    --text:#111; --text-2:#444; --text-3:#666;
  }
  html, body{ background:#fff !important; color:#111; font-size:10.5pt; }
  .site-header, .site-footer, .page, .no-print, .progress, .to-top, .toast{ display:none !important; }
  .print-sheet{ display:block; }
}
