/* ==========================================================================
   Royal Show of Dancing Water – Stylesheet
   ========================================================================== */

/* ---------- Fonts (selbst gehostet) ---------- */
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #06071a;
  --bg-2: #0b0d26;
  --surface: #12153a;
  --line: rgba(241, 207, 149, 0.18);
  --text: #eeeaf6;
  --muted: #a9a5c2;
  --gold: #d6a65e;
  --gold-light: #f3d39c;
  --cyan: #63d6f2;
  --violet: #8f6bff;

  --serif: "Cormorant", "Cormorant Garamond", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 12vw, 160px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1.1em; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--bg); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 .75rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
.h2 em { font-style: italic; color: var(--gold-light); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font: 500 .8125rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1a1206; border: 0; }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(214, 166, 94, .6); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid rgba(238, 234, 246, .35); }
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(6, 7, 26, .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; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 44px; object-fit: contain; }
.brand span { font: 500 1.35rem/1 var(--serif); letter-spacing: .02em; white-space: nowrap; }
.brand small { display: block; font: 500 .6rem/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: .875rem; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.lang { display: flex; gap: 4px; font-size: .75rem; letter-spacing: .12em; }
.lang a, .lang span { padding: 6px 8px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { color: var(--gold-light); }
.nav .btn { min-height: 44px; padding: 0 20px; }

.burger { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--text); }
.burger span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 0; flex-direction: column; justify-content: center; gap: 40px;
    background: rgba(6, 7, 26, .97); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; align-items: center; gap: 22px; }
  .nav__links a { font: 500 2rem/1 var(--serif); color: var(--text); }
  .header.menu-open { background: rgba(6, 7, 26, .97); }
}
@media (max-width: 420px) { .brand span { font-size: 1.1rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(56px, 9vh, 110px);
  isolation: isolate; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { animation: heroZoom 18s var(--ease) both; }
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__media video.is-ready { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,7,26,.55) 0%, rgba(6,7,26,0) 30%, rgba(6,7,26,.25) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(6,7,26,.7), transparent 60%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero__content { max-width: 820px; }
.hero h1 { font-size: clamp(3rem, 9vw, 7.25rem); line-height: .98; margin-bottom: 28px; }
.hero h1 em { display: block; font-style: italic; color: var(--gold-light); }
.hero p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #d8d4e6; max-width: 54ch; margin-bottom: 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; text-decoration: none;
}
.hero__scroll::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .hero__scroll { display: none; } .hero__ctas .btn { flex: 1 1 100%; } }

