/* Anmeldeseite — Maße und Farben aus dem Entwurf 6a-3 übernommen. */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--schrift);
    color: var(--text);
    background: var(--dunkel-flaeche);
    -webkit-font-smoothing: antialiased;
}

.seite {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ── Linke Spalte: die Lage ───────────────────────────────────────────── */

.lage {
    display: flex;
    flex-direction: column;
    padding: 44px 44px 40px;
    background: var(--dunkel-flaeche);
    padding-top: calc(44px + var(--rand-oben));
}

/* Zeichen des Hauses und Name des Werkzeugs, durch einen Strich getrennt:
   erst wessen Anwendung, dann welche. */
.marke { display: flex; align-items: center; gap: 17px; }

.marke__logo {
    height: 38px;
    width: auto;
    display: block;
}

.marke__strich {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, .28);
}

/* Kennzeichen der Anwendung — siehe start.css. Auf dunklem Grund die
   hellere Entsprechung desselben Farbtons. */
.marke__kennung {
    width: 12px;
    height: 12px;
    margin-right: -5px;
    border-radius: 2px;
    background: var(--akzent-hell);
}

.marke__name {
    font-family: var(--schrift-titel);
    font-size: 19px;
    font-weight: 600;
    color: var(--text-auf-farbe);
}

.lage__kurz { display: none; }

.lage__inhalt { margin-top: 44px; }

.lage__zeit {
    margin: 0;
    font-size: 13.5px;
    color: var(--akzent-hell);
}

.lage__karten {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.mkarte {
    padding: 16px 18px;
    background: rgba(255, 255, 255, .08);
    border-radius: var(--r-karte);
}

.mkarte--kritisch { background: var(--kritisch); }

.mkarte__kopf {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.mkarte__label { font-size: 13px; font-weight: 600; }
.mkarte__label--kritisch { color: rgba(255, 255, 255, .9); }
.mkarte__label--stoerung { color: var(--warm); }
.mkarte__label--hinweis  { color: var(--akzent-blass); }

.punkt {
    width: 9px;
    height: 9px;
    border-radius: 5px;
    background: #FFFFFF;
    animation: pulsieren 1.8s infinite;
}

@keyframes pulsieren {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    .punkt { animation: none; }
}

.mkarte__titel {
    margin: 7px 0 0;
    font-family: var(--schrift-titel);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-auf-farbe);
    text-wrap: pretty;
}

.mkarte--kritisch .mkarte__titel { font-size: 18px; }

/* Verweis auf die restlichen Meldungen — die Anmeldeseite zeigt nur die
   wichtigsten, damit das Formular ohne Scrollen erreichbar bleibt. */
.lage__weitere {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    padding: 13px 18px;
    border: 1.5px solid rgba(255, 255, 255, .14);
    border-radius: var(--r-karte);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-auf-farbe);
    text-decoration: none;
}

.lage__weitere:hover { background: rgba(255, 255, 255, .06); }

.lage__weitere-zusatz {
    font-size: 13px;
    font-weight: 400;
    color: var(--akzent-hell);
}

/* Am Schreibtisch sind drei Karten sichtbar, am Telefon eine — der Verweis
   nennt deshalb dort die Gesamtzahl statt der Restzahl. */
.lage__weitere-schmal { display: none; }

/* Ruhezustand: nichts gestört. Bewusst deutlich, nicht als leere Fläche. */
.ruhe {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    background: rgba(46, 125, 91, .18);
    border: 1.5px solid rgba(46, 125, 91, .45);
    border-radius: var(--r-karte);
}

.ruhe__zeichen {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: var(--r-pille);
    background: var(--behoben);
    color: var(--text-auf-farbe);
}

.ruhe__titel {
    margin: 0;
    font-family: var(--schrift-titel);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-auf-farbe);
}

.ruhe__text {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--akzent-blass);
    text-wrap: pretty;
}

.lage__fuss {
    margin: auto 0 0;
    padding-top: 32px;
    font-size: 13.5px;
    color: var(--akzent-hell);
}

/* ── Rechte Spalte: Anmeldung ─────────────────────────────────────────── */

.anmeldung {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 64px;
    background: var(--flaeche);
    border-radius: var(--r-sehr-gross) 0 0 var(--r-sehr-gross);
}

.anmeldung__mitte { width: 100%; max-width: 420px; }

.anmeldung__titel {
    margin: 0;
    font-family: var(--schrift-titel);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--text);
}

.anmeldung__text {
    margin: 10px 0 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--text-tertiaer);
    text-wrap: pretty;
}

.hinweis {
    margin: 20px 0 0;
    padding: 13px 16px;
    border-radius: var(--r-feld);
    font-size: 14.5px;
    line-height: 1.45;
}

.hinweis--fehler {
    background: var(--geplant-flaeche);
    color: var(--geplant-text);
}

.formular {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

/* Feld: Beschriftung sitzt im Rahmen über der Eingabe */
.feld {
    padding: 8px 18px 12px;
    background: var(--grund);
    border: 1.5px solid var(--linie);
    border-radius: var(--r-feld);
    transition: border-color .12s ease;
}

.feld:focus-within { border-color: var(--akzent); }

.feld__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-schwach);
}

.feld:focus-within .feld__label { color: var(--akzent); }

.feld__eingabe {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16.5px;
    color: var(--text);
}

.feld__eingabe:focus { outline: none; }

/* Die dienstliche Adresse ist lang — sie darf das Feld nicht sprengen. */
.feld__eingabe::placeholder {
    color: var(--text-schwach);
    opacity: 1;
    text-overflow: ellipsis;
}

