/* Erfolgsplanung Cockpit · Anmeldung, Einladung, Bestätigen, Konto (Helfer A).
   Ergänzt portal.css und nutzt dessen Variablen und Klassen (.karte, .knopf, .formular, .feld, .hinweis, .fehler, .liste, .schmal). */

/* Ruhige Bühne für Anmelden, Link und Einladung (ohne obere Leiste) */
.an-seite .seite { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center;
  padding-top: 48px; padding-bottom: 40px; }
.an-seite .meldungen { width: 100%; max-width: 460px; margin: 0 auto 16px; }
.an-seite .fuss-seite { text-align: center; padding-bottom: 28px; }
.an-buehne { width: 100%; max-width: 460px; margin: 0 auto; }
.an-marke { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--tinte); font-size: 15.5px; margin: 0 0 22px; }
.an-marke b { font-weight: 700; }

.an-karte { padding: 32px 30px 28px; margin-bottom: 0; }
.an-karte h1 { font-size: 40px; letter-spacing: -.01em; }
.an-karte .unter { margin: 10px 0 26px; font-size: 16px; line-height: 1.55; }
.an-karte .hinweis { margin: 0 0 18px; }

/* Großer Passkey-Knopf */
.knopf.an-gross { width: 100%; min-height: 68px; justify-content: flex-start; gap: 14px; padding: 12px 20px; border-radius: 16px; font-size: 17px;
  text-align: left; line-height: 1.25; box-shadow: 0 10px 24px -14px rgba(20, 23, 28, .7); transition: transform .12s ease, background .12s ease; }
.knopf.an-gross:active { transform: scale(.99); }
.knopf.an-gross > svg { width: 30px; height: 30px; flex: none; }
.an-gross-text { display: flex; flex-direction: column; min-width: 0; }
.an-gross-text small { font-size: 13.5px; font-weight: 400; opacity: .72; margin-top: 2px; }
.knopf.an-gross::after { content: ""; margin-left: auto; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); opacity: .55; }
.knopf.an-gross:not(.haupt) { box-shadow: none; min-height: 60px; }
.knopf.an-gross.an-mittig { justify-content: center; }
.knopf.an-gross.an-mittig::after { display: none; }
.knopf[aria-busy="true"] { cursor: progress; }
.knopf.an-gross[aria-busy="true"]::after { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  transform: none; opacity: .8; animation: an-dreh .8s linear infinite; }
.knopf:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
@keyframes an-dreh { to { transform: rotate(360deg); } }

.an-meldung { margin: 14px 0 0; }
.an-meldung.meldung { background: var(--gruen-hell); color: var(--gruen-text); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }

/* „oder“ und Link per Mail */
.an-oder { display: flex; align-items: center; gap: 12px; color: var(--leiser); font-size: 13px; margin: 22px 0 4px; }
.an-oder::before, .an-oder::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
.an-mail > summary { list-style: none; cursor: pointer; text-align: center; color: var(--gold-tief); font-weight: 600; font-size: 15px; padding: 10px;
  border-radius: 10px; }
.an-mail > summary::-webkit-details-marker { display: none; }
.an-mail > summary:hover { background: var(--zeile); }
.an-mail[open] > summary { color: var(--tinte2); }
.an-mail .formular { margin-top: 6px; max-width: none; }
.an-mail.an-hervor > summary { color: var(--tinte); }
.an-klein-text { font-size: 13.5px; color: var(--leise); margin: 12px 0 0; }
.an-fuss { text-align: center; font-size: 13.5px; color: var(--leise); margin: 22px 0 0; text-wrap: balance; }
.an-zurueck { margin: 22px 0 0; }

/* Einladung */
.an-klein-titel { font-size: 13px; font-weight: 600; color: var(--leise); margin: -10px 0 8px; }
.an-betriebe { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; }
.an-betriebe li { background: var(--gold-hell); color: var(--gold-tief); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 14px; }
.an-schritte { counter-reset: schritt; list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 10px; }
.an-schritte li { display: flex; gap: 12px; align-items: flex-start; color: var(--tinte2); font-size: 15px; line-height: 1.45; }
.an-schritte li::before { counter-increment: schritt; content: counter(schritt); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tinte);
  color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: -1px; }
