/* ============================================================
   Kalkulio — Vollständiges Design-System
   Warm off-white · sattes Grün · Amber-Akzent · Space Grotesk
   Mobile-first · Desktop max 980px
   ============================================================ */

:root {
  --bg: #f3f2ec;
  --surface: #ffffff;
  --surface-2: #faf9f4;
  --surface-3: #f1efe7;
  --ink: #18211b;
  --ink-2: #444c46;
  --ink-3: #767d76;
  --line: #e6e4da;
  --line-2: #efeee6;
  --g-900: #123524;
  --g-700: #1d6b3e;
  --g-600: #25814b;
  --g-500: #2f9356;
  --g-300: #8cc9a4;
  --g-100: #dcefe2;
  --g-050: #eef6f0;
  --amber: #f3c64a;
  --amber-600: #e2ab1f;
  --amber-100: #fbf0cf;
  --r-xl: 26px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px; --pill: 999px;
  --sh-sm: 0 1px 2px rgba(24,33,27,.04);
  --sh-md: 0 6px 22px -10px rgba(24,33,27,.14), 0 1px 2px rgba(24,33,27,.04);
  --sh-lg: 0 24px 60px -28px rgba(18,53,36,.30);
  --maxw: 980px; --gutter: 18px;
  --font-ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-ui);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-ui); background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: -.02em; color: var(--ink);
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(150deg, var(--g-600), var(--g-900));
  display: grid; place-items: center; color: #fff; font-size: 16px;
  box-shadow: var(--sh-sm); flex: 0 0 auto;
}
.logo .io { color: var(--g-600); }
.header-spacer { flex: 1 1 auto; }
.nav-link {
  font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  padding: 9px 12px; border-radius: var(--pill); white-space: nowrap;
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); }

/* ---- dropdown (details/summary) ---- */
.dd { position: relative; }
.dd > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: var(--pill);
  box-shadow: var(--sh-sm); white-space: nowrap; user-select: none;
}
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary:hover { border-color: var(--g-300); }
.dd[open] > summary { border-color: var(--g-500); box-shadow: 0 0 0 3px var(--g-100); }
.dd .chev { transition: transform .18s; color: var(--ink-3); }
.dd[open] .chev { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-md); padding: 7px; z-index: 60;
  max-height: 320px; overflow: auto;
}
.dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; width: 100%; background: none; border: 0; text-align: left;
}
.dd-item:hover { background: var(--surface-3); color: var(--ink); }
.dd-item.is-active { background: var(--g-050); color: var(--g-700); font-weight: 700; }
.dd-item .flag { font-size: 15px; }
.dd-item .tick { margin-left: auto; color: var(--g-600); opacity: 0; }
.dd-item.is-active .tick { opacity: 1; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; padding: 11px 18px;
  border-radius: var(--pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .06s, background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-sm); }
.btn-ghost:hover { border-color: var(--g-300); }
.btn-sm { padding: 8px 13px; font-size: 13.5px; }

/* ========== AD PLACEHOLDERS ========== */
.ad {
  position: relative; border-radius: var(--r-md); border: 1px dashed var(--line);
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 11px, var(--surface-3) 11px 22px);
  color: var(--ink-3); display: grid; place-items: center; text-align: center; overflow: hidden;
}
.ad::before {
  content: attr(data-ad-label); position: absolute; top: 8px; left: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 2px 7px; border-radius: var(--pill);
}
.ad-label { font-size: 12.5px; font-weight: 500; opacity: .8; }
.ad-banner { min-height: 96px; }
.ad-incontent { min-height: 130px; }
@media (min-width: 760px) { .ad-banner { min-height: 114px; } .ad-incontent { min-height: 160px; } }

