/*
  style.css
  Aussehen der Seite: schlicht, dunkel, auf dem Handy gut mit dem Daumen bedienbar.
  Farben und Größen stehen als Variablen ganz oben und lassen sich dort zentral ändern.
*/

:root {
  --bg: #121214;            /* Seitenhintergrund */
  --fg: #e6e6e9;            /* normale Schrift */
  --muted: #8a8a93;         /* dezente Schrift (Status, Hinweise) */
  --panel: #1c1c20;         /* Hintergrund der Kategorien-Box */
  --border: #2c2c32;        /* Rahmenlinien */
  --accent: #e8a838;        /* Akzentfarbe: Button, Häkchen, „Läuft“ */
  --accent-fg: #121214;     /* Schrift auf Akzentfarbe */
  --button-size: 11rem;     /* Durchmesser des runden Play/Stop-Buttons */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 28rem;
  margin: 0 auto;
  padding: max(2rem, env(safe-area-inset-top)) 1rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

/* Großer runder Play/Stop-Button */
#toggle {
  width: var(--button-size);
  height: var(--button-size);
  margin-top: 1rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: 600 1.6rem var(--font);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Laufend: Button gefüllt */
#toggle[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-fg);
}

#toggle:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

.status {
  margin: 0;
  min-height: 1.5em;
  color: var(--muted);
  text-align: center;
}

.status.running {
  color: var(--accent);
}

/* Kasten mit den Kategorie-Checkboxen */
#categories {
  width: 100%;
  margin: 0;
  padding: 0.5rem 1rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--panel);
}

#categories legend {
  padding: 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Eine Zeile pro Kategorie, groß genug zum Antippen */
.category {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.category:last-of-type {
  border-bottom: none;
}

.category input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0;
  accent-color: var(--accent);
}

.category .name {
  flex: 1;
}

.category .count {
  color: var(--muted);
  font-size: 0.9rem;
}

.hint {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
