/* Babyfeeder — dunkle, warme Oberflaeche fuer die Bedienung mit einer Hand
   um drei Uhr nachts. Bezugsgroesse: OnePlus Nord 3/4, 412 x 915 dp. */

:root {
  --bg:        #12100f;
  --bg-elev:   #1b1817;
  --bg-elev-2: #241f1d;
  --line:      #322b28;
  --text:      #f3ece6;
  --muted:     #a1948b;

  --accent:      oklch(0.76 0.11 65);    /* Bernstein — Start, Milch */
  --accent-soft: oklch(0.30 0.05 65);
  --calm:        oklch(0.76 0.10 168);   /* Mint — laufend, fertig */
  --calm-soft:   oklch(0.30 0.05 168);
  --night:       oklch(0.74 0.10 282);   /* Indigo — Schlaf */
  --night-soft:  oklch(0.30 0.05 282);
  --danger:      oklch(0.66 0.13 25);

  --r-lg: 22px;
  --r-md: 14px;
  --tap: 56px;
}

* { box-sizing: border-box; }

/* Muss vor allen Layout-Regeln stehen: eine Klasse mit display-Angabe
   (z. B. .field { display: block }) wuerde das hidden-Attribut sonst
   ueberstimmen und das Element trotzdem anzeigen. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

button, input { font: inherit; color: inherit; }
a { color: var(--accent); }
a:hover { color: oklch(0.84 0.11 65); }

.app {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: env(safe-area-inset-top);
}

/* --------------------------------------------------------------------- */
/* Kopfzeile                                                              */
/* --------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 6px;
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.who-chip {
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 15px;
}

/* --------------------------------------------------------------------- */
/* Ansichten                                                              */
/* --------------------------------------------------------------------- */

.view {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 6px 20px 20px;
  min-height: 0;
}

.view[hidden] { display: none; }

.view-title {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 600;
}

/* --------------------------------------------------------------------- */
/* Statuskarte                                                            */
/* --------------------------------------------------------------------- */

.status { text-align: center; padding-top: 10px; }