/* ---------- Kennzahlen ---------- */
.facts { padding: 0 0 var(--section); }
.facts__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { padding: 40px 20px; text-align: center; position: relative; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line); }
.fact__num { font: 500 clamp(2.6rem, 4.6vw, 3.75rem)/1 var(--serif); color: var(--gold-light); display: block; margin-bottom: 10px; font-variant-numeric: lining-nums; }
.fact__label { font-size: .8125rem; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 900px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(odd)::before { display: none; }
  .fact:last-child { grid-column: 1 / -1; }
  .fact:last-child::before { display: none; }
  .fact { border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
}

/* ---------- Die Show ---------- */
.show__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.show__text .h2 { margin-bottom: 32px; }
.show__text p { color: var(--muted); }
.show__text p strong { color: var(--text); font-weight: 500; }
.show__media { position: relative; }
.show__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.show__media img + img {
  position: absolute; width: 52%; aspect-ratio: 1; left: -18%; bottom: -10%;
  border: 6px solid var(--bg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.show__features { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.show__features li { display: flex; gap: 14px; align-items: baseline; color: var(--text); }
.show__features li::before { content: "◆"; color: var(--gold); font-size: .6rem; transform: translateY(-2px); }
@media (max-width: 860px) {
  .show__grid { grid-template-columns: 1fr; }
  .show__media { margin: 0 0 40px 14%; }
  .show__media img + img { left: -26%; }
}

/* ---------- Video ---------- */
.film { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); text-align: center; }
.film .h2 { margin-bottom: 18px; }
.film .lead { margin: 0 auto 56px; }
.film__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: 0 0 0 1px var(--line), 0 50px 120px -40px rgba(143, 107, 255, .45);
}
.film__frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.film__play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: rgba(6,7,26,.25); color: var(--text); transition: background .3s;
}
.film__play:hover { background: rgba(6,7,26,.1); }
.film__play span {
  width: clamp(72px, 10vw, 104px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(243, 211, 156, .7); background: rgba(6,7,26,.35); backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), background .3s;
}
.film__play:hover span { transform: scale(1.08); background: rgba(214,166,94,.25); }
.film__play svg { width: 28%; margin-left: 6%; fill: var(--gold-light); }
.film__frame.is-playing .film__play { display: none; }
.film__frame.is-missing::after {
  content: attr(data-missing); position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(6,7,26,.7); color: var(--muted); font-size: .9rem; letter-spacing: .08em;
}

/* ---------- Einsatzbereiche ---------- */
.uses__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 60px; margin-bottom: 56px; }
.uses__head .lead { max-width: 44ch; margin: 0; }
.uses__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.use {
  position: relative; aspect-ratio: 3 / 4.2; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
}
.use img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.use::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(6,7,26,.92)); }
.use:hover img { transform: scale(1.06); }
.use__num { font: italic 500 1rem/1 var(--serif); color: var(--gold); margin-bottom: 10px; }
.use h3 { font-size: 1.85rem; margin-bottom: 8px; }
.use p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .uses__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uses__grid { grid-template-columns: 1fr; } .use { aspect-ratio: 4 / 3.6; } }

/* ---------- Galerie ---------- */
.gallery__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 15vw, 210px); gap: 12px;
  margin-top: 56px;
}
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); padding: 0; border: 0; cursor: zoom-in; background: var(--surface); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: span 5; }
.gallery__item:nth-child(3) { grid-column: span 5; }
.gallery__item:nth-child(4) { grid-column: span 4; grid-row: span 2; }
.gallery__item:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 4; grid-row: span 2; }
.gallery__item:nth-child(7) { grid-column: span 6; grid-row: span 2; }
.gallery__item:nth-child(8) { grid-column: span 6; grid-row: span 2; }
@media (max-width: 700px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 8px; }
  .gallery__item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery__item:nth-child(1), .gallery__item:nth-child(6) { grid-column: span 2; grid-row: span 1; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(3, 3, 12, .95); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; border-radius: var(--radius); box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--text); cursor: pointer;
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; transition: background .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.08); }
.lightbox svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: .75rem; letter-spacing: .25em; color: var(--muted); }
@media (max-width: 700px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; } }

/* ---------- Kontakt ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.contact__bg { position: absolute; inset: 0; z-index: -2; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(6,7,26,.55), var(--bg) 75%); }
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.contact .h2 { margin: 0 auto 24px; max-width: 16ch; }
.contact .lead { margin: 0 auto 44px; }
.contact__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 40px; }
.contact__mail { font: italic 500 clamp(1.3rem, 2.6vw, 1.75rem)/1.3 var(--serif); color: var(--gold-light); text-decoration: none; border-bottom: 1px solid var(--line); word-break: break-all; }
.contact__mail:hover { border-color: var(--gold-light); }
.contact__checklist { list-style: none; padding: 0; margin: 0 auto 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.contact__checklist li { font-size: .8125rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .875rem; color: var(--muted); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.footer__logo img { width: 110px; }
.footer__links, .social { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--gold-light); }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .75rem; opacity: .7; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 150px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 40px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.legal h2 { font-size: 1.75rem; margin: 48px 0 14px; color: var(--gold-light); }
.legal p, .legal li { color: var(--muted); }
.legal address { font-style: normal; color: var(--text); margin-bottom: 1.1em; }
.legal a { color: var(--gold-light); }

/* ---------- Scroll-Einblendungen ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
.no-js .reveal { opacity: 1; transform: none; }

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