/* Schlichtes, ruhiges Layout. Akzentfarbe Bordeaux wie im Willuhn-Auftritt. */
:root {
  --bordeaux: #7a1f2b;
  --bordeaux-dunkel: #5d1721;
  --ocker: #8a6410;
  --text: #22252a;
  --gedaempft: #5f6670;
  --linie: #dcdfe4;
  --flaeche: #ffffff;
  --grund: #f6f6f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.kopf {
  background: var(--bordeaux);
  padding: 18px 24px;
}

.marke {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.inhalt {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
}

h2 {
  margin: 32px 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.hinweis, .neben { color: var(--gedaempft); }
.neben { margin-top: 40px; font-size: 0.9rem; }
.neben a { color: var(--gedaempft); }

a { color: var(--bordeaux); }

/* Formulare: ein Feld je Zeile, Beschriftung darüber. */
.formular {
  max-width: 480px;
  margin-top: 24px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 24px;
}

.formular + .formular { margin-top: 20px; }

.feld { margin-bottom: 20px; }

.feld label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.feld input, .feld select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.feld input:focus, .feld select:focus {
  border-color: var(--bordeaux);
  outline: 2px solid rgba(122, 31, 43, 0.18);
}

/* Die beiden Von/Bis-Paare stehen nebeneinander, solange Platz ist — sonst untereinander. */
.paar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.paar > .feld { flex: 1 1 160px; }

/* Häkchen mit erklärendem Untertitel. */
.schalter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--grund);
  border-radius: 4px;
}

.schalter input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--bordeaux);
}

.schalter label { font-size: 0.9rem; font-weight: 600; }

/* Status-Mehrfachauswahl: ein Rahmen mit Überschrift, darin schmale Häkchenzeilen. */
.gruppe {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--linie);
  border-radius: 4px;
}

.gruppe legend {
  padding: 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.gruppe .feldhinweis { margin: 0 0 10px; }

.schalter-eng {
  margin-bottom: 0;
  padding: 3px 0;
  background: none;
  align-items: center;
}

.schalter-eng label { font-weight: 400; }

.feldhinweis {
  display: block;
  margin-top: 4px;
  color: var(--gedaempft);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.45;
}

button[type="submit"] {
  padding: 10px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--bordeaux);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--bordeaux-dunkel); }

.fehler, .warnung {
  margin: 20px 0 0;
  max-width: 480px;
  padding: 12px 14px;
}

.fehler {
  border-left: 4px solid var(--bordeaux);
  background: #fbeced;
  color: var(--bordeaux-dunkel);
}

/* Gelb statt rot: kein Fehler, sondern ein Ergebnis, das erklärt werden muss. */
.warnung {
  border-left: 4px solid var(--ocker);
  background: #fdf8ec;
  color: #6b4d0c;
}

/* Anleitungsseite */
pre {
  max-width: 100%;
  /* Umbrechen statt scrollen: Das curl-Beispiel ist Vertragsinhalt (§ 2 Teil A, „erläutert den
     Abrufweg"). Rechts abgeschnitten wäre die URL unbrauchbar — beim Markieren fehlte das Ende. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px 16px;
  border: 1px solid var(--linie);
  border-radius: 4px;
  background: var(--flaeche);
  font-size: 0.88rem;
  line-height: 1.5;
}

code {
  padding: 1px 5px;
  border-radius: 3px;
  background: #ececea;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

pre code { padding: 0; background: none; }

.inhalt ul { padding-left: 22px; }
.inhalt li { margin-bottom: 8px; }

/* Fußzeile */
.fuss {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 24px 32px;
  border-top: 1px solid var(--linie);
  color: var(--gedaempft);
  font-size: 0.88rem;
}

.fuss form { margin: 0; }

/* `button.` statt nur `.knopf-schlicht`: Sonst gewinnt `button[type="submit"]` weiter oben —
   gleiche Spezifität schlägt hier die Reihenfolge nicht — und „Abmelden" erschien als großer
   bordeauxfarbener Knopf mit unterstrichener Schrift. */
button.knopf-schlicht {
  padding: 0;
  border: 0;
  background: none;
  color: var(--bordeaux);
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
}

button.knopf-schlicht:hover { background: none; color: var(--bordeaux-dunkel); }
