/* Simple Mode – gebaut für das i.safe MOBILE IS170.2.
   Große Flächen, hoher Kontrast, kein Scrollen, keine Animationen. */

body {
  overflow-x: hidden;
}

.screen {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 16px 18px;
  min-height: 100vh;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
}

.brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.link {
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 4px;
}

/* --- Kopfbereich ------------------------------------------------------- */
.clock {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 2px 0 10px;
  color: var(--text);
}

.status {
  text-align: center;
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.dot {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  margin-right: 0.45em;
  vertical-align: baseline;
  background: var(--off);
}

.big {
  text-align: center;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.05;
  margin: 4px 0 2px;
}

.meta {
  text-align: center;
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
}

.sub {
  text-align: center;
  margin: 2px 0 16px;
  color: var(--text-dim);
  font-size: 1rem;
  min-height: 1.4em;
}

/* --- Zustandsfarben (Farbe ergänzt den Text, ersetzt ihn nie) ---------- */
.state-working .dot { background: var(--work-strong); }
.state-working .status { color: var(--work-strong); }
.state-working .big { color: var(--work-strong); }

.state-paused .dot { background: var(--pause-strong); }
.state-paused .status { color: var(--pause-strong); }
.state-paused .big { color: var(--pause-strong); }

.state-off .dot { background: var(--off); }
.state-off .status { color: var(--text-dim); }
.state-off .big { color: var(--text); }

.state-inconsistent .dot { background: var(--error); }
.state-inconsistent .status { color: var(--error); }

/* --- Tasten ------------------------------------------------------------ */
.actions {
  display: grid;
  grid-gap: var(--gap);
  gap: var(--gap);
}

.btn {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 18px 12px;
  border-radius: var(--radius);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  background: var(--bg-raised);
  color: var(--text);
  border: 2px solid var(--line);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:active {
  filter: brightness(1.25);
}

.btn-start,
.btn-resume {
  background: var(--work);
  border-color: var(--work-strong);
  color: #ffffff;
}

.btn-pause {
  background: var(--pause);
  border-color: var(--pause-strong);
  color: #13161a;
}

.btn-stop {
  background: var(--bg-raised);
  border-color: #6b3a38;
  color: #ff8b86;
}

.btn-ghost {
  min-height: 62px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--text-dim);
  border: 2px solid var(--line);
}

.btn-small {
  min-height: 62px;
  font-size: 1.05rem;
}

/* --- Panels (Bestätigung, Tätigkeitswahl) ------------------------------ */
.panel {
  margin-top: var(--gap);
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunken);
}

.panel .actions {
  margin-bottom: 0;
}

.panel .btn-ghost {
  margin-top: var(--gap);
}

.panel-title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
}

/* --- Banner ------------------------------------------------------------ */
.banner {
  padding: 11px 12px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.banner-error {
  background: #3a1b1a;
  color: #ffb3af;
  border: 2px solid var(--error);
}

.banner-warn {
  background: #3a2a14;
  color: #ffd39a;
  border: 2px solid var(--warn);
}

.banner-ok {
  background: #14301d;
  color: #9ce6b0;
  border: 2px solid var(--work);
}

/* Kurze Rückmeldung nach einer Aktion: liegt über dem Inhalt und verschiebt
   die Tasten nicht – sonst könnte man direkt nach dem Tippen danebengreifen. */
.toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 20;
  padding: 14px 12px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  background: #14301d;
  color: #9ce6b0;
  border: 2px solid var(--work);
}

.banner-dismiss {
  display: block;
  margin: 10px auto 0;
  min-height: 44px;
  padding: 8px 22px;
  border-radius: 10px;
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
  font-weight: 700;
  font-size: 0.95rem;
}

/* --- Fußbereich -------------------------------------------------------- */
.foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Sehr niedrige Displays: alles etwas kompakter, damit nichts scrollt. */
@media (max-height: 640px) {
  .clock { font-size: 2rem; margin-bottom: 6px; }
  .big { font-size: 2.7rem; }
  .btn { min-height: 76px; font-size: 1.3rem; padding: 14px 10px; }
  .sub { margin-bottom: 12px; }
}

@media (max-height: 540px) {
  .clock { font-size: 1.6rem; }
  .big { font-size: 2.2rem; }
  .btn { min-height: 68px; font-size: 1.2rem; }
}
