/* ==========================================================================
   Einsatzanfrage – Formular in Schritten
   Baut auf den Formularstilen aus styles/main.css auf (.form, .field, .check,
   .req, .field__hint, .field__error, .form-note, .pill).
   ========================================================================== */

.content--anfrage { width: 100%; max-width: 44em; }
.af { color-scheme: dark; margin-top: 0; }
/* main.css setzt .form auf display: grid – das würde das hidden-Attribut aufheben */
.af[hidden], .af-progress[hidden] { display: none; }


/* --------------------------------------------------------------------------
   Fortschritt
   -------------------------------------------------------------------------- */
.af-progress { margin: 0 0 2em; scroll-margin-top: 1rem; }
.af-progress ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4em;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.af-progress button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45em;
  width: 100%;
  padding: .3em .2em;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: .78em;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  position: relative;
}
/* Verbindungslinie zwischen den Kreisen */
.af-progress li + li button::before {
  content: "";
  position: absolute;
  top: calc(.3em + 1.05em);
  right: calc(50% + 1.3em);
  width: calc(100% - 2.2em);
  height: 1px;
  background: rgb(var(--cream-rgb) / .25);
}
.af-progress__nr {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border: 1.5px solid rgb(var(--cream-rgb) / .4);
  border-radius: 50%;
  font-weight: var(--weight-bold);
  transition: background-color .2s, border-color .2s, color .2s;
}
.af-progress button.is-done .af-progress__nr { border-color: var(--amber); color: var(--amber); }
.af-progress button[aria-current="step"] .af-progress__nr { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.af-progress button[aria-current="step"] .af-progress__label { color: var(--amber); }
.af-progress button:disabled { cursor: default; opacity: .45; }
.af-progress button:not(:disabled):hover .af-progress__label { color: var(--amber); }
.af-progress button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: .4em; }

@media (max-width: 599.98px) {
  /* schmal: nur die Bezeichnung des aktuellen Schritts */
  .af-progress__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .af-progress button[aria-current="step"] .af-progress__label { position: static; width: auto; height: auto; clip-path: none; white-space: normal; }
}


/* --------------------------------------------------------------------------
   Schritte und Gruppen
   -------------------------------------------------------------------------- */
.af-step { display: grid; gap: 2em; }
.af-step[hidden] { display: none; }
.content .af-step__title { margin: 0; }
.af-step__title:focus { outline: none; }

