:root {
  --blue: #0b5c8a; --blue-dark: #083e5e; --blue-light: #e8f2f8; --ink: #1b2733; --muted: #5d6b78;
  --line: #dbe4ec; --bg: #f4f7fa; --green: #12805c; --orange: #d9822b; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Kopf + Navigation */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { height: 40px; width: auto; border-radius: 8px; }
.nav { display: flex; gap: 4px; }
.nav details { position: relative; }
.nav summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--blue-dark); }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: " ▾"; font-size: .8em; }
.nav summary:hover, .nav details[open] summary { background: var(--blue-light); }
.nav ul { list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(8,62,94,.12); min-width: 240px; }
.nav li a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.nav li a:hover { background: var(--blue-light); }
.menu-btn { display: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; padding: 44px 0 90px; }
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.2; margin: 0 0 12px; }
.hero p { margin: 0; max-width: 680px; color: #d7e9f5; font-size: 1.08rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badges span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 4px 12px; border-radius: 99px; font-size: .9rem; }

/* Rechner */
.calc { margin-top: -60px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(8,62,94,.08); padding: 24px; }
.card h2 { margin: 0 0 18px; font-size: 1.3rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid #c4d2de; border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 3px solid rgba(11,92,138,.18); border-color: var(--blue); }
.brutto-row { display: grid; grid-template-columns: 1fr 130px; gap: 10px; }
.brutto-row input { font-size: 1.25rem; font-weight: 700; }
details.more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
details.more > summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); margin-bottom: 14px; }
.btn { margin-top: 20px; width: 100%; padding: 14px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: 700 1.1rem/1 inherit; font-family: inherit; cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
[hidden] { display: none !important; }
.calc > *, .grid2 > *, .brutto-row > *, .field > * { min-width: 0; }
#ergebnis { overflow-x: auto; }

/* Ergebnis */
#ergebnis:empty::before { content: attr(data-leer); display: block; color: var(--muted); padding: 30px 6px; text-align: center; }
.result-card { background: var(--blue-light); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.result-label { margin: 0; color: var(--muted); font-weight: 600; }
.result-value { margin: 4px 0 0; font-size: 2.3rem; font-weight: 800; color: var(--green); line-height: 1.15; }
.result-value span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.result-sub { margin: 2px 0 12px; color: var(--muted); }
.bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #dfe8ef; }
.bar-netto { background: var(--green); } .bar-steuer { background: var(--orange); } .bar-sv { background: var(--blue); }
.legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.result-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.result-table th, .result-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.result-table th:first-child, .result-table td:first-child { text-align: left; white-space: normal; }
.result-table th { color: var(--muted); font-weight: 600; }
.result-table tr.group td { background: #f6f9fb; font-weight: 700; color: var(--blue-dark); text-align: left; }
.result-table tr.sum td { font-weight: 700; }
.result-table tr.total td { font-weight: 800; font-size: 1.05rem; color: var(--green); border-bottom: 0; }
.result-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.result-note p { margin: 0 0 6px; }

/* Inhalt */
main section { margin: 40px auto; }
.content h2 { font-size: 1.5rem; margin: 0 0 12px; }
.content h3 { font-size: 1.1rem; margin: 22px 0 6px; }
.facts { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.facts th, .facts td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts th { background: #f0f5f9; width: 46%; font-weight: 600; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.faq details p { margin: 0; padding: 0 18px 16px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cols a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; font-weight: 600; }
.cols a:hover { border-color: var(--blue); }

footer { background: var(--blue-dark); color: #cfe1ee; padding: 30px 0; margin-top: 50px; font-size: .92rem; }
footer a { color: #fff; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .menu-btn { display: block; background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font: 700 .95rem/1 inherit; font-family: inherit; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 20px 14px; }
  .nav.open { display: flex; }
  .nav ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; min-width: 0; }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .result-value { font-size: 1.9rem; }
  .card { padding: 14px; }
  .result-table { font-size: .8rem; }
  .result-table th, .result-table td { padding: 7px 3px; }
  .facts th, .facts td { display: block; width: auto; }
  .facts th { border-bottom: 0; padding-bottom: 2px; }
  .brand span { display: none; }
  .wrap { padding: 0 14px; }
}

/* Zusätze für die Unterseiten */
.calc.single { grid-template-columns: 1fr; }
.hint { background: #fff8ec; border: 1px solid #f1d7ae; border-radius: 10px; padding: 12px 16px; font-size: .93rem; margin: 16px 0; }
.hint p { margin: 0 0 6px; } .hint p:last-child { margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radios label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.radios input, .check input { width: auto; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 5px; }
.content ul, .content ol { padding-left: 22px; }
.content table.facts { margin: 10px 0 6px; }
.src { font-size: .85rem; color: var(--muted); }
.crumbs { font-size: .88rem; margin: 0 0 10px; color: #cfe1ee; }
.crumbs a { color: #fff; }
.plan { max-height: 420px; overflow: auto; margin-top: 12px; }
@media (max-width: 560px) { .crumbs { display: none; } }
