/* ==========================================================================
   Odent — Anfrage der Startseite (#anfrage), seit 29.10.2026 eigene Datei

   Die Felder selbst (anfrage-feld, -fehler, -meldung, -topf …) teilt sich die
   Seite mit dem Störungsformular; sie stehen in abschnitte.css. Hier steht,
   was nur diese Anfrage hat: der Abschnitt, die Karten zum Antippen, die drei
   Schritte, die ruhige Spalte daneben. Präfix "anfrage-".

   Zwei Spalten ab 900 px: links das Formular, rechts die ruhige Spalte für
   alle, die lieber direkt schreiben. Darunter untereinander, Formular zuerst.

   Ohne JavaScript stehen alle drei Schritte untereinander (ein normales
   Formular); .anfrage-in-schritten setzt erst anfrage.js.
   ========================================================================== */

.anfrage {
  background: var(--papier-grau);
  border-top: 1px solid var(--linie);
}
.anfrage-gitter { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) {
  .anfrage-gitter {
    grid-template-columns: minmax(0, 1fr) clamp(240px, 26%, 320px);
    align-items: start;
  }
}
.anfrage-wort > * + * { margin-top: clamp(14px, 1.6vw, 20px); }
.anfrage-fuehrung { max-width: 46ch; }

/* --- Das Formular als Karte -------------------------------------------- */
/* Eine weisse Fläche auf dem grauen Grund: Man sieht auf einen Blick, wo
   das Formular anfängt und aufhört — und dass es nicht lang ist. */
.anfrage-form {
  margin-top: clamp(26px, 3vw, 40px);
  max-width: 600px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--rund-l);
  background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--linie), 0 18px 40px -28px rgba(21, 32, 46, 0.25);
}
.anfrage-form > * + * { margin-top: clamp(18px, 2vw, 24px); }
/* Das versteckte Sprachfeld steht zuerst — es darf keinen Abstand erzeugen. */
.anfrage-form > input[type="hidden"] + * { margin-top: 0; }

/* --- Stand: Schritt 1 von 3 -------------------------------------------- */
.anfrage-stand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 12px;
  padding-bottom: 6px;
}
.anfrage-stand-text { grid-column: 2; text-align: right; }
.anfrage-stand-balken { grid-column: 1 / -1; }
/* „Zurück“ klein oben links, wie in Apps üblich — unten bleibt Platz für
   den einen Knopf, um den es geht. Im ersten Schritt gibt es kein Zurück. */
.anfrage-zurueck {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-block: -10px;
  padding: 0 8px 0 0;
  border: 0;
  background: none;
  color: var(--blau);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.anfrage-zurueck::before { content: "‹"; font-size: 1.4em; line-height: 1; margin-top: -2px; }
.anfrage-zurueck:hover { color: var(--blau-tief); }
.anfrage-zurueck[hidden] { display: none; }
.anfrage-stand[hidden] { display: none; }
.anfrage-stand-text { font-size: 0.8125rem; font-weight: 600; color: var(--tinte-leise); }
.anfrage-stand-balken {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--papier-grau);
  overflow: hidden;
}
.anfrage-stand-balken > span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--blau);
  transform-origin: left center;
  transform: scaleX(var(--anteil, 0.3333));
  transition: transform 420ms var(--kurve);
}

/* --- Schritte ----------------------------------------------------------- */
.anfrage-schritt { margin: 0; padding: 0; border: 0; min-width: 0; }
.anfrage-schritt[hidden] { display: none; }
/* Ohne Skript stehen die Schritte untereinander — dann mit Abstand und Linie. */
.anfrage-form:not(.anfrage-in-schritten) .anfrage-schritt + .anfrage-schritt {
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid var(--linie);
}
.anfrage-frage {
  padding: 0;
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--tinte);
}
/* Eine <legend> sitzt sonst auf der Oberkante des fieldset — mit float
   wird sie zur gewöhnlichen Überschrift über dem Inhalt. */
.anfrage-frage { float: left; width: 100%; }
.anfrage-frage + * { clear: both; }
.anfrage-frage:focus { outline: none; }
.anfrage-frage:focus-visible { outline: 2px solid var(--blau); outline-offset: 4px; }
.anfrage-dauer { margin: -6px 0 14px; }
.anfrage-schritt .anfrage-felder + .anfrage-weiter,
.anfrage-karten + .anfrage-weiter { margin-top: 20px; }

/* --- Karten zum Antippen ----------------------------------------------- */
.anfrage-karten { display: grid; gap: 10px; }
@media (min-width: 560px) {
  .anfrage-karten { grid-template-columns: 1fr 1fr; }
}
.anfrage-karte {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: start;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: var(--rund-m);
  background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--linie);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 180ms var(--kurve), background-color 180ms var(--kurve), scale 180ms var(--kurve);
}
/* Der Knopf selbst bleibt im Baum — er trägt Tastenbedienung und Vorlesen.
   Sichtbar ist der gezeichnete Punkt davor. */
