/* ===== AWB-Farben: hier anpassen ===== */
:root {
  --marke: #0072AB;          /* AWB-Blau, abgedunkelt für lesbaren Kontrast auf Weiß (Logo-Blau: #0086C9) */
  --marke-hell: #E3F1FA;
  --akzent: #0086C9;         /* AWB-Blau aus dem Logo */
  --titel: #1D1D1B;          /* AWB-Schwarz aus dem Logo */
  --text: #1D1D1B;
  --text-leise: #5B6670;
  --rand: #CBD3DD;
  --flaeche: #F5F7FA;
  --karte: #FFFFFF;
  --fehler: #B42318;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text); background: var(--flaeche);
}
.rahmen { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
main.rahmen { flex: 1; padding-top: 32px; padding-bottom: 48px; }

.kopf { background: var(--karte); border-bottom: 3px solid var(--akzent); }
.kopf .rahmen { padding-top: 14px; padding-bottom: 14px; display: flex; justify-content: flex-end; }
.logo { height: 72px; width: auto; display: block; }

.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: 32px; }
h1 { margin: 0 0 8px; font-size: 1.6rem; line-height: 1.25; color: var(--titel); }
.einleitung { margin: 0 0 24px; color: var(--text-leise); }

.feld { margin-bottom: 18px; }
.zeile { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.pflicht { color: var(--akzent); }
.optional { font-weight: 400; color: var(--text-leise); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--text);
  background: #fff; border: 1px solid var(--rand); border-radius: 6px;
}
textarea { resize: vertical; min-height: 6rem; }
textarea#firma { min-height: 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--marke-hell); border-color: var(--marke); }
label.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0 20px 6px 0; cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--marke); }
.hilfe { margin: 6px 0 0; font-size: .875rem; color: var(--text-leise); }
.hat-fehler input, .hat-fehler select, .hat-fehler textarea { border-color: var(--fehler); }
.fehlertext { margin: 6px 0 0; font-size: .875rem; color: var(--fehler); font-weight: 600; }

.meldung {
  margin: 0 0 20px; padding: 12px 14px; border-radius: 6px;
  background: #FEF3F2; border: 1px solid #FECDCA; color: var(--fehler);
}
.datenschutz { font-size: .875rem; color: var(--text-leise); margin: 24px 0 20px; }
a { color: var(--marke); }

button {
  font: inherit; font-weight: 600; color: #fff; background: var(--marke);
  border: 0; border-radius: 6px; padding: 12px 24px; cursor: pointer; width: 100%;
}
button:hover { filter: brightness(1.12); }
button:focus-visible { outline: 3px solid var(--titel); outline-offset: 2px; }

.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.info { margin: 0 0 24px; padding: 12px 14px; border-radius: 6px; background: var(--marke-hell); border-left: 4px solid var(--akzent); }
.info p { margin: 0; }

.gruppe { border: 1px solid var(--rand); border-radius: 8px; padding: 16px 16px 4px; margin: 8px 0 18px; min-width: 0; }
.gruppe legend { font-weight: 700; padding: 0 6px; color: var(--titel); }
.gruppe-info { margin: 0 0 16px; }
.zeile-halb { grid-template-columns: 1fr 1fr; }
.zeile-halb > * { min-width: 0; }
.ap + .ap { border-top: 1px dashed var(--rand); padding-top: 14px; }
.ap-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ap-titel { font-size: .875rem; color: var(--text-leise); }
button.link-knopf { width: auto; background: none; color: var(--marke); padding: 4px; font-weight: 500; text-decoration: underline; }
button.hinzufuegen { width: auto; background: none; color: var(--marke); border: 1px dashed var(--marke); padding: 8px 16px; margin: 0 0 14px; }
button.hinzufuegen:hover, button.link-knopf:hover { filter: none; background: var(--marke-hell); }

.danke .vorgang { padding: 12px 14px; background: var(--marke-hell); border-radius: 6px; }

.fuss { border-top: 1px solid var(--rand); background: var(--karte); font-size: .875rem; }
.fuss .rahmen { padding-top: 16px; padding-bottom: 16px; display: flex; gap: 20px; flex-wrap: wrap; }
.fuss a { color: var(--text-leise); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }

@media (min-width: 600px) { button { width: auto; } }
@media (max-width: 480px) {
  .karte { padding: 20px; }
  .zeile, .zeile-halb { grid-template-columns: 1fr; gap: 0; }
}
button[type="submit"]:disabled { opacity: .6; cursor: wait; }

/* Festes Feld (Land) */
.beschriftung { display: block; font-weight: 600; margin-bottom: 6px; }
.fest { margin: 0; }

/* Ansprechpartner zugeklappt: nur Hinweis und Knopf */
.gruppe.zu { border-style: dashed; padding-bottom: 2px; }
.gruppe.zu .gruppe-info { margin-bottom: 10px; }

/* Bestätigungsseite: Zusammenfassung */
h2 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--titel); }
.zusammenfassung { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 6px 16px; margin: 0 0 20px; }
.zusammenfassung dt { color: var(--text-leise); }
.zusammenfassung dd { margin: 0; overflow-wrap: anywhere; }
a.knopf { display: inline-block; font-weight: 600; color: #fff; background: var(--marke); border-radius: 6px; padding: 12px 24px; text-decoration: none; }
a.knopf:hover { filter: brightness(1.12); }
.info p + p { margin-top: 8px; }
.steuer-info { margin: 0 0 8px; }
@media (max-width: 480px) { .zusammenfassung { grid-template-columns: 1fr; gap: 0; } .zusammenfassung dd { margin-bottom: 8px; } }

/* Datenschutzhinweise */
.text h2 { font-size: 1.05rem; }
.text ul { padding-left: 1.2em; }
.text li { margin-bottom: 6px; }