/* ========== FOOTER ========== */
.site-footer { margin-top: 40px; background: var(--g-900); color: #cfe0d4; }
.footer-grid { display: grid; gap: 26px; padding-block: 38px 26px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } }
.footer-brand .logo { color: #fff; font-size: 20px; }
.footer-brand .logo .io { color: var(--amber); }
.footer-brand .logo-mark { background: rgba(255,255,255,.12); }
.footer-tag { margin: 12px 0 0; font-size: 14px; color: #9fb6a6; max-width: 36ch; }
.footer-col h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7e9787; font-weight: 700; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: #c4d6c9; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding-block: 18px 26px; font-size: 12.5px; color: #88a191; }

/* ========== BADGES / UTILS ========== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--pill);
}
.badge-green { background: var(--g-100); color: var(--g-700); }
.badge-amber { background: var(--amber-100); color: var(--amber-600); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  flex: 0 0 auto; background: var(--g-050); font-size: 21px; line-height: 1;
}
.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }
.hide-mobile { display: none; }
@media (min-width: 760px) { .hide-mobile { display: initial; } }

/* ========== CATEGORY SECTIONS ========== */
.cat-section { margin-top: 40px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cat-head .ico { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
.cat-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; margin: 0; }
.cat-head .count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.calc-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .calc-grid { grid-template-columns: 1fr 1fr 1fr; } }
.calc-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--sh-sm); position: relative;
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.calc-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--g-300); }
.calc-card .cc-top { display: flex; align-items: center; gap: 11px; }
.calc-card h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.calc-card p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.calc-card .cc-go { position: absolute; top: 14px; right: 14px; color: var(--ink-3); opacity: 0; transition: opacity .15s, transform .15s; transform: translateX(-4px); }
.calc-card:hover .cc-go { opacity: 1; transform: translateX(0); color: var(--g-600); }

/* ========== CALC PAGE TEMPLATE ========== */
.breadcrumb {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3); padding-block: 16px 4px;
}
.breadcrumb a:hover { color: var(--g-700); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur-crumb { color: var(--ink-2); font-weight: 600; }
.calc-head { padding-top: 8px; }
.calc-head h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.06;
  font-size: clamp(28px, 6.6vw, 42px); margin: 12px 0 0; text-wrap: balance;
}
.calc-head .sub { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); max-width: 60ch; }
.author-row {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap;
}
.author-row .av {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--g-300), var(--g-700));
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
}
.author-row .verified { display: inline-flex; align-items: center; gap: 5px; color: var(--g-700); font-weight: 600; }

/* answer block */
.answer {
  margin-top: 22px; background: var(--g-050); border: 1px solid var(--g-100);
  border-left: 4px solid var(--g-600); border-radius: var(--r-md); padding: 18px 20px;
}
.answer h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.answer p { margin: 9px 0 0; font-size: 15.5px; color: var(--ink); line-height: 1.6; }

/* ========== CALCULATOR CARD ========== */
.calc-wrap { margin-top: 22px; }
.calc-shell {
  display: grid; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-md); overflow: hidden;
}
@media (min-width: 760px) { .calc-shell { grid-template-columns: 1.05fr .95fr; } }
.calc-inputs { padding: 22px; }
.calc-inputs .panel-h {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 16px;
}
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 9px;
}
.val-pill {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink);
  background: var(--surface-3); padding: 3px 10px; border-radius: var(--pill);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.input-affix {
  display: flex; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); transition: border-color .15s, box-shadow .15s; overflow: hidden;
}
.input-affix:focus-within { border-color: var(--g-500); box-shadow: 0 0 0 4px var(--g-100); }
.input-affix .affix {
  padding: 0 13px; color: var(--ink-3); font-weight: 600; font-size: 15px;
  background: var(--surface-2); align-self: stretch; display: grid; place-items: center;
  border-right: 1px solid var(--line);
}
.input-affix .affix.suffix { border-right: 0; border-left: 1px solid var(--line); }
.input-affix input {
  border: 0; outline: 0; background: none; font: inherit;
  font-size: 16px; font-weight: 600; color: var(--ink);
  padding: 12px 13px; width: 100%; min-width: 0;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.input-affix input::-webkit-outer-spin-button,
.input-affix input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* range slider */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin-top: 14px;
  border-radius: 999px; cursor: pointer; background: var(--surface-3);
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: var(--surface); border: 5px solid var(--g-600); box-shadow: var(--sh-md);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--surface-3); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 5px solid var(--g-600);
}
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 7px; }

/* native select */
.kselect { position: relative; display: inline-flex; align-items: center; }
.kselect select {
  -webkit-appearance: none; appearance: none; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--pill); padding: 9px 36px 9px 14px; cursor: pointer;
}
.kselect select:focus { outline: 0; border-color: var(--g-500); box-shadow: 0 0 0 4px var(--g-100); }
.kselect .caret { position: absolute; right: 12px; pointer-events: none; color: var(--ink-3); font-size: 11px; }