.feld--passwort { display: flex; align-items: flex-end; gap: 12px; }
.feld__spalte { flex-grow: 1; min-width: 0; }

#passwort { letter-spacing: .16em; }
#passwort[type="text"] { letter-spacing: normal; }

.feld__schalter {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--akzent);
    cursor: pointer;
}

.zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
}

.haken { display: flex; align-items: center; gap: 9px; cursor: pointer; }

.haken__eingabe {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
}

.haken__kasten {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--linie-kraeftig);
    border-radius: 7px;
    background: var(--grund);
}

.haken__kasten svg { visibility: hidden; }

.haken__eingabe:checked + .haken__kasten {
    background: var(--akzent);
    border-color: var(--akzent);
}

.haken__eingabe:checked + .haken__kasten svg { visibility: visible; }

.haken__eingabe:focus-visible + .haken__kasten {
    outline: 2px solid var(--akzent);
    outline-offset: 2px;
}

.haken__text { font-size: 14px; color: var(--text-sekundaer); }

.verweis { color: var(--akzent); font-size: 13.5px; text-decoration: none; }
.verweis:hover { text-decoration: underline; }
.verweis--kraeftig { font-weight: 500; }

/* Im Entwurf ist dieser Knopf ein Umriss, weil daneben die
   Windows-Anmeldung als gefüllter Knopf steht. Solange die fehlt,
   ist dies die Hauptaktion — also gefüllt. */
.knopf {
    margin-top: 6px;
    padding: 15px 0;
    border: 1.5px solid var(--dunkel);
    border-radius: var(--r-pille);
    background: var(--dunkel);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-auf-farbe);
    cursor: pointer;
    transition: background-color .12s ease;
}

.knopf:hover { background: #1E2E2B; border-color: #1E2E2B; }
.knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

.anmeldung__fuss {
    margin: 26px 0 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-schwach);
}

.anmeldung__lesen { margin: 14px 0 0; text-align: center; }

/* ── Handy ────────────────────────────────────────────────────────────── */

@media (max-width: 899px) {
    .seite { grid-template-columns: minmax(0, 1fr); }

    .lage { padding: 28px 22px 26px; padding-top: calc(28px + var(--rand-oben)); }
    .lage__inhalt { margin-top: 28px; }
    /* Verweis auf die restlichen Meldungen — die Anmeldeseite zeigt nur die
   wichtigsten, damit das Formular ohne Scrollen erreichbar bleibt. */
.lage__weitere {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    padding: 13px 18px;
    border: 1.5px solid rgba(255, 255, 255, .14);
    border-radius: var(--r-karte);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-auf-farbe);
    text-decoration: none;
}

.lage__weitere:hover { background: rgba(255, 255, 255, .06); }

.lage__weitere-zusatz {
    font-size: 13px;
    font-weight: 400;
    color: var(--akzent-hell);
}

/* Am Schreibtisch sind drei Karten sichtbar, am Telefon eine — der Verweis
   nennt deshalb dort die Gesamtzahl statt der Restzahl. */
.lage__weitere-schmal { display: none; }

/* Ruhezustand: nichts gestört. Bewusst deutlich, nicht als leere Fläche. */
.ruhe {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    background: rgba(46, 125, 91, .18);
    border: 1.5px solid rgba(46, 125, 91, .45);
    border-radius: var(--r-karte);
}

.ruhe__zeichen {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: var(--r-pille);
    background: var(--behoben);
    color: var(--text-auf-farbe);
}

.ruhe__titel {
    margin: 0;
    font-family: var(--schrift-titel);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-auf-farbe);
}

.ruhe__text {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--akzent-blass);
    text-wrap: pretty;
}

.lage__fuss { padding-top: 24px; }

    /* Am Telefon genügt die wichtigste Meldung — der Rest steht auf der
       Startseite, die ohnehin ohne Anmeldung offen ist. */
    .mkarte:nth-of-type(n + 2) { display: none; }

    .lage__weitere-breit { display: none; }
    .lage__weitere-schmal { display: inline; }
    .lage__weitere--nur-schmal { display: flex; }

    .anmeldung {
        padding: 32px 22px calc(40px + var(--rand-unten));
        border-radius: var(--r-sehr-gross) var(--r-sehr-gross) 0 0;
    }

    .anmeldung__mitte { max-width: none; }
    .anmeldung__titel { font-size: 28px; }

    /* Mindestens 17px, sonst zoomt Safari beim Antippen in die Seite. */
    .feld__eingabe { font-size: 17px; }
    .knopf { padding: 17px 0; }
}


/* ── Einrichtung: eine Spalte, heller Grund ───────────────────────────── */

.seite--einzeln { grid-template-columns: minmax(0, 1fr); background: var(--flaeche); }

.seite--einzeln .anmeldung {
    border-radius: 0;
    padding-top: calc(52px + var(--rand-oben));
}

.marke--dunkel { margin-bottom: 32px; }
.marke--dunkel .marke__name { color: var(--text); }
.marke--dunkel .marke__strich { background: var(--linie-kraeftig); }
.marke--dunkel .marke__kennung { background: var(--akzent); }

/* Auswahlfeld sieht aus wie die übrigen Felder */
.feld__auswahl {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 22px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355635F' 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 0 center;
    cursor: pointer;
}

@media (max-width: 899px) {
    .seite--einzeln .anmeldung { padding-top: calc(26px + var(--rand-oben)); }
    .marke--dunkel { margin-bottom: 22px; }
}
