/* Aufgabe 1415, Mirwan 16.11.2026: „wenn man continue drückt dann ist "michael" nicht ganz im bild sondern abgeschnitten dieser
   kreis und die seite hat bissl zu lang geladen finde ich und nach wie vor ist alles drum herum total weiß und leer. den platz
   könnte man ja nutzen weißt.“ Vorher (1387): links Weiß über die halbe Breite, rechts die Schiene mit fester Höhe (100svh), deren
   Inhalt mittig überstand; im Kasten der Startseite stand der Kreis darum oben am Rand des Rahmens. Jetzt wie die Größten
   (belege/1415/vorbild): die Fläche in Mint wie der Held der Startseite, das Formular als weiße Karte wie bei Stripe („Create your
   Stripe account“ über dem Dashboard), Intercom und Vapi, daneben die Empfangskraft mit Hörprobe, Begrüßung (ab der Firma, beim
   Tippen live), Etappen und Vorschau des Kundenbereichs. Keine Höhe aus svh im Kasten: Dort wächst der Rahmen mit dem Inhalt
   (einstieg-kasten.js), eine Höhe aus svh hielte ihn auf der größten je gemessenen fest. Die Website schaltet nicht mit dem System
   auf dunkel (werte.css, Aufgabe 483), darum gilt color-scheme: light auch für Felder und Bildlaufleisten. */