/* fieldselect */
.fieldselect {
  -webkit-appearance: none; appearance: none;
  width: 100%; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px; cursor: pointer;
}
.fieldselect:focus { outline: 0; border-color: var(--g-500); box-shadow: 0 0 0 4px var(--g-100); }

/* ========== RESULTS PANEL ========== */
.calc-results {
  padding: 22px; background: linear-gradient(170deg, var(--g-900), #0e2c1d);
  color: #e7f1ea; display: flex; flex-direction: column;
}
.calc-results .res-h {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #8fb39e; margin: 0 0 6px;
}
.res-primary-label { font-size: 14px; color: #b9cfc1; }
.res-primary {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 10vw, 56px); line-height: 1; letter-spacing: -.03em;
  margin: 6px 0 2px; color: #fff; font-variant-numeric: tabular-nums;
}
.res-primary .cur { font-size: .45em; color: var(--amber); margin-right: .12em; vertical-align: .08em; }
.res-secondary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: 20px; background: rgba(255,255,255,.08);
  border-radius: var(--r-md); overflow: hidden;
}
.res-secondary .rs { background: rgba(255,255,255,.04); padding: 13px 14px; }
.res-secondary .rs .l { font-size: 12.5px; color: #9fbcab; }
.res-secondary .rs .v {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  margin-top: 4px; color: #fff; font-variant-numeric: tabular-nums;
}
.breakdown { margin-top: 20px; }
.breakdown .bd-bar {
  height: 14px; border-radius: 999px; overflow: hidden;
  display: flex; background: rgba(255,255,255,.1);
}
.seg-principal { background: var(--g-300); }
.seg-interest  { background: var(--amber); }
.breakdown .bd-legend { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.breakdown .bd-legend .lg { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cfe0d4; }
.breakdown .bd-legend .sw { width: 11px; height: 11px; border-radius: 3px; }
.breakdown .bd-legend .sw.p { background: var(--g-300); }
.breakdown .bd-legend .sw.i { background: var(--amber); }
.breakdown .bd-legend b { color: #fff; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.res-spacer { flex: 1 1 auto; min-height: 8px; }

/* action row */
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.calc-actions .spacer { flex: 1 1 auto; }
.copied-toast { font-size: 13px; font-weight: 600; color: var(--g-700); opacity: 0; transition: opacity .2s; }
.copied-toast.show { opacity: 1; }

/* amort table */
details.amort, details.faq-item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
}
details.amort { margin-top: 16px; }
details.amort > summary, details.faq-item > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; font-weight: 600; font-size: 15px;
}
details > summary::-webkit-details-marker { display: none; }
details.amort > summary .sum-ico, details.faq-item > summary .sum-ico {
  margin-left: auto; color: var(--ink-3); transition: transform .2s; flex: 0 0 auto;
}
details[open].amort > summary .sum-ico,
details[open].faq-item > summary .sum-ico { transform: rotate(180deg); }
details.amort > summary:hover, details.faq-item > summary:hover { background: var(--surface-2); }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table.amort-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 440px; }
table.amort-table th, table.amort-table td { padding: 11px 16px; text-align: right; font-variant-numeric: tabular-nums; }
table.amort-table th {
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; background: var(--surface-2); position: sticky; top: 0;
}
table.amort-table th:first-child, table.amort-table td:first-child { text-align: left; }
table.amort-table tbody tr { border-top: 1px solid var(--line-2); }
table.amort-table tbody tr:nth-child(even) { background: var(--surface-2); }
table.amort-table td.y { font-weight: 700; color: var(--ink); }

/* prose */
.prose { margin-top: 34px; max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; margin: 30px 0 12px; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.prose ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--g-500); }
.prose strong { color: var(--ink); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.faq-item > summary { font-size: 15.5px; }
.faq-body { padding: 0 18px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

/* section heading */
.blk-h { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 34px 0 0; }
.blk-sub { margin: 6px 0 0; color: var(--ink-3); font-size: 14.5px; }

/* YMYL */
.ymyl {
  margin-top: 22px; display: flex; gap: 12px; align-items: flex-start;
  background: var(--amber-100); border: 1px solid color-mix(in srgb, var(--amber) 50%, var(--line));
  border-radius: var(--r-md); padding: 14px 16px;
  font-size: 13px; color: #6b5618; line-height: 1.55;
}
.ymyl svg { flex: 0 0 auto; color: var(--amber-600); margin-top: 1px; }

/* country select */
.country { margin-bottom: 16px; }
.country label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }

/* related */
.related { margin-top: 22px; }

/* converter */
.conv-row { display: grid; gap: 12px; }
@media (min-width: 600px) { .conv-row { grid-template-columns: 1fr auto 1fr; align-items: end; } }
.conv-swap { display: grid; place-items: center; }
.conv-swap button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--g-700); cursor: pointer; display: grid; place-items: center; box-shadow: var(--sh-sm);
}
.conv-swap button:hover { border-color: var(--g-300); }
.conv-swap button:active { transform: rotate(180deg); transition: transform .25s; }