.status-label {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-big {
  margin: 6px 0 4px;
  font-size: 54px;
  font-weight: 300;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.status-sub { margin: 0; color: var(--muted); font-size: 16px; }

/* "Wach seit ..." - blau, und ab zwei Stunden rot, weil dann meist das
   naechste Muedigkeitsfenster ansteht. */
.status-sub.awake {
  color: var(--night);
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.status-sub.awake.long { color: var(--danger); }

.status.is-running .status-big { color: var(--calm); font-weight: 400; }
.status.is-stale  .status-big { color: var(--accent); }
.status.is-sleeping .status-big { color: var(--night); font-weight: 400; }

/* Schläft er gerade, steht das auf dem Startbildschirm zwischen der
   Mahlzeit-Angabe und dem Bild. */
.sleep-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  font-size: 19px;
  color: var(--night);
}
.sleep-line[hidden] { display: none; }
.sleep-line svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sleep-line b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------- */
/* Baby                                                                   */
/* --------------------------------------------------------------------- */

.stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Das Bild hat Vorrang: lieber scrollt die Seite, als dass es verschwindet. */
  min-height: 210px;
}

/* Bewusst ueber die BREITE gefuehrt: "height: 100%" braucht einen Elternteil
   mit fester Hoehe - in einem Flex-Container mit blosser Mindesthoehe loesen
   manche Browser (u. a. Chrome auf Android) das zu null auf und das Bild
   verschwindet. Die Hoehe ergibt sich aus dem Seitenverhaeltnis: 334 -> 270. */
.baby { width: 100%; max-width: 334px; height: auto; }

.baby .shadow      { fill: #000; opacity: 0.35; }
.baby .swaddle     { fill: var(--bg-elev-2); stroke: var(--line); stroke-width: 2; }
.baby .swaddle-fold{ fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.baby .skin        { fill: oklch(0.82 0.06 55); }
.baby .hair        { fill: oklch(0.44 0.05 45); }
.baby .blush       { fill: oklch(0.72 0.09 30); opacity: 0.55; }
.baby .mouth       { fill: oklch(0.52 0.09 30); }
.baby .arm         { fill: none; stroke: oklch(0.82 0.06 55); stroke-width: 13; stroke-linecap: round; }

.baby .eyes-closed path { fill: none; stroke: oklch(0.34 0.04 45); stroke-width: 3.4; stroke-linecap: round; }
.baby .eyes-open ellipse { fill: oklch(0.30 0.04 45); }
.baby .eyes-open { opacity: 0; }
.baby .eyes-closed { opacity: 1; }

.baby .teat   { fill: oklch(0.78 0.07 70); }
.baby .collar { fill: oklch(0.62 0.03 70); }
.baby .glass  { fill: oklch(0.28 0.02 70); stroke: oklch(0.52 0.03 70); stroke-width: 2; }
.baby .milk   { fill: var(--accent); transform-box: fill-box; transform-origin: bottom;
                transform: scaleY(var(--fill, 1)); transition: transform 900ms linear; }
.baby .bubbles circle { fill: #fff; opacity: 0; }
.baby .ticks path { fill: none; stroke: oklch(0.52 0.03 70); stroke-width: 2; stroke-linecap: round; }

.baby .z { fill: var(--muted); font-size: 20px; font-weight: 600; }
.baby .zzz { opacity: 1; }
.baby .z1 { animation: zfloat 3.6s ease-in-out infinite; }
.baby .z2 { animation: zfloat 3.6s ease-in-out infinite 1.2s; }
.baby .z3 { animation: zfloat 3.6s ease-in-out infinite 2.4s; }

@keyframes zfloat {
  0%   { opacity: 0; transform: translate(0, 6px) scale(0.8); }
  30%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(6px, -14px) scale(1.1); }
}

/* Trinkzustand */
.baby.feeding .zzz { opacity: 0; }
.baby.feeding .eyes-closed { opacity: 0; }
.baby.feeding .eyes-open { opacity: 1; }
.baby.feeding .head { animation: sip 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.baby.feeding .mouth { animation: suck 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.baby.feeding .bubbles circle { animation: bubble 2.8s ease-in infinite; }
.baby.feeding .bubbles circle:nth-child(2) { animation-delay: 0.9s; }
.baby.feeding .bubbles circle:nth-child(3) { animation-delay: 1.7s; }

@keyframes sip {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50%      { transform: rotate(-1.6deg) translateY(2px); }
}
@keyframes suck {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(0.72, 0.86); }
}
@keyframes bubble {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  25%  { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(-42px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .baby *, .baby { animation: none !important; }
}

/* --------------------------------------------------------------------- */
/* Hauptknoepfe                                                           */
/* --------------------------------------------------------------------- */

.action { display: flex; flex-direction: column; gap: 10px; }

/* "Zuletzt: rechts" — beantwortet beim Start die Frage, welche Seite dran ist. */
.last-side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}
.last-side[hidden] { display: none; }
.last-side b { color: var(--accent); font-weight: 600; }

.btn-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 126px;
  padding: 18px;
  border: 0;
  border-radius: var(--r-lg);
  color: #17120e;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.btn-main:active { transform: scale(0.98); filter: brightness(0.94); }
.btn-main[hidden] { display: none; }
.btn-main:disabled { opacity: 0.5; }

.btn-title { font-size: 27px; font-weight: 600; letter-spacing: -0.01em; }
.btn-note  { font-size: 16px; opacity: 0.72; font-variant-numeric: tabular-nums; }

.btn-start { background: var(--accent); }
.btn-stop  { background: var(--calm); }
.btn-sleep { background: var(--night); color: #14121c; }

/* Schlafen vom Startbildschirm aus: bewusst flacher und umrandet, damit die
   Fuetterung der Hauptknopf bleibt. */
.btn-second {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
  transition: transform 120ms ease;
}
.btn-second:active { transform: scale(0.98); }
.btn-second svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--night);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-second.is-awake { border-color: var(--night); background: var(--night-soft); }
.btn-second .when { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.btn-second .emoji { font-size: 22px; line-height: 1; }

/* Windel- und Spaziergangknopf: flacher, sie sind die beilaeufigeren. */
.btn-diaper,
.btn-walk { min-height: 54px; font-size: 18px; }
.btn-diaper:active,
.btn-walk:active { background: var(--bg-elev-2); }

.btn-walk svg { stroke: var(--calm); }
/* Laeuft gerade: derselbe Mint-Ton wie beim "Fertig"-Knopf. */
.btn-walk.is-walking { border-color: var(--calm); background: var(--calm-soft); }

.card-title.walk-title { display: flex; align-items: center; gap: 8px; }
.card-title.walk-title svg {
  width: 19px; height: 19px; fill: none; stroke: var(--calm);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.chart .bar.walk { background: var(--calm); }

.card-title .emoji { font-size: 17px; }
.kpis.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.chart .bar.diaper { background: oklch(0.62 0.07 60); }

/* "Schlummert noch" unter dem Ende-Feld */
.chip-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin: -8px 0 16px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}
.chip-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--night);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chip-action.on { border-color: var(--night); background: var(--night-soft); color: var(--text); }

.btn-ghost {
  min-height: 48px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.btn-ghost[hidden] { display: none; }

/* --------------------------------------------------------------------- */
/* Verlauf                                                                */
/* --------------------------------------------------------------------- */

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

.day-head {
  margin: 14px 0 2px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.day-head:first-child { margin-top: 0; }

.entry {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  text-align: left;
  cursor: pointer;
}
.entry:active { background: var(--bg-elev-2); }

.entry-time { font-size: 19px; font-variant-numeric: tabular-nums; }
.entry-meta { margin-left: auto; text-align: right; color: var(--muted); font-size: 15px; }
.entry-dur  { font-size: 19px; color: var(--text); font-variant-numeric: tabular-nums; }
.entry.running { border-color: var(--calm); background: var(--calm-soft); }

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-elev-2);
  color: var(--muted);
  font-size: 13px;
}

/* Die drei Nachtragen-Knoepfe stehen gesammelt ueber der Liste. Nicht mehr
   klebend: drei festgepinnte Knoepfe wuerden beim Scrollen zu viel verdecken -
   der Ansichtswechsel springt ohnehin an den Anfang. */
.add-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }

.btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
}
.btn-add:active { background: var(--bg-elev-2); }

/* "Ältere anzeigen" nutzt dieselbe Optik, klebt aber nicht. */
.btn-add.plain { position: static; margin: 8px 0 0; box-shadow: none; }

/* Kompakte Liste innerhalb einer Statistik-Karte */
.list-compact { gap: 6px; margin-top: 10px; }
.list-compact .entry { min-height: 48px; padding: 8px 14px; background: var(--bg); }
.list-compact .entry-time { font-size: 17px; }
.list-compact .entry-meta { font-size: 14px; }

.empty { padding: 40px 0; text-align: center; color: var(--muted); }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2;
       stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------- */
/* Statistik                                                              */
/* --------------------------------------------------------------------- */

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.kpi {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  text-align: center;
}
.kpi b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--muted); }

.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
}
.card-title { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.card-hint { margin: -8px 0 12px; font-size: 14px; color: var(--muted); }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 132px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.chart .bar-wrap { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.chart .bar { width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--accent); opacity: 0.9; }
.chart .bar.calm { background: var(--calm); }
.chart .lbl { font-size: 12px; color: var(--muted); }
.chart .val { font-size: 13px; font-variant-numeric: tabular-nums; }

.heat { display: flex; flex-direction: column; gap: 5px; }
.heat-row { display: flex; align-items: center; gap: 8px; }
.heat-row .lbl { width: 34px; font-size: 12px; color: var(--muted); }
.heat-track {
  position: relative;
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-elev-2);
  overflow: hidden;
}
.heat-mark { position: absolute; top: 0; bottom: 0; min-width: 2px; background: var(--accent); opacity: 0.85; }
.heat-scale { display: flex; justify-content: space-between; margin: 8px 0 0 42px; font-size: 12px; color: var(--muted); }

