:root {
  color-scheme: dark;
  --bg: #0a0a0d;
  --bg-card: #17151d;
  --bg-card-hover: #1d1a25;
  --fg: #f5f3f8;
  --muted: #a5a0ae;
  --muted-2: #6e6a78;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.24);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-bg-focus: rgba(255, 255, 255, 0.09);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.55);
  --accent: #a855f7;
  --accent-deep: #7e22ce;
  --accent-tint: rgba(168, 85, 247, 0.16);
  --danger: #ff6b5b;
  --success: #4ade80;
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.intro-active { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Intro overlay ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s var(--ease);
}

#intro .intro-logo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  box-shadow: var(--shadow-lg);
}

#intro.show .intro-logo { opacity: 1; transform: scale(1); }

#intro.leaving .intro-logo {
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#intro.fade-out { opacity: 0; }

#intro.hidden { display: none; }

#page {
  opacity: 0;
  transform: scale(0.97);
}

#page.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

/* ---------- Nav ---------- */
header.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(12, 12, 13, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), border-color 0.3s ease;
}

header.site-nav.in { transform: translateY(0); opacity: 1; }
header.site-nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.92rem;
  color: var(--fg);
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover, .nav-links a:focus-visible { color: var(--fg); }
.nav-links a.active { color: var(--fg); border-bottom-color: var(--accent); }

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-socials a {
  color: var(--muted);
  display: flex;
  transition: color 0.2s ease;
}

.nav-socials a:hover { color: var(--fg); }
.nav-socials svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--fg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 12, 13, 0.98);
  z-index: 99;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open { display: flex; transform: none; opacity: 1; }
.mobile-menu a { text-decoration: none; color: var(--fg); font-size: 1.3rem; }
.mobile-menu .nav-socials { margin-top: 1rem; }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  header.site-nav .nav-socials { display: none; }
}

/* ---------- Stimmungsbild im Hintergrund -- auf jeder Seite sichtbar ---------- */
/* Sitzt auf #page (nicht body), damit der Admin-Bereich (eigenes Layout ohne
   #page-Wrapper) unberührt bleibt. Datei einfach unter assets/hero-bg.jpg ablegen,
   dann erscheint sie automatisch überall; ohne Datei bleibt es einfach dunkel. */
#page { position: relative; }

#page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/hero-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.16;
  filter: grayscale(15%);
  z-index: 0;
}

#page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 13, 0.55) 0%, var(--bg) 85%);
  z-index: 0;
}

#page > * { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4vh) 1.5rem 4rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(12, 12, 13, 0.15) 0%, rgba(12, 12, 13, 0.6) 70%, var(--bg) 100%);
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-md);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1.2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
}

.hero .sub {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 2.4rem;
  max-width: 480px;
}

.socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.social-btn:hover, .social-btn:focus-visible {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.scroll-hint {
  margin-top: 3rem;
  color: var(--muted-2);
  animation: bob 2.2s ease-in-out infinite;
}

.scroll-hint svg { width: 20px; height: 20px; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: calc(var(--nav-h) + 4.5rem) 0 3rem;
  text-align: center;
}

.page-header .eyebrow { margin-bottom: 0.9rem; }

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

.page-header p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Sections shared ---------- */
section { position: relative; padding: 4rem 0 7rem; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.pop {
  opacity: 0;
  transform: scale(0.88) translateY(14px);
  transition: opacity 0.6s var(--pop), transform 0.6s var(--pop);
}
.pop.in { opacity: 1; transform: none; }

/* stagger helper */
.stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Home "Mehr entdecken" -- große Bild-Kacheln nebeneinander ---------- */
#entdecken { padding: 2.5rem 0 5.5rem; }
.container-narrow { max-width: 640px; }

.explore-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.explore-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  padding: 1.8rem;
  border-radius: 26px;
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

/* Platzhalter-Verlauf, solange keine echten Fotos unter /assets/tile-*.jpg liegen --
   sobald die Dateien existieren, legt sich das Bild einfach automatisch darüber. */
.explore-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 13, 0.15) 0%, rgba(10, 10, 13, 0.9) 100%),
    linear-gradient(135deg, var(--accent-tint), rgba(255, 255, 255, 0.02));
}

.explore-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.explore-tile .content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}
.explore-title { font-size: 1.3rem; font-weight: 650; }
.explore-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

.explore-go {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.explore-go svg {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--ease);
}
.explore-tile:hover .explore-go svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .explore-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .explore-tiles { grid-template-columns: 1fr; }
  .explore-tile { min-height: 220px; padding: 1.5rem; }
}

/* ---------- Event cards (Galerie listing) ---------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}

.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }

.event-card .thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--accent-tint), rgba(255, 255, 255, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.event-card .thumb svg { width: 34px; height: 34px; color: var(--muted); }

.event-card .thumb .count-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg);
}

.event-card .info { padding: 1.2rem 1.3rem 1.4rem; }
.event-card .info .date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.event-card .info h3 { font-size: 1.15rem; margin: 0; font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--muted);
  border: 1px dashed var(--border-hover);
  border-radius: 22px;
  background: var(--bg-card);
}

.empty-state svg { width: 34px; height: 34px; color: var(--muted-2); margin-bottom: 1rem; }
.empty-state p { max-width: 420px; margin: 0 auto; line-height: 1.6; }

@media (max-width: 900px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .event-grid { grid-template-columns: 1fr; }
}

/* ---------- Event detail gallery ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--fg); }
.back-link svg { width: 16px; height: 16px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-tint), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.gallery-tile:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.gallery-tile svg { width: 26px; height: 26px; color: var(--muted); }
.gallery-tile span { font-size: 0.72rem; letter-spacing: 0.05em; color: var(--muted-2); text-transform: uppercase; }

.gallery-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 4.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 780px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Gästeliste ---------- */
.guest-hero {
  position: relative;
  border-radius: 28px;
  background-color: #15121c;
  color: #fff;
  padding: 3rem 2.2rem;
  overflow: hidden;
  margin-bottom: 3.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(168, 85, 247, 0.18);
}

