/* finanzamt-simulator.de – Sperrbildschirm (Startseite), Anmeldung, Einrichtung und Rechtstexte, Gestaltung „Hell“
   Haselstedt am Morgen über die ganze Fläche (assets/img/haselstedt.svg). EINE Gruppe, zentriert bei 46 % der Höhe:
   Dienstzeile, Uhr in DINish Condensed (148 px), Datum, Anmeldekarte (leichtes Glas). Das Finanzamt im Bild steht
   rechts, nie hinter der Karte. Unten links Dienststelle und Fiskus, unten rechts die Pflichtlinks.
   Der Sperrbildschirm ist immer hell (eigene Tokens), unabhängig vom gekauften Farbschema.
   Wird auch vom Sperren in Fiskus (os.lock, .ls--os) und von der statischen Kopie in index.php (.ls--ssr) genutzt.
   .lp, .lp-top: statische Seiten (/impressum, /datenschutz, /nutzungsbedingungen). */

/* ================= Statische Seiten (Rechtstexte aus index.php) ================= */
body.is-landing { background: var(--weiss); }
.lp { max-width: var(--w-land); margin: 0 auto; padding: 0 var(--gutter); }
:where(.lp) p { margin: 0; font-size: var(--t-16); line-height: 1.6; max-width: var(--w-text); }
.lp-top { position: sticky; top: 0; z-index: 2; background: rgba(250, 251, 252, .92); -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur); border-bottom: 1px solid var(--linie); }
.lp-top .lp { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.lp-top .logo { --logo-h: 28px; }
.lp-top a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); font-size: var(--t-14); font-weight: 700; text-decoration: none; }
.lp-top a:hover { color: var(--ink); }
/* Große Schirme: wachsen wie Fiskus und der Sperrbildschirm (--os-z 1.15 / 1.6) */
@media (min-width: 2200px) and (min-height: 1200px) { .lp-top, main.lp { zoom: 1.15; } }
@media (min-width: 3200px) and (min-height: 1800px) { .lp-top, main.lp { zoom: 1.6; } }

/* ================= Sperrbildschirm ================= */
.ls {
  /* immer hell: das Bild ist immer derselbe Morgen */
  --ink: #14181F; --ink-2: #4B5361; --ink-3: #5E6673; --ink-4: #A3AAB5; --weiss: #FFFFFF; --grund: #F5F6F8; --grund-2: #ECEEF1; --linie: #E4E7EB; --linie-2: #D2D7DE;
  --blau: #2152A3; --blau-hover: #1A4489; --blau-druck: #163A75; --blau-zart: #EAF0F9; --blau-text: #1D4A93; --on-primary: #FFFFFF; --rot: #C42B1F; --fokus: #2152A3;
  --sch-pop: 0 0 0 1px rgba(18, 26, 38, .08), 0 4px 12px rgba(18, 26, 38, .08), 0 18px 44px -10px rgba(18, 26, 38, .18);
  --sch-ctl: 0 0 0 1px rgba(18, 26, 38, .10), 0 1px 2px rgba(18, 26, 38, .06);
  position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto;
  background: #EEF1F5; color: var(--ink); font-family: var(--font); color-scheme: light; -webkit-tap-highlight-color: transparent;
}
.ls-scene { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center bottom; pointer-events: none; user-select: none; }

