/* =========================================================================
   Schriften – lokal eingebunden (assets/fonts/).
   Es wird KEINE Verbindung zu Google Fonts oder einem anderen Server
   aufgebaut. Variable Fonts: eine Datei deckt alle Schnitte 100–900 ab.
   Outfit & Inter stehen unter der SIL Open Font License 1.1.
   ========================================================================= */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-variable.woff2') format('woff2');
}

/* =========================================================================
   TanzenNRW.de – Stylesheet
   1. Tokens & Reset      4. Sections & Reveal
   2. Buttons             5. Komponenten
   3. Header & Hero       6. Footer & Responsive
   ========================================================================= */

/* ============================ 1. Tokens ================================= */
:root {
  --bg:        #0a060f;
  --bg-soft:   #100a1a;
  --bg-alt:    #0d0715;
  --surface:   rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --line:      rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);

  --text:      #f5eff9;
  --muted:     #a79db4;
  --dim:       #7d7389;

  --pink:      #ff2e88;
  --orange:    #ff8a3d;
  --violet:    #8b5cf6;
  --grad:      linear-gradient(100deg, #ff2e88 0%, #ff6b4d 55%, #ff9d3d 100%);
  --grad-soft: linear-gradient(100deg, rgba(255,46,136,.16), rgba(255,138,61,.12));

  --radius:    18px;
  --radius-lg: 28px;
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, .75);
  --glow:      0 12px 40px -12px rgba(255, 46, 136, .55);

  --shell:     1180px;
  --pad:       clamp(20px, 5vw, 40px);
  --ease:      cubic-bezier(.22, .61, .36, 1);

  --font-head: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;          /* gleichmaessige Zeilenumbrueche in Ueberschriften */
}

h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
/* Deutsche Texte in schmalen Spalten: gleichmaessiger Flattersatz statt
   grosser Luecken – Silbentrennung an, Schusterjungen aus. */
p, li {
  text-wrap: pretty;
  -webkit-hyphens: auto;
          hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
}
p  { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: min(100% - 2 * var(--pad), var(--shell));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: var(--pink); color: #fff;
  padding: 12px 22px; border-radius: 0 0 12px 12px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ============================ 2. Buttons ================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95em 1.9em; font-size: 1.02rem; }

.btn-primary {
  background: var(--grad); color: #1a0410;
  box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 18px 46px -12px rgba(255, 46, 136, .7); }

.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .22); }

.btn-outline {
  background: transparent; color: var(--text); border-color: rgba(255, 46, 136, .55);
}
.btn-outline:hover { background: rgba(255, 46, 136, .12); border-color: var(--pink); }

/* ============================ 3. Header ================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .3s var(--ease), backdrop-filter .3s var(--ease),
              border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 6, 15, .82);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 0;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
/* Logo: assets/img/logo.svg bringt den Markenverlauf selbst mit und wird
   als ganz normales Bild eingebunden – funktioniert auch beim lokalen Öffnen. */
.brand-mark {
  width: 26px; height: 42px; flex: none;
  filter: drop-shadow(0 8px 18px rgba(255, 46, 136, .45));
  transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-3deg); }
.brand-text {
  font-family: var(--font-head); font-weight: 800; font-size: 1.22rem;
  letter-spacing: -.02em; color: var(--text);
}
.brand-text strong { font-weight: 800; color: var(--orange); }
.brand-tld { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul {
  display: flex; align-items: center; gap: 26px;
  margin: 0; padding: 0; list-style: none;
}
.site-nav ul a {
  position: relative; font-size: .95rem; font-weight: 500; color: var(--muted);
  transition: color .2s var(--ease);
}
.site-nav ul a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px;
  transition: right .3s var(--ease);
}
.site-nav ul a:hover { color: var(--text); }
.site-nav ul a:hover::after,
.site-nav ul a.is-current::after { right: 0; }
.site-nav ul a.is-current { color: var(--text); }
.nav-cta { padding: .6em 1.25em; font-size: .92rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; padding: 12px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.scroll-progress {
  height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ============================== Hero ==================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.orb-1 {
  width: 46vw; height: 46vw; min-width: 320px; min-height: 320px;
  background: radial-gradient(circle, #ff2e88, transparent 68%);
  top: -12%; left: -8%;
}
.orb-2 {
  width: 40vw; height: 40vw; min-width: 280px; min-height: 280px;
  background: radial-gradient(circle, #ff8a3d, transparent 68%);
  bottom: -14%; right: -6%; animation-delay: -6s;
}
.orb-3 {
  width: 34vw; height: 34vw; min-width: 240px; min-height: 240px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: 34%; right: 26%; opacity: .38; animation-delay: -11s;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 30%, transparent 78%);
}

/* Grosse Silhouette als dezenter Blickfang rechts im Hero */
.hero-figure {
  position: absolute; right: 4vw; bottom: 0;
  height: min(78vh, 700px); width: auto;
  opacity: .38;
  /* weicher Verlauf nach oben – reiner CSS-Verlauf, keine externe Datei */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 32%, #000 88%, transparent);
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(4%, 6%, 0) scale(1.07); }
  66%      { transform: translate3d(-3%, -4%, 0) scale(.95); }
}

.hero-inner { max-width: 880px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-size: .82rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--pink);
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--grad); display: inline-block;
}

