/* Paulinumball 2027 · Platzhalter-Seite
   Farben zentral hier anpassen, sobald das Motto feststeht. */
:root {
  --bg: #08080b;
  --fg: #f2efe9;
  --muted: rgba(242, 239, 233, 0.55);
  --line: rgba(242, 239, 233, 0.12);
  --accent: #d9b56c;   /* warmes Gold */
  --accent-2: #7a6cff; /* kühles Violett */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

a { color: inherit; }

/* ---------- Hintergrund ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }

.orb {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
}
.orb-a {
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  top: -25vmax; left: -15vmax;
  animation: drift-a 26s ease-in-out infinite alternate;
}
.orb-b {
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 65%);
  bottom: -30vmax; right: -20vmax;
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-20vw, -18vh) scale(1.1); } }

.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.07;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, -2%); }
}

/* Licht, das der Maus folgt */
.glow {
  position: fixed; z-index: -1;
  width: 420px; height: 420px;
  left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 181, 108, 0.13), transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  opacity: 0;
}

/* ---------- Kopfzeile ---------- */
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand { font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(217, 181, 108, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(217, 181, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 181, 108, 0); }
}

/* ---------- Hauptbereich ---------- */
main {
  flex: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.hero { position: relative; padding: clamp(.5rem, 3vh, 2rem) 0 2.5rem; }

.year-wrap { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0; }

.ring {
  position: absolute;
  width: clamp(300px, 46vw, 500px);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  animation: spin 60s linear infinite;
  pointer-events: none;
}
.ring text {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 7.2px;
  letter-spacing: 2.4px;
  opacity: .55;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.year {
  position: relative;
  font-size: clamp(6rem, 24vw, 17rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.06em;
  display: flex; justify-content: center;
}
.year span {
  display: inline-block;
  background: linear-gradient(120deg, var(--fg) 20%, var(--accent) 50%, var(--fg) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both, shine 7s ease-in-out infinite;
}
.year span:nth-child(1) { animation-delay: .05s, 0s; }
.year span:nth-child(2) { animation-delay: .15s, .2s; }
.year span:nth-child(3) { animation-delay: .25s, .4s; }
.year span:nth-child(4) { animation-delay: .35s, .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(40%); filter: blur(12px); } }
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.lead {
  margin-top: .5rem;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  animation: fade 1s .6s both;
}
.sub {
  margin: .9rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.6;
  animation: fade 1s .75s both;
}
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Eckdaten ---------- */
.facts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 1.5rem;
  animation: fade 1s .9s both;
}
.fact {
  padding: 1.6rem 1rem;
  text-align: left;
  border-left: 1px solid var(--line);
  transition: background .3s;
}
.fact:first-child { border-left: 0; }
.fact:hover { background: rgba(242, 239, 233, .03); }
.fact h2 {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
.fact p { font-size: 1.05rem; font-weight: 500; }
.note { display: block; margin-top: .35rem; font-size: .78rem; color: var(--muted); }
.scramble { font-family: var(--mono); color: var(--accent); letter-spacing: .12em; }

/* ---------- Countdown ---------- */
.countdown {
  display: flex; gap: clamp(1rem, 4vw, 3rem);
  margin: 2.8rem 0 2.4rem;
  animation: fade 1s 1.05s both;
}
.unit { display: flex; flex-direction: column; align-items: center; }
.unit span {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.unit small {
  margin-top: .3rem;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
  margin-bottom: 3rem;
  animation: fade 1s 1.2s both;
}
.btn {
  font: inherit;
  font-size: .92rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(242, 239, 233, .04);
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .25s, background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(242, 239, 233, .35); }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn:focus-visible, .past:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Fußzeile ---------- */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
}
.past { text-decoration: none; transition: color .25s; }
.past:hover { color: var(--accent); }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .status { font-size: .68rem; }
  .year-wrap { padding: 5.5rem 0; }
  .ring { width: min(300px, 82vw); }
}
@media (max-width: 420px) {
  .top { flex-direction: column; gap: .6rem; }
  .foot { flex-direction: column; text-align: center; align-items: center; }
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .glow { display: none; }
}