/* ========== HOMEPAGE HERO ========== */
.hero { position: relative; padding-block: 26px 8px; }
.hero-grid { display: grid; gap: 30px; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; } .hero { padding-block: 44px 10px; } }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: var(--g-700);
  background: var(--g-050); border: 1px solid var(--g-100);
  padding: 6px 13px 6px 11px; border-radius: var(--pill);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--g-500); flex: 0 0 auto; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 2.4s ease-out infinite; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--g-500) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(36px, 8.5vw, 60px); margin: 18px 0 0; text-wrap: balance;
}
.hero h1 .hl { color: var(--g-600); }
.hero p.lede { margin: 15px 0 0; font-size: 16.5px; color: var(--ink-2); max-width: 46ch; }
.home-search {
  margin-top: 22px; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 7px 7px 7px 16px; box-shadow: var(--sh-md); max-width: 520px;
}
.home-search:focus-within { border-color: var(--g-500); box-shadow: 0 0 0 4px var(--g-100), var(--sh-md); }
.home-search svg { color: var(--ink-3); flex: 0 0 auto; }
.home-search input { border: 0; outline: 0; background: none; flex: 1; font: inherit; font-size: 15px; color: var(--ink); min-width: 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.hero-trust .t-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.hero-trust .t-item svg { color: var(--g-600); }
.flag-strip { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.flag-strip .flags { display: flex; }
.flag-strip .flags span {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid rgba(255,255,255,.9);
  display: grid; place-items: center; font-size: 16px;
  margin-left: -9px; box-shadow: 0 4px 10px -5px rgba(18,53,36,.35);
}
.flag-strip .flags span:first-child { margin-left: 0; }
.flag-strip .flags .more { background: var(--g-700); color: #fff; font-size: 11px; font-weight: 700; }
.flag-strip .fs-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

/* floating cards */
.hero-visual { position: relative; min-height: 310px; display: grid; place-items: center; }
.fc-blob {
  position: absolute; inset: 8% 4% 18% 8%;
  background: radial-gradient(120% 100% at 30% 20%, var(--g-100), transparent 62%),
              radial-gradient(120% 120% at 85% 90%, var(--amber-100), transparent 60%);
  filter: blur(8px); z-index: 0; border-radius: 50%;
}
.fc { position: relative; z-index: 1; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
@media (prefers-reduced-motion: no-preference) {
  .fc-main { animation: floatUp .7s cubic-bezier(.2,.7,.2,1) backwards; }
  .fc-bmi  { animation: floatUp .7s cubic-bezier(.2,.7,.2,1) .12s backwards; }
  .fc-conv { animation: floatUp .7s cubic-bezier(.2,.7,.2,1) .22s backwards; }
}
@keyframes floatUp { from { transform: translateY(18px); } }
.fc-main {
  width: min(320px, 76vw); background: linear-gradient(165deg, var(--g-900), #0d2a1c);
  color: #e7f1ea; padding: 20px; border: 1px solid rgba(255,255,255,.06);
}
.fc-main-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fc-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: #cfe6d8;
  background: rgba(255,255,255,.08); padding: 5px 11px 5px 9px; border-radius: var(--pill);
}
.fc-tag .pulse { background: var(--amber); }
.fc-cat { font-size: 12px; font-weight: 600; color: #8fb39e; }
.fc-label { font-size: 13.5px; color: #9fbcab; }
.fc-big {
  font-family: var(--font-display); font-weight: 600; font-size: 52px;
  line-height: 1; letter-spacing: -.03em; color: #fff; margin: 6px 0 16px; font-variant-numeric: tabular-nums;
}
.fc-big .cur { font-size: .42em; color: var(--amber); margin-right: .14em; vertical-align: .12em; }
.fc-bar { height: 12px; border-radius: 999px; overflow: hidden; display: flex; background: rgba(255,255,255,.1); }
.fc-bar .p { width: 86%; background: var(--g-300); }
.fc-bar .i { width: 14%; background: var(--amber); }
.fc-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: #9fbcab; }
.fc-meta b { color: #fff; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-bmi, .fc-conv {
  position: absolute; z-index: 2;
  background: var(--surface); border: 1px solid var(--line); padding: 13px 15px;
}
.fc-bmi { top: 6%; right: 0; width: 165px; }
.fc-conv { bottom: 4%; left: 0; width: 188px; }
.fc-mini-head { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--ink-3); text-transform: uppercase; }
.fc-mini-num { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; color: var(--ink); margin-top: 8px; }
.fc-gauge { height: 6px; border-radius: 999px; background: var(--surface-3); margin-top: 11px; overflow: hidden; }
.fc-gauge span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--amber), var(--g-500)); }
.fc-conv-row { display: flex; align-items: center; gap: 9px; margin-top: 9px; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.fc-conv-row .to { color: var(--g-700); }
@media (max-width: 460px) {
  .fc-bmi { top: 0; right: -2px; width: 138px; transform: scale(.92); transform-origin: top right; }
  .fc-conv { bottom: 0; left: -2px; width: 168px; transform: scale(.92); transform-origin: bottom left; }
}

/* home stats */
.home-stats { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 26px; }
.home-stats .s-num { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.02em; line-height: 1; }
.home-stats .s-lab { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ========== AURORA + GLASS (body.home) ========== */
body.home::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 42% at 10% 6%, rgba(47,147,86,.20), transparent 60%),
    radial-gradient(42% 38% at 94% 4%, rgba(243,198,74,.22), transparent 60%),
    radial-gradient(52% 48% at 86% 72%, rgba(47,147,86,.16), transparent 62%),
    radial-gradient(46% 42% at 4% 92%, rgba(243,198,74,.14), transparent 60%);
}
body.home .site-header, body.home main, body.home .site-footer { position: relative; z-index: 1; }
.home .calc-card {
  background: linear-gradient(155deg, rgba(255,255,255,.74), rgba(255,255,255,.46));
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 16px 36px -22px rgba(18,53,36,.45), inset 0 1px 0 rgba(255,255,255,.7);
}
.home .calc-card:hover {
  background: linear-gradient(155deg, rgba(255,255,255,.9), rgba(255,255,255,.66));
  border-color: rgba(140,201,164,.95);
}
.home .calc-card .ico, .home .cat-head .ico {
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .18s cubic-bezier(.2,.7,.2,1);
}
.home .calc-card:hover .ico { transform: scale(1.08) rotate(-4deg); }
/* category tints */
.home .calc-card[data-cat="finanzen"] .ico,
.home .cat-section[data-cat="finanzen"] .cat-head .ico { background: rgba(47,147,86,.16); }
.home .calc-card[data-cat="gesundheit"] .ico,
.home .cat-section[data-cat="gesundheit"] .cat-head .ico { background: rgba(214,84,63,.16); }
.home .calc-card[data-cat="alltag"] .ico,
.home .cat-section[data-cat="alltag"] .cat-head .ico { background: rgba(226,171,31,.20); }
.home .calc-card[data-cat="business"] .ico,
.home .cat-section[data-cat="business"] .cat-head .ico { background: rgba(47,106,168,.16); }
.home .calc-card[data-cat="einheiten"] .ico,
.home .cat-section[data-cat="einheiten"] .cat-head .ico { background: rgba(35,129,107,.16); }

/* ========== DISCOVERY TRACKER ========== */
.discover {
  margin-top: 30px; display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, var(--g-900), #12402a);
  color: #e7f1ea; border-radius: var(--r-lg); padding: 18px 20px;
  box-shadow: var(--sh-md); position: relative; overflow: hidden;
}
.discover::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--amber) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.discover-ring { flex: 0 0 auto; position: relative; width: 64px; height: 64px; }
.discover-ring svg { transform: rotate(-90deg); display: block; }
.discover-ring .track { stroke: rgba(255,255,255,.14); }
.discover-ring .bar { stroke: var(--amber); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2,.7,.2,1); }
.discover-ring .pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; font-variant-numeric: tabular-nums;
}
.discover-text { flex: 1 1 auto; min-width: 0; }
.discover-text .dt-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.discover-text .dt-title b { color: var(--amber); }
.discover-text .dt-sub { font-size: 13px; color: #9fbcab; margin-top: 3px; }
@keyframes popIn { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.discover.celebrate .discover-ring { animation: popIn .5s ease; }

/* ========== TRENDING RAIL ========== */
.trend-head { display: flex; align-items: baseline; gap: 10px; margin: 38px 0 14px; }
.trend-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; margin: 0; }
.trend-head .sub { font-size: 13px; color: var(--ink-3); margin-left: auto; }
.trend-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.trend-rail::-webkit-scrollbar { display: none; }
@media (min-width: 620px) { .trend-rail { grid-auto-columns: 300px; } }
.trend-card {
  scroll-snap-align: start; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; display: flex; align-items: center; gap: 13px; box-shadow: var(--sh-sm);
  transition: transform .14s, box-shadow .15s, border-color .15s;
}
.trend-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--g-300); }
.trend-rank {
  position: absolute; right: 10px; bottom: -10px;
  font-family: var(--font-display); font-weight: 700; font-size: 64px;
  color: var(--surface-3); line-height: 1; z-index: 0; letter-spacing: -.04em;
}
.trend-card .ico, .trend-card .t-body { position: relative; z-index: 1; }
.trend-card h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.trend-card .uses { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; display: inline-flex; align-items: center; gap: 6px; }
.trend-card .spark { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-left: auto; position: relative; z-index: 1; }
.trend-card .spark i { width: 4px; border-radius: 2px; background: var(--g-300); display: block; }

