/* =========================================================================
   Website Michael Kleen
   Designsystem im Stil eines animierten One-Page-Portfolios
   Akzentfarbe: Kupfer/Messing #A85A1E (Energie/Wärme) statt Telekom-Magenta
   ========================================================================= */

:root{
  color-scheme: light;

  --accent:        #a85a1e;
  --accent-600:    #8a4a18;
  --accent-soft:   rgba(168,90,30,.10);
  --accent-glow:   rgba(168,90,30,.35);
  --accent-ink:    #7c4013;

  --bg:            #f8f6f2;
  --bg-elev:       #ffffff;
  --bg-alt:        #f1ece3;
  --surface:       #ffffff;
  --surface-2:     #faf8f4;
  --surface-3:     #f1ece2;

  --text:          #1d1a15;
  --text-2:        #5c5548;
  --text-3:        #8c8371;
  --text-muted:    #5c5548;
  --border:        #e4ddd0;
  --border-strong: #cec2ab;
  --nav-bg:        rgba(248,246,242,.97);

  --m1:            var(--accent);
  --m1-soft:       var(--accent-soft);
  --m2:            #1f6b4c;
  --m2-soft:       #dceae1;

  --ink:           #191510;
  --ink-2:         #2a2318;

  --gold:          #92640f;
  --gold-soft:     #f1e3c4;
  --danger:        #a3291d;

  --shadow-sm: 0 1px 2px rgba(25,20,10,.06), 0 1px 3px rgba(25,20,10,.05);
  --shadow-md: 0 6px 20px -8px rgba(25,20,10,.18), 0 2px 6px rgba(25,20,10,.06);
  --shadow:    0 10px 30px -12px rgba(25,20,10,.22);
  --shadow-lg: 0 24px 48px -20px rgba(25,20,10,.30), 0 6px 16px rgba(25,20,10,.08);

  --r-sm: 12px;
  --r:    16px;
  --r-lg: 20px;
  --radius: 20px;
  --radius-sm: 12px;

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

/* ---------- 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:700; letter-spacing:-.02em; line-height:1.2; }
p{ margin:0 0 .8em; }
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
button{ font:inherit; color:inherit; }
svg{ max-width:100%; }
::selection{ background:var(--accent); color:#fff; }
:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; border-radius:6px; }
.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(--accent); color:#fff; padding:8px 14px; border-radius:8px; }
.skip-link:focus{ left:8px; }

/* ---------- Scroll-Fortschritt ---------- */
.progress{
  position:fixed; top:0; left:0; height:3px; width:100%; z-index:120;
  background:var(--accent); transform-origin:0 50%; transform:scaleX(0);
  box-shadow:0 0 12px var(--accent-glow);
}

/* ---------- Kopfzeile ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  background:var(--nav-bg);
  border-bottom:1px solid transparent; transition:border-color .3s ease;
}
.site-header.scrolled{ 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:-.02em; }
.brand:hover{ text-decoration:none; }
.brand .logo{
  width:36px; height:36px; border-radius:10px; flex:none; display:grid; place-items:center;
  background:var(--ink); box-shadow:var(--shadow-sm);
}
.brand .logo svg{ width:19px; height:19px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text b{ font-size:16px; }
.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(--accent-soft); color:var(--text); text-decoration:none; }
.header-nav a[aria-current="page"]{ background:var(--accent-soft); color:var(--accent); }
.icon-btn{
  height:40px; min-width:40px; padding:0 10px; border-radius:999px; border:1px solid var(--border);
  background:var(--bg-elev); 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(--accent); }
.icon-btn svg{ width:18px; height:18px; }
@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:999px; border:1px solid var(--border);
  background:var(--surface); color:var(--text); font-size:14.5px; font-weight:650;
  cursor:pointer; transition:transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  text-align:center;
}
.btn:hover{ text-decoration:none; border-color:var(--accent); transform:translateY(-2px); }
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; }
.btn svg{ width:17px; height:17px; flex:none; }
.btn.primary{ background:var(--accent); color:#fff; border-color:var(--accent); box-shadow:0 8px 24px -8px var(--accent-glow); }
.btn.primary:hover{ background:var(--accent-600); border-color:var(--accent-600); box-shadow:0 14px 30px -10px var(--accent-glow); }
.btn.white{ background:#fff; color:var(--accent-ink); border-color:transparent; }
.btn.white:hover{ box-shadow:0 14px 30px -10px rgba(0,0,0,.3); }
.btn.outline{ background:transparent; color:#fff; border-color:rgba(255,255,255,.5); }
.btn.outline:hover{ border-color:#fff; }
.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:700;
  letter-spacing:.06em; text-transform:uppercase; color:var(--accent);
  background:var(--accent-soft); padding:6px 13px; border-radius:999px; margin-bottom:16px;
}
.eyebrow .dot{ display:none; }
.page-head h1{ font-size:clamp(30px,4.4vw,46px); letter-spacing:-.03em; margin-bottom:12px; }
.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-md); overflow:hidden;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card + .card{ margin-top:20px; }
/* In Grid-Rastern (Kennzahlen, Profil-Kacheln, Whitepaper-Karten) sind Karten
   nebeneinander statt gestapelt – die Stapel-Margin darf dort die von Grid
   gestreckte Höhe nicht auffressen, sonst werden 2./3. Kachel je Reihe kleiner. */
.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:34px; height:34px; flex:none; border-radius:11px; display:grid; place-items:center;
  background:var(--accent-soft); color:var(--accent);
}
.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), nur auf Portfolio-Karten */
.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(--accent-soft), transparent 60%);
}
.card.spot:hover::before{ opacity:1; }
.card.spot:hover{ border-color:rgba(168,90,30,.35); 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); 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); border-color:var(--accent); z-index:2;
  box-shadow:0 0 0 3px var(--accent-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);
  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; }
