:root {
  --text: #1B1D24;
  --flaeche: #F2F2F7;
  --linie: #E5E5EA;
  --grau: #6C6C70;
  --dunkelgrau: #3C3C43;
  --hintergrund: #FFFFFF;
  --akzent: #000000;
  --gruen: #34C759;
  --rot: #D70015; /* dunkleres Rot fuer Text, Kontrast AA auf Weiss */
  --orange: #FF9500;
  --radius: 16px;
  --pille: 999px;
  --breite: 640px;
  --leiste: 72px;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--dunkelgrau); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.klein { font-size: 15px; color: var(--grau); }

.sprunglink {
  position: absolute; left: 8px; top: -64px; background: var(--akzent); color: #fff;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 16px; border-radius: var(--pille); z-index: 30;
}
.sprunglink:focus { top: 8px; color: #fff; }

/* Kopfzeile */
.kopfzeile { border-bottom: 1px solid var(--linie); }
.kopfzeile .huelle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marke { display: flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 700; text-decoration: none; font-size: 16px; }
.marke svg { width: 32px; height: 32px; flex: none; }
.kopfzeile nav { flex: none; }
.kopfzeile nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 15px; }

/* Abschnitte */
section { padding: 40px 0; border-bottom: 1px solid var(--linie); }
section:last-of-type { border-bottom: 0; }
.kopf { padding-top: 32px; }
.kopf .zeichnung { display: block; width: 100%; margin: 8px 0 24px; }
.kopf .unterzeile { font-size: 19px; color: var(--dunkelgrau); }

.hinweis {
  background: var(--flaeche); border-radius: var(--radius); padding: 16px;
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 24px;
}
.hinweis .punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); flex: none; margin-top: 6px; }
.hinweis p { margin: 0; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--pille);
  background: var(--akzent); color: #fff; font: inherit; font-weight: 600; font-size: 17px;
  text-decoration: none; border: 2px solid var(--akzent); cursor: pointer;
}
.knopf:hover { color: #fff; background: var(--dunkelgrau); border-color: var(--dunkelgrau); }
.knopf.hell { background: var(--hintergrund); color: var(--text); }
.knopf.hell:hover { background: var(--flaeche); color: var(--text); }
.knopf[disabled] { opacity: 0.6; cursor: progress; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }

/* Leistungen */
.liste-karten { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.karte {
  background: var(--flaeche); border-radius: var(--radius); padding: 16px;
  display: flex; gap: 16px; align-items: center;
}
.karte svg { width: 48px; height: 48px; flex: none; }
.karte strong { display: block; }
.karte span { color: var(--dunkelgrau); font-size: 15px; }
@media (min-width: 560px) { .liste-karten { grid-template-columns: 1fr 1fr; } }

/* Lage */
.lage { display: grid; gap: 16px; }
.lage svg { width: 100%; background: var(--flaeche); border-radius: var(--radius); }

/* Preise */
.preis { font-size: 40px; font-weight: 700; margin: 0 0 4px; }
.rechner { background: var(--flaeche); border-radius: var(--radius); padding: 16px; margin-top: 24px; }
.rechner .reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rechner output { display: block; margin-top: 16px; }
.rechner .summe { display: block; font-size: 28px; font-weight: 700; }

/* Ablauf */
.schritte { list-style: none; padding: 0; margin: 0; counter-reset: schritt; display: grid; gap: 16px; }
.schritte li { display: flex; gap: 16px; align-items: flex-start; }
.schritte li::before {
  counter-increment: schritt; content: counter(schritt);
  width: 36px; height: 36px; border-radius: 50%; background: var(--akzent); color: #fff;
  display: grid; place-items: center; font-weight: 700; flex: none;
}
.schritte strong { display: block; }

/* Fragen */
details { border-bottom: 1px solid var(--linie); }
details:first-of-type { border-top: 1px solid var(--linie); }
summary {
  cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; min-height: 44px;
  list-style: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--dunkelgrau); }

/* Formular */
.feld { margin-bottom: 16px; }
.feld label, .feld .label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 15px; }
.feld .optional { font-weight: 400; color: var(--grau); }
input, textarea, select {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--hintergrund);
  border: 1px solid #8E8E93; border-radius: 12px; padding: 12px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--rot); border-width: 2px; }
.fehler { color: var(--rot); font-size: 15px; margin: 4px 0 0; }
.fehler:empty { display: none; }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.zwei > *, .rechner .reihe > * { min-width: 0; }
input[type="date"] { min-width: 0; display: block; -webkit-appearance: none; appearance: none; }
@media (max-width: 359px) { .zwei { grid-template-columns: 1fr; } .rechner .reihe { grid-template-columns: 1fr; } }
.haken { display: flex; gap: 12px; align-items: flex-start; }
.haken input { width: 24px; height: 24px; min-height: 24px; margin: 2px 0 0; flex: none; accent-color: #000; }
.haken label { font-weight: 400; font-size: 15px; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meldung { border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.meldung.fehlermeldung { background: #FFEBEA; color: #8A0010; }
.meldung.erfolg { background: #E8F8EC; color: #0B4F1F; }
.meldung.erfolg h3 { color: #0B4F1F; }

.kontaktkasten { background: var(--flaeche); border-radius: var(--radius); padding: 16px; }
.kontaktkasten .knoepfe { flex-direction: column; }
.kontaktkasten .knopf { width: 100%; }

/* Fuß */
footer { background: var(--flaeche); padding: 32px 0; margin-top: 0; font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
footer a { display: inline-block; min-height: 44px; padding: 10px 0; }

/* Untere Leiste am Handy */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--linie);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.leiste .knopf { width: 100%; padding: 12px 8px; }
body.mit-leiste { padding-bottom: calc(var(--leiste) + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .leiste { display: none; }
  body.mit-leiste { padding-bottom: 0; }
  h1 { font-size: 40px; }
}

/* Textseiten */
.text { padding: 32px 0 48px; }
.text h2 { font-size: 20px; margin-top: 32px; }
.text address { font-style: normal; margin-bottom: 16px; }
