/* Anfrage-Funnel (Fassung 20261014, gemeinsam für die Appiarius-Websites).
   Markenfarben stehen in den Variablen am Anfang. Ohne JavaScript greifen nur die Grundregeln für die Schritte;
   Karten und Schrittnavigation erscheinen erst mit dem Skript. */
.anfrage-funnel{
  --funnel-akzent:#765920;
  --funnel-akzent-text:#fff;
  --funnel-akzent-leise:rgba(118,89,32,.16);
  --funnel-dunkel:#082c34;
  --funnel-text:#082c34;
  --funnel-text-leise:#5f7074;
  --funnel-rand:#d6dedf;
  --funnel-linie:#e3e9e9;
  --funnel-flaeche:#fff;
  --funnel-bildgrund:#f4f6f5;
  --funnel-radius:14px;
  scroll-margin-top:96px
}
.anfrage-funnel [data-funnel-schritt]{min-width:0;margin:0;padding:0;border:0;display:grid;gap:16px}
.anfrage-funnel [data-funnel-schritt]>legend{float:left;width:100%;margin:0 0 4px;padding:0;color:var(--funnel-text);font-size:clamp(1.2rem,2.1vw,1.5rem);font-weight:700;line-height:1.25;letter-spacing:-.01em}
.anfrage-funnel [data-funnel-schritt]>legend+*{clear:both}
.anfrage-funnel [data-funnel-schritt]>legend:focus{outline:none}
.anfrage-funnel [hidden]{display:none!important}
.anfrage-funnel .funnel-intro{margin:0;color:var(--funnel-text-leise);font-size:.95rem;line-height:1.55}

/* Fortschritt */
.funnel-kopf{display:grid;gap:12px;margin-bottom:4px}
.funnel-zaehler{margin:0;color:var(--funnel-text-leise);font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.funnel-leiste{display:grid;grid-template-columns:repeat(var(--funnel-schritte,3),minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.funnel-leiste li{display:flex;align-items:center;gap:9px;margin:0;padding:10px 0 0;border-top:3px solid var(--funnel-linie);color:var(--funnel-text-leise);font-size:.86rem;line-height:1.3}
.funnel-leiste li::before,.funnel-leiste li::marker{content:none}
.anfrage-funnel .funnel-leiste>li{margin:0;padding:10px 0 0;list-style:none}
.anfrage-funnel .funnel-karten>.funnel-karte{margin:0}
.funnel-leiste li span{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border:1px solid var(--funnel-rand);border-radius:50%;background:var(--funnel-flaeche);font-size:.75rem;font-weight:700}
.funnel-leiste li b{font-weight:600;min-width:0;overflow-wrap:break-word;hyphens:auto}
.funnel-leiste li[aria-current="step"]{border-top-color:var(--funnel-akzent);color:var(--funnel-text)}
.funnel-leiste li[aria-current="step"] span{border-color:var(--funnel-akzent);background:var(--funnel-akzent);color:var(--funnel-akzent-text)}
.funnel-leiste li.ist-erledigt{border-top-color:var(--funnel-dunkel);color:var(--funnel-text)}
.funnel-leiste li.ist-erledigt span{border-color:var(--funnel-dunkel);background:var(--funnel-dunkel);color:#fff}

/* Bildkarten */
.funnel-karten{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.funnel-karte{position:relative;display:grid;grid-template-rows:auto 1fr;overflow:hidden;margin:0;border:1px solid var(--funnel-rand);border-radius:var(--funnel-radius);background:var(--funnel-flaeche);color:var(--funnel-text);cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}
.funnel-karte:hover{border-color:var(--funnel-akzent);box-shadow:0 14px 30px rgba(22,19,14,.10);transform:translateY(-2px)}
.funnel-karte img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--funnel-bildgrund)}
.funnel-karte input{position:absolute;top:12px;right:12px;width:22px;height:22px;margin:0;accent-color:var(--funnel-dunkel);cursor:pointer}
.funnel-karte-text{display:grid;gap:4px;min-width:0;padding:13px 15px 15px;text-align:left}
.funnel-karte-text strong{color:var(--funnel-text);font-size:1rem;line-height:1.3}
.funnel-karte-text small{color:var(--funnel-text-leise);font-size:.86rem;line-height:1.45}
.funnel-karte-text strong,.funnel-karte-text small{overflow-wrap:break-word;hyphens:auto}
.funnel-karte.ist-gewaehlt{border-color:var(--funnel-akzent);box-shadow:0 0 0 2px var(--funnel-akzent) inset,0 14px 30px var(--funnel-akzent-leise)}
.funnel-karte:has(input:focus-visible){outline:3px solid var(--funnel-dunkel);outline-offset:3px}
.funnel-karten--logos .funnel-karte img{aspect-ratio:16/7;object-fit:contain;padding:18px 46px;background:var(--funnel-bildgrund)}
.funnel-bildhinweis{margin:-4px 0 0;color:var(--funnel-text-leise);font-size:.78rem;line-height:1.45}

/* Navigation */
.funnel-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}
.funnel-nav.nur-weiter{justify-content:flex-end}
.funnel-nav>*{margin-top:0;margin-bottom:0}
.funnel-nav>:not(button){flex:1 1 100%}
.funnel-nav .funnel-weiter,.funnel-nav [type="submit"]{width:auto;min-width:160px;flex:0 1 auto}
.funnel-zurueck{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border:1px solid var(--funnel-dunkel);border-radius:999px;background:transparent;color:var(--funnel-text);font:inherit;font-size:.95rem;font-weight:600;line-height:1.2;cursor:pointer;transition:background .2s,color .2s}
.funnel-zurueck:hover{background:var(--funnel-dunkel);color:#fff}
.funnel-zurueck:focus-visible{outline:3px solid var(--funnel-akzent);outline-offset:3px}
.funnel-neu{justify-self:start;margin-top:4px}
.anfrage-funnel [data-funnel-status]:focus{outline:none}

@media (max-width:560px){
  /* minmax(0,1fr): sonst wächst die Spalte auf die Mindestbreite des längsten Worts und die Karte ragt über das Formular */
  .funnel-karten{grid-template-columns:minmax(0,1fr)}
  .funnel-karte{grid-template-columns:clamp(84px,28%,120px) minmax(0,1fr);grid-template-rows:none;align-items:center}
  .funnel-karte img{height:100%;min-height:86px;aspect-ratio:auto}
  .funnel-karten--logos .funnel-karte img{padding:10px 12px}
  .funnel-karte-text{padding:12px 44px 12px 14px}
  .funnel-leiste li{gap:6px}
  .funnel-leiste li b{font-size:.78rem}
  .funnel-nav .funnel-weiter,.funnel-nav [type="submit"],.funnel-nav .funnel-zurueck{flex:1 1 100%}
}
/* Sehr schmal: Schrittnamen nur für Vorlesehilfen, der Zähler darüber nennt den aktuellen Schritt mit Namen */
@media (max-width:400px){
  .funnel-leiste li b{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (prefers-reduced-motion:reduce){.funnel-karte{transition:none}.funnel-karte:hover{transform:none}}