/* ========== FILTER CHIPS ========== */
.filterbar {
  position: sticky; top: 61px; z-index: 40; margin: 34px 0 4px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-radius: var(--pill); padding: 7px; border: 1px solid var(--line);
  box-shadow: var(--sh-sm); display: flex; align-items: center; gap: 8px;
}
.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: var(--pill);
  transition: background .15s, color .15s, border-color .15s, transform .08s; white-space: nowrap;
}
.chip:hover { border-color: var(--g-300); color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip .ct { font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--surface-3); padding: 1px 7px; border-radius: var(--pill); font-variant-numeric: tabular-nums; }
.chip.is-active { background: var(--g-700); color: #fff; border-color: var(--g-700); }
.chip.is-active .ct { background: rgba(255,255,255,.2); color: #fff; }
.cat-section.filtered-out { display: none; }

/* visited */
.cc-done {
  position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--g-600); color: #fff; display: none; place-items: center; z-index: 2;
}
.calc-card.visited .cc-done { display: grid; }
.calc-card.visited .cc-go { display: none; }
.calc-card.visited { border-color: var(--g-300); }

/* scroll reveals */
.reveal-prepared { transform: translateY(15px); }
.reveal-prepared.is-in { transform: none; transition: transform .55s cubic-bezier(.2,.7,.2,1); }

/* ── Example comparison tables ─────────────────────────────────── */
.ex-table-wrap {
  margin: 32px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 22px 16px;
  box-shadow: var(--sh-sm);
}
.ex-table-wrap h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ex-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  white-space: nowrap;
}
.ex-table th, .ex-table td {
  padding: 7px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line-2);
}
.ex-table th:first-child, .ex-table td:first-child { text-align: left; font-weight: 600; }
.ex-table thead th {
  background: var(--g-050);
  color: var(--g-700);
  font-weight: 700;
  font-size: .78rem;
  border-bottom: 2px solid var(--g-100);
}
.ex-table tbody tr:last-child td, .ex-table tbody tr:last-child th { border-bottom: none; }
.ex-table tbody tr:hover td, .ex-table tbody tr:hover th { background: var(--surface-2); }
.ex-table-3 { min-width: 320px; }
/* BMI cell colours */
.bmi-u { background: #e8f4fd; color: #1565c0; }
.bmi-n { background: var(--g-050); color: var(--g-700); font-weight: 600; }
.bmi-ov { background: #fff8e1; color: #e65100; }
.bmi-ob { background: #fce4ec; color: #b71c1c; }
.ex-note {
  margin: 10px 0 0;
  font-size: .78rem;
  color: var(--ink-3);
}