.hero-title {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  font-weight: 800; margin-bottom: .35em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--muted); max-width: 62ch; margin-bottom: 2.2em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line);
  border-radius: 14px; display: grid; place-items: start center; padding-top: 8px;
}
.scroll-hint span {
  width: 4px; height: 8px; border-radius: 2px; background: var(--pink);
  animation: wheel 1.9s ease-in-out infinite;
}
@keyframes wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(14px); opacity: 0; }
}

/* ============================ 4. Sections =============================== */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 130px) 0;
  scroll-margin-top: 80px;
}
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

/* Zeilenlaenge in Zeichen statt Pixeln: waechst mit der Schriftgroesse,
   wird nie breiter als der Container. min(100%, ...) haelt sie responsiv. */
.section-head {
  max-width: min(100%, 96ch);
  margin-bottom: clamp(40px, 6vw, 66px);
}
.section-lead { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.dance-grid .reveal, .region-grid .reveal { transition-delay: calc(var(--i, 0) * 45ms); }

/* ============================ 5. Feature-Cards ========================== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.feature-card {
  padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 46, 136, .38);
  background: var(--surface-2);
}
.feature-icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: var(--grad-soft);
  border: 1px solid rgba(255, 46, 136, .3); color: var(--pink);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.18rem; }
.feature-card p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }

/* ============================ Regionen ================================== */
.regions-block {
  margin-top: clamp(38px, 5vw, 60px);
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 46, 136, .14), transparent 58%),
    radial-gradient(120% 140% at 100% 100%, rgba(139, 92, 246, .16), transparent 58%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.regions-title { font-size: 1.3rem; margin-bottom: 1em; }

.region-grid {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
}
.region a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 14px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.region a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 46, 136, .5);
  background: rgba(255, 46, 136, .1);
}
.region-pin {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; color: var(--pink);
}
.region-pin svg { width: 18px; height: 18px; }
.regions-note {
  color: var(--muted); font-size: .95rem; margin: 0;
  max-width: min(100%, 96ch);
}

/* ============================ Tanzstile ================================= */
.dance-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.dance-card {
  position: relative; overflow: hidden;
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.dance-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 46, 136, .4);
  box-shadow: var(--shadow);
}
.dance-index {
  position: absolute; top: 14px; right: 20px;
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 46, 136, .28);
}
.dance-card h3 { font-size: 1.35rem; margin-bottom: .4em; }
.dance-card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; max-width: 34ch; }

/* ============================ CTA-Leiste ================================ */
.cta-inline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; margin-top: 34px; padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--grad-soft); border: 1px solid rgba(255, 46, 136, .25);
}
.cta-inline p { margin: 0; color: var(--muted); max-width: 62ch; }
.cta-inline strong { color: var(--text); }

/* ============================ Kontakt =================================== */
.contact-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(255, 46, 136, .35); }
.contact-icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 14px; background: var(--grad-soft);
  border: 1px solid rgba(255, 46, 136, .28); color: var(--pink);
}
.contact-icon svg { width: 21px; height: 21px; }
.contact-card strong {
  display: block; font-size: .8rem; color: var(--dim); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px;
}
.contact-card a, .contact-card span:not(.contact-icon) {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  word-break: break-word;
}
.contact-card a { color: var(--text); transition: color .2s var(--ease); }
.contact-card a:hover { color: var(--pink); }

/* ============================ 6. Footer ================================= */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(50px, 7vw, 80px);
}
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 46px;
  padding-bottom: 46px;
}
.footer-brand p { color: var(--muted); font-size: .95rem; margin-top: 16px; max-width: 38ch; }

.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.footer-nav h4 {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); font-weight: 600; margin-bottom: 1em;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { color: var(--muted); font-size: .95rem; word-break: break-word; }
.footer-nav a:hover { color: var(--pink); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0 30px; border-top: 1px solid var(--line-soft);
}
.footer-bottom p { margin: 0; color: var(--dim); font-size: .86rem; }
.to-top {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { transform: translateY(-3px); border-color: rgba(255, 46, 136, .5); }

/* ============================ Legal-Seiten ============================== */
.legal { padding: 150px 0 90px; }
.legal .shell { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .6em; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2em 0 .6em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--pink); }
.legal .todo {
  background: rgba(255, 138, 61, .1); border: 1px solid rgba(255, 138, 61, .35);
  border-radius: var(--radius); padding: 18px 22px; color: #ffcda3; font-size: .93rem;
}
.legal .todo a { color: #ffcda3; }
.legal .back { display: inline-block; margin-top: 40px; color: var(--pink); font-weight: 600; }

/* ============================ Responsive ================================ */
@media (max-width: 1100px) {
  .hero-figure { opacity: .22; right: -6vw; height: min(62vh, 520px); }
}

@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 30px;
    padding: 40px;
    background: rgba(13, 7, 21, .97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .38s var(--ease);
    overflow-y: auto;
  }
  .site-nav.is-open { transform: none; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .site-nav ul a { font-size: 1.3rem; font-family: var(--font-head); font-weight: 600; color: var(--text); }
  .nav-cta { width: 100%; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .eyebrow { font-size: .74rem; letter-spacing: .12em; }
  .eyebrow::before { width: 18px; }
  .hero { padding-top: 120px; }
  .hero-figure { opacity: .12; }
  .brand-mark { width: 22px; height: 36px; }
  .region-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

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