/* Paket D (30.11.2026): Anfrage-Formular auf lieferung.php (#anfrage).
   Farben wie extras.css: Tafel #232b24, Papier #fbf8f1, Tinte #2a241c, Grün #3f6b3a/#29452a, Bernstein #a86a2a. */

.rz-btn.af-btn-kopf { background: #f4c988; color: #2a241c; }
.rz-btn.af-btn-kopf:hover, .rz-btn.af-btn-kopf:focus-visible { background: #fbf8f1; }

.af { scroll-margin-top: 90px; }
.af-form {
  background: #fbf8f1; border: 1px solid #d9cfba; border-radius: 18px;
  padding: 8px 28px 28px; max-width: 760px;
  box-shadow: 0 18px 36px -28px rgba(42, 36, 28, 0.5);
}
.af-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.af [hidden] { display: none !important; }

.af-schritt { border: 0; margin: 0; padding: 24px 0 24px; border-bottom: 1px dashed #d9cfba; min-width: 0; }
.af-schritt legend + * { clear: both; }
.af-schritt legend {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 4px;
  font-family: "Karla", system-ui, sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: #2a241c;
}
.af-nr {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: #232b24; color: #f4c988;
  font-family: "Caveat", cursive; font-size: 1.6rem; font-weight: 700; line-height: 1;
}

.af-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.af-reihe-plz { grid-template-columns: 9em 1fr; }
.af-feld.af-breit { grid-column: 1 / -1; }
.af-feld { margin-top: 14px; min-width: 0; }
.af-feld label, .af-label { display: block; font-weight: 700; color: #2a241c; margin: 0 0 6px; font-size: 0.97rem; }
.af-label { margin-top: 16px; }

.af-form input[type="text"], .af-form input[type="tel"], .af-form input[type="email"],
.af-form input[type="date"], .af-form select, .af-form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #c9bb9c; border-radius: 10px; background: #fff; color: #2a241c;
  font: inherit; font-size: 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.af-form textarea { min-height: 0; line-height: 1.5; resize: vertical; }
.af-form #af-betrag { max-width: 22em; }
.af-form input:focus, .af-form select:focus, .af-form textarea:focus {
  outline: none; border-color: #3f6b3a; box-shadow: 0 0 0 3px rgba(63, 107, 58, 0.22);
}
.af-form [aria-invalid="true"] { border-color: #a3312a; background: #fff8f7; }
.af-hilfe { margin: 6px 0 0; color: #5c5445; font-size: 0.88rem; line-height: 1.45; }
.af-hilfe-oben { margin-top: 8px; }
.af-fehler { margin: 6px 0 0; color: #a3312a; font-weight: 700; font-size: 0.9rem; }

/* Auswahl als Pillen (Radio) und Chips (Checkbox) */
.af-pillen, .af-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.af-pille, .af-chip { position: relative; cursor: pointer; }
.af-pille input, .af-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af-pille span, .af-chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px;
  border: 1.5px solid #c9bb9c; border-radius: 999px; background: #fff;
  font-weight: 700; color: #2a241c; line-height: 1.25;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
}
.af-pillen-klein .af-pille span { min-height: 42px; padding: 6px 14px; font-weight: 600; font-size: 0.95rem; }
.af-pille:hover span, .af-chip:hover span { border-color: #3f6b3a; }
.af-pille input:checked + span { background: #29452a; border-color: #29452a; color: #fbf8f1; }
.af-chip input:checked + span { background: #dfe9d6; border-color: #3f6b3a; color: #29452a; }
.af-chip input:checked + span::before { content: "✓"; margin-right: 8px; }
.af-pille input:focus-visible + span, .af-chip input:focus-visible + span { outline: 2px solid #2a241c; outline-offset: 2px; }
.af-pille:active span, .af-chip:active span { transform: scale(0.97); }

.af-abschluss { padding-top: 22px; }
.af-check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: #5c5445; line-height: 1.5; cursor: pointer; }
.af-check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: #29452a; }
.af-check a { color: #29452a; }
.af-senden { margin-top: 20px; border: 0; cursor: pointer; font-size: 1.05rem; min-height: 52px; padding: 0 28px; }

.af-meldung {
  max-width: 760px; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px;
  background: #f4dcd9; color: #7e241f; border: 1px solid #e3b9b4; font-weight: 700;
}
.af-meldung:focus { outline: 2px solid #a3312a; outline-offset: 2px; }

.af-danke {
  max-width: 760px; padding: 26px 28px; border-radius: 18px;
  background: #232b24; color: #ecebe3; border: 2px solid #a86a2a;
}
.af-danke:focus { outline: none; }
.af-danke p { margin: 0 0 10px; color: #b9c2b6; }
.af-danke .af-danke-gross { font-family: "Caveat", cursive; font-size: 2rem; line-height: 1.15; color: #f4c988; }
.af-danke a { color: #fbf8f1; }
.af-danke .lf-mehr { color: #f4c988; text-decoration-color: rgba(244, 201, 136, 0.5); }

.lf-etikett .lf-mehr { align-self: flex-start; padding: 2px; font-size: 0.9rem; }
.lf-etikett .lf-btn + .lf-mehr { margin-top: -2px; }

@media (max-width: 600px) {
  .af-form { padding: 4px 16px 22px; border-radius: 14px; }
  .af-reihe { grid-template-columns: 1fr; }
  .af-reihe-plz { grid-template-columns: 7.5em 1fr; }
  .af-schritt legend { font-size: 1.15rem; }
  .af-senden { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .af-pille span, .af-chip span, .af-form input, .af-form select, .af-form textarea { transition: none; }
}
