/* ------------------------------------------------------------ Schalter (CupertinoSwitch, web/js/willkommen.js schalter()) */
.schalter { --w: 51px; --hh: 31px; --k: 27px; flex: none; position: relative; width: var(--w); height: var(--hh);
  border-radius: calc(var(--hh) / 2); background: rgba(120, 120, 128, .32); transition: background .2s ease; }
.schalter .knopf { position: absolute; top: 2px; left: 2px; width: var(--k); height: var(--k); border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: transform .25s cubic-bezier(.3, .9, .4, 1); }
.schalter.an { background: #34C759; }
.schalter.an .knopf { transform: translateX(calc(var(--w) - var(--k) - 4px)); }
.schalter:disabled { opacity: .45; cursor: default; }
.schalter.laeuft { opacity: .75; }
.schalter.gross { --w: 76px; --hh: 46px; --k: 42px; margin: 8px auto 0; }
.list-item .schalter { margin-left: auto; }

/* ------------------------------------------------------------ Willkommensrunde */
.willkommen { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.wk-kopf { flex: none; padding: calc(18px + var(--safe-top)) 20px 6px; display: flex; justify-content: center; }
.wk-punkte { display: flex; gap: 8px; }
.wk-punkte span { width: 8px; height: 8px; border-radius: 4px; background: var(--field); transition: width .25s, background .25s; }
.wk-punkte span.war { background: rgba(92, 129, 255, .45); }
.wk-punkte span.an { width: 22px; background: var(--blue); }

.wk-seite { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
.wk-seite.von-rechts { animation: wk-rechts .28s cubic-bezier(.2, .9, .3, 1); }
.wk-seite.von-links { animation: wk-links .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes wk-rechts { from { transform: translateX(28px); opacity: 0; } }
@keyframes wk-links { from { transform: translateX(-28px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wk-seite.von-rechts, .wk-seite.von-links { animation: none; } }

.wk-inhalt { margin: auto 0; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: var(--gap); text-align: center; }
.wk-inhalt.oben { margin-top: 0; }
.wk-inhalt h2 { margin: 4px 0 0; font-size: 26px; font-weight: 700; color: var(--text); }
.wk-text { margin: 0; max-width: 330px; font-size: 16px; line-height: 1.3; color: var(--text2); }
.wk-status { margin: 0; min-height: 18px; font-size: 14px; color: var(--text2); }
.wk-hinweis { font-size: 13px; max-width: 300px; }
.wk-fuss { max-width: 320px; font-size: 12px; }
.wk-breit { align-self: stretch; margin: 0 -16px; text-align: left; }
.wk-breit .sett { padding-top: 0; }
.wk-inhalt .anm-feld { align-self: center; }
.wk-inhalt .info-msg { margin: 0; font-size: 13px; }

.wk-logo { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 6px 24px rgba(92, 129, 255, .25); }
.wk-liste { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: var(--gap); }
.wk-liste li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card);
  text-align: left; font-size: 15.5px; line-height: 1.25; color: var(--text); }
.wk-punkt-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(92, 129, 255, .16); color: var(--blue); }

.wk-bild { width: 88px; height: 88px; border-radius: 24px; display: flex; align-items: center; justify-content: center; color: #fff; }
.wk-bild.gross { width: 108px; height: 108px; border-radius: 54px; }
.wk-bild.rot { background: linear-gradient(145deg, #FF5A75, var(--red)); }
.wk-bild.gruen { background: linear-gradient(145deg, #4ADE80, #22A559); }
.wk-bild.blau { background: linear-gradient(145deg, #7C9BFF, var(--blue)); }
.wk-bild.lila { background: linear-gradient(145deg, #B98CFF, #7B5CFF); }

.wk-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--field); color: var(--text2);
  display: flex; align-items: center; justify-content: center; }
.wk-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Startbildschirm */
.wk-home { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: var(--gap); margin-top: 4px; }
.wk-ok { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: rgba(52, 199, 89, .14);
  color: #34C759; font-size: 15.5px; font-weight: 600; text-align: left; }
.wk-safari { width: 100%; display: flex; justify-content: space-around; align-items: center; height: 48px; border-radius: 14px;
  background: var(--card); color: var(--ios-blue); }
.wk-safari span { display: flex; }
.wk-safari .dim { opacity: .35; }
.wk-safari .teilen.an { padding: 6px; border-radius: 10px; background: rgba(33, 150, 243, .18); box-shadow: 0 0 0 2px rgba(33, 150, 243, .55); }
.wk-schritte { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; border-radius: 14px;
  background: var(--card); overflow: hidden; }
.wk-schritt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; text-align: left; font-size: 15px; color: var(--text); position: relative; }
.wk-schritt + .wk-schritt::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: .7px; background: var(--sep); }
.wk-schritt .nr { flex: none; width: 24px; height: 24px; border-radius: 12px; background: var(--field); color: var(--text2);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.wk-schritt .tx { flex: 1; line-height: 1.25; }
.wk-sym { flex: none; display: flex; color: var(--text); }
.wk-sym.blau { color: var(--ios-blue); }
.wk-add { color: var(--ios-blue); font-weight: 600; font-size: 15px; }
.wk-karte { width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--card); text-align: left; }
.wk-karte-kopf { display: flex; align-items: center; gap: 10px; color: var(--ios-blue); font-size: 16px; }
.wk-karte-kopf b { color: var(--text); font-weight: 600; }
.wk-karte p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.3; color: var(--text2); }
.wk-kopieren { justify-content: center; }
.wk-install { min-width: 187px; padding: 0 28px; }

/* Fußleiste Zurück / Weiter */
.wk-fussleiste { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
  padding: 10px 20px calc(16px + var(--safe-bottom)); background: var(--bg); }
.wk-zurueck { padding: 0 6px; }
.wk-weiter { margin: 0; min-width: 150px; padding: 0 28px; }

/* ------------------------------------------------------------ Einstellungen: Konto-Seite, Hinweise unter Gruppen */
.sett .ls-fuss { font-size: 12.5px; line-height: 1.3; color: #8E8E93; padding: 8px 18px 0; }
.sett .list-item.schalter-zeile { padding-right: 16px; }
.sett .list-item.schalter-zeile.aus .li-title { color: rgba(255, 255, 255, .35); }
.konto-seite { display: flex; flex-direction: column; align-items: center; gap: var(--gap); padding: 20px; }
.konto-seite .blue-button { margin-top: 4px; min-width: 187px; padding: 0 28px; }
/* Gruppen ohne Überschrift (Host-Bereich, Abmelden) nicht direkt aneinanderkleben */
.sett .list-section + .list-section > .list-group:first-child { margin-top: 22px; }

/* Seite „Face ID einrichten“ (Passkey) */
.wk-passkey { align-self: center; min-width: 240px; margin-top: 4px; }
.wk-passkey-status:empty { display: none; }
