/**
 * uhr.css — Uhrzeit, Stoppuhr, Timer, Wecker.
 * Ruhiges Single-Stage-Layout. Tokens aus tokens.css.
 * Prinzip: viel Weißraum, große Typografie, feine Linien statt Kästen.
 *
 * WICHTIG: Eine eigene display-Angabe schlägt das hidden-Attribut. Darum
 * blieb die Digitalanzeige stehen, wenn man auf Analog oder Wort schaltete
 * (.uhr-digital hat display:flex). Die Regel hier gilt für alles in der Uhr.
 */
.uhr-stage [hidden],
.uhr-stage-section [hidden] { display: none !important; }

/* ════════════════════════════════════════════
   HERO — Kicker + dezente Ansichts-Umschaltung
   ════════════════════════════════════════════ */
.uhr-hero {
  background: var(--card);
  padding: clamp(1.6rem, 3.4vw, 2.6rem) 0 clamp(1rem, 2vw, 1.4rem);
  text-align: center;
}
.uhr-modes {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card2);
  border: 1px solid var(--border);
  max-width: 100%;
}
.uhr-mode {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sub);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.uhr-mode svg {
  width: 17px; height: 17px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.uhr-mode.is-active { color: var(--pri); background: var(--card); box-shadow: 0 2px 8px rgba(15, 42, 74, 0.08); }
@media (hover: hover) { .uhr-mode:not(.is-active):hover { color: var(--text2); } }
/* Gleitende Pille hinter dem gewählten Modus. Erst wenn sie richtig sitzt
   (Klasse .mit-pille, nach dem Laden der Schrift), übernimmt sie den
   hellen Grund; vorher trägt ihn der Knopf selbst. */
.uhr-mode-ink {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: var(--card);
  box-shadow: 0 2px 8px rgba(15, 42, 74, 0.08);
  opacity: 0;
  transition: transform 0.38s var(--ease-out), width 0.38s var(--ease-out);
}
.uhr-mode-ink.ohne { transition: none; }
.uhr-modes.mit-pille .uhr-mode-ink { opacity: 1; }
.uhr-modes.mit-pille .uhr-mode.is-active { background: transparent; box-shadow: none; }

/* ════════════════════════════════════════════
   STAGE — getönte, oben abgerundete Fläche
   ════════════════════════════════════════════ */
.uhr-stage-section {
  background: var(--bg);
  border-top-left-radius: var(--r3);
  border-top-right-radius: var(--r3);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5.5rem);
  box-shadow: 0 -22px 60px rgba(15, 42, 74, 0.07);
  position: relative;
}
.uhr-stage {
  position: relative;
  min-height: clamp(24rem, 52vh, 34rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
}

/* Einstellungen + Vollbild oben rechts */
.uhr-ecke { position: absolute; top: 0; right: 0; z-index: 20; display: flex; gap: 0.25rem; }
.uhr-fs {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--sub);
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
@media (hover: hover) {
  .uhr-fs:hover { color: var(--pri); background: var(--card); border-color: var(--border); }
}
.uhr-fs { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.uhr-fs:focus { outline: none; }
.uhr-fs:focus-visible { outline: 2px solid var(--pri3); }
.uhr-fs[aria-expanded="true"] { color: var(--pri); background: var(--card); border-color: var(--border); }

/* ── EINSTELLUNGEN ── */
.uhr-einst {
  position: absolute; top: calc(100% + 0.45rem); right: 0;
  width: min(19rem, calc(100vw - 2.4rem));
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 22px 50px rgba(15, 42, 74, 0.18);
  transform-origin: top right;
  animation: uhrEinstAuf 0.22s var(--ease-out);
  text-align: left;
  -webkit-user-select: none; user-select: none;
}
@keyframes uhrEinstAuf { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.uhr-einst-zeile { display: flex; flex-direction: column; gap: 0.4rem; }
.uhr-einst-zeile > span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sub); }
.uhr-einst .uhr-seg { display: flex; width: 100%; }
.uhr-einst .uhr-seg button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.uhr-einst .uhr-seg svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.uhr-einst .uhr-tz { width: 100%; height: 40px; }
.uhr-einst .uhr-tz select { flex: 1 1 auto; max-width: none; min-width: 0; }
.uhr-fs .uhr-fs-close { display: none; }

/* ── PANELS ── */
.uhr-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.uhr-panel[hidden] { display: none; }

/* ════════════════════════════════════════════
   DIGITAL-ANZEIGE (Uhr, Stoppuhr, Timer teilen sie)
   ════════════════════════════════════════════ */
.uhr-digital {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'ss01' 1;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.uhr-digital .uhr-time {
  font-size: clamp(3rem, 13vw, 8.5rem);
}
.uhr-digital .uhr-frac {
  font-size: clamp(1.4rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--pri3);
  letter-spacing: -0.01em;
  margin-left: 0.08em;
  /* feste Breite reservieren, damit nichts springt (max 4 Zeichen: .000) */
  min-width: 2.4ch;
  text-align: left;
}
/* Ohne Bruchteile auch keinen Platz freihalten, sonst steht die Uhrzeit
   links neben der Mitte. */
.uhr-digital .uhr-frac:empty { display: none; }
.uhr-digital.uhr-big .uhr-time { font-size: clamp(2.8rem, 12vw, 7rem); }
.uhr-digital.uhr-big .uhr-frac { font-size: clamp(1.3rem, 5vw, 2.6rem); }

/* ── ANALOG ──
   Ruhiges Zifferblatt: zwölf kräftige Stundenstriche, feine Minuten-
   striche, dunkle Zeiger, der Sekundenzeiger im Blau der Seite. */
.uhr-analog {
  width: clamp(14rem, 62vw, 21rem);
  height: clamp(14rem, 62vw, 21rem);
  overflow: visible;
  filter: drop-shadow(0 14px 30px rgba(15, 42, 74, 0.10));
}
.uhr-analog .an-face { fill: var(--card); stroke: var(--border); stroke-width: 1; }
.uhr-analog .an-tick { stroke: var(--border2); stroke-width: 1; stroke-linecap: round; }
.uhr-analog .an-tick.big { stroke: var(--text); stroke-width: 2.6; }
.uhr-analog .an-hand-h { stroke: var(--text); stroke-width: 5.5; stroke-linecap: round; }
.uhr-analog .an-hand-m { stroke: var(--text); stroke-width: 3.6; stroke-linecap: round; }
.uhr-analog .an-hand-s { stroke: var(--pri2); stroke-width: 1.4; stroke-linecap: round; }
.uhr-analog .an-cap { fill: var(--text); }
.uhr-analog .an-cap-in { fill: var(--pri2); }

/* ── WORT ── */
.uhr-wort {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 6.5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 15ch;
  color: var(--text);
}
.uhr-wort[hidden] { display: none; }
.uhr-wort .wt-lead { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.34em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); margin-bottom: 0.5rem; }
.uhr-wort .wt-std { display: block; }
.uhr-wort .wt-min { display: block; color: var(--pri2); }

/* ── META (Datum + Zeitzone) ── */
.uhr-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--sub);
}
.uhr-meta .uhr-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.uhr-meta .uhr-tzlabel { color: var(--text2); font-weight: 600; }

