/* ============================================================
   Rhythmus Libellen – Tanzgruppe aus Kerken-Nieukerk
   ============================================================ */

:root {
  --night: #0E0B1F;
  --night-2: #17122E;
  --night-3: #221B42;
  --text: #F4F1FF;
  --text-soft: #B9B2D6;
  --line: rgba(255, 255, 255, .10);

  /* Libellenflügel – schillernd türkis → violett → magenta */
  --teal: #2FE0D0;
  --indigo: #7C8CFF;
  --magenta: #E05CFF;
  --gold: #FFC94D;
  --wing: linear-gradient(120deg, var(--teal), var(--indigo) 55%, var(--magenta));

  --radius: 18px;
  --radius-lg: 28px;
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Avenir Next", Avenir,
          "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section.alt { background: var(--night-2); }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: var(--wing); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--text-soft); max-width: 640px; }
.grad { background: var(--wing); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--wing); color: #0E0B1F; box-shadow: 0 10px 30px rgba(124, 140, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(224, 92, 255, .4); }
.btn-ghost { color: var(--text); border: 1.5px solid var(--line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--teal); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
#header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
#header.scrolled { background: rgba(14, 11, 31, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo img { width: 38px; height: 38px; }
.logo span { font-weight: 400; color: var(--text-soft); }

#main-nav { display: flex; align-items: center; gap: 28px; }
#main-nav a { color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .2s; }
#main-nav a:hover { color: var(--text); }
#main-nav a.nav-cta { color: #0E0B1F; background: var(--wing); padding: 9px 18px; border-radius: 999px; }

#nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
#nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 6px 0; transition: transform .25s, opacity .25s; }
#nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-nav {
  position: fixed; inset: 72px 0 0 0; z-index: 49; background: var(--night);
  display: flex; flex-direction: column; padding: 24px 20px; gap: 6px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
#mobile-nav.open { opacity: 1; pointer-events: auto; }
#mobile-nav a { color: var(--text); text-decoration: none; font-size: 24px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 820px) {
  #main-nav { display: none; }
  #nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: min(100svh, 960px); display: flex; align-items: center; position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero::before { width: 520px; height: 520px; background: var(--teal); top: -160px; left: -140px; opacity: .28; }
.hero::after { width: 620px; height: 620px; background: var(--magenta); bottom: -260px; right: -200px; opacity: .3; animation-delay: -7s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(48px, 9vw, 104px); font-weight: 900; letter-spacing: -.04em; line-height: .95; margin-bottom: 24px; }
.hero h1 .grad { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }


@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--night-2); padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span { font-size: 22px; font-weight: 800; white-space: nowrap; color: var(--text-soft); text-transform: uppercase; letter-spacing: .06em; }
.marquee-track span:nth-child(3n+1) { color: var(--teal); }
.marquee-track span:nth-child(3n+2) { color: var(--magenta); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Über uns ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 36px; } .photo-placeholder { aspect-ratio: 16 / 10; } }

