:root {
  --papier: #fbf8f2;
  --flaeche: #ffffff;
  --tinte: #26211c;
  --leise: #5f564c;
  --linie: #8c8174;
  --linie-fein: #e2dbcf;
  --akzent: #7a2e20;
  --akzent-text: #ffffff;
  --fehler: #a11f12;
  --fehler-grund: #fbeae6;
  --hinweis-grund: #fff3cd;
  --hinweis-text: #4d3b00;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #1b1815;
    --flaeche: #26221e;
    --tinte: #f1ebe2;
    --leise: #bdb2a4;
    --linie: #8f8577;
    --linie-fein: #3b352f;
    --akzent: #e8a48f;
    --akzent-text: #1b1815;
    --fehler: #ffa99b;
    --fehler-grund: #3a1f1a;
    --hinweis-grund: #3a3010;
    --hinweis-text: #f5e4a8;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.betriebshinweis {
  margin: 0;
  padding: 0.6rem 1rem;
  background: var(--hinweis-grund);
  color: var(--hinweis-text);
  text-align: center;
  font-size: 0.95rem;
}

.platzhalter {
  padding: 0.05em 0.3em;
  border: 2px dashed var(--fehler);
  border-radius: 4px;
  background: var(--hinweis-grund);
  color: var(--hinweis-text);
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.rechtstext { overflow-wrap: break-word; }

.rechtstext h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.rechtstext h3 { margin: 1.25rem 0 0.25rem; font-size: 1.0625rem; }

.rechtstext p { margin: 0 0 0.75rem; }

.rechtstext ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }

.rechtstext li { margin-bottom: 0.35rem; }

.rechtstext address { margin-bottom: 0.75rem; font-style: normal; white-space: pre-line; }

.widerspruch {
  margin-block: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--linie);
  border-radius: 6px;
}

.widerspruch h3 { margin-top: 0; }

.kopf, .inhalt, .fuss {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.kopf { padding-top: 1.75rem; }

.haus {
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--linie-fein);
  color: var(--akzent);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.inhalt { padding-block: 1.5rem 2rem; }

h1 {
  margin: 0 0 0.5rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.einleitung { margin: 0 0 1.5rem; color: var(--leise); }

a { color: var(--akzent); text-underline-offset: 0.15em; }

fieldset { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }

legend {
  padding: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.raster { display: grid; gap: 0 1rem; }

.feld { margin-bottom: 1rem; min-width: 0; }

label { display: block; margin-bottom: 0.3rem; font-weight: 500; }

.optional { color: var(--leise); font-weight: 400; }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--linie);
  border-radius: 6px;
  background-color: var(--flaeche);
  color: inherit;
  /* Unter 16 px zoomt iOS beim Fokussieren in die Seite. */
  font: inherit;
  font-size: max(1rem, 16px);
}

/* Safari gibt dem leeren Datumsfeld sonst eine eigene Breite und Höhe. */
input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; }

textarea { resize: vertical; }

:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--fehler);
  border-width: 2px;
}

.hinweis { margin: 0.25rem 0 1rem; color: var(--leise); font-size: 0.95rem; }

.feld .hinweis { margin-bottom: 0; }

.feld-fehler { margin: 0.3rem 0 0; color: var(--fehler); font-size: 0.95rem; font-weight: 500; }

.hinweis + .feld-fehler { margin: -0.6rem 0 0.75rem; }

.feld-haken {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.feld-haken input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--akzent);
}

.feld-haken label { margin: 0; font-weight: 400; }

.feld-haken + .feld-fehler { margin: -0.6rem 0 1rem; }

/* Honeypot: für Menschen unsichtbar, für einfache Bots normal ausfüllbar. */
.ablage {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.knopf {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--akzent);
  border-radius: 6px;
  background: var(--akzent);
  color: var(--akzent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.knopf:hover { filter: brightness(1.12); }

.knopf-zweit { background: transparent; color: var(--akzent); }

.meldung {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--fehler);
  border-radius: 0 6px 6px 0;
  background: var(--fehler-grund);
}

.meldung p { margin: 0; }

.meldung ul { margin: 0; padding-left: 1.1rem; }

.meldung p + ul { margin-top: 0.5rem; }

.meldung a { color: inherit; }

.eckdaten { margin: 0 0 1.25rem; border-top: 1px solid var(--linie-fein); }

.eckdaten div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--linie-fein);
}

.eckdaten dt { color: var(--leise); }

.eckdaten dd { margin: 0; font-weight: 500; }

.storno { margin-top: 1.25rem; }

.fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem 2rem;
  color: var(--leise);
  font-size: 0.95rem;
}

.fuss a { display: inline-block; padding-block: 0.5rem; }

.fuss span { padding-block: 0.5rem; }

@media (min-width: 40rem) {
  .raster { grid-template-columns: 2fr 1fr 1.5fr; }
  .raster-zwei { grid-template-columns: 1fr 1fr; }
  .knopf { width: auto; }
  .eckdaten div { grid-template-columns: 8rem 1fr; }
}

.beleg { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.85rem; line-height: 1.35; padding: 1rem; border: 1px solid currentColor; border-radius: 8px; }
