/* Night-Event – Platzhalterseite
   Farben entsprechen den Tokens der Hauptseite. */

:root {
  --background: #001d3d;
  --foreground: #ffffff;
  --card: #002855;
  --secondary: #003566;
  --border: #0a4079;
  --muted-foreground: #94a3b8;
  --primary: #ffd60a;
  --primary-foreground: #001d3d;
  --radius: 0.75rem;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  width: 100%;
  max-width: 44rem;
}

/* Statusanzeige */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

/* Kopfbereich */

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 0.5rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 .accent {
  color: var(--primary);
}

.lead {
  margin: 0 0 2rem;
  max-width: 48ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Countdown */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.unit {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  text-align: center;
}

.unit .num {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.unit .lbl {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

/* Hinweis */

.note {
  background: var(--card);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.note strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Fußzeile */

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

footer a {
  color: var(--foreground);
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}

footer a:hover {
  color: var(--primary);
}

.spacer {
  flex: 1 1 auto;
}

@media (max-width: 420px) {
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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