.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{
  border-radius:var(--r-lg); border:1px solid var(--border); background:var(--surface);
  box-shadow:var(--shadow-md); overflow:hidden;
}
.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; }
.rc-head h3{ font-size:14px; letter-spacing:-.01em; }
.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); }
.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 transparent;
  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-3); color:var(--text-3); }
.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(--m2); }

/* ---------- 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(--accent); }

/* ---------- 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; }
.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; background:var(--accent); }
.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(--accent); }
.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(--bg-alt); 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:44px; height:44px; border-radius:13px; background:var(--accent-soft); color:var(--accent); 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; }
.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(--accent); }
.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:#fff; background:var(--accent);
  padding:3px 8px; border-radius:5px; 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{ padding:16px; border:1px solid var(--border); border-radius:var(--r); background:var(--surface); }
.admin-stat-num{ font-size:26px; font-weight:750; color:var(--text); line-height:1.15; }
.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:var(--accent); border-radius:3px 3px 0 0;
  min-height:3px; transition:background .15s;
}
.stat-bar:hover{ background:var(--accent-600); }
.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-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:5px;
}
.wp-status-aktiv{ color:var(--m2); background:var(--m2-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; }

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

/* ---------- Hero ---------- */
.hero{ position:relative; min-height:100vh; min-height:100svh; display:flex; align-items:center; padding:120px 0 60px; overflow:hidden; }
/* Wenn oben ein "Neu"-Hinweis steht, würde die Hero-Box trotzdem volle
   Bildschirmhöhe beanspruchen und dadurch weiter nach unten rutschen –
   der zentrierte Inhalt läge dann mitten in viel Leerraum. Stattdessen
   auf die eigentliche Inhaltshöhe schrumpfen. */
.has-notice .hero{ min-height:auto; padding:56px 0 64px; }
.hero::after{
  content:""; position:absolute; inset:auto 0 0 0; height:160px;
  background:linear-gradient(to bottom, transparent, var(--bg)); pointer-events:none;
}
.hero-blob{
  position:absolute; width:620px; height:620px; border-radius:50%;
  background:radial-gradient(circle, var(--accent-glow), transparent 65%);
  top:-180px; right:-160px; filter:blur(20px); pointer-events:none;
}
.hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1.25fr .9fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(44px,8vw,88px); line-height:1; letter-spacing:-.04em; margin:22px 0 14px; font-weight:800; }
.hero h1 .accent{ color:var(--accent); }
.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(--accent); 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; }

.photo-wrap{ position:relative; justify-self:center; width:min(340px,100%); }
.photo-card{
  position:relative; border-radius:26px; overflow:hidden; aspect-ratio:3/4;
  box-shadow:var(--shadow); border:1px solid var(--border); transform-style:preserve-3d;
  transition:transform .2s ease-out; background:var(--surface-3);
}
.photo-card img{ width:100%; height:100%; object-fit:cover; filter:grayscale(.15); }
.photo-card::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at var(--mx,50%) var(--my,30%), rgba(255,255,255,.22), transparent 45%);
  pointer-events:none;
}
.photo-ring{ position:absolute; inset:-14px; border-radius:34px; border:2px solid var(--accent); opacity:.5; transform:rotate(-4deg); z-index:-1; }
.float-badge{
  position:absolute; display:flex; align-items:center; gap:10px; background:var(--bg-elev);
  border:1px solid var(--border); padding:10px 14px; border-radius:16px; box-shadow:var(--shadow);
  font-size:13px; font-weight:600; 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:10px; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; }
.float-badge .dot svg{ width:18px; height:18px; }
.fb-1{ right:-30px; bottom:12%; 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(--accent); 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; }
  .photo-wrap{ order:-1; width:min(280px,78%); }
  .fb-1{ right:-20px; bottom:-4%; }
  .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:-40px; 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:800; letter-spacing:-.03em; line-height:1; color:var(--accent); 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 oben (Unabhängigkeit, "Neu") ---------- */