.an-ohne { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--linie); font-size: 14.5px; color: var(--tinte2); }
.an-ohne p { margin: 0 0 12px; }
.an-ohne.an-hervor { background: var(--gelb-hell); color: var(--gelb-text); border-top: 0; border-radius: 12px; padding: 16px; }

/* Bestätigen */
.an-bestaetigen { padding-top: 24px; }

/* Konto */
.an-konto { max-width: 760px; margin: 0 auto; }
.an-konto-kopf { margin: 8px 0 22px; }
.an-konto .karte > h2 { margin-bottom: 6px; }
.an-angaben { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 14px 0 0; font-size: 15px; }
.an-angaben dt { color: var(--leise); }
.an-angaben dd { margin: 0; color: var(--tinte); overflow-wrap: anywhere; }
.an-liste { margin-top: 4px; }
.an-liste > div { flex-wrap: wrap; }
.an-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--zeile); color: var(--tinte2); display: inline-flex; align-items: center;
  justify-content: center; flex: none; }
.an-ic svg { width: 20px; height: 20px; }
.an-text { flex: 1 1 200px; min-width: 0; }
.an-text b { display: block; color: var(--tinte); font-weight: 600; overflow-wrap: anywhere; }
.an-text small { display: block; color: var(--leiser); font-size: 13px; line-height: 1.4; }
.an-aktionen { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; position: relative; }
.an-aktionen form { margin: 0; }
.knopf.an-klein { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.an-plakette { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--gold-hell); color: var(--gold-tief);
  border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.an-auf > summary { list-style: none; }
.an-auf > summary::-webkit-details-marker { display: none; }
.an-auf[open] > summary { border-color: var(--leiser); }
.an-auf > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; width: min(300px, calc(100vw - 48px)); background: var(--karte);
  border-radius: 12px; box-shadow: 0 12px 40px -12px rgba(20, 23, 28, .35); padding: 14px; display: grid; gap: 8px; }
.an-auf label { font-size: 13.5px; font-weight: 600; color: var(--tinte2); }
.an-auf input { font: inherit; font-size: 16px; border: 1px solid var(--linie2); border-radius: 10px; padding: 9px 11px; width: 100%; background: #fff; color: var(--text); }
.an-neu { margin-top: 18px; max-width: 420px; }
.an-unten { margin-top: 14px; }
.an-unten .knopf { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.an-abmelden { margin: 8px 0 0; text-align: center; }

/* Schalter Morgen-Mail */
.an-schalter-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.an-schalter { position: relative; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; flex: 1 1 260px; }
.an-schalter input { position: absolute; left: 0; top: 0; width: 46px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.an-schiene { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--linie2); transition: background .15s ease; }
.an-schiene::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(20, 23, 28, .3); transition: transform .15s ease; }
.an-schalter input:checked + .an-schiene { background: var(--tinte); }
.an-schalter input:checked + .an-schiene::after { transform: translateX(18px); }
.an-schalter input:focus-visible + .an-schiene { outline: 2px solid var(--gold); outline-offset: 2px; }
.an-schalter-text b { display: block; color: var(--tinte); font-weight: 600; }
.an-schalter-text small { display: block; color: var(--leise); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.js [data-ohne-js] { display: none; }

@media (max-width: 760px) {
  .an-seite .seite { padding: 28px 16px 24px; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); }
  .an-seite .fuss-seite { padding-bottom: calc(20px + var(--unten)); }
  .an-karte { padding: 26px 20px 22px; }
  .an-karte h1 { font-size: 34px; }
  .an-angaben { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .knopf.an-gross, .an-schiene, .an-schiene::after { transition: none; }
  .knopf.an-gross[aria-busy="true"]::after { animation: none; }
}