.start-seite { color-scheme: light; background: #f3faf6; }
.start-seite[data-im="kasten"] { background: transparent; }
.einstieg .kv-zugang { padding: 0; border: 0; background: none; box-shadow: none; }
.einstieg .einstieg-feld { background: #fff; border: 1px solid rgb(0 18 46 / 18%); }
.einstieg .einstieg-feld:focus { border-color: #16a34a; box-shadow: 0 0 0 3px #3ddc8440; outline: none; }
.einstieg .kv-zugang-form button[type="submit"] { width: 100%; justify-content: center; border-color: transparent; background: #3ddc84; color: #0f0f10; font-weight: 600; }
.einstieg .kv-zugang-form button[type="submit"]:hover { background: #34c975; }
/* Alle Felder weiß mit Rahmen wie die E-Mail, der Fokus in Kesru-Grün; nur Rahmen und Fläche, so bleibt der Pfeil der Auswahl */
.start-seite .kv-fakten :is(input, select, textarea) { border-color: rgb(0 18 46 / 18%); background-color: #fff; }
.start-seite .kv-fakten :is(input, select, textarea):not([aria-invalid="true"]):hover { border-color: rgb(0 18 46 / 34%); }
.start-seite .kv-fakten :is(input, select, textarea):not([aria-invalid="true"]):focus { border-color: #16a34a; box-shadow: 0 0 0 3px #3ddc8440; outline: none; }
html:has(.start-seite) body { overflow-x: clip; }

/* Fortschritt in Abschnitten je Etappe wie bei Stripe und Shopify, darüber am PC „Step 1 of 4“ */
.start-seite .kv-stufe { display: none; margin: 0 0 10px; color: rgb(0 18 46 / 62%); font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  line-height: 1.2; text-transform: uppercase; }
.start-seite .kv-balken { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 4px; border-radius: 0;
  background: none; overflow: visible; }
.start-seite .kv-balken i { width: auto; height: 100%; border-radius: 4px; background: rgb(0 18 46 / 10%); transition: background-color .4s ease; }
.start-seite .kv-balken i[data-stand] { background: #3ddc84; }

/* Die Zusagen unter der Anmeldung, je eine mit Haken (konto.tsx) */
.start-seite .kv-zusagen { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; color: rgb(0 18 46 / 72%);
  font-size: .86rem; font-weight: 560; line-height: 1.4; }
.start-seite .kv-zusagen li { display: inline-flex; align-items: center; gap: 8px; }
.start-seite .kv-zusagen li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: #d9f7e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5.1 8.2 9 4' fill='none' stroke='%2315803d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Hörprobe: rechts als Knopf mit Namen, am Handy rund in der Kopfzeile */
.kv-probe-knopf {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 14px 7px 8px; border: 1px solid rgb(0 18 46 / 14%);
  border-radius: 999px; background: #fff; color: #00122e; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kv-probe-knopf:hover { border-color: rgb(0 18 46 / 28%); box-shadow: 0 2px 8px -4px rgb(0 18 46 / 24%); }
.kv-probe-knopf > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #3ddc84; }
.kv-probe-play::before { content: ""; margin-left: 2px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #0f0f10; }
.kv-probe-pause::before { content: ""; width: 8px; height: 10px; border-left: 3px solid #0f0f10; border-right: 3px solid #0f0f10; box-sizing: border-box; }
.kv-probe-knopf.kv-probe-klein { justify-content: center; width: 44px; height: 44px; flex: none; margin: 0; padding: 0; }
.kv-probe-knopf.kv-probe-klein > span { width: 30px; height: 30px; }

/* Die Vorschau rechts der Karte, am Handy unter dem Schritt: die Begrüßung, sobald es eine Firma gibt, sonst zwei Anrufe, wie sie
   im Kundenbereich stehen */
.start-seite .kv-schiene .kv-vorschau { gap: 10px; margin: 0; }
.start-seite .kv-schiene .kv-vorschau figcaption { color: rgb(0 18 46 / 62%); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.start-seite .kv-schiene .kv-vorschau blockquote { margin: 0; padding: 14px 18px 15px; border: 1px solid rgb(0 18 46 / 8%); border-radius: 6px 20px 20px 20px;
  background: #fff; color: #00122e; font-size: 1rem; line-height: 1.5; box-shadow: 0 1px 2px rgb(0 18 46 / 5%); }
.kv-app-vorschau { display: grid; gap: 8px; margin: 0; padding-top: 22px; border-top: 1px solid rgb(0 18 46 / 8%); }
.kv-app-vorschau figcaption { color: rgb(0 18 46 / 64%); font-size: .85rem; font-weight: 600; }
.kv-app-zeile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgb(0 18 46 / 8%); border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px rgb(0 18 46 / 5%); }
.kv-app-bild { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #d9f7e6; color: #166534;
  font-size: .8rem; font-weight: 700; }
.kv-app-text { display: grid; flex: 1; min-width: 0; }
.kv-app-text b { color: #00122e; font-size: .95rem; }
.kv-app-text small { overflow: hidden; color: rgb(0 18 46 / 64%); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.kv-app-chip { flex: none; padding: 3px 10px; border-radius: 999px; background: #3ddc8424; color: #15803d; font-size: .78rem; font-weight: 700; }

@media (min-width: 981px) {
  .start-seite { padding: 0; gap: 24px; }
  .start-seite[data-im="seite"] { min-height: 100svh; justify-content: safe center; padding: 104px clamp(24px, 4vw, 56px) 56px; }
  .start-seite[data-im="seite"] .start-seite-kopf { position: absolute; top: 0; left: 0; z-index: 3; width: auto; margin: 0;
    padding: 28px clamp(24px, 4vw, 56px); }
  .start-seite[data-im="kasten"] { padding: 12px clamp(4px, 1.4vw, 20px) 28px; }
  .start-seite .einstieg, .start-seite[data-im="kasten"] .einstieg { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0;
    background: none; box-shadow: none; }
  .start-seite .einstieg::before, .start-seite .einstieg::after { content: none; }
  .start-seite .start-seite-neben { width: min(100%, 1032px); }
  .start-seite .kv-setup { display: grid; grid-template-columns: minmax(0, 560px) minmax(280px, 400px); justify-content: center; align-items: start;
    gap: clamp(40px, 5vw, 72px); width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
    box-shadow: none; }
  /* Die Karte mit dem Schritt */
  .start-seite .kv-schritte { order: 1; width: 100%; max-width: none; padding: 32px 40px 30px; border: 1px solid rgb(0 18 46 / 8%); border-radius: 28px;
    background: #fff; box-shadow: 0 1px 2px rgb(0 18 46 / 4%), 0 28px 56px -32px rgb(0 18 46 / 22%); }
  .start-seite .kv-stufe { display: block; }
  /* Die vier Zusagen in zwei Spalten, die langen links (Reihenfolge wie im Text) */
  .start-seite .kv-zusagen { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: max-content; gap: 10px 24px; }
  .start-seite .kv-schritte > .kv-balken { margin: 0 0 28px; }
  .start-seite .kv-schritt .einstieg-aktionen { margin-top: 24px; }
  /* Die Empfangskraft daneben: oben angesetzt und so hoch wie ihr Inhalt, so ragt nichts aus dem Rahmen */
  .start-seite .kv-schiene { order: 2; position: static; display: flex; flex-direction: column; justify-content: flex-start; gap: 28px; height: auto;
    min-height: 0; padding: 22px 0 0; border: 0; background: none; }
  .start-seite .kv-schiene-stimme { display: flex; flex-direction: row; align-items: center; gap: 20px; }
  .start-seite .kv-schiene .kv-mini-kugel { width: 96px; height: 96px; flex: none; }
  .start-seite .kv-schiene .kv-name { color: #00122e; font-size: 1.9rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
  .start-seite .kv-schiene .kv-charakter { margin-top: 4px; font-size: .95rem; }
  .start-seite .kv-etappen { gap: 6px; }
  .start-seite .kv-etappen li { font-size: 1.02rem; }
  .start-seite .kv-schiene .kv-dauer { margin: -12px 0 0; }
  .start-seite .kv-schiene[data-gruss] .kv-app-vorschau { display: none; }
}

/* Am Handy eine Spalte: oben die Stimme mit Name, Etappe und Hörprobe, darunter Balken und Schritt auf Mint, unter dem Schritt
   die Vorschau statt leerer Fläche (Stimme, Etappen und Zeitangabe stehen schon oben). Im Kasten Luft unter der Kopfleiste der
   Startseite, damit der Kreis nie an ihrem Rand steht. */
@media (max-width: 980px) {
  .start-seite .kv-schritte { order: 1; }
  .start-seite .kv-schiene { display: flex; order: 2; flex-direction: column; gap: 16px; width: 100%; max-width: 600px; margin: 32px auto 0; padding: 0;
    border: 0; }
  .start-seite .kv-schiene > :is(.kv-schiene-stimme, .kv-etappen, .kv-dauer) { display: none; }
  .start-seite .kv-handykopf { display: flex; align-items: center; gap: 12px; }
  .start-seite .kv-handykopf .kv-mini-kugel { width: 40px; height: 40px; flex: none; }
  .start-seite .kv-handy-wer { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
  .start-seite .kv-handy-wer b { overflow: hidden; color: #00122e; font-size: 1.02rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .start-seite .kv-handy-wer small { overflow: hidden; color: rgb(0 18 46 / 66%); font-size: .82rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  .start-seite[data-im="kasten"] { padding-top: 16px; }
}
@media (max-width: 380px) {
  .start-seite .kv-handy-etappe { display: none; }
}
