/* Timer (16.11.2026) - Farben nur aus theme.css/farben.css (Akzent je Konto), damit hell/dunkel stimmt. */
body { background: var(--body-bg); color: var(--text-main); margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.timer-seite { max-width: 34rem; margin: 0 auto; padding: 0 1rem 2rem; box-sizing: border-box; }

.timer-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.2rem; }
.timer-vorwahl {
	padding: 1.3rem .5rem; font-size: 1.25rem; font-weight: 600; border-radius: 16px;
	border: 1px solid var(--border); background: var(--card-bg); color: var(--text-main); cursor: pointer;
	touch-action: manipulation;
}
.timer-vorwahl:hover, .timer-vorwahl:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.timer-vorwahl:active { transform: scale(.97); }

.timer-frei { margin-top: 1.2rem; border: 1px solid var(--border-soft); border-radius: 14px; padding: .7rem .9rem; background: var(--card-bg); }
.timer-frei summary { cursor: pointer; font-weight: 600; }
.timer-frei__form { display: flex; gap: .5rem; margin-top: .7rem; }
.timer-frei__form input {
	flex: 1; min-width: 0; font-size: 16px; padding: .55rem .7rem; border-radius: 10px;
	border: 1px solid var(--border); background: var(--input-bg); color: var(--text-main);
}
.timer-frei__form button, .timer-knoepfe button {
	padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent);
	color: var(--accent-ink, #fff); font-size: 1rem; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.timer-frei__hilfe { font-size: .82rem; color: var(--text-muted-custom); margin: .5rem 0 0; }
.timer-frei__fehler { font-size: .85rem; color: var(--err-text); margin: .4rem 0 0; }

.timer-lauf { text-align: center; margin-top: 1rem; }
.timer-uhr { position: relative; width: min(78vw, 20rem); aspect-ratio: 1; margin: 0 auto; }
.timer-uhr svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-uhr__spur { fill: none; stroke: var(--border-soft); stroke-width: 7; }
.timer-uhr__ring {
	fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round;
	stroke-dasharray: 339.29; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear;
}
.timer-uhr__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer-anzeige { font-size: clamp(2.6rem, 14vw, 4.2rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.timer-unterzeile { font-size: .9rem; color: var(--text-muted-custom); margin-top: .2rem; min-height: 1.2em; padding: 0 1rem; }
.timer-lauf.pausiert .timer-anzeige { opacity: .55; }

.timer-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.4rem; }
.timer-knoepfe button { min-width: 6.5rem; }
.timer-knoepfe .timer-stopp { background: transparent; color: var(--text-main); border-color: var(--border); }
.timer-hinweis { font-size: .85rem; color: var(--warn-text); margin-top: 1rem; }

.timer-wach { margin-top: 2rem; font-size: .9rem; display: flex; flex-direction: column; gap: .2rem; align-items: center; text-align: center; }
.timer-wach__hilfe { font-size: .78rem; color: var(--text-muted-custom); }

/* Alarm: Anzeige blinkt, bis OK oder +1 min */
@keyframes timer-blinken { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
body.timer-alarm .timer-anzeige, body.timer-alarm .timer-uhr__spur { animation: timer-blinken 1s ease-in-out infinite; }
body.timer-alarm .timer-uhr__spur { stroke: var(--negative); }
@media (prefers-reduced-motion: reduce) { body.timer-alarm .timer-anzeige, body.timer-alarm .timer-uhr__spur { animation: none; } }