/* ════════════════════════════════════════════
   STEUERLEISTE (Segmented Controls + Zeitzone)
   ════════════════════════════════════════════ */
.uhr-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.2rem;
}
.uhr-seg {
  display: inline-flex;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.uhr-seg button {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sub);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
@media (hover: hover) { .uhr-seg button:not(.is-active):hover { color: var(--text2); } }
.uhr-seg button.is-active {
  color: var(--pri);
  background: var(--card);
  box-shadow: 0 2px 8px rgba(15, 42, 74, 0.08);
}
/* Symbolknöpfe: gleich breit, das Symbol mittig */
.uhr-seg-icon button { width: 42px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.uhr-seg-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Genauigkeit: zeigt, wie die Zahl aussieht, statt es zu beschreiben */
.uhr-seg-prec button {
  height: 34px; min-width: 46px; padding: 0 0.6rem;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.82rem; letter-spacing: 0.02em;
}

.uhr-tz {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 42px;
  padding: 0 0.95rem 0 0.85rem;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--sub);
  cursor: pointer;
}
.uhr-tz svg { flex-shrink: 0; }
.uhr-tz select {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text2);
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.3rem 0;
  max-width: 46vw;
}

/* ════════════════════════════════════════════
   AKTIONS-KNÖPFE (Stoppuhr/Timer/Wecker)
   ════════════════════════════════════════════ */
