:root {
  --bg: #0a0a0a;
  --fg: #f4f4f4;
  --muted: #a8a8a8;
  --line: rgba(255, 255, 255, .16);
  --card: rgba(8, 8, 8, .78);
  --radius: 22px;
  --display: "Arial Black", Impact, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Fixer Hintergrund ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Fallback, solange kein Video/Bild hinterlegt ist */
  background:
    radial-gradient(60% 50% at 20% 15%, #2a2a2a 0%, transparent 70%),
    radial-gradient(50% 45% at 85% 80%, #1f1f1f 0%, transparent 70%),
    var(--bg);
}
.bg-media { position: absolute; inset: 0; }
.bg-media video,
.bg-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* füllt die Fläche, Überstand wird beschnitten (kein Verzerren) */
  filter: grayscale(1) contrast(1.1);
}
.bg-media img { opacity: 0; transform: scale(1.1); transition: opacity 1.8s ease; }
.bg-media img.on { opacity: 1; animation: drift 14s ease-out forwards; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 10, 10, .72), rgba(10, 10, 10, .82));
}

/* ---------- Header ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 40px);
  background: linear-gradient(rgba(10, 10, 10, .85), transparent);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity .3s, transform .3s;
}
.topbar.show { opacity: 1; transform: none; }
.topbar-logo img { height: 36px; width: auto; }
.topbar nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.topbar nav a {
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar nav a:hover { color: var(--fg); }
@media (max-width: 560px) {
  .topbar { justify-content: center; }
  .topbar-logo { display: none; }
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: .7rem; letter-spacing: .06em; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
}
.hero-logo { width: min(520px, 78vw); height: auto; }
.hero-sub {
  margin: 28px 0 0;
  font-size: clamp(.85rem, 2.4vw, 1.05rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.scroll-hint svg { animation: hint 1.8s ease-in-out infinite; }
.scroll-hint:hover { color: var(--fg); }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(8px); opacity: 1; } }

/* ---------- Panels ---------- */
.panel {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 28vh;
  padding: clamp(24px, 5vw, 56px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
}
.panel:last-of-type { margin-bottom: 12vh; }
.panel h2 {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font: 400 clamp(2.2rem, 7vw, 4.2rem)/.95 var(--display);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.panel h2 span { display: block; font-size: .62em; color: var(--muted); }
#contact h2 span { display: inline; font-size: 1em; color: inherit; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Schedule ---------- */
.schedule {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.day { display: flex; flex-direction: column; gap: 10px; }
.day h3 {
  margin: 0 0 4px;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 78px;
  padding: 12px 8px;
  text-align: center;
  font-size: .9rem;
  line-height: 1.25;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
button.slot {
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  transition: border-color .2s, background .2s, transform .15s;
}
button.slot:hover:not(:disabled), button.slot:focus-visible { border-color: var(--fg); background: #181818; transform: translateY(-2px); }
button.slot:disabled { cursor: default; }
.schedule-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.schedule-cta p { margin: 0; }
.schedule-cta .btn { margin: 0; border: 0; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.slot time { font-weight: 700; font-size: 1rem; }
.slot small { color: var(--muted); font-size: .75rem; }
.slot.off { color: var(--muted); }
.day.today h3 { color: #000; background: var(--fg); border-radius: 99px; padding: 2px 0; }
.day.today .slot:not(.off) { border-color: var(--fg); }

@media (max-width: 820px) {
  .schedule { grid-template-columns: 1fr; gap: 18px; }
  .day { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .day h3 { flex: 0 0 100%; text-align: left; margin: 0; font-size: .9rem; }
  .day.today h3 { padding: 2px 12px; width: fit-content; flex: none; }
  .day.today { flex-wrap: wrap; }
  .day.today h3 { flex-basis: 100%; width: auto; }
  .slot { flex: 1 1 140px; }
  .slot.off { min-height: 48px; flex: 1 1 100%; }
}

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(20px, 4vw, 40px); align-items: stretch; }
address { font-style: normal; font-size: 1.2rem; line-height: 1.6; }
.btn {
  display: table;
  margin-top: 22px;
  padding: 12px 22px;
  background: var(--fg);
  color: #000;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 99px;
  transition: transform .15s;
}
.btn:hover { transform: scale(1.04); }
.map {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.map button {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.map button small { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.map button:hover { background: #111; }
@media (max-width: 820px) { .location { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--muted);
  transition: border-color .2s, color .2s;
}
.links a b { color: var(--fg); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; align-self: center; }
.links a:hover { border-color: var(--fg); color: var(--fg); }
.qr { margin: 0; text-align: center; }
.qr img { width: min(220px, 60%); margin: 0 auto 10px; padding: 12px; background: #fff; border-radius: var(--radius); }
.qr figcaption { color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.qr[hidden] { display: none; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } .links a { flex-direction: column; gap: 2px; } }

/* ---------- Footer ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding: 28px 16px 40px;
  font-size: .8rem;
  color: var(--muted);
  background: rgba(0, 0, 0, .7);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* ---------- Rechtstexte ---------- */
.legal { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 80px; }
.legal h1 { font: 400 2.2rem/1 var(--display); text-transform: uppercase; }
.legal h2 { margin: 28px 0 6px; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal p { margin: 0; }
.legal a.back { color: var(--muted); text-decoration: none; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint svg { animation: none; }
}

/* ---------- Probetraining-Dialog ---------- */
dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  color: var(--fg);
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
}
dialog::backdrop { background: rgba(0, 0, 0, .75); }
dialog form { display: grid; gap: 14px; padding: clamp(20px, 5vw, 32px); position: relative; }
dialog h2 { margin: 0; font: 400 1.8rem/1 var(--display); text-transform: uppercase; }
dialog label { display: grid; gap: 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
dialog input:not([type=checkbox]), dialog select, dialog textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none;
  color: var(--fg); background: #000; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
dialog input:focus, dialog select:focus, dialog textarea:focus { outline: 0; border-color: var(--fg); }
dialog .check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; text-transform: none; letter-spacing: 0; font-size: .8rem; }
dialog .check input { margin-top: 3px; accent-color: #fff; }
dialog .btn { border: 0; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; justify-self: start; margin: 0; }
.close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 2rem; line-height: 1; cursor: pointer; }
.close:hover { color: var(--fg); }
.form-status { margin: 0; font-size: .85rem; min-height: 1.2em; }
.form-status.ok { color: #9be39b; }
.form-status.err { color: #ff8f8f; }

/* ---------- Galerie ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  font: inherit; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--line);
  border-radius: 99px; padding: 8px 18px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip.active { color: #000; background: var(--fg); border-color: var(--fg); }
.gallery { columns: 2; column-gap: 10px; }
.ph { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: #000; border-radius: 16px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.ph img { width: 100%; height: auto; display: block; filter: grayscale(1); transition: filter .3s, transform .4s; }
.ph:hover img, .ph:focus-visible img { filter: none; transform: scale(1.03); }
@media (min-width: 821px) { .gallery { columns: 3; column-gap: 14px; } .ph { margin-bottom: 14px; } }
@media (hover: none) { .ph img { filter: none; } }

.lightbox { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; border: 0; border-radius: 0; background: rgba(0, 0, 0, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: min(96vw, 1400px); max-height: 88svh; object-fit: contain; border-radius: 8px; touch-action: pan-y; user-select: none; }
.lightbox p { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .15em; }
.lb-close, .lb-nav { position: absolute; background: none; border: 0; color: var(--fg); cursor: pointer; line-height: 1; opacity: .8; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close { top: 10px; right: 16px; font-size: 2.6rem; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 12px; }
.lb-nav.prev { left: 4px; }
.lb-nav.next { right: 4px; }
