/* Kundenformular (ADR-34). Farben als Variablen; eine Instanz überschreibt sie in branding.css. */
:root {
  --akzent: #1f5f6b;
  --akzent-hell: #e6f0f1;
  --akzent-text: #ffffff;
  --text: #1c2326;
  --text-2: #5b666b;
  --linie: #d5dcdf;
  --flaeche: #ffffff;
  --hintergrund: #f4f6f7;
  --fehler: #b42318;
  --fehler-hell: #fdecea;
  --warnung: #8a5a00;
  --warnung-hell: #fff4dc;
  --ok: #1e7a46;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --akzent: #6fb3bf;
    --akzent-hell: #1d3236;
    --akzent-text: #0d1a1c;
    --text: #e8ecee;
    --text-2: #a3aeb3;
    --linie: #36414a;
    --flaeche: #1b2227;
    --hintergrund: #11161a;
    --fehler: #ff8a80;
    --fehler-hell: #3a1d1b;
    --warnung: #ffcf70;
    --warnung-hell: #33280f;
    --ok: #6fd39b;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 6px;
}
.logo {
  max-height: 44px;
  max-width: 140px;
  object-fit: contain;
}
.buero {
  font-weight: 600;
}
.untertitel {
  color: var(--text-2);
  font-size: 14px;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  outline: none;
}
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 20px;
  margin: 12px 0;
}
h1 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 4px 0 12px;
}
h2 {
  font-size: 1.2rem;
  margin: 0 0 6px;
}
h3 {
  font-size: 1rem;
  margin: 18px 0 6px;
}
p {
  margin: 0 0 10px;
}
.klein {
  font-size: 14px;
  color: var(--text-2);
}
.fortschritt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  margin: 6px 0 2px;
}
.balken {
  flex: 1;
  height: 6px;
  background: var(--linie);
  border-radius: 3px;
  overflow: hidden;
}
.balken > span {
  display: block;
  height: 100%;
  background: var(--akzent);
  transition: width 0.25s ease;
}
.feld {
  margin: 16px 0;
}
.feld > label,
.feld legend {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.pflicht {
  color: var(--text-2);
  font-weight: 400;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 46px;
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
.wahl input:focus-visible + span,
canvas:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 2px;
}
.feld.fehlerhaft input,
.feld.fehlerhaft select {
  border-color: var(--fehler);
}
.wahlen {
  display: grid;
  gap: 8px;
}
.wahlen.zweier {
  grid-template-columns: 1fr 1fr;
}
.wahl,
.feld > label.wahl {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  margin-bottom: 0;
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 11px 12px;
  cursor: pointer;
  background: var(--flaeche);
}
.wahl:has(input:checked) {
  border-color: var(--akzent);
  background: var(--akzent-hell);
}
.wahl input {
  margin: 4px 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--akzent);
  flex: none;
}
.hinweis {
  font-size: 14px;
  color: var(--text-2);
  margin: 6px 0 0;
}
.hinterlegt {
  font-size: 14px;
  color: var(--ok);
  margin: 6px 0 0;
}
.fehlertext {
  color: var(--fehler);
  font-size: 14px;
  margin: 6px 0 0;
}
.warnung {
  background: var(--warnung-hell);
  color: var(--warnung);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 8px 0 0;
}
.meldung {
  background: var(--fehler-hell);
  color: var(--fehler);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}
.knoepfe {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
button {
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 18px;
  min-height: 46px;
  cursor: pointer;
  border: 1px solid var(--linie);
  background: var(--flaeche);
  color: var(--text);
}
button.primaer {
  background: var(--akzent);
  border-color: var(--akzent);
  color: var(--akzent-text);
  margin-left: auto;
}
button:disabled {
  opacity: 0.6;
  cursor: progress;
}
button.link {
  border: 0;
  background: none;
  padding: 4px 0;
  min-height: 0;
  color: var(--akzent);
  text-decoration: underline;
  font-weight: 500;
}
ul.liste {
  margin: 6px 0 12px;
  padding-left: 20px;
}
.vorschau {
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: #fff;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vorschau img {
  display: block;
  width: 100%;
  height: auto;
}
.unterschrift-rahmen {
  position: relative;
  border: 2px dashed var(--akzent);
  border-radius: 8px;
  background: #fff;
}
canvas.unterschrift {
  display: block;
  width: 100%;
  height: 190px;
  touch-action: none;
  cursor: crosshair;
}
.unterschrift-linie {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 38px;
  border-bottom: 1px solid #9aa5aa;
  pointer-events: none;
}
.unterschrift-hinweis {
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-size: 13px;
  color: #6b767b;
  pointer-events: none;
}
.datenschutz {
  font-size: 14px;
  color: var(--text-2);
}
details summary {
  cursor: pointer;
  color: var(--akzent);
  font-weight: 500;
}
.laedt {
  color: var(--text-2);
}
.fertig {
  text-align: center;
}
.haken {
  font-size: 44px;
  color: var(--ok);
  line-height: 1;
  margin: 6px 0 10px;
}
.fuss {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 28px;
  font-size: 13px;
  color: var(--text-2);
}
@media (max-width: 480px) {
  .karte {
    padding: 16px;
  }
  .wahlen.zweier {
    grid-template-columns: 1fr;
  }
}
