/* Starja – Eventlocation in Bremen */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1b1031;
  --bg-2: #2a1544;
  --plum: #551c5e;
  --surface: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .12);
  --text: #ffffff;
  --muted: #cfc4dc;
  --accent: #ff746d;
  --accent-2: #fb326b;
  --gradient: linear-gradient(90deg, #fb326b 5.74%, #ff746d 100%);
  --radius: 16px;
  --header-h: 72px;
  --container: 1180px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0, var(--bg) 640px, var(--plum) 40%, var(--plum) 62%, var(--bg) 100%);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 500; }
h2 { font-size: clamp(32px, 5vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 32px); }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(251, 50, 107, .7); }
.btn-primary:hover { color: var(--bg); box-shadow: 0 14px 34px -10px rgba(251, 50, 107, .9); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-small { padding: 9px 18px; font-size: 15px; }

/* ----------------------------------------------------------------- Header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled, body.view-rechtliches .site-header {
  background: rgba(27, 16, 49, .88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 112px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav ul a { color: #fff; text-decoration: none; font-weight: 500; position: relative; padding: 6px 0; }
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; z-index: 60;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; right: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 36px;
    background: rgba(27, 16, 49, .97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .main-nav ul a { font-size: 26px; }
  body.nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------------- Hero */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  animation: hero-zoom 18s ease-out both;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(27, 16, 49, .75) 0%, rgba(27, 16, 49, .15) 35%, rgba(27, 16, 49, .55) 70%, var(--bg) 100%);
}
.hero-content { padding: calc(var(--header-h) + 40px) 0 clamp(56px, 10vh, 110px); text-align: center; }
.hero-logo { width: clamp(180px, 30vw, 300px); margin: 0 auto 24px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); }
.hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 600; margin-bottom: 12px; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero-sub { color: #f2ecf8; font-size: clamp(16px, 2vw, 19px); margin-bottom: 28px; }
.hero-sub a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* --------------------------------------------------------------- Sections */

.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(520px, 70%); height: 1px;
  transform: translateX(-50%); background: var(--gradient); opacity: .7;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 18px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-text p { color: var(--muted); }
.split-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.facts {
  list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.facts li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
}
.facts strong {
  display: block; font-size: clamp(36px, 5vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.facts span { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- Galerie */

.gallery { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery a {
  display: block; position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.gallery a::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(27, 16, 49, .6));
  opacity: 0; transition: opacity .3s ease;
}
.gallery img { width: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }

/* ------------------------------------------------------------------ Cards */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 116, 109, .5); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 26px 26px 30px; }
.card-body p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------------------------------------------------------------- Kontakt */

.contact-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, rgba(251, 50, 107, .16), rgba(255, 116, 109, .06));
  border: 1px solid rgba(255, 116, 109, .3); border-radius: 24px; padding: clamp(32px, 5vw, 56px);
}
.contact-inner p { color: var(--muted); }
.contact-inner .hero-actions { justify-content: flex-start; margin-top: 8px; }
.contact-list { margin: 0; display: grid; gap: 20px; }
.contact-list dt { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.contact-list dd { margin: 4px 0 0; font-size: 19px; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }

/* ----------------------------------------------------------------- Footer */

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-brand {
  font-weight: 600; letter-spacing: .12em; color: #fff; text-decoration: none; position: relative; padding-bottom: 4px;
}
.footer-brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gradient); }
.site-footer a:not(.footer-brand) { color: #fff; }

/* ------------------------------------------------------------ Rechtliches */

.legal { padding: calc(var(--header-h) + 48px) 0 96px; }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 32px; }
.legal h2 { font-size: clamp(26px, 3.5vw, 34px); margin-top: 48px; }
.legal h3 { font-size: 21px; margin-top: 32px; font-weight: 600; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.back-link { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 600; }

/* --------------------------------------------------------------- Lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(10, 6, 20, .94); backdrop-filter: blur(6px);
  animation: fade-in .2s ease;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(92vw, 1400px); max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: 80vh; width: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-caption { color: var(--muted); font-size: 15px; margin-top: 12px; text-align: center; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background-color .2s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------- Scroll-Effekte */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------- Responsive */

@media (max-width: 900px) {
  .split, .contact-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 20px; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery li { margin-bottom: 10px; }
  .hero-actions .btn { width: 100%; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

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