.top-notices{ display:flex; flex-direction:column; gap:14px; }
.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:16px; flex-wrap:wrap;
  padding:14px 20px; border:1px solid var(--accent); border-radius:var(--r);
  background:linear-gradient(135deg, var(--accent), var(--accent-600));
  color:#fff; box-shadow:var(--shadow-md);
}
.notice-new:hover{ text-decoration:none; box-shadow:var(--shadow-md), 0 0 0 4px var(--accent-glow); transform:translateY(-1px); }
.notice-new-tag{
  flex:none; font-size:11px; font-weight:800; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent-ink); background:#fff; padding:5px 11px; border-radius:999px;
}
.notice-new-body{ flex:1 1 320px; min-width:0; display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 10px; }
.notice-new-body b{ color:#fff; font-size:15px; font-weight:700; line-height:1.3; }
.notice-new-text{ font-size:13px; color:rgba(255,255,255,.85); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notice-new-cta{
  flex:none; display:inline-flex; align-items:center; gap:6px;
  font-size:13px; font-weight:700; color:#fff; background:rgba(255,255,255,.16);
  padding:8px 14px; border-radius:999px; transition:gap .15s, background .15s;
}
.notice-new:hover .notice-new-cta{ gap:9px; background:rgba(255,255,255,.26); }
.notice-new-cta svg{ width:15px; height:15px; }
@media (max-width:640px){
  .notice-new{ padding:14px 16px; }
  .notice-new-body{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
}

/* ---------- Abschnittskopf ---------- */
.section{ padding:100px 0; }
.section-alt{ background:var(--bg-alt); }
.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(--accent);
}
.section-kicker::before{ content:""; width:26px; height:2px; background:var(--accent); }
.section-kicker.light{ color:rgba(255,255,255,.85); }
.section-kicker.light::before{ background:#fff; }
.section-head h2{ font-size:clamp(28px,4vw,44px); letter-spacing:-.03em; margin-bottom:8px; }
.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(--accent); }
.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(--accent); font-weight:700; }
.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:30px; }
.pillar{ padding:22px; }
.pillar .ico{ width:42px; height:42px; border-radius:12px; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; margin-bottom:14px; }
.pillar .ico svg{ width:22px; height:22px; }
.pillar h3{ font-size:16px; margin:0 0 6px; }
.pillar p{ font-size:14px; color:var(--text-2); margin:0; }

.quote-block{
  margin:28px 0; padding:4px 0 4px 20px; border-left:3px solid var(--accent);
  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);
}

/* ---------- 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:16px; }
.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; }
.tool-text p{ margin:0; color:var(--text-2); font-size:15px; max-width:58ch; }

/* ---------- Kontakt ---------- */
.contact{
  position:relative; overflow:hidden; border-radius:32px; padding:64px; color:#fff;
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
}
.contact::before{
  content:""; position:absolute; inset:0; opacity:.25;
  background-image:radial-gradient(rgba(255,255,255,.6) 1px, transparent 1px); background-size:22px 22px;
  mask-image:linear-gradient(120deg, transparent 30%, #000 100%);
  -webkit-mask-image:linear-gradient(120deg, transparent 30%, #000 100%);
}
.contact > *{ position:relative; }
.contact h2{ color:#fff; }
.contact-lead{ font-size:18px; opacity:.9; 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:18px; text-decoration:none;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); color:#fff; min-width:0;
  transition:background .2s, transform .2s; font:inherit; text-align:left; cursor:pointer;
}
.c-item:hover{ background:rgba(255,255,255,.2); transform:translateY(-3px); text-decoration:none; }
.c-item .ico{ width:44px; height:44px; flex:none; border-radius:12px; background:#fff; color:var(--accent); display:grid; place-items:center; }
.c-item .ico svg{ width:20px; height:20px; }
.c-item small{ display:block; font-size:12px; opacity:.8; }
.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:24px; } }

/* ---------- Toast ---------- */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translate(-50%,140%); z-index:150;
  background:var(--text); color:var(--bg); 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(--accent); flex:none; }

/* ---------- Nach oben ---------- */
.to-top{
  position:fixed; right:20px; bottom:20px; width:48px; height:48px; border-radius:50%; border:0; z-index:90;
  background:var(--accent); color:#fff; cursor:pointer; display:grid; place-items:center;
  box-shadow:0 10px 24px -8px var(--accent-glow); opacity:0; transform:translateY(20px); pointer-events:none;
  transition:opacity .3s, transform .3s;
}
.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; }
  .pillars{ 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)
   Die Layoutregeln stehen bewusst ausserhalb von @media print, damit sich der
   Bogen auch ohne Druckdialog pruefen laesst. Sichtbar wird er nur im Druck.
   ========================================================================= */
.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 #a85a1e; margin-bottom:18px;
}
.ps-mark{
  width:34px; height:34px; border-radius:9px; flex:none;
  background:#a85a1e; color:#fff; 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:#a85a1e; 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 #a85a1e; padding:8px 12px; margin-bottom:18px;
  font-size:9.5pt; font-weight:600; background:#f4e6d4;
  -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:#a85a1e; --m2:#1f6b4c; --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; }
}
