/* ==========================================================================
   KI Museum — Escape Room für NGOs
   Design tokens & styles. Mobile-first, siehe README für Herkunft der Werte.
   ========================================================================== */

:root {
  /* Farben */
  --bg: #0a0a0b;
  --bg-soft: rgba(255, 255, 255, 0.02);
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.12);
  --fg: #f2f0ee;
  --fg-2: #e3e0dd;
  --fg-3: #c9c5c1;
  --fg-4: #b9b5b1;
  --fg-5: #7f7b78;
  --mint: #4dffb8;
  --pink: #ff8fbb;

  /* Typografie */
  --font-display: "Archivo", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --container-width: 1240px;
  --container-pad: 28px;
}

/* ---- Reset & Grundlagen ---------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

a {
  color: var(--mint);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--pink);
}

::selection {
  background: var(--mint);
  color: var(--bg);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

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

/* ---- Gemeinsame Textklassen -------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
  flex-shrink: 0;
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

.label--muted {
  color: var(--fg-5);
}

.heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--fg);
  text-wrap: balance;
}

.heading--hero {
  font-variation-settings: "wdth" 68, "wght" 800;
  font-weight: 800;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.01em;
}

.heading--story {
  font-variation-settings: "wdth" 72, "wght" 800;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 0.95;
}

.heading--ort {
  font-variation-settings: "wdth" 72, "wght" 800;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.heading--md {
  font-variation-settings: "wdth" 72, "wght" 800;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.heading--buchen {
  font-variation-settings: "wdth" 68, "wght" 800;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.92;
}

.wordmark {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 70, "wght" 800;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg);
}

.wordmark:hover {
  color: var(--fg);
}

.lead {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--fg-4);
  text-wrap: pretty;
}

.body-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-4);
  text-wrap: pretty;
}

.body-text--lg {
  font-size: 18px;
}

.body-text--sm {
  font-size: 16px;
}

.body-text--muted {
  color: var(--fg-3);
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-5);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-primary {
  font-size: 16px;
  font-weight: 700;
  color: var(--bg);
  background: var(--mint);
  border: 1px solid var(--mint);
  padding: 16px 30px;
}

.btn-primary:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--bg);
}

.btn-secondary {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 30px;
}

.btn-secondary:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.btn-small {
  padding: 12px 24px;
  font-size: 15px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 10, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px var(--container-pad);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav .wordmark {
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-pill {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-3);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.nav-pill:hover {
  color: var(--bg);
  background: var(--mint);
  border-color: var(--mint);
}

.nav-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--fg);
}

.nav-cta:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--bg);
}

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

.hero {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 96px var(--container-pad) 120px;
  overflow: visible;
}

.hero-decor {
  position: absolute;
  pointer-events: none;
}

.hero-decor--gradient {
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  max-width: 150%;
  height: 900px;
  object-fit: cover;
  filter: blur(70px) saturate(1.15);
  opacity: 0.28;
  z-index: 0;
}

.hero-decor--green {
  top: 40px;
  right: -90px;
  width: 520px;
  opacity: 0.9;
  filter: drop-shadow(0 0 90px rgba(77, 255, 184, 0.45));
  animation: floaty 14s ease-in-out infinite;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

/* ---- Faktenband ------------------------------------------------------------ */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.facts-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.fact {
  padding: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact-value {
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
}

/* ---- Story ------------------------------------------------------------------ */

.story {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 120px var(--container-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 72px;
  align-items: center;
}

.story-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.story-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-image img {
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 920 / 1141;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

/* ---- Ort ---------------------------------------------------------------------- */

.ort {
  border-top: 1px solid var(--line);
}

.ort-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 96px var(--container-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}

.ort-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.arrival-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-4);
}

.arrival-row {
  display: flex;
  gap: 14px;
}

.arrival-row--divider {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.arrival-marker {
  color: var(--pink);
  font-family: var(--font-mono);
  font-size: 14px;
  min-width: 28px;
  flex-shrink: 0;
}

/* ---- Sicherheit ------------------------------------------------------------------ */

.sicherheit {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.sicherheit-inner {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 96px var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.sicherheit-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

/* ---- Für NGOs ------------------------------------------------------------------ */

.ngos {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.ngos-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 96px var(--container-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
}

.ngos-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}

.ngos-list {
  display: flex;
  flex-direction: column;
}

.ngos-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-2);
}

.ngos-item:last-child {
  border-bottom: none;
}

.ngos-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--pink);
  min-width: 28px;
  flex-shrink: 0;
}

/* ---- Buchen ------------------------------------------------------------------------ */

.buchen {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.buchen-decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(80px) saturate(1.2);
  opacity: 0.22;
  pointer-events: none;
}

.buchen-grid {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 110px var(--container-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: start;
}

.buchen-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
}

.booking-panel {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.booking-panel-header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-5);
}

.booking-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 28px;
  text-align: center;
}

.booking-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 50px rgba(77, 255, 184, 0.55);
}

.booking-panel-body .title {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
}

.booking-panel-body .note {
  max-width: 340px;
}

.booking-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  flex: 1;
  min-height: 560px;
}

.booking-iframe[hidden] {
  display: none;
}

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

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 44px var(--container-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .wordmark {
  font-size: 18px;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--fg-5);
}

.footer-links a {
  color: var(--fg-4);
}

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

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px var(--container-pad) 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal h2 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 72, "wght" 800;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  color: var(--fg);
}

.legal section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-4);
}

.legal ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- Animationen ------------------------------------------------------------------------ */

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -28px, 0) rotate(4deg);
  }
}

@keyframes floaty2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, 26px, 0) rotate(-5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Responsive: Deko unter ~720px verkleinern, damit nichts überläuft ------------------- */

@media (max-width: 720px) {
  .hero-decor--gradient {
    width: 900px;
    height: 600px;
    top: -80px;
  }

  .hero-decor--green {
    width: 260px;
    top: 10px;
    right: -60px;
  }
}
