:root {
  --orange: #FB6A43;
  --orange-dunkel: #e2522c;
  --orange-hell: #fff1ec;
  --text: #131923;
  --grau: #6b7280;
  --grau-hell: #b8bcc3;
  --flaeche: #f0efed;
  --linie: #e5e7eb;
  --hg: #f7f5f3;
  --gruen: #16a34a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--hg);
  font-size: 16px;
  line-height: 1.5;
  padding: 24px 16px 40px;
}
body.eingebettet { background: transparent; padding: 0; }
.karte {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(19, 25, 35, .07);
  padding: 32px 32px 24px;
}
body.eingebettet .karte { box-shadow: none; }
.kopf { text-align: center; }
.logo { height: 40px; width: auto; }
body.eingebettet .logo { display: none; }
body.eingebettet .kopf h1 { display: none; } /* Überschrift steht schon auf der WordPress-Seite */
.kopf h1 { font-size: 34px; line-height: 1.2; font-weight: 800; margin: 12px 0 22px; }

/* Schritt-Leiste */
.stepper { list-style: none; display: flex; justify-content: space-between; gap: 6px; margin: 0 0 28px; padding: 0; position: relative; }
.stepper::before { content: ""; position: absolute; left: 6%; right: 6%; top: 17px; height: 2px; background: var(--flaeche); z-index: 0; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; min-width: 0; }
.stepper span {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flaeche); color: #fff; font-weight: 800; font-size: 16px; border: 3px solid #fff;
}
.stepper em { font-style: normal; font-size: 13px; color: var(--grau-hell); font-weight: 700; text-align: center; line-height: 1.2; }
.stepper li.aktiv span { background: var(--orange); }
.stepper li.aktiv em { color: var(--text); }
.stepper li.erledigt { cursor: pointer; }
.stepper li.erledigt span { background: var(--orange-hell); color: var(--orange-dunkel); }
.stepper li.erledigt em { color: var(--grau); }

/* Schritt-Inhalt */
.legende { text-align: center; font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.frage { text-align: center; font-size: 24px; font-weight: 800; color: var(--orange); margin: 0 0 22px; line-height: 1.3; }

.optionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.option {
  border: 2px solid transparent;
  background: var(--flaeche);
  border-radius: 18px;
  padding: 22px 26px;
  min-width: 120px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  color: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.option:hover { background: #e6e4e1; }
.option:active { transform: scale(.98); }
.option[aria-pressed="true"] { background: var(--orange-hell); border-color: var(--orange); color: var(--orange-dunkel); }

.hinweis { font-size: 14px; color: var(--grau); background: #f6f6f6; border-radius: 12px; padding: 10px 14px; margin: 18px auto 0; max-width: 560px; text-align: center; }
.hinweis b { color: var(--text); }

.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; margin: 0 auto; }
.felder.adresse { grid-template-columns: repeat(4, 1fr); }
.felder.adresse .breit { grid-column: span 3; }
.felder .ganz { grid-column: 1 / -1; }
label.feld { display: block; font-weight: 700; font-size: 14px; }
label.feld small { font-weight: 600; color: var(--grau); }
label.feld input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 13px 14px;
  border: 2px solid var(--flaeche);
  background: var(--flaeche);
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  color: inherit;
}
label.feld input:focus { outline: none; border-color: var(--orange); background: #fff; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 18px auto 0; max-width: 560px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--orange); flex: none; }
.check a { color: var(--orange-dunkel); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fehler { color: #dc2626; font-weight: 700; font-size: 14px; margin: 16px 0 0; text-align: center; }
.fehler:empty { margin: 0; }

.knoepfe { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.knoepfe button {
  font: inherit; font-weight: 800; font-size: 16px; border-radius: 99px; padding: 13px 30px; cursor: pointer; border: 0;
}
.weiter { background: var(--orange); color: #fff; min-width: 160px; box-shadow: 0 6px 18px rgba(251, 106, 67, .3); }
.weiter:hover { background: var(--orange-dunkel); }
.weiter:disabled { opacity: .6; cursor: wait; }
.zurueck { background: #fff; color: var(--text); border: 2px solid var(--linie) !important; }
.zurueck[hidden] { display: none; }

.vertrauen {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  padding: 16px 0 0; margin: 24px 0 0; border-top: 1px solid var(--linie); font-size: 13px; color: var(--grau); font-weight: 600;
}
.vertrauen li::before { content: "✓ "; color: var(--gruen); font-weight: 800; }

.fertig { text-align: center; padding: 4px 0 6px; }
.fertig h2 { font-size: 26px; margin: 0 0 4px; }
.fertig .haken {
  width: 76px; height: 76px; border-radius: 50%; background: #dcfce7; color: var(--gruen);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.fertig .haken svg { width: 40px; height: 40px; }
.fertig ol { text-align: left; max-width: 440px; margin: 0 auto; padding-left: 22px; }
.fertig li { margin-bottom: 8px; }

@media (max-width: 640px) {
  .karte { padding: 22px 16px 18px; border-radius: 18px; }
  .kopf h1 { font-size: 24px; margin-bottom: 18px; }
  .stepper::before { top: 14px; }
  .stepper span { width: 30px; height: 30px; font-size: 14px; }
  .stepper em { display: none; }
  .stepper li.aktiv em { display: block; position: absolute; top: 36px; white-space: nowrap; }
  .stepper { margin-bottom: 40px; }
  .frage { font-size: 20px; }
  .optionen { display: grid; grid-template-columns: 1fr 1fr; }
  .option { padding: 18px 10px; min-width: 0; }
  .option:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .felder { grid-template-columns: 1fr; }
  .felder.adresse { grid-template-columns: 1fr 1fr; }
  .felder.adresse .breit { grid-column: 1 / -1; }
  .knoepfe button { flex: 1; padding: 13px 16px; min-width: 0; }
}
