/* NextRB Regalplaner – Anmeldung (Farben wie der Planer) */
:root {
  --petrol: #0D4D55; --petrol-tief: #0A3A40; --blau: #1d7368; --fond: #F3F6F6; --linie: #cfdfe1;
  --tinte: #10333a; --grau: #516d73; --rot: #b3261e; --rot-hell: #fdecea; --info: #eef6f8; --karte: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --fond: #0f2226; --karte: #15302f; --linie: #2b4a4f; --tinte: #e3eeef; --grau: #9fb8bc; --info: #183a40; --rot-hell: #3a1f1d; --rot: #ff9a8f; --blau: #6fcbb5; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--tinte); font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: 15px; line-height: 1.45; min-height: 100vh; }
.anmeldung { max-width: 440px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-left, 0px)) 48px max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 18px; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--tinte); }
.marke b { font-weight: 800; }
.karte { background: var(--karte); border: 1.5px solid var(--linie); border-radius: 16px; padding: 26px 24px; display: grid; gap: 14px; }
h1 { margin: 0; font-size: 22px; text-wrap: balance; }
form { display: grid; gap: 12px; }
form p { margin: 0; }
label { display: grid; gap: 5px; font-weight: 600; font-size: 13.5px; color: var(--grau); }
input { font: inherit; color: var(--tinte); background: var(--karte); border: 1.5px solid var(--linie); border-radius: 10px; padding: 10px 12px; }
input:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blau) 25%, transparent); }
#code { font-size: 22px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.knopf { font: inherit; font-weight: 700; border: 0; background: var(--petrol); color: #fff; border-radius: 11px; padding: 11px 16px; cursor: pointer; }
.knopf:hover { background: var(--petrol-tief); }
.knopf:disabled { opacity: .6; cursor: default; }
.linkKnopf { font: inherit; border: 0; background: none; color: var(--blau); cursor: pointer; justify-self: start; padding: 2px 0; text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; border-radius: 6px; }
.fehler { color: var(--rot); font-size: 13.5px; min-height: 0; }
.fehler:empty { display: none; }
.hinweis { margin: 0; background: var(--info); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.hinweis.ok { border-left: 3px solid #1d7a3d; }
.fuss { margin: 0; font-size: 13.5px; color: var(--grau); }
.fuss a { color: var(--blau); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .knopf, input { transition: background-color .12s, border-color .12s; } }

/* Passwort anzeigen (Auge) */
.pwFeld { position: relative; display: block; }
.pwFeld input { width: 100%; padding-right: 46px; }
.auge { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--grau); cursor: pointer; display: grid; place-items: center; }
.auge:hover { color: var(--tinte); background: color-mix(in srgb, var(--linie) 45%, transparent); }
.auge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
label .pwFeld { font-weight: 400; }

/* Sprache als Auswahl: nur die aktuelle Flagge, Liste beim Öffnen */
.sprachen { position: relative; display: block; }
.spracheKnopf { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border: 1.5px solid var(--linie, #cfdfe1); border-radius: 9px; background: var(--karte); color: var(--tinte); cursor: pointer; font-weight: 700; font-size: 12.5px; }
.spracheKnopf svg.flagge { width: 24px; height: 17px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.spracheKnopf svg.pfeil { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.spracheListe { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; min-width: 170px; padding: 5px; margin: 0; list-style: none; background: var(--karte); color: var(--tinte); border: 1.5px solid var(--linie, #cfdfe1); border-radius: 12px; box-shadow: 0 14px 34px rgba(13,77,85,.25); }
.spracheListe[hidden] { display: none; }
.spracheListe button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: inherit; font-size: 13.5px; text-align: left; }
.spracheListe button:hover, .spracheListe button:focus-visible { background: rgba(29,115,104,.08); }
.spracheListe button[aria-checked="true"] { font-weight: 700; }
.spracheListe svg { width: 24px; height: 17px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.marke .version { font-size: 12px; font-weight: 400; color: var(--grau); align-self: flex-end; margin-bottom: 3px; }

.marke img.appIcon { border-radius: 8px; display: block; }
