@font-face {
  font-family: "Griffy";
  src: url("fonts/griffy.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Palette, abgeleitet aus dem Header-Banner:
   tiefe Pflaumenschatten, Nachthimmel, Mondgold, LED-Orange und das Neon-Violett der Fledermäuse.
   Regel: Orange nur für Klickbares, Violett nur für Überschriften, Gold für Zahlen und Termine. */
:root {
  --night-deep: #0d0812;
  --night: #1c1430;
  --card: #150e1f;
  --line: rgba(200, 146, 245, 0.14);
  --cream: #f7e9c9;
  --moon: #f9d081;
  --text: #efe6f3;
  --muted: #b7a6c6;
  --orange: #ff9a2b;
  --orange-light: #ffb050;
  --violet-light: #c892f5;
  --spooky: "Griffy", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--night-deep);
}

:focus-visible {
  outline: 2px solid var(--moon);
  outline-offset: 3px;
}

/* Header mit Banner */
.scene {
  position: relative;
  height: clamp(300px, 30vw, 480px);
  background: var(--night-deep);
  overflow: hidden;
}

.scene-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dunkler Verlauf oben, damit der Titel auf dem Banner lesbar bleibt */
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(13, 8, 18, 0.6) 0%, rgba(13, 8, 18, 0.2) 45%, rgba(13, 8, 18, 0) 65%);
  pointer-events: none;
}

/* Sprachumschalter: Flagge der jeweils anderen Sprache oben rechts im Header */
.lang-toggle {
  position: absolute;
  z-index: 3;
  top: clamp(0.6rem, 2vw, 1rem);
  right: clamp(0.6rem, 2vw, 1rem);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 2px solid var(--moon);
  border-radius: 50%;
  background: rgba(13, 8, 18, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(249, 208, 129, 0.35), 0 4px 16px rgba(0, 0, 0, 0.5);
  outline: none;
}

.lang-toggle .flag {
  width: 1.9rem;
  height: 1.9rem;
  display: none;
}

/* Deutsch aktiv: britische Flagge anbieten, Englisch aktiv: deutsche Flagge */
html[lang="de"] .lang-toggle .flag-en,
html[lang="en"] .lang-toggle .flag-de {
  display: block;
}

/* Weicher Übergang vom Banner in den Seitenhintergrund */
.scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(13, 8, 18, 0), var(--night-deep));
  pointer-events: none;
}

.scene-title {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: clamp(0.75rem, 4vw, 2.75rem);
  padding: 0 1rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: var(--spooky);
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 4.75rem);
  line-height: 1;
  color: var(--cream);
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 #0d0812, 0 0 20px rgba(0, 0, 0, 0.8);
}

h1 span {
  color: var(--orange);
  text-shadow: 0 3px 0 #0d0812, 0 0 16px rgba(255, 154, 43, 0.6);
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--cream);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  text-shadow: 0 1px 4px #000, 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Termine als Pille im Header */
.hero-dates {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 1.1rem 0 0;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--moon);
  background: rgba(13, 8, 18, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--moon);
  font-weight: 700;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.hero-dates span + span::before {
  content: "·";
  margin: 0 0.6rem;
  color: var(--orange);
}

@media (max-width: 480px) {
  .hero-dates {
    flex-direction: column;
    padding: 0.55rem 1.4rem;
  }
  .hero-dates span + span::before {
    content: none;
  }
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

/* Inhaltsblöcke */
.card {
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--spooky);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 1.9rem);
  line-height: 1.2;
  color: var(--violet-light);
}

.card p {
  margin: 0 0 1rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Buttons und Button-Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--night-deep);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--orange-light);
}

.btn svg {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex-shrink: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Fakten-Chips im Infoblock */
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--moon);
  background: var(--night);
  color: var(--moon);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.fact-num {
  font-size: 1.1em;
  line-height: 1;
}

/* Hinweise vor Ort */
.hint-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.hint-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.hint-list li:last-child {
  margin-bottom: 0;
}

.hint-list li::before {
  content: "🎃";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.95em;
}

.contact a,
footer a {
  color: var(--orange);
  text-underline-offset: 3px;
}

.contact a:hover,
footer a:hover {
  color: var(--orange-light);
}

/* Countdown mit Grabstein-Kacheln */
.tombstones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.tombstone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 0.25rem 0.8rem;
  border-radius: 50% 50% 8px 8px / 38% 38% 8px 8px;
  border: 1px solid var(--line);
  background: var(--night);
}

.tombstone .num {
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--moon);
  font-variant-numeric: tabular-nums;
}

.tombstone .unit {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tombstones[hidden] {
  display: none;
}

.countdown-done {
  margin: 1rem 0 0 !important;
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: 600;
  color: var(--moon);
}

@media (max-width: 380px) {
  .tombstones { gap: 0.4rem; }
  .tombstone .unit { font-size: 0.6rem; letter-spacing: 0.04em; }
}

/* Standort */
address {
  font-style: normal;
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
}

.map {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
}

.map[hidden] {
  display: none;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.note {
  margin: 1rem 0 0 !important;
  color: var(--muted);
  font-size: 0.85rem;
}

.note a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.note a:hover {
  color: var(--text);
}

footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin-top: 0.5rem;
}

.footer-nav a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--orange);
}

/* Unterseiten (Impressum, Datenschutz) mit schmalem Banner */
.scene-slim {
  height: clamp(170px, 16vw, 220px);
}

.scene-slim .scene-title {
  top: clamp(1rem, 3vw, 2rem);
}

.scene-slim h1 {
  font-size: clamp(2rem, 8vw, 3rem);
}

.home-link {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--spooky);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
  text-shadow: 0 2px 0 #0d0812, 0 0 12px rgba(0, 0, 0, 0.8);
}

.home-link span {
  color: var(--orange);
}

.legal .card {
  text-align: left;
}

.legal a {
  color: var(--orange);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal address {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.updated {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
