/* ===========================================================================
   Zeiterfassung – Stylesheet
   Optimiert für Smartphone (große Flächen, hoher Kontrast), Desktop-tauglich.
   =========================================================================== */

:root {
  --bg:            #eef1f6;
  --surface:       #ffffff;
  --surface-2:     #f6f8fb;
  --text:          #0b0f19;
  --muted:         #4b5563;
  --line:          #cbd3e1;
  --line-strong:   #9aa6bd;

  --accent:        #1d4ed8;
  --accent-soft:   #dbe4ff;
  --start:         #15803d;
  --start-dark:    #12652f;
  --stop:          #b91c1c;
  --stop-dark:     #911616;
  --warn:          #92400e;
  --warn-bg:       #fef3c7;

  --radius:        16px;
  --radius-sm:     10px;
  --tap:           48px;

  --shadow:        0 1px 2px rgba(11, 15, 25, .08), 0 6px 18px rgba(11, 15, 25, .08);
  --shadow-lg:     0 -8px 40px rgba(11, 15, 25, .28);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0b1120;
    --surface:     #161e2e;
    --surface-2:   #1d2740;
    --text:        #f2f5fa;
    --muted:       #a6b0c3;
    --line:        #2b3750;
    --line-strong: #46557a;

    --accent:      #7aa2ff;
    --accent-soft: #1e2c50;
    --start:       #1e9e4a;
    --start-dark:  #17803b;
    --stop:        #e0463f;
    --stop-dark:   #b8342e;
    --warn:        #fbbf24;
    --warn-bg:     #3a2c07;

    --shadow:      0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg:   0 -8px 40px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

/* Viele Elemente setzen display:flex/grid und würden [hidden] sonst
   überschreiben – deshalb einmal zentral erzwingen. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, p { margin: 0; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 22px;
  height: 22px;
  display: block;
}

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Startbildschirm-Überlagerung, bis die Anmeldung geprüft ist
   -------------------------------------------------------------------------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.boot__spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
body.ready .boot { display: none; }

/* --------------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.appbar__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.appbar__actions { display: flex; gap: 4px; }

.iconbtn {
  min-width: var(--tap);
  min-height: var(--tap);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn:active { transform: scale(.94); }

/* --------------------------------------------------------------------------
   Grundgerüst
   -------------------------------------------------------------------------- */
.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 14px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  min-height: var(--tap);
  padding: 11px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  appearance: none;
}
.input:focus {
  border-color: var(--accent);
  outline: none;
  background: var(--surface);
}
.input--big { min-height: 58px; font-size: 1.12rem; font-weight: 600; }
.input::placeholder { color: var(--muted); opacity: .75; font-weight: 400; }

/* --------------------------------------------------------------------------
   Autocomplete
   -------------------------------------------------------------------------- */
.combo { position: relative; }

.combo__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.combo__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--tap);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.combo__item[aria-selected="true"],
.combo__item:hover { background: var(--accent-soft); }
.combo__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo__meta { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Chips
   -------------------------------------------------------------------------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chip--pick { border-style: dashed; }
.chip:active { transform: scale(.96); }

.offsets { margin: 14px 0 16px; }
.offsets__label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Große Aktionsflächen
   -------------------------------------------------------------------------- */
.bigbtn {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--radius);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--start-dark);
  transition: transform .06s ease, box-shadow .06s ease;
}
.bigbtn:active { transform: translateY(3px); box-shadow: none; }
.bigbtn__icon { font-size: 1.05rem; }
.bigbtn:disabled { opacity: .55; cursor: default; transform: none; }

