/* Editoriale Auswahlliste für Preisermittler und Anfrage-Funnel.
   Gilt nur innerhalb eines Formulars mit der Klasse .choice-ed und überschreibt dort die Auswahlkarten aus site.css (.choice).
   Die echten Eingabefelder bleiben unverändert (unsichtbar über der Zeile): Tastatur, Screenreader und Formularlogik funktionieren wie bisher.
   Einfachauswahl: die gewählte Zeile wird zur Tintenfläche. Mehrfachauswahl: Goldlinie links, Plus wird zum Haken. */

.choice-ed{--choice-ease:cubic-bezier(.2,.7,.2,1)}

.choice-ed .choice-grid,
.choice-ed .choice-grid.cols-3{display:block;border-top:2px solid var(--ink)}
.choice-ed .choice{border-bottom:1px solid var(--line-strong)}

.choice-ed .choice .choice-body{
  display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;row-gap:5px;align-items:baseline;
  height:auto;min-height:0;padding:20px 18px 20px 2px;
  background:transparent;border:0;border-radius:0;box-shadow:none;
  transition:background-color .28s var(--choice-ease),color .2s,box-shadow .28s var(--choice-ease)
}
.choice-ed .choice .choice-body:before{content:none}
.choice-ed .choice .choice-body>*{transition:transform .35s var(--choice-ease),color .2s}
.choice-ed .choice .choice-body strong{grid-column:1;font-size:clamp(19px,1.65vw,23px);font-weight:500;line-height:1.28;letter-spacing:-.014em}
.choice-ed .choice .choice-body>span{grid-column:1;font-size:15px;line-height:1.5;color:var(--muted)}
.choice-ed .choice .choice-meta{grid-column:2;grid-row:1/span 2;align-self:center;margin:0;padding:0;font:600 clamp(19px,1.6vw,23px)/1 var(--font-display);letter-spacing:.02em;text-transform:none;text-align:right;white-space:nowrap;color:var(--ink)}
.choice-ed .choice .choice-meta.is-review{font:600 12px/1.3 var(--font-body);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

/* Bewegung beim Überfahren: der Inhalt rückt ein, die Zeile bleibt ruhig. */
.choice-ed .choice input:hover+.choice-body>*{transform:translateX(10px)}
.choice-ed .choice input:hover+.choice-body .choice-meta{transform:none}

/* Einfachauswahl */
.choice-ed .choice:not(.is-checkbox) input:checked+.choice-body{background:var(--ink);color:var(--paper);box-shadow:inset 5px 0 0 var(--gold)}
.choice-ed .choice:not(.is-checkbox) input:checked+.choice-body>*{transform:translateX(20px)}
.choice-ed .choice:not(.is-checkbox) input:checked+.choice-body .choice-meta{transform:none;color:var(--gold)}
.choice-ed .choice:not(.is-checkbox) input:checked+.choice-body>span{color:var(--muted-dark)}
.choice-ed .choice:not(.is-checkbox) input:checked+.choice-body .choice-meta.is-review{color:var(--muted-dark)}

/* Mehrfachauswahl: eigenes Zeichen in einer schmalen Spalte */
.choice-ed .choice.is-checkbox .choice-body{grid-template-columns:22px minmax(0,1fr) auto;padding-left:16px}
.choice-ed .choice.is-checkbox .choice-body strong,
.choice-ed .choice.is-checkbox .choice-body>span{grid-column:2}
.choice-ed .choice.is-checkbox .choice-meta{grid-column:3}
.choice-ed .choice.is-checkbox .choice-body:before,
.choice-ed .choice.is-checkbox .choice-body:after{content:'';position:relative;left:auto;top:auto;grid-column:1;grid-row:1;align-self:center;justify-self:start;transition:transform .35s var(--choice-ease),opacity .25s}
/* Plus */
.choice-ed .choice.is-checkbox .choice-body:before{width:14px;height:14px;border:0;border-radius:0;background:linear-gradient(var(--ink),var(--ink)) center/14px 1.5px no-repeat,linear-gradient(var(--ink),var(--ink)) center/1.5px 14px no-repeat;box-shadow:none}
/* Haken */
.choice-ed .choice.is-checkbox .choice-body:after{width:7px;height:13px;margin:0 0 3px 4px;border:solid var(--ink);border-width:0 2px 2px 0;opacity:0;transform:rotate(45deg) scale(.4)}
.choice-ed .choice.is-checkbox input:checked+.choice-body{background:#dfb7682b;box-shadow:inset 5px 0 0 var(--gold)}
.choice-ed .choice.is-checkbox input:checked+.choice-body:before{opacity:0;transform:rotate(90deg) scale(.4)}
.choice-ed .choice.is-checkbox input:checked+.choice-body:after{opacity:1;transform:rotate(45deg) scale(1)}
.choice-ed .choice.is-checkbox input:checked+.choice-body strong{font-weight:600}

/* Fokus: sichtbar auf heller wie auf dunkler Zeile */
.choice-ed .choice input:focus-visible+.choice-body{outline:2px solid var(--ink);outline-offset:-2px}
.choice-ed .choice:not(.is-checkbox) input:focus-visible:checked+.choice-body{outline-color:var(--gold);outline-offset:-4px}

/* Fehlerzustand der Gruppe */
.choice-ed .field.is-invalid .choice-grid{border-top-color:var(--bad)}

@media(prefers-reduced-motion:reduce){
  .choice-ed .choice .choice-body,.choice-ed .choice .choice-body>*,
  .choice-ed .choice.is-checkbox .choice-body:before,.choice-ed .choice.is-checkbox .choice-body:after{transition:none}
}
@media(hover:none){
  .choice-ed .choice input:hover+.choice-body>*{transform:none}
}
@media(max-width:700px){
  .choice-ed .choice .choice-body{column-gap:16px;padding:17px 14px 17px 0}
  .choice-ed .choice.is-checkbox .choice-body{padding-left:12px;grid-template-columns:20px minmax(0,1fr) auto}
  .choice-ed .choice .choice-body strong{font-size:18px}
  .choice-ed .choice .choice-body>span{font-size:14.5px}
  .choice-ed .choice .choice-meta{font-size:19px}
  /* Textmarken („Individuelle Prüfung“) rutschen unter die Antwort, damit sie die Zeile nicht zusammendrücken. */
  .choice-ed .choice .choice-meta.is-review{grid-column:1;grid-row:auto;justify-self:start;align-self:start;text-align:left;margin-top:3px;font-size:11.5px}
  .choice-ed .choice.is-checkbox .choice-meta.is-review{grid-column:2}
  .choice-ed .choice:not(.is-checkbox) input:checked+.choice-body .choice-meta.is-review{transform:translateX(14px)}
  .choice-ed .choice:not(.is-checkbox) input:checked+.choice-body>*{transform:translateX(14px)}
  .choice-ed .choice:not(.is-checkbox) input:checked+.choice-body .choice-meta{transform:none}
}