.af-group {
  display: grid;
  gap: 1.3em;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.af-group legend {
  margin-bottom: 1em;
  padding: 0;
  color: var(--amber);
  font-size: .72em;
  font-weight: var(--weight-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.content .af-group__intro { margin: -.4em 0 0; font-size: .9em; opacity: .75; }

.af-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3em 1.6em; }
.af-row--street { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.af-row--place  { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
@media (max-width: 479.98px) {
  .af-row:not(.af-row--street):not(.af-row--place) { grid-template-columns: minmax(0, 1fr); }
}

.field[hidden], .af-details[hidden] { display: none; }
.af-details { display: grid; gap: 1.3em; }


/* --------------------------------------------------------------------------
   Auswahllisten (eigene Liste, das echte <select> bleibt unsichtbar erhalten)
   -------------------------------------------------------------------------- */
.af-dd { position: relative; }
.af-dd--small { display: inline-block; width: 4.8em; }
.af-dd select { position: absolute; inset: auto 0 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }

.af-dd__btn {
  display: block;
  width: 100%;
  padding: .45em 1.6em .45em 0;
  border: 0;
  border-bottom: 1px solid rgb(var(--cream-rgb) / .35);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3b36a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .1em center / 1.1em;
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.af-dd__btn.is-placeholder { color: rgb(var(--cream-rgb) / .6); }
.af-dd__btn:focus-visible,
.af-dd__btn[aria-expanded="true"] { outline: none; border-bottom-color: var(--amber); box-shadow: 0 1px 0 var(--amber); }
.af-dd__btn:disabled { cursor: default; }
[aria-invalid="true"] + .af-dd__btn { border-bottom-color: var(--alert); box-shadow: 0 1px 0 var(--alert); }

.af-dd__list {
  position: absolute;
  top: calc(100% + .35em);
  left: 0;
  z-index: 50;
  min-width: 100%;
  max-height: 16em;
  margin: 0;
  padding: .3em;
  overflow-y: auto;
  list-style: none;
  background: var(--ink-2);
  border: 1px solid rgb(var(--cream-rgb) / .18);
  border-radius: .6em;
  box-shadow: 0 .8em 2em rgb(0 0 0 / .5);
}
.af-dd__list:focus { outline: none; }
.af-dd__list li {
  padding: .5em .8em;
  border-radius: .4em;
  color: var(--cream);
  white-space: nowrap;
  cursor: pointer;
}
.af-dd__list li[aria-selected="true"] { color: var(--amber); }
.af-dd__list li.is-active { background: var(--amber); color: var(--ink); }

.af-unit { display: flex; align-items: baseline; gap: .6em; max-width: 10em; }
.af-unit span { opacity: .8; }

.af-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1.4em; }
.af-inline__more { display: flex; align-items: center; gap: .7em; }
.af-inline__more[hidden] { display: none; }
.field .af-inline__label { margin: 0; white-space: nowrap; }
.af-consent .check { align-items: flex-start; }
.af-consent .check input { margin-top: .25em; }


/* --------------------------------------------------------------------------
   Karte öffnen und übernommene Flächen
   -------------------------------------------------------------------------- */
.af-mapbtn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: .8em 1.4em;
  border: 1.5px solid var(--amber);
  border-radius: 999px;
  background: none;
  color: var(--amber);
  font: inherit;
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.af-mapbtn:hover, .af-mapbtn:focus-visible { background: var(--amber); color: var(--ink); }
.af-mapbtn svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.af-flaechen:not(:empty) {
  margin-top: 1em;
  padding: .9em 1.1em;
  border-left: 2px solid var(--amber);
  background: rgb(var(--cream-rgb) / .05);
}
.content .af-flaechen__sum { display: flex; justify-content: space-between; gap: 1em; margin: 0 0 .4em; font-weight: var(--weight-bold); }
.af-flaechen__list { margin: 0; padding: 0; list-style: none; }
.af-flaechen__list li {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: .3em 0;
  border-top: 1px solid rgb(var(--cream-rgb) / .1);
  font-size: .92em;
}
.af-flaechen__list li span:last-child { flex: none; opacity: .8; }
.content .af-flaechen__extra { margin: .5em 0 0; font-size: .88em; opacity: .8; }


/* --------------------------------------------------------------------------
   Zusammenfassung
   -------------------------------------------------------------------------- */
.af-summary { display: grid; gap: 1.6em; }
.af-summary__block { padding-top: 1em; border-top: 1px solid rgb(var(--cream-rgb) / .15); }
.af-summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; margin-bottom: .6em; }
.content .af-summary__head h3 {
  margin: 0;
  color: var(--amber);
  font-size: .72em;
  font-weight: var(--weight-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.af-summary dl { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: .45em 1.2em; margin: 0; font-size: .92em; }
.af-summary dt { opacity: .7; }
.af-summary dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 479.98px) {
  .af-summary dl { grid-template-columns: minmax(0, 1fr); gap: .1em; }
  .af-summary dd + dt { margin-top: .5em; }
}
.af-edit {
  padding: 0;
  border: 0;
  background: none;
  color: var(--amber);
  font: inherit;
  font-size: .85em;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}


/* --------------------------------------------------------------------------
   Navigation zwischen den Schritten
   -------------------------------------------------------------------------- */
.af-nav { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-top: .4em; }
.af-nav .pill { border: 0; cursor: pointer; }
.af-nav .pill:disabled { opacity: .6; cursor: wait; }
.af-back {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .5em 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .2s;
}
.af-back::before { content: ""; width: 2.6rem; height: 1px; background: var(--amber); }   /* wie „PDF öffnen“ (.content__action) */
.af-back:hover, .af-back:focus-visible { color: var(--amber); }

.content .af-required { margin-top: 1.4em; }
.content #af-done { margin-top: 0; }
.content .af-done-nav { margin-top: 1.6em; }
.af-done-nav[hidden] { display: none; }
.af-done__text { display: block; margin-top: .5em; font-family: var(--sans); font-size: .82em; color: var(--cream); }
.content #af-done:focus { outline: none; }

/* Bearbeiten: Option „keine E-Mail-Bestätigung“ neben dem Speichern-Knopf */
.af-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6em 1.2em; }
.af-nomail { font-size: .92rem; white-space: nowrap; }

/* Einheit „ha“ in der Unterzeile nicht in Großbuchstaben */
.af-ha { text-transform: none; }

/* Auswahl passender PLZ, wenn ein Ort mehrere hat (anfrage.js, Adressvorschläge) */
.af-plzwahl { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .5em; margin-top: -.4em; font-size: .9em; }
.af-plzwahl[hidden] { display: none; }
.af-plzwahl button {
  padding: .25em .8em; border: 1px solid var(--amber); border-radius: 999px;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.af-plzwahl button:hover,
.af-plzwahl button:focus-visible { background: var(--amber); color: var(--ink); }


/* ==========================================================================
   Helle Gestaltung wie /profil (body.thema-hell, siehe THEMA_HELL_SEITEN in config/site.php)
   Gilt für die öffentliche Anfrage und den Landwirt-Link. Grundwerte (--profile-…),
   Kopfband, Karten (.pm-…) und Eingabefelder kommen aus assets/intern/hell.css.
   Intern (eigenes Auftragslayout ohne thema-hell) bleibt unverändert.
   ========================================================================== */
.thema-hell .content--anfrage { max-width: 52rem; }
.thema-hell .af { color-scheme: light; gap: 0; color: var(--profile-text); }
.thema-hell .content--anfrage .pm-titel__zusatz .af-ha { text-transform: none; }

/* Fortschritt als schmale helle Karte */
.thema-hell .af-progress {
  margin: 0 0 18px; padding: 16px 18px 14px; border: 1px solid var(--profile-card-border);
  border-radius: var(--profile-radius-card); background: var(--profile-surface); box-shadow: var(--profile-shadow);
}
.thema-hell .af-progress button { color: var(--profile-muted); font-family: var(--sans); font-size: .8rem; font-weight: 650; }
.thema-hell .af-progress li + li button::before { background: var(--profile-input-border); }
.thema-hell .af-progress__nr { border-color: var(--profile-input-border); background: #fff; color: var(--profile-muted); }
.thema-hell .af-progress button.is-done .af-progress__nr { border-color: var(--profile-primary); background: var(--profile-icon-bg); color: var(--profile-primary); }
.thema-hell .af-progress button[aria-current="step"] .af-progress__nr { border-color: var(--profile-gold); background: var(--profile-gold); color: var(--profile-text); }
.thema-hell .af-progress button[aria-current="step"] .af-progress__label { color: var(--profile-text); font-weight: 750; }
.thema-hell .af-progress button:disabled { opacity: .6; }
.thema-hell .af-progress button:not(:disabled):hover .af-progress__label { color: var(--profile-primary); }
.thema-hell .af-progress button:focus-visible { outline-color: var(--profile-primary); }

/* Schritte: Überschrift nur für Screenreader (Fortschritt und Kartentitel zeigen den Inhalt) */
.thema-hell .af-step { gap: 18px; }
.thema-hell .content .af-step__title {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Jede Gruppe ist eine Karte mit Symbolkachel – wie die Abschnitte auf /profil */
.thema-hell .af-group {
  gap: 18px; padding: 28px 30px; border: 1px solid var(--profile-card-border); border-radius: var(--profile-radius-card);
  background: var(--profile-surface); box-shadow: var(--profile-shadow);
}
.thema-hell .af-group > legend {
  float: left; width: 100%;                      /* float: Legende sitzt in der Karte statt auf dem Rahmen */
  display: flex; align-items: center; gap: 14px; margin: 0 0 4px;
  color: var(--profile-text); font-family: var(--sans); font-size: clamp(1.12rem, 2.4vw, 1.375rem); font-weight: 750;
  line-height: 1.2; letter-spacing: 0; text-transform: none;
}
.thema-hell .af-icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.thema-hell .content .af-group__intro { margin: 0 0 -8px; font-size: .82rem; font-weight: 650; opacity: 1; color: var(--profile-muted); }
.thema-hell .af-row { gap: 18px 16px; }
.thema-hell .af-details { gap: 18px; }

/* Felder ergänzend zu hell.css: mehrzeiliges Feld, Auswahllisten, Einheit, Kästchen */
.thema-hell .pm .field textarea {
  min-height: 8em; padding: 12px 14px; border: 1px solid var(--profile-input-border); border-radius: var(--profile-radius-input);
  background: var(--profile-input-bg); color: var(--profile-text); font-family: var(--sans); font-size: .95rem; line-height: 1.5;
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.thema-hell .pm .field textarea:hover { border-color: #a9c2b8; }
.thema-hell .pm .field textarea:focus { outline: none; border-color: var(--profile-primary); box-shadow: 0 0 0 3px rgb(47 102 96 / .18); }
.thema-hell .pm .field textarea[aria-invalid="true"] { border-color: var(--profile-error); box-shadow: 0 0 0 3px rgb(179 55 42 / .12); }
.thema-hell .pm .field input[type="date"],
.thema-hell .pm .field input[type="time"] { width: 100%; }

.thema-hell .af-dd__btn {
  min-height: 49px; padding: 0 38px 0 14px; border: 1px solid var(--profile-input-border); border-radius: var(--profile-radius-input);
  background: var(--profile-input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667b79' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--profile-text); font-family: var(--sans); font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.thema-hell .af-dd__btn:hover { border-color: #a9c2b8; }
.thema-hell .af-dd__btn.is-placeholder { color: var(--profile-muted); }
.thema-hell .af-dd__btn:focus-visible,
.thema-hell .af-dd__btn[aria-expanded="true"] { border-color: var(--profile-primary); box-shadow: 0 0 0 3px rgb(47 102 96 / .18); }
.thema-hell [aria-invalid="true"] + .af-dd__btn { border-color: var(--profile-error); box-shadow: 0 0 0 3px rgb(179 55 42 / .12); }
.thema-hell .af-dd--small { width: 5.6em; }
.thema-hell .af-dd__list {
  top: calc(100% + 6px); padding: 6px; border: 1px solid var(--profile-card-border); border-radius: 12px;
  background: #fff; box-shadow: 0 14px 36px rgb(24 59 59 / .16);
}
.thema-hell .af-dd__list li { color: var(--profile-text); font-family: var(--sans); font-size: .95rem; }
.thema-hell .af-dd__list li[aria-selected="true"] { color: var(--profile-primary); font-weight: 700; }
.thema-hell .af-dd__list li.is-active { background: var(--profile-icon-bg); color: var(--profile-text); }
.thema-hell .af-unit { align-items: center; }
.thema-hell .af-unit span { color: var(--profile-muted); opacity: 1; }

.thema-hell .pm.content--anfrage .field label.check,
.thema-hell .pm.content--anfrage label.check {
  display: flex; align-items: center; gap: .65rem; margin: 0; color: var(--profile-text);
  font-family: var(--sans); font-size: .92rem; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: 1;
}
.thema-hell .af .check input {
  width: 20px; height: 20px; border: 1.5px solid #8fb5aa; border-radius: 5px; background: #fff; box-shadow: none;
}
.thema-hell .af .check input:hover { border-color: var(--profile-primary); }
.thema-hell .af .check input:checked {
  border-color: var(--profile-primary); box-shadow: none;
  background: var(--profile-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px;
}
.thema-hell .af .check input[aria-invalid="true"] { border-color: var(--profile-error); box-shadow: 0 0 0 3px rgb(179 55 42 / .12); }
.thema-hell .af .check input:focus-visible { outline-color: var(--profile-primary); }
.thema-hell .pm.content--anfrage .field .af-inline__label { display: inline; margin: 0; font-size: .85rem; }
.thema-hell .af-consent .check input { margin-top: 1px; }
.thema-hell .af-consent {
  padding: 16px 18px; border: 1px solid var(--profile-meta-border); border-radius: 14px; background: var(--profile-meta-bg);
}
.thema-hell .af-consent a { color: var(--profile-primary); font-weight: 700; }

/* Karte öffnen und übernommene Flächen */
.thema-hell .af-mapbtn {
  min-height: 46px; padding: 0 20px; border: 1.5px solid #8fb5aa; border-radius: var(--profile-radius-input);
  background: #fff; color: var(--profile-text); font-family: var(--sans); font-size: .92rem; font-weight: 700;
}
.thema-hell .af-mapbtn svg { color: var(--profile-icon); }
.thema-hell .af-mapbtn:hover,
.thema-hell .af-mapbtn:focus-visible { border-color: var(--profile-primary); background: #f7faf8; color: var(--profile-text); outline: none; }
.thema-hell .af-mapbtn:focus-visible { box-shadow: 0 0 0 3px rgb(47 102 96 / .18); }
.thema-hell .af-flaechen:not(:empty) {
  padding: 12px 16px; border: 1px solid var(--profile-meta-border); border-left: 3px solid var(--profile-gold);
  border-radius: 11px; background: var(--profile-meta-bg); font-size: .92rem;
}
.thema-hell .af-flaechen__list li { border-top-color: var(--profile-meta-border); }
.thema-hell .af-flaechen__list li span:last-child,
.thema-hell .content .af-flaechen__extra { color: var(--profile-muted); opacity: 1; }
.thema-hell .af-plzwahl button { border-color: #8fb5aa; color: var(--profile-text); font-family: var(--sans); }
.thema-hell .af-plzwahl button:hover,
.thema-hell .af-plzwahl button:focus-visible { border-color: var(--profile-primary); background: var(--profile-icon-bg); color: var(--profile-text); }

/* Zusammenfassung als Karte */
.thema-hell .af-summary {
  gap: 0; padding: 10px 30px 14px; border: 1px solid var(--profile-card-border); border-radius: var(--profile-radius-card);
  background: var(--profile-surface); box-shadow: var(--profile-shadow);
}
.thema-hell .af-summary__block { padding: 18px 0; border-top: 1px solid var(--profile-meta-border); }
.thema-hell .af-summary__block:first-child { border-top: 0; }
.thema-hell .content .af-summary__head h3 {
  color: var(--profile-text); font-family: var(--sans); font-size: 1.05rem; font-weight: 750; letter-spacing: 0; text-transform: none;
}
.thema-hell .af-summary dl { font-size: .9rem; }
.thema-hell .af-summary dt { color: var(--profile-muted); opacity: 1; }
.thema-hell .af-edit { color: var(--profile-primary); font-family: var(--sans); font-weight: 700; }
.thema-hell .af-edit:focus-visible { outline: 2px solid var(--profile-primary); outline-offset: 3px; border-radius: 4px; }

/* Navigation: „Weiter“ als goldener Knopf, „Zurück“ wie „Zum Startplatz“ auf /profil */
.thema-hell .af-nav { margin-top: 6px; }
.thema-hell .af-nav .pill,
.thema-hell .af-done-nav .pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px;
  border: 0; border-radius: var(--profile-radius-input); background: #eaa34f; color: #153b35;
  font-family: var(--sans); font-size: .95rem; font-weight: 750; letter-spacing: 0; text-transform: none;
  box-shadow: 0 3px 12px rgb(21 56 48 / .32); text-decoration: none; transition: background-color .15s;
}
.thema-hell .af-nav .pill:hover,
.thema-hell .af-done-nav .pill:hover { background: #f4bc72; color: #153b35; }
.thema-hell .af-nav .pill:focus-visible,
.thema-hell .af-done-nav .pill:focus-visible { outline: 3px solid #165e50; outline-offset: 3px; }
.thema-hell .af-back { color: var(--profile-text); font-family: var(--sans); font-size: .9rem; font-weight: 750; letter-spacing: .06em; }
.thema-hell .af-back::before { background: #b8742e; }
.thema-hell .af-back:hover, .thema-hell .af-back:focus-visible { color: #065a4b; outline: none; }
.thema-hell .af-back:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
.thema-hell .af-nomail { color: var(--profile-text); }
.thema-hell .content .af-required { margin-top: 18px; font-size: .8rem; color: var(--profile-muted); opacity: 1; }
.thema-hell .af-done__text { color: var(--profile-success-text); }
.thema-hell .pm .form-note--ok strong { color: var(--profile-success-text); }

/* ---- Zwischenhalt: Spendenhinweis ---- */
.af-hinweis[hidden] { display: none; }
.af:has(> .af-hinweis:not([hidden])) .af-required { display: none; }   /* Zwischenhalt hat keine Felder */
.af-hinweis { display: grid; gap: 18px; }
.af-hinweis__karte {
  padding: 28px 30px; border: 1px solid var(--profile-card-border); border-radius: var(--profile-radius-card);
  background: var(--profile-surface); box-shadow: var(--profile-shadow);
}
.af-hinweis .pm-icon svg,
.af-start__text svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.af-hinweis__kopf { margin-bottom: 18px; }
.af-hinweis__titel:focus { outline: none; }

/* Lesefenster: begrenzte Höhe, unten verblassend, bis das Ende erreicht ist */
.af-hinweis__rahmen { position: relative; }
.af-hinweis__rahmen::after {
  content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 4.5rem; border-radius: 0 0 13px 13px; pointer-events: none;
  background: linear-gradient(rgb(252 253 251 / 0), var(--profile-input-bg) 85%); transition: opacity .3s;
}
.af-hinweis__rahmen.is-ende::after { opacity: 0; }
.af-hinweis__text {
  max-height: min(17rem, 52vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 22px 22px; border: 1px solid var(--profile-meta-border); border-radius: 14px; background: var(--profile-input-bg);
  font-family: var(--sans); font-size: .95rem; line-height: 1.55; color: #2c4a48;
}
.af-hinweis__text:focus-visible { outline: 2px solid var(--profile-primary); outline-offset: 3px; }
.content .af-hinweis__lead { margin: 0 0 6px; font-weight: 750; color: var(--profile-text); }
.content .af-hinweis__text h3 { margin: 16px 0 6px; font-family: var(--sans); font-size: 1rem; font-weight: 750; line-height: 1.3; color: var(--profile-text); }
.af-liste { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.af-liste li { position: relative; padding-left: 24px; }
.af-liste li::before {
  content: ""; position: absolute; left: 5px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--profile-gold);
}
.af-liste--haken li::before {
  left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--profile-success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328765c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") no-repeat center / 11px;
}

/* Startknopf: füllt sich beim Lesen wie ein Akku, erst voll ist er aktiv */
.af-start-box { display: grid; justify-items: end; gap: 8px; margin-top: 20px; }
.af-start {
  --akku: 0%;
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  overflow: hidden; border: 1.5px dashed #c9a06c; border-radius: var(--profile-radius-input);
  background: var(--profile-warning-bg); color: #8a6a44; font-family: var(--sans); font-size: 1rem; font-weight: 750; cursor: not-allowed;
  transition: color .2s, box-shadow .2s, border-color .2s;
}
.af-start__akku {
  position: absolute; inset: 0 auto 0 0; width: var(--akku); background: rgb(234 163 79 / .55); transition: width .15s linear;
}
.af-start__text { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.af-start__text svg { width: 22px; height: 22px; }
.af-start.is-bereit {
  border: 1.5px solid #eaa34f; background: #eaa34f; color: #153b35; cursor: pointer; box-shadow: 0 3px 12px rgb(21 56 48 / .32);
}
.af-start.is-bereit .af-start__akku { display: none; }
.af-start.is-bereit:hover { background: #f4bc72; border-color: #f4bc72; }
.af-start:focus-visible { outline: 3px solid #165e50; outline-offset: 3px; }
.content .af-start__info { margin: 0; max-width: 30rem; font-size: .8rem; text-align: right; color: var(--profile-muted); }
.af-start__info[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .af-start.is-bereit .af-start__text svg { animation: af-abheben .7s cubic-bezier(.3, .7, .3, 1) both; }
  .af-start__info.is-betont { animation: af-stups .45s ease-in-out; }
  @keyframes af-abheben { 0% { transform: translateY(0); } 45% { transform: translateY(-5px) rotate(-6deg); } 100% { transform: none; } }
  @keyframes af-stups { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
}
.content .af-start__info.is-betont { color: var(--profile-warning-text); font-weight: 650; }

/* ---- Menüleiste unten (öffentliche Seite): fixiert und transparent ----
   Keine Fläche, keine Unschärfe, keine Linie – wie die Aktionsleiste auf /profil.
   Kontrastreiche Schrift und deckender Goldknopf bleiben lesbar. */
.thema-hell.seite-einsatzanfrage .site-footer { display: block; }
@media (min-width: 600px) {
  .thema-hell.seite-einsatzanfrage .page--text .site-footer {
    background: transparent; border-top: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .thema-hell.seite-einsatzanfrage .footer-nav { border-top: 0; margin-top: 0; padding-top: 1rem; }
  .thema-hell.seite-einsatzanfrage .footer-nav__link { color: var(--profile-text); opacity: 1; font-weight: 750; text-shadow: none; }
  .thema-hell.seite-einsatzanfrage .footer-nav__link:hover,
  .thema-hell.seite-einsatzanfrage .footer-nav__link:focus-visible { color: #065a4b; }
  .thema-hell.seite-einsatzanfrage .footer-nav .pill { background: #eaa34f; color: #153b35; box-shadow: 0 3px 12px rgb(21 56 48 / .32); }
  .thema-hell.seite-einsatzanfrage .footer-nav .pill:hover { background: #f4bc72; }
}

/* Hamburger-Menü: Viertelkreis in der Ecke im Petrol des Kopfbands statt Dunkelgrün */
.thema-hell.seite-einsatzanfrage .menu__backdrop { background: var(--profile-header); }

/* ---- Schmale Bildschirme ---- */
@media (max-width: 720px) {
  .thema-hell .af-group, .af-hinweis__karte { padding: 21px 18px; }
  .thema-hell .af-summary { padding: 4px 18px 10px; }
  .af-hinweis__text { padding: 14px 16px 20px; }
}
@media (max-width: 479.98px) {
  .af-start-box { justify-items: stretch; }
  .af-start { padding: 0 16px; }
  .content .af-start__info { text-align: left; }
  .thema-hell .af-progress { padding: 12px 10px 10px; }
}

/* --------------------------------------------------------------------------
   Landwirte: Betriebsauswahl und Leiste (Anmeldefenster: styles/main.css Abschnitt 17)
   (pages/einsatzanfrage.php, includes/lw-anmeldeformular.php, includes/lw-leiste.php)
   -------------------------------------------------------------------------- */
.content .lw-wahl__titel { margin-top: 0; }
.lw-wahl { display: grid; gap: .7em; margin: 0 0 1.6em; padding: 0; list-style: none; }
.content a.lw-wahl__eintrag {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: 1em 1.2em; border: 1px solid rgb(var(--cream-rgb) / .2); border-radius: 12px;
  color: var(--cream); text-decoration: none; transition: border-color .15s, background-color .15s;
}
.content a.lw-wahl__eintrag:hover,
.content a.lw-wahl__eintrag:focus-visible { border-color: var(--amber); background: rgb(var(--amber-rgb) / .07); }
.lw-wahl__name { display: block; font-weight: var(--weight-bold); }
.lw-wahl__info { display: block; margin-top: .15em; font-size: .88em; opacity: .75; }
.lw-wahl__pfeil { flex: none; display: grid; color: var(--amber); }
.lw-wahl__pfeil svg { width: 18px; height: 18px; transform: rotate(180deg); }

.content .lw-hinweis { margin: 0 0 1.2em; }
.lw-leiste {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6em 1.6em;
  margin: 0 0 1.8em; padding: .9em 1.2em; border: 1px solid rgb(var(--cream-rgb) / .2); border-radius: 12px;
  font-size: .92em;
}
.content .lw-leiste__wer { margin: 0; }
.lw-leiste__links { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1.4em; }
.lw-leiste__links form { margin: 0; }
.lw-leiste__links button {
  padding: 0; border: 0; background: none; color: var(--amber); font: inherit; cursor: pointer;
}
.lw-leiste__links button:hover { text-decoration: underline; }
.lw-leiste__links button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
