:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #dbe3ee;
  --ink: #1f2d3d;
  --muted: #6b7a90;
  --accent: #1c6dd0;
  --good: #1a7f4b;
  --bad: #c0392b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(var(--bg), #e7eef8);
  min-height: 100vh;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 28px 20px 60px; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(20, 40, 80, 0.05);
}
label { display: block; font-size: 0.86rem; color: var(--muted); margin: 12px 0 4px; }
input, select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
button {
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
button:hover { background: #1559a8; }
.hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.fehler { background: #fdecea; color: var(--bad); border: 1px solid #f5c6c0; padding: 12px 14px; border-radius: 8px; }
.demo { background: #fff4e0; color: #8a5a00; border: 1px solid #f0d9a8; padding: 10px 14px; border-radius: 8px; margin-bottom: 20px; }
.scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.big { font-size: 1.8rem; font-weight: 700; }
.kpi { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.kpi:last-child { border-bottom: 0; }
.kpi .v { font-variant-numeric: tabular-nums; }
.good { color: var(--good); }
.bad { color: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
tr.verlaengerung td { background: #eef6ee; color: #2f6b34; }
.ampel { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; border: 1px solid; }
.ampel .dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.ampel-gruen { background: #e9f7ec; color: #1c6b2c; border-color: #b6e0bf; }
.ampel-gruen .dot { background: #2ca03f; }
.ampel-gelb { background: #fff6e0; color: #8a5a00; border-color: #f0d9a8; }
.ampel-gelb .dot { background: #e0a300; }
.ampel-rot { background: #fdecea; color: #a3271c; border-color: #f5c6c0; }
.ampel-rot .dot { background: #d33526; }
a.back { color: var(--accent); text-decoration: none; }
.abk { columns: 2; column-gap: 28px; }
.abk .item { break-inside: avoid; margin-bottom: 9px; font-size: 0.9rem; }
.abk .item b { display: block; }
.abk .item span { color: var(--muted); }
@media (max-width: 640px) { .abk { columns: 1; } }
.lockliste { list-style: none; margin: 4px 0 16px; padding: 0; }
.lockliste li { position: relative; padding: 7px 0 7px 26px; font-size: 0.9rem; border-bottom: 1px dashed var(--line); }
.lockliste li:last-child { border-bottom: 0; }
.lockliste li::before { content: "🔒"; position: absolute; left: 0; top: 6px; font-size: 0.78rem; }
@media (max-width: 640px) { .grid, .scenarios { grid-template-columns: 1fr; } }

/* --- Formular: Tooltips, Optional-Badges, Toggles ------------------------- */
label.lbl { position: relative; cursor: help; }
label.lbl .i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-left: 3px; border-radius: 50%;
  border: 1px solid var(--muted); color: var(--muted);
  font-size: 0.6rem; font-weight: 700; font-style: normal; line-height: 1;
  vertical-align: middle; text-transform: none;
}
label.lbl:hover .i, label.lbl:focus-within .i { border-color: var(--accent); color: var(--accent); }
label.lbl::after {
  content: attr(data-tip);
  position: absolute; left: 0; top: calc(100% + 5px); z-index: 30;
  width: min(300px, 78vw);
  background: var(--ink); color: #fff; padding: 9px 12px; border-radius: 8px;
  font-size: 0.76rem; font-weight: 400; line-height: 1.45; text-align: left;
  white-space: normal; letter-spacing: normal; text-transform: none;
  opacity: 0; visibility: hidden; transform: translateY(-3px);
  transition: opacity .12s, transform .12s;
  box-shadow: 0 6px 18px rgba(20, 40, 80, 0.22); pointer-events: none;
}
label.lbl:hover::after, label.lbl:focus-within::after { opacity: 1; visibility: visible; transform: translateY(0); }
.opt {
  display: inline-block; font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent);
  background: #e7f0fb; border: 1px solid #cfe1f7; padding: 1px 8px;
  border-radius: 20px; margin-left: 8px; vertical-align: middle;
}
.pflicht { color: var(--bad); font-weight: 700; margin-left: 1px; cursor: help; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 0.92rem; color: var(--ink); margin: 0 0 6px;
}
.toggle input { width: auto; margin: 0; accent-color: var(--accent); }
.legende {
  font-size: 0.8rem; color: var(--muted); margin: 10px 0 22px;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.legende .i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--muted);
  font-size: 0.6rem; font-weight: 700; margin-right: 5px; vertical-align: middle;
}
.minilink { font-size: 0.76rem; color: var(--accent); text-decoration: none; }
.minilink:hover { text-decoration: underline; }
.logo { height: 36px; width: auto; display: block; margin: 0 0 12px; }
.topnav .brand .logo { height: 40px; margin: 0; }

/* --- Startseite (Landing) ------------------------------------------------- */
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 20px 20px 60px; }
.topnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.topnav .brand { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.topnav .brand .leaf { color: var(--good); }
.topnav .links a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 0.9rem; }
.topnav .links a:hover { color: var(--accent); }

.cta {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 13px 26px; border-radius: 8px; font-size: 1.02rem; font-weight: 600; margin-top: 8px;
}
.cta:hover { background: #1559a8; }
.cta.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.cta.ghost:hover { background: #eaf1fb; }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 36px; margin-bottom: 26px; box-shadow: 0 1px 3px rgba(20,40,80,0.05); }
.hero h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 14px; }
.hero p.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.5; margin: 0 0 22px; }
.hero .cta + .cta { margin-left: 10px; }
.hero-art img, .hero-art svg { width: 100%; height: auto; display: block; border-radius: 14px; }
.hero-art img { box-shadow: 0 2px 10px rgba(20,40,80,0.12); }
.pricehint { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 26px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(20,40,80,0.05); }
.feature .ico { width: 54px; height: 54px; margin-bottom: 12px; }
.feature h3 { font-size: 1.02rem; margin: 0 0 6px; }
.feature p { font-size: 0.9rem; color: var(--muted); line-height: 1.45; margin: 0; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 34px;
  margin-bottom: 26px; box-shadow: 0 1px 3px rgba(20,40,80,0.05); }
.split-art svg { width: 100%; height: auto; display: block; }
.split h2 { font-size: 1.3rem; }
.split ul { margin: 12px 0 0; padding-left: 0; list-style: none; }
.split li { position: relative; padding: 7px 0 7px 28px; font-size: 0.95rem; border-bottom: 1px dashed var(--line); }
.split li:last-child { border-bottom: 0; }
.split li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--good); font-weight: 700; }

.band { text-align: center; background: linear-gradient(120deg, #1c6dd0, #1a7f4b); color: #fff;
  border-radius: 16px; padding: 34px; margin-bottom: 26px; }
.band h2 { color: #fff; font-size: 1.5rem; margin: 0 0 10px; }
.band p { color: #eaf1fb; margin: 0 0 20px; }
.band .cta { background: #fff; color: var(--accent); }
.band .cta:hover { background: #eaf1fb; }

.footer { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; color: var(--muted); font-size: 0.85rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }

@media (max-width: 780px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero h1 { font-size: 1.6rem; }
}

/* Jahresverlauf-Teaser (kommerziell): Einzelwerte unkenntlich, nur "Kumuliert n. St." sichtbar */
table.teaser td.wmnum { filter: blur(6px); -webkit-filter: blur(6px); color: #8a94a3; user-select: none; }
.wm-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='230' height='120'><text x='4' y='78' transform='rotate(-24 115 60)' font-family='sans-serif' font-size='20' font-weight='bold' fill='%23c0392b' fill-opacity='0.16'>VORSCHAU</text></svg>");
}