.anfrage-karte input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.anfrage-karte::before {
  content: "";
  grid-row: span 2;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--tinte-still);
  transition: box-shadow 180ms var(--kurve);
}
.anfrage-karte-titel { font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.anfrage-karte-text { font-size: 0.875rem; line-height: 1.4; color: var(--tinte-leise); }
.anfrage-karte:hover { background: #fbfdff; box-shadow: inset 0 0 0 1px var(--blau-hauch); }
.anfrage-karte:active { scale: 0.99; }
.anfrage-karte:has(input:checked) { background: #f5f9ff; box-shadow: inset 0 0 0 2px var(--blau); }
.anfrage-karte:has(input:checked)::before { box-shadow: inset 0 0 0 5px var(--blau); }
.anfrage-karte:has(input:focus-visible) { outline: 2px solid var(--blau); outline-offset: 3px; }

/* --- Weiter / Zurück ---------------------------------------------------- */
.anfrage-weiter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.anfrage-weiter[hidden], .anfrage-weiter [hidden] { display: none; }
.anfrage-vor, .anfrage-senden { flex: 1 1 auto; justify-content: center; }
@media (min-width: 560px) {
  .anfrage-vor, .anfrage-senden { flex: 0 0 auto; }
}
.anfrage-senden [hidden] { display: none; }

/* --- Verweis auf den Pilotplatz unter den Karten ----------------------- */
.anfrage-direkt { margin-top: 14px; }
.anfrage-direkt a { color: var(--blau); font-weight: 600; text-decoration: none; }
.anfrage-direkt a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* --- Mehr erzählen (freiwillig) ---------------------------------------- */
.anfrage-mehr {
  border-radius: var(--rund-m);
  box-shadow: inset 0 0 0 1px var(--linie);
}
.anfrage-mehr > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.anfrage-mehr > summary::-webkit-details-marker { display: none; }
.anfrage-mehr > summary::after {
  content: "";
  margin-left: auto;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--blau), var(--blau)) center / 14px 2px no-repeat,
    linear-gradient(var(--blau), var(--blau)) center / 2px 14px no-repeat;
}
.anfrage-mehr[open] > summary::after { background: linear-gradient(var(--blau), var(--blau)) center / 14px 2px no-repeat; }
.anfrage-mehr-titel { flex: 1 1 auto; min-width: 0; }
.anfrage-mehr > summary em { font-style: normal; font-weight: 500; color: var(--tinte-leise); }
.anfrage-mehr > .anfrage-felder { padding: 4px 16px 18px; }

/* Nur bei einer Vorführung (anfrage.js). */
.anfrage-wann[hidden] { display: none; }
.anfrage-zeiten { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.anfrage-zeiten label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.anfrage-zeiten input { accent-color: var(--blau); width: 17px; height: 17px; }
.anfrage-zeiten label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blau); }

.anfrage-schritt > * + * { margin-top: 16px; }
.anfrage-schritt > .anfrage-frage + * { margin-top: 0; }

/* --- Vertrauen am Knopf ------------------------------------------------- */
.anfrage-vertrauen {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.8125rem;
  color: var(--tinte-leise);
}
.anfrage-vertrauen li { display: inline-flex; align-items: center; gap: 6px; }
.anfrage-vertrauen li::before {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -3px;
  border-left: 1.6px solid var(--tuerkis);
  border-bottom: 1.6px solid var(--tuerkis);
  rotate: -45deg;
}

/* --- Entwurf ------------------------------------------------------------ */
.anfrage-entwurf { font-size: 0.8125rem; color: var(--tinte-leise); }
.anfrage-entwurf[hidden], .anfrage-entwurf [hidden] { display: none; }
.anfrage-entwurf-weg {
  margin-left: 4px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.anfrage-entwurf-weg:hover { color: var(--tinte); }

/* --- Die ruhige Spalte daneben ------------------------------------------ */
.anfrage-daneben {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--rund-m);
  background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--linie);
}
.anfrage-daneben h3 { font-size: var(--t-klein); letter-spacing: -0.01em; }
.anfrage-daneben > * + * { margin-top: 14px; }
.anfrage-weg { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.anfrage-weg:hover { color: var(--blau); }
.anfrage-wann-wir { font-size: 0.875rem; color: var(--tinte-leise); }
.anfrage-trenner { height: 1px; background: var(--linie); border: 0; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .anfrage-stand-balken > span, .anfrage-karte { transition: none; }
}
