@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --petrol: #0f556a;
  --hell: #65c0d2;
  --tint: #e6f4f7;
  --tint-2: #cfeaf1;
  --ink: #000000;
  --weiss: #ffffff;
  --text-2: #2b4a53;
  --fehler: #9b1c1c;
  --max: 1040px;
  --text: 42rem;
  --radius: 14px;
  --font: "Fira Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body { margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--weiss); }
img { max-width: 100%; height: auto; }
a { color: var(--petrol); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--hell); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Kopfzeile */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--tint-2); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.marke { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--petrol); font-weight: 600; line-height: 1.2; }
.marke img { width: 46px; height: 46px; }
.kopf nav a { font-size: .95rem; font-weight: 600; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--petrol); color: var(--weiss); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 8vw, 6rem); }
.hero h1 { margin: 0 0 1.25rem; max-width: 14ch; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
.hero p { max-width: 36rem; margin: 0 0 2rem; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: #e3f3f7; }
.hero-kreis { position: absolute; right: clamp(-14rem, -12vw, -5rem); bottom: clamp(-12rem, -10vw, -4rem); width: clamp(20rem, 48vw, 36rem); aspect-ratio: 1; opacity: .95; pointer-events: none; }
@media (max-width: 760px) { .hero-kreis { opacity: .25; } }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--hell); font: 600 1.05rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.knopf-voll { background: var(--hell); color: var(--petrol); }
.knopf-voll:hover { background: var(--weiss); border-color: var(--weiss); }
.knopf-rand { background: transparent; color: var(--weiss); }
.knopf-rand:hover { background: rgba(255,255,255,.1); }
.hero .frist { margin: 1.75rem 0 0; font-size: 1rem; color: var(--hell); font-weight: 600; }

/* Aussage in Zahlen */
.aussage { padding-block: clamp(3rem, 7vw, 5rem); }
.aussage p { margin: 0 0 1.1rem; max-width: 30ch; font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--text-2); }
.aussage strong { color: var(--petrol); font-weight: 800; }
.aussage .klein { font-size: 1rem; font-weight: 400; color: var(--text-2); max-width: var(--text); letter-spacing: 0; }

