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

:root {
  --night: #120a1f;
  --night-deep: #06040c;
  --moon: #f6f1d3;
  --text: #efe9f5;
  --muted: #b9aac9;
  --orange: #ff9f1c;
  --orange-deep: #e85d04;
  --ghost-green: #9be7c4;
  --card: #1a0f2b;
  --spooky: "Griffy", "Comic Sans MS", cursive;
}

* {
  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);
}

/* Szene mit Mond und Spiralhügel */
.scene {
  position: relative;
  height: clamp(300px, 28vw, 340px);
  background: #040308;
  overflow: hidden;
}

.scene-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.art-desktop {
  display: none;
}

@media (min-width: 700px) {
  .art-mobile { display: none; }
  .art-desktop { display: block; }
}

.hill {
  fill: url(#hillFill);
}

.hill-ridges {
  stroke: #6b62a0;
}

.mound {
  fill: url(#moundFill);
}

.vines {
  fill: none;
  stroke: #1a1640;
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.9;
}

.stars circle {
  animation: twinkle 3s ease-in-out infinite;
}

.stars circle:nth-child(2n) {
  animation-delay: 1.5s;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.scene-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.75rem;
  padding: 0 1rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: var(--spooky);
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  line-height: 1;
  color: var(--moon);
  letter-spacing: 0.02em;
  transform: rotate(-3deg);
  text-shadow: 0 3px 0 #06040c, 0 0 20px rgba(0, 0, 0, 0.8);
}

h1 span {
  color: var(--orange);
  text-shadow: 0 3px 0 #06040c, 0 0 16px rgba(255, 159, 28, 0.8);
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--moon);
  font-size: 0.95rem;
  text-shadow: 0 1px 4px #000;
}

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

/* Karten mit gestreiftem Rand */
.card {
  border: 5px solid transparent;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.75rem;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    repeating-linear-gradient(-45deg, var(--moon) 0 10px, var(--night) 10px 20px) border-box;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--spooky);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--ghost-green);
}

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

.soon {
  text-align: center;
}

.badge {
  display: inline-block;
  margin-bottom: 1rem !important;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--night);
  font-family: var(--spooky);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  box-shadow: 0 0 18px rgba(255, 159, 28, 0.5);
}

.hint {
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0 !important;
}

/* Halloween-Countdown mit Grabsteinen */
.countdown {
  text-align: center;
}

.tombstones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.tombstone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 0.25rem 0.8rem;
  border-radius: 50% 50% 6px 6px / 38% 38% 6px 6px;
  background: linear-gradient(180deg, #4a4474 0%, #2b2749 60%, #14112a 100%);
  border-bottom: 5px solid #0a0816;
  box-shadow: inset 0 2px 0 rgba(246, 241, 211, 0.12), 0 6px 14px rgba(0, 0, 0, 0.5);
}

/* kleines Kreuz auf jedem Stein */
.tombstone::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 10px;
  height: 12px;
  transform: translateX(-50%);
  background:
    linear-gradient(var(--muted), var(--muted)) center / 2px 100% no-repeat,
    linear-gradient(var(--muted), var(--muted)) center 30% / 100% 2px no-repeat;
  opacity: 0.5;
}

.tombstone .num {
  font-family: var(--spooky);
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  line-height: 1.1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 #06040c, 0 0 14px rgba(255, 159, 28, 0.6);
}

.tombstone .unit {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moon);
}

.countdown-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0 !important;
}

.countdown-done {
  margin: 1rem 0 0 !important;
  font-family: var(--spooky);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  line-height: 1.2;
  color: var(--orange);
  text-shadow: 0 0 18px rgba(255, 159, 28, 0.7);
  animation: flicker 2.5s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.85; }
  50% { opacity: 0.55; }
  55% { opacity: 0.9; }
}

.tombstones[hidden] {
  display: none;
}

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

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

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(246, 241, 211, 0.15);
}

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

.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-consent a {
  color: var(--text);
}

.map-consent button {
  font-family: var(--spooky);
  font-size: 1.25rem;
  padding: 0.45rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--night);
  cursor: pointer;
}

.map-consent button:hover,
.map-consent button:focus-visible {
  background: var(--ghost-green);
}

.maps-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--orange);
  font-weight: 600;
}

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:focus-visible,
.footer-nav a[aria-current="page"] {
  color: var(--orange);
}

/* Unterseiten (Impressum, Datenschutz) */
.page-header {
  padding: 1.75rem 1rem 1.25rem;
  text-align: center;
  background: linear-gradient(#040308, var(--night-deep));
}

.home-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--spooky);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--moon);
  text-decoration: none;
}

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

.page-header h1 {
  font-size: clamp(2.2rem, 10vw, 3.5rem);
}

.legal {
  padding-top: 1.5rem;
}

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

.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;
}

@media (prefers-reduced-motion: reduce) {
  .stars circle,
  .countdown-done {
    animation: none;
  }
}