.uhr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.uhr-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out),
              transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out), color 0.18s;
}
@media (hover: hover) {
  .uhr-btn:not(:disabled):hover { border-color: var(--pri3); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 42, 74, 0.08); }
}
.uhr-btn:active { transform: translateY(0) scale(0.97); }
.uhr-btn:disabled { opacity: 0.42; cursor: default; transform: none; box-shadow: none; border-color: var(--border); }
.uhr-btn.primary {
  background: linear-gradient(135deg, var(--pri), var(--pri2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(26, 106, 170, 0.26);
}
@media (hover: hover) { .uhr-btn.primary:hover { box-shadow: 0 10px 26px rgba(26, 106, 170, 0.34); border-color: transparent; } }
.uhr-btn.primary:disabled { box-shadow: none; }
.uhr-btn.ghost { background: transparent; border-color: var(--border2); color: var(--text2); }
.uhr-btn.running {
  background: linear-gradient(135deg, var(--warn), #e6952f);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.28);
}

/* ── STOPPUHR: Rundenliste ── */
.uhr-laps {
  list-style: none;
  width: min(30rem, 100%);
  margin: 0;
  padding: 0;
  max-height: 12rem;
  overflow-y: auto;
}
.uhr-laps li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0.4rem;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.uhr-laps li:first-child { border-top: none; }
.uhr-laps .lap-nr { color: var(--sub); font-size: 0.85rem; font-weight: 600; }
.uhr-laps .lap-split { color: var(--muted); font-size: 0.82rem; }
.uhr-laps .lap-time { color: var(--text); font-weight: 700; font-size: 0.98rem; }
.uhr-laps li.best .lap-time { color: var(--acc); }
.uhr-laps li.worst .lap-time { color: var(--danger); }

/* ── TIMER: Eingabe ── */
.uhr-timeset { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.uhr-timeinput {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.uhr-timeinput em { font-style: normal; font-size: clamp(2.4rem, 9vw, 4.5rem); font-weight: 700; color: var(--muted); line-height: 1; padding-top: 0.1em; }
.uhr-timeinput label { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.uhr-timeinput input {
  width: 2.1ch;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.8rem, 11vw, 5.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 2px solid var(--border2);
  padding: 0 0.1rem 0.2rem;
  transition: border-color 0.2s;
  box-sizing: content-box;
}
.uhr-timeinput input:focus { border-color: var(--pri); }
.uhr-timeinput span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.uhr-presets { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.uhr-chip {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, transform 0.15s;
}
@media (hover: hover) { .uhr-chip:hover { border-color: var(--pri3); color: var(--pri); } }

/* Timer-Fortschrittsbalken */
.uhr-timerbar {
  width: min(30rem, 80%);
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.uhr-timerbar[hidden] { display: none; }
.uhr-timerbar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pri), var(--pri3));
  transform-origin: left center;
  transition: transform 0.25s linear;
}
.uhr-digital.warn .uhr-time { color: var(--danger); }

/* ════════════════════════════════════════════
   WECKER — Uhrzeit wie beim Timer groß einstellen,
   mit Pfeilen darüber und darunter (gedrückt halten = weiterzählen)
   ════════════════════════════════════════════ */
.uhr-wk-stellen { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
.uhr-wk-zeit { display: inline-flex; align-items: center; gap: 0.3rem; font-variant-numeric: tabular-nums; }
.uhr-wk-zeit em { font-style: normal; font-size: clamp(2.6rem, 10vw, 4.8rem); font-weight: 700; color: var(--muted); line-height: 1; margin-top: -0.1em; }
.uhr-wk-spalte { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.uhr-wk-spalte input {
  width: 2.1ch;
  font-family: 'Inter', sans-serif; font-size: clamp(3rem, 12vw, 5.6rem); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.05;
  text-align: center; color: var(--text);
  background: none; border: 0; border-radius: 14px; outline: none;
  padding: 0 0.12em; box-sizing: content-box;
  caret-color: var(--pri3);
  transition: background 0.2s;
}
.uhr-wk-spalte input:focus { background: var(--card); box-shadow: 0 0 0 1px var(--border); }
.uhr-wk-pfeil {
  width: 44px; height: 32px; border-radius: 10px; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: var(--muted);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.uhr-wk-pfeil svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .uhr-wk-pfeil:hover { color: var(--pri); background: var(--card); } }
.uhr-wk-pfeil:active { transform: scale(0.9); }
.uhr-wk-pfeil:focus { outline: none; }
.uhr-wk-pfeil:focus-visible { outline: 2px solid var(--pri3); }
.uhr-wk-bis { margin: -0.4rem 0 0; min-height: 1.2em; font-size: 0.9rem; font-weight: 600; color: var(--sub); }
.uhr-wk-unten { display: flex; gap: 0.5rem; width: min(26rem, 100%); }
.uhr-feld {
  flex: 1 1 auto; min-width: 0;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--text);
  background: var(--card); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 0.65rem 1.1rem; outline: none;
  transition: border-color 0.2s;
}
.uhr-feld::placeholder { color: var(--muted); }
.uhr-feld:focus { border-color: var(--pri3); }

.uhr-alarms { list-style: none; width: min(26rem, 100%); margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.uhr-alarms:empty { display: none; }
.uhr-alarm {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 0.9rem 0.85rem 1.1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow);
  transition: opacity 0.2s;
}
.uhr-alarm.neu { animation: uhrWeckerRein 0.35s var(--ease-out); }
@keyframes uhrWeckerRein { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.uhr-alarm-time { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.uhr-alarm.off .uhr-alarm-time, .uhr-alarm.off .uhr-alarm-label { color: var(--muted); }
.uhr-alarm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.uhr-alarm-label { font-size: 0.9rem; font-weight: 600; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uhr-alarm-next { font-size: 0.76rem; color: var(--sub); }
.uhr-alarm-del {
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); border: 0; background: transparent;
  transition: color 0.2s, background 0.2s;
}
@media (hover: hover) { .uhr-alarm-del:hover { color: var(--danger); background: var(--card2); } }

.uhr-hinweis {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 0; padding: 0.45rem 0.9rem; border-radius: 999px;
  background: var(--card2); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--sub);
}
.uhr-hinweis svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: 0 0 auto; }

/* Kleiner Schalter */
.uhr-switch {
  position: relative;
  width: 42px; height: 24px;
  border-radius: 999px;
  background: var(--border2);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.22s var(--ease-out);
}
.uhr-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.22s var(--ease-out);
}
.uhr-switch.on { background: var(--pri2); }
.uhr-switch.on::after { transform: translateX(18px); }



/* ════════════════════════════════════════════
   KLINGEL-OVERLAY
   ════════════════════════════════════════════ */
.uhr-ring {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  background: rgba(15, 42, 74, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: uhrRingIn 0.25s var(--ease-out);
}
.uhr-ring[hidden] { display: none; }
@keyframes uhrRingIn { from { opacity: 0; } to { opacity: 1; } }
.uhr-ring-box {
  background: var(--card);
  border-radius: var(--r2);
  box-shadow: var(--shadow3);
  padding: clamp(1.8rem, 5vw, 2.8rem);
  text-align: center;
  max-width: 24rem;
  width: 100%;
}
.uhr-ring-icon {
  width: 66px; height: 66px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pri), var(--pri2));
  margin-bottom: 1.1rem;
  animation: uhrBell 1s ease-in-out infinite;
  transform-origin: 50% 8%;
}
@keyframes uhrBell {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(11deg); }
  75% { transform: rotate(-11deg); }
}
.uhr-ring-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--text); margin: 0 0 0.3rem; }
.uhr-ring-sub { font-size: 0.95rem; color: var(--sub); margin: 0 0 1.4rem; min-height: 1.2em; }
.uhr-ring-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════
   GROSSE ANSICHT (Vollbild)
   Dunkel und ruhig, wie eine Uhr auf dem Nachttisch: nur Zeit und Datum.
   Die Bedienung erscheint bei Bewegung oder Antippen und geht nach drei
   Sekunden wieder (Klasse .idle, siehe armIdle in uhr.js).
   ════════════════════════════════════════════ */
.uhr-stage-section.is-fs {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: #0b1626;
  --text: #f2f6fb;
  --text2: #c9d6e5;
  --sub: #8ea3ba;
  --muted: #5d7590;
  --border: #22344b;
  --border2: #2e4560;
  --card: #122236;
  --card2: #0f1d2f;
}
.uhr-stage-section.is-fs .wrap { max-width: none; width: 100%; }
.uhr-stage-section.is-fs .uhr-stage { min-height: 100vh; min-height: 100dvh; }
.uhr-stage-section.is-fs .uhr-digital .uhr-time { font-size: clamp(4rem, 17vw, 16rem); }
.uhr-stage-section.is-fs .uhr-digital .uhr-frac { font-size: clamp(1.8rem, 6vw, 5rem); }
.uhr-stage-section.is-fs .uhr-analog { width: min(68vh, 82vw); height: min(68vh, 82vw); filter: none; }
.uhr-stage-section.is-fs .uhr-wort { font-size: clamp(2.6rem, 9vw, 7rem); max-width: 18ch; }
.uhr-stage-section.is-fs .uhr-seg button.is-active { background: #1b2f48; color: #fff; box-shadow: none; }
.uhr-stage-section.is-fs .uhr-tz select option { color: #0f2a4a; }
.uhr-stage-section.is-fs .uhr-ecke { position: fixed; top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.uhr-stage-section.is-fs .uhr-fs .uhr-fs-open { display: none; }
.uhr-stage-section.is-fs .uhr-fs .uhr-fs-close { display: block; }
.uhr-stage-section.is-fs .uhr-controls,
.uhr-stage-section.is-fs .uhr-ecke,
.uhr-stage-section.is-fs .uhr-meta { transition: opacity 0.5s ease; }
.uhr-stage-section.is-fs.idle .uhr-controls,
.uhr-stage-section.is-fs.idle .uhr-ecke { opacity: 0; pointer-events: none; }
.uhr-stage-section.is-fs.idle .uhr-meta { opacity: 0.7; }

/* Große Ansicht hell (Einstellung „Hell“) */
.uhr-stage-section.is-fs.hell {
  background: radial-gradient(90% 70% at 50% 0%, #ffffff, #eef4fb);
  --text: #0f2a4a;
  --text2: #2a4766;
  --sub: #6b8499;
  --muted: #9fb4c9;
  --border: #e4edf8;
  --border2: #cfddf0;
  --card: #ffffff;
  --card2: #f8fbff;
}
.uhr-stage-section.is-fs.hell .uhr-seg button.is-active { background: #fff; color: var(--pri); box-shadow: 0 2px 8px rgba(15, 42, 74, 0.08); }
.uhr-stage-section.is-fs.hell .uhr-analog { filter: drop-shadow(0 18px 40px rgba(15, 42, 74, 0.12)); }
.uhr-stage-section.is-fs.idle { cursor: none; }

/* ════════════════════════════════════════════
   MOBILE-FEINTUNING
   ════════════════════════════════════════════ */
@media (max-width: 560px) {
  .uhr-mode { padding: 0.5rem 0.72rem; font-size: 0.84rem; }
  /* Schmal: nur die Wörter, sonst passt die Leiste nicht in die Breite. */
  .uhr-mode svg { display: none; }
  .uhr-controls { gap: 0.5rem; }
  .uhr-seg button { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
  .uhr-wk-unten { flex-direction: column; }
  .uhr-wk-unten .uhr-btn { width: 100%; }
  .uhr-btn { padding: 0.65rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .uhr-mode-ink, .uhr-einst, .uhr-alarm.neu { transition: none; animation: none; }
}

/* ════════════════════════════════════════════
   NACHTRAG 04.10.2026
   ════════════════════════════════════════════ */

/* ── Große Ansicht: was zu sehen ist ── */
.uhr-zeigt { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.15rem; }
.uhr-zeigt button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.75rem 0.42rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card2); color: var(--sub);
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.uhr-zeigt button i {
  position: relative; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--border2); background: var(--card);
  transition: background 0.18s, border-color 0.18s;
}
.uhr-zeigt button i::after {
  content: ''; position: absolute; left: 4.5px; top: 2px; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform 0.22s cubic-bezier(0.34, 1.5, 0.6, 1);
}
.uhr-zeigt button[aria-pressed="true"] { color: var(--text2); border-color: var(--border2); background: var(--card); }
.uhr-zeigt button[aria-pressed="true"] i { background: var(--pri2); border-color: var(--pri2); }
.uhr-zeigt button[aria-pressed="true"] i::after { transform: rotate(45deg) scale(1); }
.uhr-zeigt button:focus { outline: none; }
.uhr-zeigt button:focus-visible { outline: 2px solid var(--pri3); }

/* Ausgeblendetes in der großen Ansicht */
.uhr-stage-section.is-fs.ohne-datum .uhr-date,
.uhr-stage-section.is-fs.ohne-datum .uhr-dot,
.uhr-stage-section.is-fs.ohne-zone .uhr-tzlabel,
.uhr-stage-section.is-fs.ohne-zone .uhr-dot { display: none; }
.uhr-stage-section.is-fs.ohne-datum.ohne-zone .uhr-meta { display: none; }
.uhr-stage-section.is-fs.ohne-sek .an-hand-s { display: none; }

/* ── Timer: Einheit unter der Zahl ── */
.uhr-einheit { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: -0.1rem; }
.uhr-tm-zeit .uhr-wk-spalte input { font-size: clamp(2.6rem, 10.5vw, 5rem); }
.uhr-tm-zeit em { font-size: clamp(2.2rem, 8.5vw, 4.2rem); margin-top: calc(-0.1em - 1.1rem); }
.uhr-chip:active { transform: scale(0.95); }
.uhr-chip.gewaehlt { border-color: var(--pri3); color: var(--pri); background: var(--card); }
.uhr-chip:focus { outline: none; }
.uhr-chip:focus-visible { outline: 2px solid var(--pri3); }

/* ── Stoppuhr: neue Runde gleitet herein ── */
.uhr-laps li.neu { animation: uhrRunde 0.45s var(--ease-out); }
@keyframes uhrRunde {
  from { opacity: 0; transform: translateY(-10px); background: rgba(90, 174, 232, 0.16); }
  40% { opacity: 1; background: rgba(90, 174, 232, 0.16); }
  to { background: transparent; }
}
.uhr-laps li { border-radius: 10px; }
.uhr-btn { -webkit-tap-highlight-color: transparent; }
.uhr-btn:focus { outline: none; }
.uhr-btn:focus-visible { outline: 3px solid var(--pri3); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .uhr-laps li.neu { animation: none; }
  .uhr-zeigt button i::after { transition: none; }
}

/* Zurück zu den Tools (wie bei den anderen Tools, links über der Leiste) */
.uhr-zurueck {
  display: flex; width: fit-content; align-items: center; gap: 0.45rem;
  margin: 0 0 1rem;
  font-size: 0.9rem; font-weight: 600; color: var(--sub); text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
@media (hover: hover) { .uhr-zurueck:hover { color: var(--text2); gap: 0.65rem; } }

/* ════════════════════════════════════════════
   LERNEN (Lerntimer) · 05.10.2026
   ════════════════════════════════════════════ */
.ln-phasen { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--card2); border: 1px solid var(--border); }
.ln-phasen button {
  border: 0; background: transparent; color: var(--sub); font: 600 0.84rem 'Inter', sans-serif;
  padding: 0.45rem 0.95rem; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.ln-phasen button.is-active { background: var(--card); color: var(--pri); box-shadow: 0 2px 8px rgba(15, 42, 74, 0.08); }
.uhr-stage-section.is-fs .ln-phasen button.is-active { background: #1b2f48; color: #fff; box-shadow: none; }

.ln-uhr { position: relative; width: min(19rem, 72vw); aspect-ratio: 1; --ln-farbe: var(--pri2); }
.ln-uhr[data-phase="kurz"] { --ln-farbe: #2ecc71; }
.ln-uhr[data-phase="lang"] { --ln-farbe: #8e7cf0; }
.ln-ring { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ln-ring circle { fill: none; stroke-width: 9; }
.ln-ring-grund { stroke: var(--border); }
.ln-ring-stand {
  stroke: var(--ln-farbe); stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s linear, stroke 0.4s ease;
  filter: drop-shadow(0 4px 10px rgba(34, 136, 204, 0.25));
}
.ln-mitte { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; }
.ln-zeit { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(2.6rem, 11vw, 4.2rem); letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.ln-was { font-size: 0.9rem; font-weight: 600; color: var(--ln-farbe); }
.uhr-stage-section.is-fs .ln-uhr { width: min(70vh, 80vw); }
.uhr-stage-section.is-fs .ln-zeit { font-size: clamp(3.5rem, 14vh, 9rem); }

.ln-punkte { display: flex; gap: 0.55rem; min-height: 12px; }
.ln-punkte span { width: 11px; height: 11px; border-radius: 50%; background: var(--border2); transition: background 0.3s, transform 0.3s; }
.ln-punkte span.fertig { background: var(--pri2); }
.ln-punkte span.jetzt { background: transparent; box-shadow: inset 0 0 0 2px var(--pri2); transform: scale(1.15); }

.ln-aufgabe { width: min(24rem, 100%); text-align: center; }

.ln-einst { width: min(34rem, 100%); border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.ln-einst summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1rem; font: 600 0.88rem 'Inter', sans-serif; color: var(--text2);
}
.ln-einst summary::-webkit-details-marker { display: none; }
.ln-einst summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.ln-einst[open] summary { border-bottom: 1px solid var(--border); color: var(--pri); }
.ln-werte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; padding: 1rem; }
@media (max-width: 560px) { .ln-werte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ln-wert { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; }
.ln-wert-name { font-size: 0.74rem; font-weight: 600; color: var(--sub); }
.ln-wert-zeile { display: flex; align-items: center; gap: 0.35rem; }
.ln-wert-zeile output { min-width: 2.2ch; font: 800 1.35rem 'Sora', sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }
.ln-wert-zeile button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border2); background: var(--card2); color: var(--text2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.15s, color 0.15s, transform 0.12s;
}
.ln-wert-zeile button:active { transform: scale(0.9); }
@media (hover: hover) { .ln-wert-zeile button:hover { border-color: var(--pri3); color: var(--pri); } }
.ln-wert-zeile svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ln-wert-einheit { font-size: 0.72rem; color: var(--muted); }
.ln-auto { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0 1rem 1rem; font-size: 0.84rem; color: var(--text2); cursor: pointer; }
.ln-auto input { position: absolute; opacity: 0; pointer-events: none; }
.ln-schalter { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--border2); transition: background 0.2s; flex: none; }
.ln-schalter::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.22s var(--ease-out); }
.ln-auto input:checked + .ln-schalter { background: var(--pri2); }
.ln-auto input:checked + .ln-schalter::after { transform: translateX(16px); }
.ln-heute { margin: 0; font-size: 0.84rem; color: var(--sub); }
.uhr-stage-section.is-fs .ln-einst, .uhr-stage-section.is-fs .ln-aufgabe:placeholder-shown { display: none; }

.ln-hinweis {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 520; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  padding: 0.7rem 1.2rem; border-radius: 999px; background: #0f2a4a; color: #fff;
  font: 600 0.9rem 'Inter', sans-serif; box-shadow: 0 12px 30px rgba(15, 42, 74, 0.28);
  transition: opacity 0.25s, transform 0.3s var(--ease-out);
}
.ln-hinweis.zeigt { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 400px) {
  .uhr-mode { padding: 0.5rem 0.55rem; font-size: 0.8rem; }
  .ln-phasen button { padding: 0.42rem 0.7rem; font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ln-ring-stand, .ln-punkte span, .ln-hinweis { transition: none; }
}

/* Zeitzone im Seitenstil (05.10.2026) */
.uhr-tz.mit-liste select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.uhr-tz.mit-liste { position: relative; }
.uhr-tz-knopf {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.4rem;
  border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; text-align: left;
}
.uhr-tz-knopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uhr-tz-knopf svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease-out); }
.uhr-tz-knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.uhr-tz-liste {
  display: flex; flex-direction: column; gap: 2px; max-height: 15rem; overflow-y: auto; margin-top: 0.4rem; padding: 0.3rem;
  border-radius: 14px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(15, 42, 74, 0.12);
  animation: uhrListe 0.2s var(--ease-out);
}
.uhr-tz-liste[hidden] { display: none; }
@keyframes uhrListe { from { opacity: 0; transform: translateY(-4px); } }
.uhr-tz-liste button {
  border: 0; background: transparent; text-align: left; padding: 0.5rem 0.7rem; border-radius: 10px; cursor: pointer;
  font: 500 0.88rem 'Inter', sans-serif; color: var(--text2); transition: background 0.15s, color 0.15s;
}
.uhr-tz-liste button:hover { background: var(--bg); color: var(--text); }
.uhr-tz-liste button.an { background: var(--pri); color: #fff; }
.uhr-einst-zeile { flex-wrap: wrap; }

/* Überschrift und Reiter wie bei den anderen Tools (14.10.2026): links,
   darunter mittig die Schaltleiste der Uhr */
.uhr-h1 {
  margin: 0; text-align: left;
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.04em; line-height: 1.05;
  color: var(--text);
}
.uhr-hero .tr { margin-bottom: clamp(1.2rem, 2.6vw, 1.8rem); }