.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--night-3), var(--night-2));
  border: 1px dashed rgba(255,255,255,.18);
  display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--text-soft); font-size: 15px; position: relative; overflow: hidden;
}
.photo-placeholder::before { content: ""; position: absolute; inset: 0; background: var(--wing); opacity: .08; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.fact { background: var(--night-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.fact strong { display: block; font-size: 20px; }
.fact small { color: var(--text-soft); font-size: 14px; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--night-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(124,140,255,.45); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--wing); color: #0E0B1F; margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--text-soft); margin: 0; }

/* ---------- Auftritte ---------- */
.events { display: grid; gap: 14px; margin-top: 40px; }
.event {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center;
  background: var(--night-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px;
}
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.event-date b { display: block; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.event-date span { font-size: 13px; color: var(--text-soft); }
.event h3 { margin: 0 0 2px; font-size: 19px; }
.event p { margin: 0; color: var(--text-soft); font-size: 15px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); white-space: nowrap; }
.tag.past { opacity: .7; }
@media (max-width: 620px) {
  .event { grid-template-columns: 1fr; gap: 10px; }
  .event-date { text-align: left; border-right: 0; padding: 0; }
  .tag { justify-self: start; }
}

/* ---------- Video / Social ---------- */
.social-box {
  border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px);
  background: radial-gradient(circle at 20% 0%, rgba(47,224,208,.18), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(224,92,255,.22), transparent 55%), var(--night-3);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.social-box p { color: var(--text-soft); }
.play {
  aspect-ratio: 9 / 16; max-height: 420px; justify-self: center; width: 100%; max-width: 240px;
  border-radius: 24px; background: linear-gradient(160deg, #1d1640, #0e0b1f);
  border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; text-decoration: none;
  color: var(--text); position: relative; overflow: hidden; transition: transform .25s;
}
.play:hover { transform: scale(1.03); }
.play::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, var(--teal), var(--indigo), var(--magenta), var(--teal)); opacity: .18; animation: spin 10s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.play-inner { position: relative; text-align: center; padding: 20px; }
.play-btn { width: 72px; height: 72px; border-radius: 50%; background: var(--wing); display: grid; place-items: center; margin: 0 auto 16px; color: #0E0B1F; }
.play-btn svg { width: 28px; height: 28px; margin-left: 4px; }
.play small { color: var(--text-soft); display: block; font-size: 13px; }
@media (max-width: 820px) { .social-box { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { text-align: center; }
.contact .lead { margin: 0 auto 32px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--text-soft); font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--text); }

/* ---------- Rechtliche Seiten ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 130px 20px 80px; }
.legal-page h1 { font-size: clamp(36px, 6vw, 54px); font-weight: 900; }
.legal-page h2 { font-size: 22px; margin-top: 36px; }
.legal-page p, .legal-page address { color: var(--text-soft); font-style: normal; }
.back-link { display: inline-block; margin-top: 40px; font-weight: 700; text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Platzhalter – Klasse `todo` entfernen, sobald echte Daten drin sind */
.todo { background: rgba(255, 201, 77, .18); outline: 1px dashed var(--gold); color: var(--gold); border-radius: 4px; padding: 0 4px; }

/* ---------- Fotos ---------- */
.hero-photo { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 420px; }
.hero-photo > img:first-child {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-lg); border: 3px solid transparent;
  background: var(--wing) border-box;
  box-shadow: 0 30px 80px rgba(124, 140, 255, .35);
  transform: rotate(2deg);
}
.hero-badge {
  position: absolute; width: 84px; height: 84px; left: -28px; bottom: 36px;
  filter: drop-shadow(0 10px 24px rgba(14, 11, 31, .6));
  animation: hover 5s ease-in-out infinite;
}
@media (max-width: 820px) {
  .hero-photo { order: -1; max-width: 520px; justify-self: start; }
  .hero-photo > img:first-child { aspect-ratio: 4 / 3; object-position: 50% 78%; transform: rotate(1.5deg); }
  .hero { padding-top: 96px; }
  .hero-badge { width: 64px; height: 64px; left: auto; right: -10px; bottom: -16px; }
}

.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(14, 11, 31, .85));
  font-weight: 700; font-size: 15px;
}
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:last-child { grid-column: 1 / -1; } .gallery figure:last-child img { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery img, .gallery figure:last-child img { aspect-ratio: 4 / 5; } }
.footer-bottom p a { color: var(--text-soft); }
@keyframes hover { 50% { transform: translateY(-14px) rotate(-6deg); } }

.training {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(47,224,208,.14), rgba(224,92,255,.14));
  border: 1px solid rgba(124,140,255,.35);
}
.training svg { width: 28px; height: 28px; flex: none; color: var(--teal); }
.training strong { display: block; font-size: 17px; }
.training small { color: var(--text-soft); font-size: 14px; }
