:root {
  --anthrazit: #2b2b2b;
  --grau: #5c5c5c;
  --gold: #b8913a;
  --gold-hell: #e9d9ae;
  --creme: #f7f3ea;
  --weiss: #ffffff;
  --linie: #e2dccb;
  --rot: #a8240f;
  --gruen: #2f6b3a;
  --radius: 14px;
  --schatten: 0 2px 10px rgba(43, 43, 43, 0.08);
}
* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--creme); color: var(--anthrazit);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.55;
}
a { color: var(--anthrazit); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--anthrazit); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold);
}
.optionen label:focus-within { border-color: var(--anthrazit); box-shadow: 0 0 0 3px var(--gold); }
.nowrap { white-space: nowrap; }
.klein-details { margin: 6px 0 12px; }
.klein-details summary { font-weight: 600; padding: 6px 0; }
.nur-lesen { position: absolute; left: -9999px; }
fieldset { border: 0; padding: 0; margin: 0; }
.huelle { max-width: 720px; margin: 0 auto; padding: 0 18px; }
.kopf { background: var(--weiss); border-bottom: 3px solid var(--gold); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.kopf img { height: 40px; width: auto; display: block; }
.kopf .telefon { font-weight: 600; text-decoration: none; white-space: nowrap; }
main { padding: 26px 0 40px; }
.einbettung .kopf, .einbettung .fuss { display: none; }
.einbettung main { padding-top: 12px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 26px 0 8px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.leise { color: var(--grau); }
.klein { font-size: 0.85rem; }

.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; box-shadow: var(--schatten); margin-bottom: 18px; }
.karte.hervor { border: 2px solid var(--gold); }
.karte.ruhig { background: transparent; box-shadow: none; }

.knopf {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--gold); color: var(--anthrazit); border: 2px solid var(--gold); border-radius: 12px; padding: 14px 24px; min-height: 52px;
}
.knopf:hover { background: #d4b060; border-color: #d4b060; }
.knopf.dunkel { background: var(--anthrazit); border-color: var(--anthrazit); color: var(--weiss); }
.knopf.dunkel:hover { background: #000; }
.knopf.rand { background: transparent; color: var(--anthrazit); border-color: var(--anthrazit); }
.knopf.rand:hover { background: var(--gold-hell); }
.knopf.voll { display: block; width: 100%; }
.knopf-zeile { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.knopf-zeile.mittig { justify-content: center; }
.zurueck { color: var(--grau); display: inline-block; padding: 12px 6px; min-height: 44px; }
input[type="file"] { padding: 18px 14px; border: 2px dashed #7a7360; border-radius: 12px; background: var(--weiss); width: 100%; font: inherit; }
.js .nur-ohne-js { display: none; }
[hidden] { display: none !important; }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; background: var(--anthrazit); color: var(--weiss); border: 0; border-radius: 10px;
  padding: 14px 20px; min-height: 52px; margin-right: 14px; cursor: pointer;
}

/* Start */
.held { padding: 14px 0 8px; }
.held .lead { font-size: 1.15rem; color: var(--grau); margin-bottom: 20px; }
.schritte { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.schritte li { display: flex; gap: 14px; align-items: flex-start; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 16px; }
.nummer { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--anthrazit); color: var(--weiss); font-weight: 700; display: grid; place-items: center; }
.ansprechpartner { display: flex; gap: 14px; align-items: center; }
.ansprechpartner .initiale { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--gold-hell); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }

/* Assistent */
.fortschritt { margin-bottom: 18px; }
.fortschritt progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 6px; overflow: hidden; background: var(--linie); }
.fortschritt progress::-webkit-progress-bar { background: var(--linie); }
.fortschritt progress::-webkit-progress-value { background: var(--gold); }
.fortschritt progress::-moz-progress-bar { background: var(--gold); }
.frage { font-size: 1.5rem; line-height: 1.25; margin: 0 0 16px; }
.feld { margin-bottom: 16px; }
.feld label.titel { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="number"], input[type="tel"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; font: inherit; padding: 14px; border: 2px solid #7a7360; border-radius: 12px; background: var(--weiss); color: var(--anthrazit);
}
textarea { min-height: 120px; }
.optionen { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.optionen li label, .optionen label {
  display: flex; gap: 12px; align-items: center; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; padding: 16px; cursor: pointer; min-height: 58px; font-weight: 600;
}
.optionen input { width: 22px; height: 22px; accent-color: var(--anthrazit); flex: 0 0 22px; }
.optionen label:has(input:checked) { border-color: var(--anthrazit); background: var(--gold-hell); }
.hilfe { color: var(--grau); font-size: 0.9rem; margin-top: 4px; }
.fehler { background: var(--rot); color: var(--weiss); border-radius: 10px; padding: 10px 14px; margin: 8px 0; font-weight: 600; }
.fehler ul { margin: 0; padding-left: 18px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.js .bedingt, .js [data-zeige-wenn] { display: none; }
.js .bedingt.sichtbar, .js [data-zeige-wenn].sichtbar { display: block; }
.einwilligung label { font-weight: 400; }

/* Ergebnis */
.wertkarte { text-align: center; padding: 26px 18px; }
.wertkarte .spanne { font-size: 1.7rem; font-weight: 800; line-height: 1.2; margin: 6px 0; }
.wertkarte .mitte { color: var(--grau); }
.ansicht-liste { width: 100%; border-collapse: collapse; }
.ansicht-liste th { text-align: left; color: var(--grau); font-weight: 600; padding: 8px 12px 8px 0; vertical-align: top; width: 38%; }
.ansicht-liste td { padding: 8px 0; vertical-align: top; }
.ansicht-liste tr { border-bottom: 1px solid var(--linie); }
details { margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.wahl h3 { margin-top: 0; }
.wahl .betrag { font-size: 1.7rem; font-weight: 800; margin: 4px 0 8px; }
.haken { list-style: none; padding: 0; margin: 0 0 12px; }
.haken li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.haken li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gruen); font-weight: 800; }
.status { border-left: 6px solid var(--gold); }
.nachricht { background: var(--weiss); border: 2px solid var(--gruen); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }

/* Fotos und Exposé */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.fotos figure { margin: 0; position: relative; }
.fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; background: var(--linie); }
.fotos .weg { margin-top: 6px; }
.galerie-gross { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); display: block; margin-bottom: 10px; }
.rechner { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.rechner .voll { grid-column: 1 / -1; }
.rate { font-size: 2rem; font-weight: 800; }

.fuss { border-top: 1px solid var(--linie); padding: 18px 0 30px; font-size: 0.88rem; color: var(--grau); }
.fuss a { color: var(--grau); }

@media (min-width: 640px) {
  html { font-size: 18px; }
  h1 { font-size: 2.3rem; }
  .wertkarte .spanne { font-size: 2.6rem; }
  .wahl .betrag { font-size: 1.9rem; }
}
@media print {
  .kopf, .fuss, .knopf, form { display: none !important; }
  body { background: #fff; }
}

/* dein-hausverkauf.de */
.wortmarke { font-size: 1.25rem; text-decoration: none; color: var(--anthrazit); letter-spacing: 0.01em; }
.wortmarke strong { color: var(--gold); }
.wortmarke.grosz { font-size: 1.6rem; display: block; margin: 36px 0 20px; }
.sperre { text-align: center; padding-top: 30px; }
.sperre .lead { max-width: 30em; margin-left: auto; margin-right: auto; }
.zugang { max-width: 22em; margin: 30px auto 0; text-align: left; }
.reise, .checkliste { list-style: none; padding: 0; margin: 0 0 20px; }
.reise > li, .checkliste > li { margin-bottom: 14px; }
.reise h2, .checkliste h3 { margin-top: 0; }
.karte.erledigt { border-left: 6px solid var(--gruen); }
.haken-zeichen { color: var(--gruen); font-weight: 800; }
.marke { display: inline-block; background: var(--gold-hell); border-radius: 8px; padding: 1px 8px; font-size: 0.8rem; font-weight: 700; vertical-align: middle; }
.datei { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--linie); padding: 8px 0 0; margin-top: 8px; }
.datei .knopf { min-height: 44px; padding: 8px 16px; }
.betrag-zusammen { font-size: 1.1rem; margin-top: 12px; }
form + .karte.hervor { margin-top: 18px; }

/* Kontrast: Rand der Auswahlfelder mindestens 3:1 */
.optionen li label, .optionen label { border-color: #8a826c; }
.optionen label:has(input:checked) { border-color: var(--anthrazit); }
.fortschritt progress::-webkit-progress-value { background: #8a6a1c; }
.fortschritt progress::-moz-progress-bar { background: #8a6a1c; }
.js [data-zeige-bei-haken] { display: none; }
.js [data-zeige-bei-haken].sichtbar { display: block; }

/* Die Schritte in der Reise werden fortlaufend nummeriert; ein ausgeschalteter Schritt lässt keine Lücke */
.reise { counter-reset: schritt; }
.reise > li > h2::before { counter-increment: schritt; content: counter(schritt) ". "; }

/* Lagekarte im Ergebnis */
.lagekarte { margin: 14px 0 6px; }
.lagekarte img { width: 100%; height: auto; max-width: 640px; display: block; border-radius: 14px; border: 1px solid var(--linie); }
.lagekarte figcaption { margin-top: 6px; }

/* Statistik-Hinweis (erscheint nur, wenn eine Messkennung gesetzt ist) */
.statistik-banner, .cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin: 0 auto; background: var(--weiss); color: var(--anthrazit); border: 1px solid var(--linie); border-radius: 16px; box-shadow: 0 8px 30px rgba(43, 43, 43, 0.22); padding: 16px 18px; }
.statistik-banner[hidden], .cookie-banner[hidden] { display: none; }
.statistik-banner p, .cookie-banner p { margin: 0 0 12px; font-size: 0.92rem; }
.statistik-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.statistik-knoepfe .knopf { flex: 1 1 140px; padding: 10px 16px; min-height: 46px; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

input[type="date"] { min-height: 58px; -webkit-appearance: none; appearance: none; }
.sprung-zum-inhalt { position: absolute; left: -999px; top: 0; background: var(--anthrazit); color: #fff; padding: 10px 14px; z-index: 100; }
.sprung-zum-inhalt:focus { left: 8px; top: 8px; }
/* Cookie-Hinweis: niedrig und ruhig, Text und Knopf nebeneinander */
.cookie-banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.cookie-banner p { margin: 0; font-size: 0.88rem; flex: 1 1 auto; }
.cookie-banner .statistik-knoepfe { flex: 0 0 auto; }
.cookie-banner .statistik-knoepfe .knopf { flex: none; min-height: 44px; padding: 8px 16px; }
@media (max-height: 480px) { .cookie-banner { bottom: 4px; } }


/* Hilfehinweis ab dem zweiten Fehlversuch: ruhig, Anthrazit, klar abgesetzt vom roten Fehler */
.hilfe-hinweis { background: var(--anthrazit, #2b2b2b); color: #fff; border-radius: 10px; padding: 12px 16px; margin: 12px 0; line-height: 1.5; }
.hilfe-hinweis a { color: #fff; text-decoration: underline; }


/* Grauer Schleier: Solange der Cookie-Hinweis offen ist, ist die Seite dahinter gesperrt */
.schleier { position: fixed; inset: 0; z-index: 49; background: rgba(43, 43, 43, 0.62); }
.schleier[hidden] { display: none; }
html.schleier-an { overflow: hidden; }
html.schleier-an .cookie-banner, html.schleier-an .statistik-banner { left: 12px; right: 12px; bottom: auto; top: 50%; transform: translateY(-50%); max-width: 520px; flex-direction: column; align-items: stretch; padding: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
html.schleier-an .cookie-banner p { font-size: 1rem; }
html.schleier-an .cookie-banner .statistik-knoepfe .knopf, html.schleier-an .statistik-banner .statistik-knoepfe .knopf { flex: 1 1 100%; min-height: 50px; }
