/* ==========================================================================
   SuperNova-HN  |  Stylesheet
   Farben, Schrift und Grundlayout orientieren sich an der bisherigen Seite
   (Webstudio): tiefes Nachtblau, Türkis als Aktionsfarbe, DM Sans.
   ========================================================================== */

/* Schrift lokal eingebunden (kein Google-Fonts-Abruf, DSGVO-freundlich) */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #1e293b;        /* Seitenhintergrund (wie bisher) */
  --night-deep: #0f172a;   /* dunklere Bänder, Footer */
  --steel: #3f6f8f;        /* Terminbox (wie bisher) */
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --teal: #5eead4;         /* Buttons und Akzente (wie bisher) */
  --teal-hover: #99f6e4;
  --line: rgba(148, 163, 184, 0.22);

  --radius-img: 14px;
  --radius-card: 18px;
  --radius-btn: 10px;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --topbar-h: 4.25rem;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

[id] { scroll-margin-top: calc(var(--topbar-h) + 1rem); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--teal);
  color: var(--night-deep);
  font-weight: 700;
  border-radius: var(--radius-btn);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.nobr { white-space: nowrap; }

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

/* ---------- Buttons & Links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-btn);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--teal); color: var(--night-deep); }
.btn--primary:hover { background: var(--teal-hover); }

.btn--small { padding: 0.55rem 1rem; font-size: 0.9375rem; }

.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.textlink:hover { color: var(--teal-hover); }
.textlink svg { width: 1.1rem; height: 1.1rem; flex: none; }

/* ---------- Kopfleiste ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.topbar.is-scrolled {
  background: rgba(15, 23, 42, 0.84);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: var(--topbar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* kleine leuchtende Nova als Wortmarke */
.brand__mark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: radial-gradient(circle, #8fb3cf 0%, #2b4a66 72%);
  box-shadow:
    0 0 6px 1px rgba(255, 255, 255, 0.5),
    0 0 16px 4px rgba(232, 85, 62, 0.45);
}

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  color: var(--text-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav { display: none; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 60rem);
  padding: calc(var(--topbar-h) + 3rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 72%;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}
/* Bild läuft nach links und unten weich ins Nachtblau aus */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(30, 41, 59, 0.55) 20%, rgba(30, 41, 59, 0) 42%),
    linear-gradient(0deg, var(--night) 0%, rgba(30, 41, 59, 0) 32%);
}
/* dezente Abdunkelung oben, damit die Kopfleiste lesbar bleibt */
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10rem;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0) 100%);
  pointer-events: none;
}

.hero__content { max-width: 36rem; }

.hero__title {
  font-size: clamp(2.75rem, 1.2rem + 6.6vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-shadow: 0 2px 40px rgba(15, 23, 42, 0.65);
}

.hero__lead {
  margin-top: 1.4rem;
  max-width: 31rem;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

/* Terminbox */
.event {
  margin-top: 2.25rem;
  max-width: 32rem;
  padding: 1.5rem 1.5rem 1.65rem;
  background: rgba(63, 111, 143, 0.42);
  border: 1px solid rgba(148, 197, 230, 0.26);
  border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.event__kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--teal);
  font-size: 0.9375rem;
  font-weight: 600;
}
.event__kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
}

.event__title {
  margin-top: 0.55rem;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.event__teaser {
  margin-top: 0.6rem;
  color: var(--text-soft);
  font-size: 1rem;
}

.event__facts {
  display: grid;
  gap: 0.4rem;
  margin: 1.15rem 0 1.4rem;
  font-size: 0.9375rem;
}
.event__facts div {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 0.75rem;
}
.event__facts dt { color: var(--muted); }
.event__facts dd { margin: 0; }

/* Termin-Umschaltung: nach Ablauf des Termins blendet script.js um */
[data-when="past"] { display: none; }
.event-past [data-when="upcoming"] { display: none; }
.event-past [data-when="past"] { display: block; }

@media (max-width: 1100px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 3.5rem;
  }
  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 4 / 3.4;
    max-height: 70svh;
  }
  .hero__media::after {
    background:
      linear-gradient(0deg, var(--night) 0%, rgba(30, 41, 59, 0) 55%),
      linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0) 25%);
  }
  .hero::after { display: none; }
  .hero .container {
    position: relative;
    margin-top: clamp(-6rem, -14vw, -3rem);
  }
  .event { max-width: none; }
}

@media (max-width: 420px) {
  .event { padding: 1.25rem 1.15rem 1.4rem; }
  .event__facts div { grid-template-columns: 1fr; gap: 0; }
  .event .btn { width: 100%; justify-content: center; }
}