/* Platzhalter für ein echtes Party-/Crowd-Foto -- Datei unter assets/guest-hero-bg.jpg
   ablegen, dann erscheint sie automatisch hinter dem Verlauf. Ohne Datei bleibt es
   einfach beim reinen Farbverlauf. */
.guest-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/guest-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.guest-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 18, 28, 0.9) 0%, rgba(44, 26, 61, 0.82) 55%, rgba(126, 34, 206, 0.72) 100%);
  z-index: 0;
}

.guest-hero .hero-inner { position: relative; z-index: 1; }
.guest-hero .hero-text { max-width: 520px; margin: 0 auto; }
.guest-hero .eyebrow { color: rgba(255, 255, 255, 0.75); }
.guest-hero h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 0.8rem;
}
.guest-hero p { color: rgba(255, 255, 255, 0.78); line-height: 1.6; margin: 0; }

@media (max-width: 480px) {
  .guest-hero { padding: 2.2rem 1.4rem; }
}

.countdown { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 3rem; flex-wrap: wrap; }
.countdown .unit {
  min-width: 84px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 0.6rem;
  text-align: center;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.countdown .unit .num { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg); }
.countdown .unit .lbl { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

@media (max-width: 420px) {
  .countdown { gap: 0.5rem; }
  .countdown .unit { min-width: 68px; padding: 0.8rem 0.4rem; }
  .countdown .unit .num { font-size: 1.4rem; }
}

.guest-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 900px) { .guest-layout { grid-template-columns: 1fr; } }

.rules-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.rules-list li { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.rules-list li strong { color: var(--fg); font-weight: 600; }
.rules-list .icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--fg);
  display: flex; align-items: center; justify-content: center; margin-top: 0.1rem;
}
.rules-list svg { width: 12px; height: 12px; }

.guest-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; letter-spacing: 0.01em; }
.field input[type="text"], .field input[type="number"], .field input[type="tel"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus { outline: none; border-color: var(--accent); background: var(--input-bg-focus); }
.field.error input { border-color: var(--danger); }
.field .error-msg { display: none; color: var(--danger); font-size: 0.76rem; margin-top: 0.4rem; }
.field.error .error-msg { display: block; }

.checkbox-field { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 1.1rem; }
.checkbox-field input { margin-top: 0.2rem; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox-field label { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.checkbox-field a { color: var(--fg); text-decoration: underline; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.submit-btn {
  width: 100%;
  padding: 0.95rem;
  border-radius: 999px;
  border: none;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  margin-top: 0.4rem;
  box-shadow: var(--shadow-sm);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.submit-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-msg { margin-top: 1rem; font-size: 0.85rem; color: var(--danger); display: none; }
.form-msg.show { display: block; }

.success-card { display: none; text-align: center; padding: 1rem 0; }
.success-card.show { display: block; }
.success-card .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-tint); color: var(--success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.4rem;
}
.success-card .check svg { width: 28px; height: 28px; }
.success-card h3 { font-size: 1.4rem; margin: 0 0 0.6rem; }
.success-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; max-width: 380px; margin: 0 auto; }

#guestlist-form.hidden { display: none; }

#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

@media (max-width: 480px) {
  .guest-card { padding: 1.5rem; }
}

/* ---------- Tickets placeholder ---------- */
.tickets-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
}
.tickets-card .icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.4rem;
}
.tickets-card .icon svg { width: 26px; height: 26px; }
.tickets-card h2 { font-size: 1.4rem; margin: 0 0 0.8rem; }
.tickets-card p { color: var(--muted); line-height: 1.6; margin: 0 0 1.8rem; }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 2.6rem 0 2rem; text-align: center; }
footer .foot-socials { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 1.2rem; }
footer .foot-socials a { color: var(--muted); transition: color 0.2s ease; }
footer .foot-socials a:hover { color: var(--fg); }
footer .foot-socials svg { width: 20px; height: 20px; }
footer .foot-links { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 1rem; font-size: 0.78rem; }
footer .foot-links a { color: var(--muted); text-decoration: none; }
footer .foot-links a:hover { color: var(--fg); }
footer p.copy { margin: 0; font-size: 0.75rem; color: var(--muted-2); }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: calc(var(--nav-h) + 5vh) 1.5rem 5rem; }
.legal .back { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.legal .back:hover { color: var(--fg); }
.legal h1 { font-size: 2rem; margin: 1.2rem 0 0.4rem; }
.legal .updated { color: var(--muted-2); font-size: 0.8rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.15rem; margin: 2.2rem 0 0.8rem; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; font-size: 0.95rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--fg); }
.legal .todo {
  border: 1px dashed var(--border-hover);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.5rem 0;
  background: var(--bg-card);
}

@media (max-width: 600px) {
  section { padding: 3rem 0 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint, .gallery-tile::before { animation: none; }
  * { transition-duration: 0.01ms !important; }

  /* Inhalte sollen trotzdem sichtbar reinfaden, nur ohne Bewegung/Skalierung --
     sonst poppt auf Geräten mit dieser Einstellung alles ruckartig gleichzeitig auf. */
  .reveal, .pop {
    transform: none !important;
    transition: opacity 0.35s ease !important;
  }
}