/* Eine Gruppe: Dienstzeile, Uhr, Datum, Karte – gemeinsam bei 46 % der Höhe (unten mehr Luft als oben) */
.ls-group {
  position: relative; z-index: 1; flex: none; display: flex; flex-direction: column; align-items: center; width: 100%;
  margin: auto 0; padding: 40px 16px calc(40px + 8vh); text-align: center;
}
.ls-dienst {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; max-width: 100%; min-height: 34px; margin: 0; padding: 4px 14px 4px 8px;
  border-radius: 8px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(18, 26, 38, .06);
  font-size: var(--t-14); color: var(--ink-2);
}
.ls-dienst b { color: var(--ink); }
.ls-dienst__ico { display: block; width: 22px; height: 22px; flex: none; }
.ls-dienst__ico svg { display: block; width: 100%; height: 100%; }
.ls-dienst__p { color: var(--ink-4); }
.ls-clock {
  display: block; margin-top: 22px; font-family: var(--font-eng); font-weight: 700; line-height: .9; letter-spacing: -.01em; color: #1B2230;
  font-size: clamp(76px, min(13.7vh, 26vw), 148px);
}
.ls-date { margin: 10px 0 0; font-size: var(--t-20); color: var(--ink-2); }

/* Anmeldekarte (das zweite Glas neben der Dienstleiste) */
.ls-card {
  position: relative; width: 380px; max-width: 100%; margin-top: 32px; padding: 26px 28px 20px; text-align: left;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 14px; box-shadow: var(--sch-pop);
}
.ls-card__in { display: flex; flex-direction: column; }
.ls-wer { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ls-tile { position: relative; display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: #E3E7EC; color: #3A4250; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
/* leer (Sperre, noch kein Name): neutraler grauer Kreis mit Person – keine Farbe außer dem Akzent */
.ls-tile.is-mark { background: #E3E7EC; color: #5E6673; }
.ls-tile__ico { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ls-wer__t { min-width: 0; }
.ls-name { margin: 0; font-size: var(--t-20); line-height: 1.2; overflow-wrap: anywhere; }
.ls-meta { margin: 3px 0 0; }
.ls-form { display: flex; flex-direction: column; margin-top: 20px; }
.ls-row { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.ls-form > .ls-row:first-child, .ls-form > input + .ls-row { margin-top: 0; }
.ls-feldbox { position: relative; flex: 1; min-width: 0; }
.ls-input { height: 38px; font-size: var(--t-16); }
.ls-input--pass:not(:placeholder-shown) { letter-spacing: .3em; }
.ls-go { width: 38px; height: 38px; }
.ls-go svg { width: 18px; height: 18px; }
.ls-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 4px 6px; border: 0; border-radius: 5px; background: none; color: var(--ink-2); font-family: var(--font); font-size: var(--t-13); cursor: pointer; }
.ls-show:hover { color: var(--ink); background: var(--grund-2); }
.ls-feldbox:has(.ls-show) .ls-input { padding-right: 84px; }
.ls-err { margin: 8px 0 0; font-size: var(--t-13); font-weight: 700; color: var(--rot); }
.ls-err:empty { display: none; }
.ls-hint { margin: 10px 0 0; font-size: var(--t-13); line-height: 1.45; color: var(--ink-2); }
.ls-consent { margin: 12px 0 0; font-size: var(--t-13); line-height: 1.45; color: var(--ink-2); }
.ls-submit { margin-top: 16px; }
.ls-sug { font-size: var(--t-13); }
/* Dienststelle: „Finanzamt [Ort]“ im Feld (amtInput aus app.js) */
.ls-feldbox--amt .amtin { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; width: 100%; height: 38px; padding: 0 12px; border-radius: var(--r-ctl); background: #fff; box-shadow: inset 0 0 0 1px var(--linie-2); font-size: var(--t-16); }
.ls-feldbox--amt .amtin:focus-within { box-shadow: inset 0 0 0 2px var(--blau); }
.ls-feldbox--amt .amtin.is-bad { box-shadow: inset 0 0 0 2px var(--rot); }
.ls-feldbox--amt .amtin__in { flex: 1; width: auto; min-width: 0; padding: 0; background: transparent; box-shadow: none; font-size: var(--t-16); }
.ls-feldbox--amt .amtin__in:focus { box-shadow: none; background: transparent; }
/* Einladungscode: sechs Kästchen, darüber das echte Feld */
.ls-code { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ls-code__in { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; opacity: 0; cursor: text; }
.ls-code__cell { display: grid; place-items: center; height: 40px; border-radius: var(--r-ctl); background: #fff; box-shadow: inset 0 0 0 1px var(--linie-2); font-family: var(--font-eng); font-size: 20px; font-weight: 700; color: var(--ink); }
.ls-code__cell.is-next { box-shadow: inset 0 0 0 2px var(--blau); }
.ls-code:has(.ls-code__in[aria-invalid="true"]) .ls-code__cell { box-shadow: inset 0 0 0 2px var(--rot); }
/* Wechsel unter der Karte */
.ls-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 14px 0 0; font-size: var(--t-13); color: var(--ink-2); }
.ls-alt__b { margin: 0; padding: 4px 2px; border: 0; background: none; color: var(--ink-2); font-family: var(--font); font-size: var(--t-13); cursor: pointer; }
a.ls-alt__b { text-decoration: none; }
.ls-alt__b:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ls-alt__b.is-busy::after { content: " …"; }
.ls-wake { text-decoration: none; }

/* Fuß: Dienststelle links, Pflichtlinks rechts */
.ls-foot {
  position: absolute; left: 28px; right: 24px; bottom: 22px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: var(--t-13); color: var(--ink-2);
}
.ls-amt { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.ls-amt__mark svg { display: block; width: 22px; height: 22px; }
.ls-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ls-legal a { color: var(--ink-2); text-decoration: none; }
.ls-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* Sperren in Fiskus: Fuß ohne Links */
.ls--os .ls-amt { position: absolute; left: 28px; bottom: 22px; z-index: 1; font-size: var(--t-13); color: var(--ink-2); }

/* Große Schirme: die Gruppe wächst wie Fiskus (--os-z) */
@media (min-width: 2200px) and (min-height: 1200px) { .ls-group, .ls-foot, .ls--os .ls-amt { zoom: 1.15; } }
@media (min-width: 3200px) and (min-height: 1800px) { .ls-group, .ls-foot, .ls--os .ls-amt { zoom: 1.6; } }

/* ================= Telefon und schmale Fenster ================= */
@media (max-width: 560px) {
  .ls-scene { object-position: 62% bottom; }
  .ls-group { padding: calc(24px + env(safe-area-inset-top)) 16px 24px; }
  .ls-dienst { font-size: var(--t-13); }
  .ls-date { font-size: var(--t-16); }
  .ls-card { width: 100%; margin-top: 24px; padding: 22px 20px 18px; }
  .ls-foot, .ls--os .ls-amt { position: static; flex-direction: column; justify-content: center; gap: 8px; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); text-align: center; }
  .ls-legal { justify-content: center; }
}
/* niedrig (Telefon quer): Uhr kleiner, weniger Luft */
@media (max-height: 520px) {
  .ls-group { padding-top: 16px; padding-bottom: 24px; }
  .ls-clock { margin-top: 12px; font-size: 64px; }
  .ls-date { margin-top: 4px; font-size: var(--t-14); }
  .ls-card { margin-top: 16px; }
  .ls-foot { position: static; flex: none; padding: 0 16px calc(12px + env(safe-area-inset-bottom)); }
}

/* Touch: Wechselzeile, Pflichtlinks, Anmelden und Pfeil mindestens 40–44 px hoch */
@media (pointer: coarse) {
  .ls-alt { gap: 0 4px; margin-top: 8px; }
  .ls-alt__b { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .ls-legal { gap: 0 4px; }
  .ls-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .ls-card .h-knopf--voll { height: 44px; }
  .ls-input, .ls-feldbox--amt .amtin { height: 44px; }
  .ls-go { width: 44px; height: 44px; }
  .ls-code__cell { height: 44px; }
}

/* ================= Statische Kopie (index.php, ohne JavaScript) ================= */
.ls-noscript { max-width: 34em; margin: 16px auto 0; padding: 12px 16px; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: var(--t-14); line-height: 1.45; box-shadow: var(--sch-pop); }
