/* INCO DIGITAL – Bestellseite „Betreuung starten“.
   Ergänzt site.css. Die Regeln für Pakete, Formular, Fehler und Danke sind aus
   start.css übernommen (start.css wird auf dieser Seite nicht geladen). */

/* Seite und Schritte */
.bestellen { padding: 40px 0 96px; }
.bestellen .kopfblock { margin-bottom: 28px; }
.bestellen .titel { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.bestellen .titel:focus { outline: none; }
.schritt { max-width: 760px; margin: 0 auto; display: grid; gap: 20px; }
#schritt-2 { max-width: none; }
#schritt-2 .betrieb, #schritt-2 .knoepfe { max-width: 760px; margin: 0 auto; width: 100%; }
@media (max-width: 700px) { .bestellen { padding: 24px 0 64px; } .bestellen .kopfblock { margin-bottom: 20px; } }

/* Fortschrittsleiste */
.schritte { list-style: none; max-width: 760px; margin: 0 auto 36px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.schritte li { font-size: 14px; font-weight: 700; color: #9aa8b5; min-width: 0; }
.schritte button { all: unset; display: flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0; color: inherit; font: inherit; cursor: pointer; border-radius: 999px; }
.schritte button:disabled { cursor: default; }
.schritte button:not(:disabled):not([aria-current]):hover .nr { box-shadow: 0 0 0 4px rgba(34, 172, 223, .18); }
.schritte button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.schritte .nr { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; font-size: 14px; }
.schritte .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schritte .fertig { color: var(--ok); }
.schritte .fertig .nr { color: transparent; border-color: var(--ok); background: var(--ok) 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.schritte .aktiv { color: var(--brand-strong); }
.schritte .aktiv .nr { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; box-shadow: 0 0 0 4px rgba(34, 172, 223, .18); }
@media (max-width: 640px) {
  .schritte { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
  .schritte .name { display: none; }
  .schritte .aktiv .name { display: inline; }
}

/* Formular (aus start.css, plus Auswahlfelder und Feldfehler) */
.formular { display: grid; gap: 16px; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feld.breit { grid-column: 1 / -1; }
.formular label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid #cfdae3; background: #fbfdfe;
  font: 16px/1.4 var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.formular select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344566a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.formular input:focus, .formular select:focus { outline: none; border-color: var(--brand); background-color: #fff; box-shadow: 0 0 0 4px rgba(34, 172, 223, .18); }
.formular input.ungueltig { border-color: #dc2626; background-color: #fff7f7; }
.feldfehler { display: none; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: #991b1b; }
.feldfehler.an { display: block; }
.gruppe { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.gruppe > legend { font-size: 18px; font-weight: 800; padding: 0; margin-bottom: 2px; }
.zeile { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.hinweis { background: var(--mint-soft); border: 1px solid #c8e8ea; color: var(--brand-deep); padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.klein { font-size: 13.5px; color: var(--ink-3); }
.fehler { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.fehler.an { display: block; }
@media (max-width: 560px) { .felder, .zeile { grid-template-columns: 1fr; } }

/* Website-Check: Scan-Linie während der Prüfung */
.pruefung { text-align: center; padding: 24px 0 8px; color: var(--ink-2); font-weight: 600; }
.scan { position: relative; height: 6px; max-width: 360px; margin: 0 auto 18px; border-radius: 999px; background: #e8eff4; overflow: hidden; }
.scan i { position: absolute; top: 0; left: -45%; width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--brand), var(--mint), transparent); animation: scannen 1.5s ease-in-out infinite; }
@keyframes scannen { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .scan i { animation: none; left: 0; width: 100%; opacity: .6; } }

/* Befunde als Ampelkarten: Farbe immer mit Zeichen und Wort */
.ergebnis { display: grid; gap: 16px; margin-top: 20px; }
.ergebnis-titel { font-size: 18px; }
.befunde { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.befund { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.befund .zeichen { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; grid-row: 1 / 3; }
.befund .zeichen svg { width: 14px; height: 14px; }
.befund b { font-size: 15px; line-height: 1.3; }
.befund .stand { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.befund p { grid-column: 2; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.befund-gut { border-color: #bbf7d0; background: #f0fdf4; }
.befund-gut .zeichen { background: #dcfce7; color: #15803d; }
.befund-gut .stand { color: #15803d; }
.befund-mittel { border-color: #fde68a; background: #fffbeb; }
.befund-mittel .zeichen { background: #fef3c7; color: #92400e; }
.befund-mittel .stand { color: #92400e; }
.befund-schlecht { border-color: #fecaca; background: #fef2f2; }
.befund-schlecht .zeichen { background: #fee2e2; color: #991b1b; }
.befund-schlecht .stand { color: #991b1b; }
.befund-unbekannt .zeichen { background: #eef2f6; color: var(--ink-3); }
.befund-unbekannt .stand { color: var(--ink-3); }
.empfehlung-satz { font-size: 17px; font-weight: 700; }
@media (max-width: 560px) { .befunde { grid-template-columns: 1fr; } }

/* Umschalter als Pillen (wie .anliegen auf der Startseite) */
.wahl { border: 0; padding: 0; margin: 0; }
.wahl legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.wahl-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl-liste input { position: absolute; opacity: 0; pointer-events: none; }
.wahl-liste label { margin: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid #cfdae3; background: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .15s; }
.wahl-liste input:checked + label { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.wahl-liste input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }
.wahl .klein { margin-top: 8px; }

/* Zurück / Weiter */
.knoepfe { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.knoepfe > :only-child { margin-left: auto; }
.ueberspringen { font-size: 15px; font-weight: 600; }
@media (max-width: 480px) { .knoepfe .btn { flex: 1 1 auto; } }

/* Paketkarten (aus start.css), hier wählbar */
.preise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.paket { display: flex; flex-direction: column; position: relative; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.paket:hover { border-color: var(--brand); }
.paket h3 { font-size: 22px; }
.paket .betrag { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 2px; }
.paket .betrag small { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.paket .fuer { color: var(--ink-2); margin-bottom: 20px; min-height: 3.2em; }
.paket .haken { margin-bottom: 26px; }
.paket .btn { margin-top: auto; }
.paket.empfohlen { border-color: var(--brand); }
.paket.gewaehlt { border-color: var(--brand-strong); background: #f6fbfd; box-shadow: inset 0 0 0 1px var(--brand-strong), var(--shadow-2); }
.paket.gewaehlt .btn { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.empfehlung { position: absolute; top: -14px; left: 28px; background: var(--sun); color: #4a2c00; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
@media (max-width: 900px) { .preise { grid-template-columns: 1fr; } .paket .fuer { min-height: 0; } }

/* Betrieb-Zeile und Zusammenfassung */
.betrieb { text-align: center; color: var(--ink-2); font-size: 15px; }
.betrieb strong { color: var(--ink); }
.zusammenfassung { padding: 20px 24px; max-width: 760px; margin: 0 auto; width: 100%; }
.zusammenfassung:empty { display: none; }
.zusammenfassung dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.zusammenfassung dt { color: var(--ink-2); }
.zusammenfassung dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.zusammenfassung .summe { font-size: 18px; font-weight: 800; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); }

/* Starttermin als Kacheln */
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kacheln input { position: absolute; opacity: 0; pointer-events: none; }
.kacheln label { display: grid; gap: 4px; margin: 0; padding: 16px 18px; border: 1.5px solid #cfdae3; border-radius: 14px; background: #fbfdfe; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.kacheln label b { font-size: 16px; color: var(--ink); }
.kacheln input:checked + label { border-color: var(--brand); background: var(--mint-soft); box-shadow: 0 0 0 4px rgba(34, 172, 223, .14); }
.kacheln input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 560px) { .kacheln { grid-template-columns: 1fr; } }

/* Aufklapper (wie .faq auf der Startseite) */
.aufklapper { display: grid; gap: 10px; }
.aufklapper details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.aufklapper summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.aufklapper summary::-webkit-details-marker { display: none; }
.aufklapper summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand-strong); transition: transform .2s; }
.aufklapper details[open] summary::after { transform: rotate(45deg); }
.aufklapper-inhalt { padding-bottom: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; }
.aufklapper-inhalt h3 { font-size: 15px; letter-spacing: 0; color: var(--ink); margin-top: 8px; }

/* Pflicht-Häkchen */
.haekchen { display: grid; gap: 12px; }
.haekchen-zeile { display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; align-items: start; }
.haekchen-zeile input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand-strong); cursor: pointer; }
.formular .haekchen-zeile label { margin: 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.haekchen-zeile .feldfehler { grid-column: 2; margin: 0; }

/* Danke (aus start.css) */
.danke { display: none; text-align: center; padding: 36px 24px; max-width: 760px; margin: 0 auto; }
.danke.an { display: block; }
.danke:focus { outline: none; }
.danke .symbol { margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--ok); }
.danke h2 { font-size: 24px; margin-bottom: 10px; }
.danke p { color: var(--ink-2); }
.danke .klein { margin-top: 20px; }
