/* tickdowntimer.de – eine Datei für alle Seiten. Nach Änderungen ?v= in allen .html erhöhen (aktuell v=1). */
:root {
  --bg: #0b0b0c;
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.72);
  --faint: rgba(248, 250, 252, 0.52);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #34d399;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, #1c1e20 0%, var(--bg) 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 9; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; }

/* Kopf */
.top { padding: 22px 0 8px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top .logo { display: inline-block; min-width: 0; }
.top img { display: block; height: 34px; width: auto; max-width: 100%; }
.lang { flex-shrink: 0; display: flex; gap: 4px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; }
.lang a { padding: 6px 11px; border-radius: 999px; color: var(--faint); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { color: var(--text); background: rgba(255, 255, 255, 0.1); }

/* Startseite */
.hero { text-align: center; padding-top: 28px; padding-bottom: 56px; }
.demo { position: relative; width: min(240px, 62vw); aspect-ratio: 1; margin: 0 auto 30px; }
.demo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.demo .ticks { fill: none; stroke: var(--accent); stroke-opacity: 0.4; stroke-width: 3.5; stroke-linecap: round; transition: stroke 0.6s; }
.demo .track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 18; }
.demo .arc {
  fill: none; stroke: var(--accent); stroke-width: 18; stroke-linecap: round;
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 50%, transparent));
  transition: stroke 0.6s;
}
.demo .head { fill: #fff; }
.demo .num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 700; font-size: clamp(3rem, 15vw, 4.6rem); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.demo.done .arc, .demo.done .num { animation: flash 0.5s ease-in-out 3; }
@keyframes flash { 50% { opacity: 0.25; } }

h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 18px; }
h1 span { color: var(--faint); }
.lead { color: var(--muted); max-width: 33em; margin: 0 auto 30px; font-size: 1.125rem; }
.channels { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.channels a {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.channels a:hover { background: #fff; transform: translateY(-1px); }
.handle { color: var(--faint); margin: 16px 0 0; font-size: 0.95rem; }

.uses, .seasons { border-top: 1px solid var(--line); padding: 44px 0; text-align: center; }
h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 10px; }
.uses p, .seasons p { color: var(--muted); margin: 0 auto; max-width: 34em; }
.dots { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 0; margin: 24px 0 0; }
.dots li { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }

/* Rechtstexte */
.legal { padding-top: 20px; padding-bottom: 56px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.3rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.1rem; margin: 30px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }
.legal a { color: var(--text); }
.legal .stand { color: var(--faint); font-size: 0.95rem; }

/* Fuß */
footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 0.92rem; padding: 22px 0 32px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 400px) {
  .wrap { padding: 0 18px; }
  .top img { height: 28px; }
  .lang a { padding: 6px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