/* Ein einziger, ruhiger Auftritt beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: nova-bloom 2.4s cubic-bezier(0.16, 0.84, 0.3, 1) both; }
  .hero__content > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__content > :nth-child(1) { animation-delay: 0.25s; }
  .hero__content > :nth-child(2) { animation-delay: 0.4s; }
  .hero__content > :nth-child(3) { animation-delay: 0.55s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@keyframes nova-bloom {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Abschnitte allgemein ---------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section--deep { background: var(--night-deep); }

.section__head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section__intro {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

/* ---------- Ablauf: Erleben, Expertise, Erweitern ---------- */

.steps {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.step:nth-child(even) .step__media { order: 2; }

.step__media img,
.step__media > a {
  border-radius: var(--radius-img);
}
.step__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65);
}
.step__media > a { display: block; }
.step__media > a img { transition: filter 0.25s ease; }
.step__media > a:hover img { filter: brightness(1.08); }

.step__when {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--teal);
  font-size: 0.9375rem;
  font-weight: 600;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid rgba(94, 234, 212, 0.55);
  border-radius: 50%;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.step__title { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }

.step__text {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
}
.step__body .textlink { margin-top: 1.25rem; }

@media (max-width: 820px) {
  .step { grid-template-columns: 1fr; gap: 1.75rem; }
  .step:nth-child(even) .step__media { order: 0; }
}

/* ---------- Stimmen ---------- */

.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}

.voice {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}
.voice::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--teal);
}

@media (max-width: 820px) {
  .voices__grid { grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 5rem);
}

.person__portrait {
  width: clamp(10rem, 18vw, 13rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  /* feiner Ring als Echo der Supernova */
  box-shadow:
    0 0 0 6px var(--night),
    0 0 0 7px rgba(226, 232, 240, 0.35),
    0 0 40px 6px rgba(94, 234, 212, 0.12);
  margin-bottom: 1.75rem;
}

.person__name { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); }
.person__role {
  margin-top: 0.35rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9375rem;
}
.person__bio {
  max-width: 30rem;
  margin-top: 0.9rem;
  color: var(--text-soft);
}
.person .textlink { margin-top: 1.1rem; }

@media (max-width: 760px) {
  .team__grid { grid-template-columns: 1fr; }
}

/* ---------- Fragen ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.faq-layout .section__head { margin-bottom: 0; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-hover); }
.faq summary svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--teal);
  transition: transform 0.25s ease;
}
.faq details[open] summary svg { transform: rotate(180deg); }

.faq__answer {
  max-width: 42rem;
  padding-bottom: 1.6rem;
  color: var(--text-soft);
}
.faq__answer a { color: var(--teal); text-underline-offset: 0.2em; }

@media (max-width: 820px) {
  .faq-layout { grid-template-columns: 1fr; }
}

/* ---------- Buchungs-Band ---------- */

.booking {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 11vw, 8.5rem);
  background: var(--night-deep);
}

.booking__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 68%;
  z-index: -1;
}
.booking__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.booking__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--night-deep) 0%, rgba(15, 23, 42, 0.5) 24%, rgba(15, 23, 42, 0) 50%),
    linear-gradient(180deg, var(--night-deep) 0%, rgba(15, 23, 42, 0) 22%, rgba(15, 23, 42, 0) 78%, var(--night-deep) 100%);
}

.booking__content { max-width: 30rem; }
.booking__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.booking__text {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}
.booking .btn { margin-top: 2rem; }
.booking__note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .booking { padding-top: 0; }
  .booking__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .booking__media::after {
    background:
      linear-gradient(0deg, var(--night-deep) 0%, rgba(15, 23, 42, 0) 50%),
      linear-gradient(180deg, var(--night-deep) 0%, rgba(15, 23, 42, 0) 30%);
  }
  .booking .container { margin-top: -2.5rem; position: relative; }
}

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

.footer {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
  background: var(--night-deep);
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer__heading {
  margin-bottom: 0.9rem;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0;
}

.footer p + p { margin-top: 0.75rem; }
.footer address { font-style: normal; }

.footer a {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.45);
  text-underline-offset: 0.2em;
}
.footer a:hover { color: var(--text); text-decoration-color: currentColor; }

.footer__links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .brand {
  margin-bottom: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.footer__base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Rechtstexte (Datenschutz) ---------- */

.legal {
  max-width: 46rem;
  padding-top: calc(var(--topbar-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(4rem, 9vw, 6rem);
}
.legal h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal ul { color: var(--text-soft); }
.legal p + p { margin-top: 0.9rem; }
.legal ul { padding-left: 1.2rem; margin: 0.75rem 0 0; }
.legal a { color: var(--teal); text-underline-offset: 0.2em; }
.legal address { font-style: normal; color: var(--text-soft); }