.bigbtn--start   { background: var(--start); box-shadow: 0 3px 0 var(--start-dark); }
.bigbtn--stop    { background: var(--stop);  box-shadow: 0 3px 0 var(--stop-dark); }
.bigbtn--primary { background: var(--accent); box-shadow: 0 3px 0 #14349b; }

.widebtn {
  width: 100%;
  min-height: var(--tap);
  padding: 12px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.widebtn:hover { color: var(--text); border-color: var(--accent); }

.btn {
  min-height: var(--tap);
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn--danger-ghost { background: transparent; border-color: transparent; color: var(--stop); margin-right: auto; }
.btn:active { transform: scale(.97); }

/* --------------------------------------------------------------------------
   Laufender Timer
   -------------------------------------------------------------------------- */
.tracker__meta { font-size: .88rem; color: var(--muted); }
.tracker__day { opacity: .8; }
.tracker__task {
  margin: 2px 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.tracker__clock {
  font-family: var(--mono);
  font-size: clamp(2.7rem, 15vw, 3.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 2px 0 16px;
}

.rewind {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.rewind__label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.rewind__hint { margin-top: 8px; font-size: .8rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Einträge
   -------------------------------------------------------------------------- */
.entries__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  /* Vier Schalter passen auf schmalen Displays nicht immer nebeneinander. */
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
  cursor: pointer;
}
.tab.is-active { background: var(--text); color: var(--surface); }

/* Blättern durch vergangene Zeiträume */
.period {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.period__nav {
  flex: 0 0 auto;
  min-width: 46px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.period__nav:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.period__nav:disabled { opacity: .28; cursor: default; }
.period__label {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entries__total { font-size: .95rem; color: var(--muted); }
.entries__total strong { font-family: var(--mono); font-size: 1.1rem; color: var(--text); }
.entries__total-label { text-transform: uppercase; font-size: .74rem; letter-spacing: .06em; }

.list { display: flex; flex-direction: column; gap: 16px; }

.day__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 6px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 8px;
}
.day__name { font-size: .92rem; font-weight: 800; }
.day__total { font-family: var(--mono); font-size: .92rem; color: var(--muted); }

.entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.entry.is-running { border-color: var(--start); border-width: 2px; }
.entry__main { flex: 1 1 auto; min-width: 0; }
.entry__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entry__times { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry__dur {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.entry__actions { display: flex; gap: 2px; flex: 0 0 auto; }
.entry__actions .iconbtn { min-width: 42px; min-height: 42px; }
.entry__actions .iconbtn svg { width: 19px; height: 19px; }

.empty {
  padding: 34px 18px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.footnote { text-align: center; font-size: .76rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Bottom-Sheet
   -------------------------------------------------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 100; }
.sheet[hidden] { display: none; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, .55);
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }

.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 94vh;
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  animation: rise .22s cubic-bezier(.22, 1, .36, 1);
}
@keyframes rise { from { transform: translateY(100%); } }

@media (min-width: 640px) {
  .sheet__panel {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: 560px;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    animation: pop .18s ease;
  }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 12px 10px 18px;
  border-bottom: 1px solid var(--line);
}
.sheet__title { font-size: 1.1rem; font-weight: 800; }

.sheet__body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}

.sheet__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0 0 22px 22px;
}

.sheet__warning {
  margin: 0;
  padding: 10px 12px;
  font-size: .85rem;
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Tagesleiste (Mini-Kalender)
   -------------------------------------------------------------------------- */
.daybar { display: flex; align-items: center; gap: 4px; }
.daybar__nav {
  flex: 0 0 auto;
  width: 34px;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.daybar__nav:hover { background: var(--surface-2); color: var(--text); }

.daybar__days {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.day-cell {
  min-height: 56px;
  padding: 5px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.day-cell__dow { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.day-cell__num { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.day-cell__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0; }
.day-cell.has-entries .day-cell__dot { opacity: 1; }
.day-cell.is-today { border-color: var(--line-strong); }
.day-cell.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.day-cell.is-selected .day-cell__dow { color: rgba(255, 255, 255, .85); }
.day-cell.is-selected .day-cell__dot { background: #fff; }
.day-cell.is-future { opacity: .38; }

/* --------------------------------------------------------------------------
   Anzeige Start/Dauer/Ende
   -------------------------------------------------------------------------- */
.readout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.readout__side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.readout__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.readout__mid { display: flex; flex-direction: column; align-items: center; padding: 0 4px; }
.readout__duration {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.readout__unit { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

.stepper { display: flex; align-items: center; gap: 2px; }
.stepper__btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.stepper__btn:active { background: var(--accent); color: #fff; }
.stepper__value {
  min-width: 66px;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.24rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.readout.is-live #out-end,
.readout.is-live [data-nudge^="end"] { opacity: .45; }

/* --------------------------------------------------------------------------
   Zeitstrahl
   -------------------------------------------------------------------------- */
.timeline__scroll {
  position: relative;
  height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  -webkit-overflow-scrolling: touch;
}
.timeline__canvas { position: relative; }

.timeline__hint { margin-top: 6px; font-size: .76rem; color: var(--muted); text-align: center; }

.tl-hour {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}
.tl-hour--major { border-top-color: var(--line-strong); }
.tl-hour--day { border-top: 2px dashed var(--line-strong); }
.tl-hour__label {
  position: absolute;
  top: -9px;
  left: 6px;
  width: 44px;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: var(--surface-2);
  padding: 1px 0;
}
.tl-half { position: absolute; left: 56px; right: 0; border-top: 1px dotted var(--line); opacity: .7; }

.tl-other {
  position: absolute;
  left: 56px;
  right: 8px;
  border-radius: 7px;
  background: repeating-linear-gradient(45deg,
              var(--line) 0, var(--line) 5px,
              transparent 5px, transparent 10px);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.tl-other__label {
  position: absolute;
  inset: 0;
  padding: 2px 7px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--surface);
  opacity: .82;
}

.timeline__now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--stop); z-index: 3; }
.timeline__now span {
  position: absolute;
  top: -9px;
  right: 6px;
  font-size: .66rem;
  font-weight: 700;
  color: #fff;
  background: var(--stop);
  border-radius: 999px;
  padding: 1px 7px;
}

.timeline__block {
  position: absolute;
  left: 56px;
  right: 8px;
  z-index: 5;
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(29, 78, 216, .38);
  touch-action: none;
  cursor: grab;
}
.timeline__block.is-dragging { cursor: grabbing; filter: brightness(1.08); }

.tl-block__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

.tl-handle {
  position: absolute;
  left: -8px;
  right: -8px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: ns-resize;
  z-index: 6;
}
.tl-handle--top { top: -20px; }
.tl-handle--bottom { bottom: -20px; }
.tl-handle::before {
  content: "";
  width: 52px;
  height: 7px;
  border-radius: 4px;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.tl-handle:active::before { background: var(--accent); }
.timeline__block.is-live .tl-handle--bottom { display: none; }

/* --------------------------------------------------------------------------
   Anmeldeseite
   -------------------------------------------------------------------------- */
.login-page { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; }

.login {
  width: min(400px, 100%);
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
}
.login__brand { display: grid; place-items: center; margin-bottom: 14px; }
.login__logo { width: 56px; height: 56px; color: var(--accent); stroke-width: 1.7; }
.login__title { font-size: 1.6rem; font-weight: 800; }
.login__sub { color: var(--muted); margin-bottom: 24px; }

.login__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.login__pwrow { position: relative; }
.login__pwrow .input { padding-right: 56px; }
.login__reveal { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  font-size: .95rem;
  color: var(--muted);
  cursor: pointer;
}
.check input { width: 22px; height: 22px; accent-color: var(--accent); }

.login__error {
  margin: 0;
  padding: 10px 12px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: var(--stop);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Kurzmeldung
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 300;
  transform: translateX(-50%);
  max-width: min(92vw, 480px);
  padding: 13px 18px;
  font-size: .93rem;
  font-weight: 600;
  color: #fff;
  background: #111827;
  border-radius: 999px;
  box-shadow: var(--shadow);
  animation: toast-in .2s ease;
}
.toast[hidden] { display: none; }
.toast.is-error { background: var(--stop); }
.toast.is-warn { background: #92400e; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
