/* Fonts lokal eingebunden (DSGVO: keine Verbindung zu Google) */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(montserrat-medium.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(montserrat-bold.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(montserrat-extrabold.woff2) format("woff2"); }

:root {
  --red: #e30613;
  --ember: #ff6a00;
  --glow: #ffb347;
  --ash: #0a0403;
  --text: #f3e6dc;
  --muted: rgba(243, 230, 220, .55);
}

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

html, body { height: 100%; }

body {
  background: var(--ash);
  color: var(--text);
  font: 500 16px/1.6 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Startseite ---------- */

.home { overflow: hidden; }

.stage {
  position: fixed; inset: -4%;
  /* dunkle Ränder statt Flammenring */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 95%);
          mask-image: radial-gradient(ellipse at center, #000 45%, transparent 95%);
  background: url(stage.jpg) center 40% / cover no-repeat;
  filter: brightness(.38) contrast(1.15) saturate(.9) blur(1px);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.08) translate(-1%, -1%); } }

/* Feuerschein von unten */
.heat {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% 115%, rgba(255, 90, 0, .28), transparent 70%),
    radial-gradient(60% 40% at 15% 110%, rgba(227, 6, 19, .2), transparent 70%),
    radial-gradient(60% 40% at 85% 110%, rgba(227, 6, 19, .2), transparent 70%);
  mix-blend-mode: screen;
  animation: flicker 3.2s infinite;
}
@keyframes flicker {
  0%, 100% { opacity: .85; } 12% { opacity: .65; } 25% { opacity: 1; } 41% { opacity: .7; }
  58% { opacity: .95; } 73% { opacity: .6; } 88% { opacity: .9; }
}

#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }

main {
  position: relative;
  min-height: 100%;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vh, 2rem);
  padding: 2rem 1rem 6rem;
  text-align: center;
}

.logo {
  width: min(78vw, 46vh, 520px);
  height: auto;
  filter: drop-shadow(1px 1px 1px rgba(255, 255, 255, .3));
  /* nur opacity/transform animieren: animierte Filter rendert Safari unscharf */
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) backwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.date {
  font-weight: 800;
  font-size: clamp(1.1rem, 3.6vw, 1.8rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 90, 0, .6);
  animation: fade 1.2s .8s both;
}
.date small {
  display: block;
  font-weight: 500;
  font-size: .55em;
  letter-spacing: .3em;
  color: var(--muted);
}

/* Countdown – Zählwerk mit rollenden Ziffern */
.countdown {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(.6rem, 2.5vw, 1.6rem);
  list-style: none;
}
.countdown li { animation: fade 1s both; }
.countdown li:nth-child(1) { animation-delay: 1.1s; }
.countdown li:nth-child(2) { animation-delay: 1.3s; }
.countdown li:nth-child(3) { animation-delay: 1.5s; }
.countdown li:nth-child(4) { animation-delay: 1.7s; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }

.digits {
  display: flex; gap: 3px;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(#1a0b07, #070302);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, .25), 0 0 24px rgba(255, 70, 0, .25);
}
.drum {
  position: relative;
  width: clamp(1.6rem, 6vw, 2.6rem);
  height: clamp(2.3rem, 8.5vw, 3.6rem);
  overflow: hidden;
  border-radius: 4px;
  background: #120604;
  font: 800 clamp(1.5rem, 5.6vw, 2.4rem)/1 "Montserrat", sans-serif;
  font-variant-numeric: tabular-nums;
}
/* Walzen-Schattierung oben/unten + Mittelfuge */
.drum::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(transparent calc(50% - .5px), rgba(0, 0, 0, .7) calc(50% - .5px), rgba(0, 0, 0, .7) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(rgba(0, 0, 0, .85), transparent 32%, transparent 68%, rgba(0, 0, 0, .85));
}
.strip {
  display: flex; flex-direction: column;
  transition: transform .7s cubic-bezier(.5, 1.6, .4, 1);
}
.strip span {
  height: clamp(2.3rem, 8.5vw, 3.6rem);
  display: grid; place-items: center;
  color: var(--glow);
  text-shadow: 0 0 10px rgba(255, 106, 0, .9), 0 0 2px #fff3;
}
.unit {
  display: block; margin-top: .45rem;
  font-size: clamp(.6rem, 1.8vw, .75rem);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
}

footer.bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .4rem 1.4rem;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  font-size: .78rem; letter-spacing: .08em;
  color: var(--muted);
  animation: fade 1s 2.2s both;
}
footer.bar a { text-decoration: none; transition: color .2s, text-shadow .2s; }
footer.bar a:hover, footer.bar a:focus-visible { color: var(--text); text-shadow: 0 0 10px var(--ember); }
.insta { display: inline-flex; align-items: center; gap: .4rem; }
.insta svg { width: 1.1rem; height: 1.1rem; }

@media (max-height: 560px) and (orientation: landscape) {
  .home { overflow: auto; }
  footer.bar { position: relative; }
  main { padding-bottom: 1rem; }
}

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

/* ---------- Impressum / Datenschutz ---------- */

.legal {
  background: radial-gradient(100% 60% at 50% 0, #2a0d06, var(--ash) 70%) fixed var(--ash);
}
.legal main {
  display: block; text-align: left;
  max-width: 760px; margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.legal header { text-align: center; margin-bottom: 2rem; }
.legal header img { width: 140px; height: auto; }
.legal h1 { font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.4rem); color: var(--red); margin: 1rem 0 1.5rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; color: var(--glow); }
.legal h3 { font-size: 1rem; margin: 1.4rem 0 .4rem; }
.legal p, .legal ul { margin-bottom: .9rem; color: #dccbbf; hyphens: auto; overflow-wrap: anywhere; }
.legal ul { padding-left: 1.3rem; }
.legal a { color: var(--glow); }
.legal footer { text-align: center; padding: 2rem 1rem; font-size: .8rem; color: var(--muted); }
.legal footer a { margin: 0 .6rem; text-decoration: none; }

/* ---------- Geschichte ---------- */

.history .lead { font-size: 1.05rem; color: var(--text); margin-bottom: 3rem; }
.timeline { list-style: none; position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: .45rem; top: .5rem; bottom: .5rem; width: 2px;
  background: linear-gradient(var(--ember), var(--red) 70%, transparent);
  box-shadow: 0 0 12px var(--ember);
}
.timeline li { position: relative; margin-bottom: 3.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.85rem; top: 1.1rem; width: .75rem; height: .75rem;
  border-radius: 50%; background: var(--glow);
  box-shadow: 0 0 8px var(--glow), 0 0 22px var(--ember);
  animation: flicker 2.8s infinite;
}
.timeline .year {
  display: block;
  font: 800 clamp(3rem, 14vw, 5.5rem)/1 "Montserrat", sans-serif;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 106, 0, .55);
  letter-spacing: .02em;
}
.timeline h2 { margin-top: .2rem; }
.timeline .next .year { -webkit-text-stroke-color: var(--red); text-shadow: 0 0 30px rgba(227, 6, 19, .5); }
.timeline .next p { font-style: italic; }
.watch {
  display: inline-block; margin-top: .2rem;
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
}
.watch::before { content: "▶ "; }
.watch:hover { text-shadow: 0 0 10px var(--ember); }

/* sanftes Auftauchen beim Scrollen, wo unterstützt */
@supports (animation-timeline: view()) {
  .timeline li { animation: fade linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