/* Kapitel */
.kapitel { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--tint-2); }
.kapitel h2 { margin: 0 0 .75rem; max-width: 24ch; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; color: var(--petrol); }
.kapitel .lead { max-width: var(--text); margin: 0 0 1.75rem; }
.diagramm { position: relative; width: 100%; height: clamp(320px, 48vw, 440px); margin: 0; }
.diagramm.hoch { height: clamp(420px, 70vw, 520px); }
.diagramm.rund { max-width: 760px; height: clamp(340px, 60vw, 420px); }
.quelle { margin: .75rem 0 0; font-size: .85rem; color: var(--text-2); }
.zweispaltig { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .zweispaltig { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Rechner (aufklappbar im Kapitel Grundsteuer) */
.rechner { margin-top: 2rem; background: var(--tint); border-radius: var(--radius); max-width: 52rem; }
.rechner summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; cursor: pointer; list-style: none; font-weight: 800; font-size: 1.15rem; color: var(--petrol); }
.rechner summary::-webkit-details-marker { display: none; }
.rechner summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--petrol); color: var(--weiss); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; }
.rechner[open] summary::after { content: "–"; }
.rechner > :not(summary) { margin-inline: 1.5rem; }
.rechner .lead { margin: 0 1.5rem 1.25rem; max-width: var(--text); }
.rechner-raster { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; padding-bottom: 1.75rem; }
@media (min-width: 760px) { .rechner-raster { grid-template-columns: 1fr minmax(14rem, 16rem); } }
.rechner label { display: block; font-weight: 600; margin-bottom: .5rem; }
.eingabe { display: flex; align-items: center; max-width: 20rem; background: var(--weiss); border: 2px solid #8fc9d6; border-radius: var(--radius); padding: .2rem 1rem; }
.eingabe input { flex: 1; min-width: 0; border: 0; padding: .6rem 0; font: 800 1.7rem/1 var(--font); color: var(--petrol); background: transparent; }
.eingabe input:focus { outline: none; }
.eingabe:focus-within { outline: 3px solid var(--hell); outline-offset: 3px; }
.eingabe span { font-size: 1.4rem; font-weight: 800; color: var(--petrol); }
.hinweis { font-size: .92rem; color: var(--text-2); max-width: 32rem; margin-top: .9rem; }
.ergebnis-kreis { aspect-ratio: 1; width: min(100%, 16rem); border-radius: 50%; background: var(--weiss); border: 3px solid var(--hell); color: var(--petrol); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.75rem; justify-self: center; }
.ergebnis-kreis .gross { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.ergebnis-kreis p { margin: .35rem 0 0; font-size: .95rem; line-height: 1.35; }
.ergebnis-kreis .plus { margin-top: .75rem; font-weight: 800; font-size: 1.1rem; }

/* Einschätzung */
.einschaetzung { background: var(--tint); border-left: 6px solid var(--petrol); border-radius: 0 var(--radius) var(--radius) 0; padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 52rem; }
.einschaetzung h2 { margin-top: 0; }
.einschaetzung ul { margin: 0; padding-left: 1.2rem; }
.einschaetzung li { margin-bottom: .6rem; }
.einschaetzung .absender { margin: 1.25rem 0 0; font-weight: 600; color: var(--petrol); }

/* Formular */
.mitmachen { background: var(--tint); padding-block: clamp(3rem, 7vw, 5rem); }
.mitmachen h2 { margin: 0 0 .75rem; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; color: var(--petrol); letter-spacing: -.015em; }
.mitmachen .lead { max-width: var(--text); margin: 0 0 2rem; }
form { max-width: 48rem; }
fieldset { border: 0; margin: 0 0 1.25rem; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--weiss); border-radius: var(--radius); }
legend { float: left; width: 100%; padding: 0; margin-bottom: .35rem; font-size: 1.2rem; font-weight: 800; color: var(--petrol); line-height: 1.3; }
legend + * { clear: both; }
.frage-hinweis { margin: 0 0 1rem; font-size: .95rem; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: .55rem 1rem; border: 2px solid #8fc9d6; border-radius: 999px; font-size: 1rem; cursor: pointer; user-select: none; background: var(--weiss); }
.chip input:checked + span { background: var(--petrol); border-color: var(--petrol); color: var(--weiss); }
.chip input:focus-visible + span { outline: 3px solid var(--hell); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.zaehler { font-size: .9rem; color: var(--text-2); margin-top: .6rem; }
.optionen label { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; cursor: pointer; }
.optionen input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; accent-color: var(--petrol); flex: none; }
.feld { margin-bottom: 1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: .35rem; }
.feld input[type=text], .feld input[type=email], .feld select, .feld textarea { width: 100%; padding: .75rem .9rem; border: 2px solid #8fc9d6; border-radius: 10px; font: 400 1.05rem/1.4 var(--font); background: var(--weiss); color: var(--ink); }
.feld textarea { min-height: 9rem; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px var(--tint-2); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; margin: .75rem 0; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--petrol); flex: none; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.senden { background: var(--petrol); border-color: var(--petrol); color: var(--weiss); font-size: 1.1rem; min-height: 3.25rem; padding-inline: 2rem; }
.senden:hover { background: #0b4253; }
.meldung { max-width: 48rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 600; }
.meldung.ok { background: var(--petrol); color: var(--weiss); }
.meldung.fehler { background: #fde8e8; color: var(--fehler); border: 2px solid var(--fehler); }
.meldung ul { margin: .5rem 0 0; font-weight: 400; }

/* Weiteres Vorgehen */
.ablauf { padding-block: clamp(2.5rem, 6vw, 4rem); }
.ablauf h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--petrol); }
.ablauf ol { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .ablauf h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--petrol); }
.ablauf ol { grid-template-columns: repeat(3, 1fr); } }
.ablauf li { counter-increment: s; padding-top: 3.2rem; position: relative; }
.ablauf li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--hell); color: var(--petrol); font-weight: 800; display: grid; place-items: center; }
.ablauf strong { display: block; color: var(--petrol); font-size: 1.15rem; margin-bottom: .25rem; }

/* Fuß */
.fuss { background: var(--petrol); color: var(--weiss); padding-block: 2.5rem; font-size: .95rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.fuss a { color: var(--weiss); }
.fuss nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.fuss .marke { color: var(--weiss); }
