/* ============================================================
   Rechenio – SaaS Landing Page
   Modern, seriös, DSGVO-konform · Vanilla CSS
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg:            #ffffff;
  --bg-soft:       #f5f6fb;
  --bg-deep:       #0b0f24;
  --surface:       #ffffff;
  --ink:           #0d1230;
  --ink-soft:      #2a3157;
  --muted:         #5b6486;
  --line:          #e7e9f2;
  --line-soft:     #eef0f7;

  --primary:       #4f46e5;
  --primary-600:   #4338ca;
  --primary-700:   #3730a3;
  --accent:        #06b6d4;
  --accent-2:      #22c55e;
  --warn:          #f59e0b;

  --grad-brand:    linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #06b6d4 100%);
  --grad-hero:     radial-gradient(1200px 600px at 15% -10%, rgba(99,102,241,.45), transparent 60%),
                   radial-gradient(900px 500px at 95% 0%, rgba(6,182,212,.35), transparent 55%),
                   linear-gradient(180deg, #0b0f24 0%, #0e1330 100%);

  --shadow-sm:     0 1px 2px rgba(13,18,48,.06), 0 1px 3px rgba(13,18,48,.05);
  --shadow-md:     0 8px 24px rgba(13,18,48,.08);
  --shadow-lg:     0 24px 60px rgba(13,18,48,.14);
  --shadow-glow:   0 20px 60px rgba(79,70,229,.35);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 40px);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-600);
  background: rgba(79,70,229,.08);
  border: 1px solid rgba(79,70,229,.16);
  padding: 7px 14px; border-radius: 999px;
}
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 46px); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: var(--r-sm);
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 26px 70px rgba(79,70,229,.45); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: #cdd2e6; box-shadow: var(--shadow-md); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn--lg { padding: 17px 32px; font-size: 17px; }
.btn--block { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(13,18,48,.05);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: #fff; transition: color .3s; }
.nav.scrolled .brand { color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: var(--grad-brand); display: grid; place-items: center;
  box-shadow: var(--shadow-glow); color: #fff;
}
.brand__mark svg { width: 22px; height: 22px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.82);
  padding: 9px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav.scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav.scrolled .nav__links a:hover { color: var(--primary-600); background: rgba(79,70,229,.07); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__login { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.9); padding: 9px 8px; }
.nav.scrolled .nav__login { color: var(--ink); }
.nav__login:hover { color: var(--accent); }
.nav.scrolled .nav__login:hover { color: var(--primary); }

.nav__menu { display: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.nav.scrolled .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding-top: 150px; padding-bottom: clamp(72px, 10vw, 130px);
  background: var(--grad-hero); color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(900px 600px at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(900px 600px at 50% 20%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: #e8eaff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 15px; border-radius: 999px; margin-bottom: 24px;
}
.hero__badge b { color: #fff; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)} 70%{box-shadow:0 0 0 9px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.04; margin-bottom: 22px; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg,#a5b4fc,#67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(17px, 2.2vw, 20px); color: #c5cbe6; max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: #aab2d6; font-size: 14.5px; }
.hero__trust .stars { color: #fbbf24; letter-spacing: 2px; }
.hero__trust span b { color: #fff; }
.hero__sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); }

/* Hero stats row */
.hero__stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); }
.hero__stats .stat b { display: block; font-family: var(--font-head); font-size: clamp(24px, 3.5vw, 34px); color: #fff; font-weight: 700; }
.hero__stats .stat span { font-size: 14px; color: #aab2d6; }

/* Hero interactive calculator card */
.hero__visual { position: relative; }
.calc-card {
  background: rgba(255,255,255,.97); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 26px; color: var(--ink);
  border: 1px solid rgba(255,255,255,.6); position: relative;
}
.calc-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.calc-card__top h3 { font-size: 18px; }
.calc-card__pill { font-size: 12px; font-weight: 600; color: var(--primary-600); background: rgba(79,70,229,.09); padding: 5px 11px; border-radius: 999px; }
.calc-tabs { display: flex; gap: 6px; background: var(--bg-soft); padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.calc-tab { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 9px 6px; border-radius: 8px; transition: all .2s; }
.calc-tab.active { background: #fff; color: var(--primary-600); box-shadow: var(--shadow-sm); }
.calc-field { margin-bottom: 16px; }
.calc-field label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.calc-field label span { color: var(--primary-600); }
.calc-input { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 14px; transition: border-color .2s, box-shadow .2s; }
.calc-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.calc-input input { width: 100%; border: none; outline: none; padding: 13px 0; font-size: 16px; font-family: var(--font-body); color: var(--ink); background: transparent; font-weight: 600; }
.calc-input .unit { color: var(--muted); font-weight: 600; font-size: 15px; }
.calc-range { width: 100%; accent-color: var(--primary); margin-top: 4px; }
.calc-result {
  margin-top: 20px; padding: 20px; border-radius: var(--r-md);
  background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow);
}
.calc-result small { font-size: 13px; opacity: .85; }
.calc-result .big { font-family: var(--font-head); font-size: 32px; font-weight: 700; line-height: 1.1; margin-top: 2px; }
.calc-result .sub { font-size: 13px; opacity: .9; margin-top: 6px; }
.calc-card__float {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: #fff; border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 600; border: 1px solid var(--line-soft); z-index: 2;
  color: var(--ink);
}
.calc-card__float .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.calc-card__float .ic svg { width: 17px; height: 17px; }
.float-1 { top: -22px; right: -16px; animation: floaty 5s ease-in-out infinite; }
.float-2 { bottom: -20px; left: -20px; animation: floaty 6s ease-in-out infinite .8s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ============================================================
   LOGO / TRUST BAR
   ============================================================ */
.trustbar { padding: 36px 0; border-bottom: 1px solid var(--line); }
.trustbar p { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.trustbar__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(22px, 5vw, 56px); }
.trustbar__logos span { font-family: var(--font-head); font-weight: 700; font-size: clamp(17px, 2.4vw, 23px); color: #9aa1bd; letter-spacing: -.02em; opacity: .85; transition: color .2s, opacity .2s; }
.trustbar__logos span:hover { color: var(--ink-soft); opacity: 1; }

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.tool-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tool-card:hover::after { transform: scaleX(1); }
.tool-card__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; box-shadow: var(--shadow-md); }
.tool-card__icon svg { width: 27px; height: 27px; }
.tool-card h3 { font-size: 20px; margin-bottom: 10px; }
.tool-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.tool-card ul { display: flex; flex-direction: column; gap: 9px; }
.tool-card li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }
.tool-card li svg { width: 16px; height: 16px; color: var(--accent-2); flex: 0 0 auto; }
.tool-card li a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.tool-card li a:hover { color: var(--primary-600); border-bottom-color: currentColor; }
.tool-card__count { position: absolute; top: 26px; right: 26px; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-soft); padding: 4px 11px; border-radius: 999px; }

/* ============================================================
   LIVE DEMO
   ============================================================ */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.demo__copy .eyebrow { margin-bottom: 18px; }
.demo__copy h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.demo__copy p { color: var(--muted); font-size: 18px; margin-bottom: 26px; }
.demo__list { display: flex; flex-direction: column; gap: 16px; }
.demo__list li { display: flex; gap: 14px; align-items: flex-start; }
.demo__list .ic { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center; background: rgba(79,70,229,.09); color: var(--primary-600); }
.demo__list .ic svg { width: 20px; height: 20px; }
.demo__list strong { display: block; font-family: var(--font-head); font-size: 16px; }
.demo__list small { color: var(--muted); font-size: 14.5px; }

.demo-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lg);
}
.demo-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.demo-panel__head h3 { font-size: 21px; }
.demo-panel__head .badge { font-size: 12px; font-weight: 600; color: var(--accent-2); background: rgba(34,197,94,.1); padding: 5px 12px; border-radius: 999px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.demo-grid .full { grid-column: 1 / -1; }
.demo-out { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-out__box { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 18px; }
.demo-out__box small { font-size: 13px; color: var(--muted); font-weight: 600; }
.demo-out__box b { display: block; font-family: var(--font-head); font-size: 27px; color: var(--ink); margin-top: 4px; }
.demo-out__box.is-primary { background: var(--bg-deep); border-color: transparent; }
.demo-out__box.is-primary small { color: #aab2d6; }
.demo-out__box.is-primary b { color: #fff; }
.demo-note { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; gap: 7px; align-items: center; }
.demo-note svg { width: 15px; height: 15px; color: var(--primary); flex: 0 0 auto; }

/* ============================================================
   FEATURES / WHY
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; transition: transform .25s, box-shadow .25s; }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; margin-bottom: 18px; box-shadow: var(--shadow-glow); }
.why-card .ic svg { width: 25px; height: 25px; }
.why-card h3 { font-size: 18px; margin-bottom: 9px; }
.why-card p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; }
.step__num { counter-increment: step; font-family: var(--font-head); font-weight: 700; font-size: 15px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-glow); margin-bottom: 18px; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 19px; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============================================================
   PRICING
   ============================================================ */
.price-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 44px; font-weight: 600; font-size: 15px; }
.price-toggle .save { font-size: 12px; color: var(--accent-2); background: rgba(34,197,94,.1); padding: 4px 10px; border-radius: 999px; }
.switch { width: 52px; height: 30px; border-radius: 999px; background: var(--line); position: relative; transition: background .25s; cursor: pointer; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s; }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.price-toggle .muted-label { color: var(--muted); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card.is-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); position: relative; }
.price-card.is-featured::before { content: "Beliebt"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-size: 12px; font-weight: 600; padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-glow); }
.price-card h3 { font-size: 21px; margin-bottom: 6px; }
.price-card .tag { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; min-height: 22px; }
.price-card .amount { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 4px; }
.price-card .amount .num { font-family: var(--font-head); font-size: 46px; font-weight: 700; color: var(--ink); line-height: 1; }
.price-card .amount .per { color: var(--muted); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.price-card .billed { font-size: 13px; color: var(--muted); margin-bottom: 24px; min-height: 18px; }
.price-card .btn { margin-bottom: 26px; }
.price-card ul { display: flex; flex-direction: column; gap: 13px; }
.price-card li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.price-card li svg { width: 18px; height: 18px; color: var(--accent-2); flex: 0 0 auto; margin-top: 1px; }
.price-card li.off { color: #aab1c9; }
.price-card li.off svg { color: #c7cce0; }

/* ============================================================
   AD SLOTS (Google AdSense)
   ============================================================ */
.ad-section { padding: clamp(28px, 4vw, 44px) 0; }
.ad-slot { width: 100%; max-width: 980px; margin-inline: auto; padding-inline: var(--pad); }
.ad-box {
  position: relative; min-height: 120px;
  border: 1px dashed var(--line); border-radius: var(--r-md);
  background: var(--bg-soft); display: grid; place-items: center; overflow: hidden;
}
.ad-box::before {
  content: "Anzeige"; position: absolute; top: 9px; left: 13px;
  font-family: var(--font-head); font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #aab1c9;
}
.ad-box::after {
  content: "Werbeplatz · Google AdSense"; color: #c2c8db; font-size: 13px; font-weight: 500;
}
.ad-box .adsbygoogle { position: relative; z-index: 1; display: block; width: 100%; }

/* ============================================================
   KOSTENLOS / FREE SECTION
   ============================================================ */
.free-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.free-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; text-align: center; transition: transform .25s, box-shadow .25s; }
.free-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.free-card__ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.free-card__ic svg { width: 27px; height: 27px; }
.free-card h3 { font-size: 21px; margin-bottom: 9px; }
.free-card p { color: var(--muted); font-size: 15px; }
.free-note {
  max-width: 720px; margin: clamp(32px, 5vw, 48px) auto 0; text-align: center;
  display: flex; gap: 10px; align-items: flex-start; justify-content: center;
  color: var(--muted); font-size: 14.5px; line-height: 1.6;
}
.free-note svg { width: 20px; height: 20px; color: var(--primary); flex: 0 0 auto; margin-top: 2px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.tst-card .stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 14px; font-size: 15px; }
.tst-card p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 22px; flex: 1; }
.tst-card__who { display: flex; align-items: center; gap: 12px; }
.tst-card__av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 16px; flex: 0 0 auto; }
.tst-card__who b { display: block; font-family: var(--font-head); font-size: 15px; }
.tst-card__who small { color: var(--muted); font-size: 13.5px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; background: var(--surface); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(79,70,229,.3); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 16.5px; color: var(--ink); }
.faq-q .chev { width: 22px; height: 22px; flex: 0 0 auto; color: var(--primary); transition: transform .3s; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); text-align: center; background: var(--grad-hero); color: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(600px 300px at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(600px 300px at 50% 0%, #000, transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px, 4.5vw, 46px); color: #fff; margin-bottom: 16px; }
.cta-band p { color: #c5cbe6; font-size: clamp(16px, 2vw, 19px); max-width: 560px; margin: 0 auto 30px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band__note { margin-top: 18px; font-size: 14px; color: #aab2d6; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-deep); color: #c5cbe6; padding: clamp(56px, 7vw, 84px) 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .brand { color: #fff; margin-bottom: 16px; }
.footer__brand p { font-size: 15px; color: #97a0c4; max-width: 320px; margin-bottom: 20px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #c5cbe6; transition: background .2s, color .2s, transform .2s; }
.footer__social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__col h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 15px; color: #97a0c4; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 28px; font-size: 14px; color: #818bb0; }
.footer__bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a:hover { color: #fff; }

/* ============================================================
   COOKIE BANNER · SCROLL TOP
   ============================================================ */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200; max-width: 460px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 22px; transform: translateY(160%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.cookie.show { transform: translateY(0); }
.cookie h4 { font-size: 16px; margin-bottom: 7px; }
.cookie p { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.cookie p a { color: var(--primary); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; }
.cookie .btn { padding: 11px 18px; font-size: 14px; flex: 1; }

.scrolltop { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-glow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; border: none; }
.scrolltop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scrolltop:hover { transform: translateY(-3px); }
.scrolltop svg { width: 22px; height: 22px; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { padding-top: 130px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 12px; }
.legal__lead { color: var(--muted); margin-bottom: 40px; font-size: 17px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--primary); text-decoration: underline; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--primary); font-weight: 600; text-decoration: none; }
.legal__box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin: 20px 0; }

/* ============================================================
   RECHNER-SUBPAGES (SEO Landing Pages)
   ============================================================ */
.page-hero { position: relative; background: var(--grad-hero); color: #fff; padding: 124px 0 84px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(800px 500px at 30% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(800px 500px at 30% 0%, #000 30%, transparent 75%);
}
.page-hero > .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #aab2d6; margin-bottom: 20px; }
.breadcrumb a { color: #c5cbe6; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); margin-bottom: 16px; max-width: 760px; }
.page-hero__lead { color: #c5cbe6; font-size: clamp(16px, 2vw, 19px); max-width: 640px; }
.page-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #e8eaff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 7px 13px; border-radius: 999px; }
.page-badge svg { width: 15px; height: 15px; }

.calc-page { padding-bottom: clamp(48px, 7vw, 96px); }
.calc-page__grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: 30px; align-items: start; margin-top: -56px; position: relative; z-index: 3; }
.calc-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(22px, 3vw, 32px); }
.calc-widget__head { margin-bottom: 22px; }
.calc-widget__head h2 { font-size: 21px; margin-bottom: 5px; }
.calc-widget__head p { color: var(--muted); font-size: 14.5px; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.calc-form .full { grid-column: 1 / -1; }
.calc-widget .demo-out { margin-top: 6px; }
.calc-seg { display: flex; gap: 6px; background: var(--bg-soft); padding: 5px; border-radius: 12px; margin-bottom: 4px; }
.calc-seg button { flex: 1; font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 10px 6px; border-radius: 8px; transition: all .2s; }
.calc-seg button.active { background: #fff; color: var(--primary-600); box-shadow: var(--shadow-sm); }
.calc-select { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 13px 14px; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b6486' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.calc-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }

.calc-aside { display: flex; flex-direction: column; gap: 22px; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.facts h3 { font-size: 16px; margin-bottom: 8px; }
.facts ul { display: flex; flex-direction: column; }
.facts li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; color: var(--ink-soft); }
.facts li:last-child { border-bottom: none; }
.facts li span { color: var(--muted); }
.facts li b { font-family: var(--font-head); font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Readable content blocks */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 16px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 14px; }
.prose ul { padding-left: 22px; list-style: disc; color: var(--ink-soft); margin-bottom: 14px; }
.prose ul li { margin-bottom: 7px; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose .formula { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 12px; padding: 16px 18px; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink); margin: 18px 0; }
.prose .note { background: rgba(79,70,229,.05); border: 1px solid rgba(79,70,229,.15); border-radius: 12px; padding: 16px 18px; font-size: 15px; color: var(--ink-soft); margin: 18px 0; }

/* Related calculators */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.rel-card__ic { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); }
.rel-card__ic svg { width: 22px; height: 22px; }
.rel-card b { font-family: var(--font-head); font-size: 15.5px; display: block; }
.rel-card small { color: var(--muted); font-size: 13px; }

/* Hub page list */
.hub-cat { margin-bottom: clamp(36px, 5vw, 56px); }
.hub-cat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hub-cat__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md); flex: 0 0 auto; }
.hub-cat__ic svg { width: 24px; height: 24px; }
.hub-cat__head h2 { font-size: clamp(22px, 3vw, 28px); }
.hub-cat__head p { color: var(--muted); font-size: 14.5px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; font-weight: 600; font-size: 15px; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s, color .2s; }
.hub-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(79,70,229,.3); color: var(--primary-600); }
.hub-link .arrow { width: 18px; height: 18px; color: var(--primary); flex: 0 0 auto; }
.hub-link.soon { opacity: .6; pointer-events: none; }
.hub-link .badge-soon { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg-soft); padding: 3px 9px; border-radius: 999px; }

@media (max-width: 860px) {
  .calc-page__grid { grid-template-columns: 1fr; margin-top: -40px; }
  .rel-grid, .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .calc-form { grid-template-columns: 1fr; }
  .rel-grid, .hub-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GENERATOR / TOOL-UI (Passwort, QR, Einheiten …)
   ============================================================ */
.gen-out { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 8px; }
.gen-out code { font-family: "Courier New", monospace; font-size: 18px; font-weight: 700; color: var(--ink); word-break: break-all; flex: 1; line-height: 1.4; }
.copy-btn { flex: 0 0 auto; padding: 9px 14px; font-size: 14px; }
.copy-btn.copied { background: var(--accent-2); color: #fff; border-color: transparent; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.pw-strength { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 16px; }
.pw-strength i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .3s ease, background .3s ease; }
.pw-strength-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.qr-canvas { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-height: 220px; margin-top: 8px; }
.qr-canvas svg, .qr-canvas img { width: 210px; height: 210px; image-rendering: pixelated; }
.qr-canvas .hint { color: var(--muted); font-size: 14px; text-align: center; }
.unit-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; }
.unit-eq { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--muted); padding-bottom: 12px; text-align: center; }
@media (max-width: 560px) {
  .checks { grid-template-columns: 1fr; }
  .unit-row { grid-template-columns: 1fr; }
  .unit-eq { display: none; }
}

/* ============================================================
   EINBETTEN-TOOL & EMBED-ANSICHT
   ============================================================ */
.embed-tool { max-width: 760px; margin: 26px auto 0; text-align: center; }
.embed-box { margin-top: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; text-align: left; }
.embed-box p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.embed-code { width: 100%; font-family: "Courier New", monospace; font-size: 12.5px; line-height: 1.5; border: 1px solid var(--line); border-radius: 10px; padding: 12px; resize: vertical; background: #fff; color: var(--ink); margin-bottom: 12px; }
.embed-credit { text-align: center; font-size: 13px; color: var(--muted); padding: 16px 0 8px; }
.embed-credit a { color: var(--primary); font-weight: 600; text-decoration: none; }
.embed-credit a:hover { text-decoration: underline; }

/* Embed-Ansicht (?embed=1): nur den Rechner anzeigen */
html.embed body { background: #fff; }
html.embed .nav, html.embed .page-hero, html.embed .ad-section, html.embed .calc-aside,
html.embed .footer, html.embed .cookie, html.embed .scrolltop, html.embed #faq,
html.embed .section, html.embed .embed-tool { display: none !important; }
html.embed main { padding: 0; }
html.embed .calc-page { padding: 14px 0 0 !important; }
html.embed .calc-page__grid { grid-template-columns: 1fr !important; margin-top: 0 !important; gap: 0; }
html.embed .calc-widget { box-shadow: none; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Inhalte sind standardmäßig sichtbar. Nur wenn JavaScript aktiv ist (html.js-anim),
   werden sie vor der Einblende-Animation ausgeblendet – so bleibt die Seite auch
   ohne/bei fehlerhaftem JS vollständig nutzbar. */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 460px; }
  .demo { grid-template-columns: 1fr; }
  .tools-grid, .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .free-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta .nav__login, .nav__cta .btn { display: none; }
  .burger { display: flex; }
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 16px var(--pad) 26px; flex-direction: column; align-items: stretch; gap: 4px;
    display: none;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { color: var(--ink); font-size: 16px; padding: 13px 12px; border-radius: 10px; }
  .nav__menu a:hover { background: var(--bg-soft); }
  .nav__menu .btn { margin-top: 10px; display: inline-flex; }
  .nav__menu .nav__login { display: block; color: var(--ink); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .price-grid, .steps { grid-template-columns: 1fr; }
  .price-card.is-featured { order: -1; }
  .demo-grid { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 20px 32px; }
}
@media (max-width: 560px) {
  .tools-grid, .tst-grid, .why-grid, .free-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .demo-out { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .calc-card__float { display: none; }
}