.range { display: flex; gap: 8px; }
.range button {
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  color: var(--muted);
  cursor: pointer;
}
.range button.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

/* --------------------------------------------------------------------- */
/* Tableiste                                                              */
/* --------------------------------------------------------------------- */

.tabbar {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 58px;
  padding: 8px 4px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.tab.on { color: var(--accent); }
.tab[data-view="viewSleep"].on { color: var(--night); }

/* Abschnittsüberschrift innerhalb einer Ansicht */
.section-head {
  margin: 14px 0 -4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.chart .bar.night { background: var(--night); }
.heat-mark.night { background: var(--night); }
.range.night button.on { border-color: var(--night); background: var(--night-soft); }

/* --------------------------------------------------------------------- */
/* Dialoge                                                                */
/* --------------------------------------------------------------------- */

.sheet {
  width: min(100%, 460px);
  margin: auto auto 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--bg-elev);
  color: var(--text);
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.65); }
.sheet h2 { margin: 0 0 6px; font-size: 22px; }
.sheet-hint { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: 15px; color: var(--muted); }
.field > span em { font-style: normal; opacity: 0.75; }
.field input {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.form-error { margin: -6px 0 14px; color: var(--danger); font-size: 15px; }
.form-error[hidden] { display: none; }

.sheet-actions { display: flex; gap: 8px; }
.btn-flat {
  flex: 1;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.btn-flat[hidden] { display: none; }
.btn-flat.primary { border-color: transparent; background: var(--accent); color: #17120e; font-weight: 600; }
.btn-flat.danger { border-color: transparent; color: var(--danger); }

/* Auswahl nach dem Fertig-Druck: zwei grosse Flaechen fuer die Seiten,
   das Fläschchen darunter über die volle Breite. */
.side-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.side-picker button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
  transition: transform 120ms ease;
}
.side-picker button:active { transform: scale(0.97); background: var(--accent-soft); }
.side-picker button.wide { grid-column: 1 / -1; flex-direction: row; min-height: 76px; }

.side-ico {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dieselbe Angabe im Nachtragen-Dialog, dort platzsparend als Chips. */
.side-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.side-chips button {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}
.side-chips button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

.who-options { display: flex; gap: 8px; margin-bottom: 16px; }
.who-options button {
  flex: 1;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
}
.who-options button.on { border-color: var(--accent); background: var(--accent-soft); }

/* --------------------------------------------------------------------- */
/* Toast                                                                  */
/* --------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  font-size: 15px;
  z-index: 10;
}
.toast[hidden] { display: none; }
.toast-undo {
  margin-left: 4px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  cursor: pointer;
}
.toast.err { border-color: var(--danger); color: oklch(0.86 0.06 25); }

/* ------------------------------------------------------------------------- */
/* Anmeldeseite (login.html)                                                  */
/* Eigenstaendig gehalten: sie laedt ohne app.js und ohne die Tableiste.      */
/* ------------------------------------------------------------------------- */

.login-page { overflow-y: auto; }

.login-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  max-width: 440px;
  margin: 0 auto;
}

.login-brand {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--muted);
}

.login-baby { width: 120px; height: auto; }

.login-card {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 18px;
}

.login-card h2 { margin: 0 0 18px; font-size: 25px; }

.login-who { display: flex; gap: 8px; margin-bottom: 18px; }

.login-who button {
  flex: 1;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.login-who button.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.login-go {
  width: 100%;
  min-height: 60px;
  margin-top: 18px;
  border: none;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #1a1410;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.login-go:disabled { opacity: .6; }

/* ------------------------------------------------------------------------- */
/* Konto-Dialog in der App                                                    */
/* ------------------------------------------------------------------------- */

.konto-name { font-size: 21px; font-weight: 600; margin: 0 0 2px; }
.konto-rolle { color: var(--muted); font-size: 15px; margin: 0 0 18px; }

.konto-liste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.konto-liste .zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  /* Auf schmalen Handys rutscht die Knopfgruppe in die zweite Zeile, statt
     rechts abgeschnitten zu werden. */
  flex-wrap: wrap;
}

.konto-liste .zeile > div:first-child { flex: 1 1 110px; min-width: 0; }

.konto-liste .zeile b { font-weight: 600; }
.konto-liste .zeile small { color: var(--muted); display: block; font-size: 14px; }

.konto-liste button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 12px;
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev-2);
  color: var(--text);
  cursor: pointer;
}

.konto-warn { color: var(--danger); font-size: 14px; }
