:root {
  --grund: #10151c;
  --flaeche: #1b2430;
  --rand: #2b3849;
  --text: #f2f5f9;
  --gedaempft: #93a1b5;
  --kommen: #1f7a4d;
  --gehen: #9a3b2f;
  --warnung: #b4801f;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--grund); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex; flex-direction: column; user-select: none;
}
header {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--rand);
}
.uhr { font-size: 2.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.datum { color: var(--gedaempft); font-size: 1.1rem; }
.verbindung {
  margin-left: auto; background: var(--warnung); color: #1b1200;
  padding: .4rem .8rem; border-radius: .5rem; font-weight: 600;
}
main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; }
section { width: min(30rem, 100%); text-align: center; }
h1 { font-size: 1.6rem; font-weight: 500; margin: 0 0 1rem; }
.anzeige {
  font-size: 3rem; font-variant-numeric: tabular-nums; letter-spacing: .15em;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: .75rem;
  padding: .75rem; min-height: 5rem; display: flex; align-items: center; justify-content: center;
}
.hinweis { color: var(--gedaempft); min-height: 1.5rem; margin: .75rem 0; font-size: 1.05rem; }
.hinweis.fehler { color: #ff9c8a; }
.tasten { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
button {
  font: inherit; font-size: 1.8rem; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--rand); border-radius: .75rem; padding: 1.1rem 0; cursor: pointer;
}
button:active { background: #26374b; }
button.neben { font-size: 1.1rem; }
button.weiter { background: #1d4e79; border-color: #2b6ba5; }
.auswahl { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
button.gross { font-size: 2rem; padding: 3rem 0; font-weight: 600; }
button.kommen { background: var(--kommen); border-color: #2a9b63; }
button.gehen { background: var(--gehen); border-color: #c04c3c; }
button.vorschlag { outline: 3px solid #f2f5f9; outline-offset: 3px; }
button.abbrechen { margin-top: 1.5rem; font-size: 1rem; background: none; border: none; color: var(--gedaempft); }
.stand { display: flex; gap: 2rem; justify-content: center; margin: 1.5rem 0 0; }
.stand div { text-align: center; }
.stand dt { color: var(--gedaempft); font-size: .95rem; white-space: nowrap; }
.stand dd { margin: .2rem 0 0; font-size: 1.6rem; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.haken { font-size: 5rem; color: #46c485; line-height: 1; }
.haken.wartend { color: var(--warnung); }
.quittung-zeit { font-size: 3.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.nebenaktionen { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* Die Monatsuebersicht braucht mehr Breite als die Tastatur-Ansichten. */
#schritt-meine { width: min(46rem, 100%); }
.tage {
  width: 100%; margin: 0 auto 1rem; max-height: 46vh; overflow-y: auto;
  border-radius: .6rem; background: rgba(255, 255, 255, .06);
}
.tage .zeile {
  display: grid; grid-template-columns: 4.6rem 2.4rem minmax(0, 1fr) 4.4rem;
  gap: .5rem; padding: .45rem .9rem; font-size: .98rem; align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, .08); font-variant-numeric: tabular-nums;
}
/* Ohne min-width sprengen lange Zeitreihen die Zeile nach rechts aus dem Kasten. */
.tage .zeile > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tage .zeile > span:last-child { text-align: right; }
.tage .zeile:last-child { border-bottom: none; }
.tage .zeile .hinweistext { opacity: .75; }
.tage .leer { padding: 1rem; opacity: .7; text-align: center; }
footer.datenschutz {
  position: fixed; left: 0; right: 0; bottom: 0; padding: .5rem 1rem;
  font-size: .78rem; line-height: 1.35; text-align: center; opacity: .6;
}

.demoband {
  margin: 0; padding: .5rem 1rem; text-align: center; font-size: .85rem;
  background: var(--warnung); color: #1b1305; font-weight: 600;
}
