/* ============================================================
   ESCAPE66 V3 — Cinematic-Immersiv
   Design-Tokens & Basis-Styles
   ============================================================ */

:root {
  --cinema-black: #050507;
  --cinema-night: #0d0d12;
  --cinema-panel: #16161e;
  --gold: #c8a24b;
  --gold-bright: #e3c878;
  --blood: #9e1b1b;
  --text: #f2efe9;
  --muted: #9b97a3;

  /* Duotone-Farben pro Raum */
  --tone-rebecca: #3b2a52;
  --tone-taverne: #5a3a1a;
  --tone-august: #1f3a4d;
  --tone-seele: #26402e;
  --tone-nexus: #0e3a3f;
  --tone-kernschmelze: #173a26;

  /* CI-Schrift True Lies NUR für umlautfreie Headlines (hat keine ÄÖÜäöüß€).
     Oswald = lesbarer Kino-Ersatz für Headlines mit Umlauten/€ und für Preise. */
  --font-tl: 'True Lies', 'Oswald', sans-serif;
  --font-clean: 'Oswald', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

/* True Lies — Corporate-Identity-Font (hat keine Umlaut-Glyphen, daher nur umlautfrei einsetzen) */
@font-face {
  font-family: 'True Lies';
  src: url('../fonts/true-lies.woff2') format('woff2'),
       url('../fonts/true-lies.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Oswald — selbst gehostet (vormals Google Fonts), latin-Subset inkl. ÄÖÜäöüß */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/oswald-500.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/oswald-600.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/oswald-700.woff2') format('woff2'); }

/* Source Sans 3 — selbst gehostet (vormals Google Fonts), latin-Subset */
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/source-sans-3-300.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/source-sans-3-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/source-sans-3-600.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/source-sans-3-700.woff2') format('woff2'); }

/* True Lies — nur auf Headlines OHNE Umlaute/€ */
.font-display, .font-tl {
  font-family: var(--font-tl);
  font-weight: 400;
  letter-spacing: 0.03em;
}
/* Lesbare Kino-Schrift — für Headlines mit Umlauten/ß/€ und für Preise */
.font-clean {
  font-family: var(--font-clean);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.font-body { font-family: var(--font-body); }

body {
  background: var(--cinema-black);
  color: var(--text);
  font-family: var(--font-body);
}

html { scroll-behavior: smooth; }

/* ============================================================
   Rechtstexte (Impressum / Datenschutz) — selbst gehostet, lesbar auf dunklem Grund
   ============================================================ */
.legal-content { color: var(--muted, #9b97a3); line-height: 1.7; }
.legal-content h1 { font-family: var(--font-clean); text-transform: uppercase; letter-spacing: .04em; color: var(--gold, #c8a24b); font-size: 1.55rem; margin: 2.4rem 0 .8rem; }
.legal-content h2 { color: var(--gold, #c8a24b); font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.legal-content h3 { color: var(--cream, #f2efe9); font-size: 1.05rem; margin: 1.2rem 0 .3rem; }
.legal-content p, .legal-content li { color: var(--muted, #9b97a3); margin: .55rem 0; }
.legal-content a { color: var(--gold, #c8a24b); text-decoration: underline; }
.legal-content ul { padding-left: 1.3rem; list-style: disc; margin: .4rem 0; }
.legal-content strong { color: var(--cream, #f2efe9); }
.legal-content hr { border: none; border-top: 1px solid rgba(200,162,75,.2); margin: 2.2rem 0; }
.legal-content .stand { font-size: .85rem; opacity: .7; margin-top: 2.5rem; }

/* ============================================================
   Filmkorn-Overlay — liegt über allem, sehr dezent
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ============================================================
   Letterbox-Reveal beim Laden (einmalig, nur Startseite)
   ============================================================ */
.letterbox::before,
.letterbox::after {
  content: '';
  position: fixed;
  left: 0; right: 0;
  height: 0;
  background: #000;
  z-index: 90;
  pointer-events: none;
  animation: letterbox-open 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.letterbox::before { top: 0; }
.letterbox::after { bottom: 0; }
@keyframes letterbox-open {
  0%   { height: 18vh; }
  35%  { height: 18vh; }
  100% { height: 0; }
}

/* ============================================================
   Hero: Ken-Burns-Zoom (nur Desktop) + Vignette
   ============================================================ */
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
/* Hero-Hintergrundvideo */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .kenburns { animation: kenburns 24s ease-out forwards; }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to top, var(--cinema-black) 0%, rgba(5,5,7,0.35) 30%, rgba(5,5,7,0.25) 70%, rgba(5,5,7,0.7) 100%);
}

/* ============================================================
   Navigations-Pillen — Gold-Verlauf + Glow beim Hover
   (adaptiert vom GradientMenu-Konzept, in CI-Gold)
   ============================================================ */
.nav-pill {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  box-shadow: inset 0 0 0 1px transparent;
  transition: color 0.4s ease, background 0.4s ease, box-shadow 0.45s ease;
  white-space: nowrap;
}
.nav-pill:hover {
  color: #0a0805;
  background: linear-gradient(45deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 20px rgba(200,162,75,0.5);
}
/* Aktiver Punkt: dezenter Gold-Rand, keine Vollfüllung */
.nav-pill.is-active {
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(200,162,75,0.5);
}
.nav-pill.is-active:hover {
  color: #0a0805;
  background: linear-gradient(45deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 20px rgba(200,162,75,0.5);
}

/* Billing-Block: kleine Versalien-Zeile über dem Titel */
.billing {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.75rem;
  color: var(--gold);
}

/* Metazeile im Filmplakat-Stil */
.meta-line {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--muted);
}
.meta-line .dot { color: var(--gold); margin: 0 0.5em; }

/* Goldene Trennlinie */
.gold-rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto;
}
.gold-rule-left {
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}

/* ============================================================
   Filmplakat-Cards (2:3)
   ============================================================ */
.poster-card {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0.25rem;
  border: 1px solid rgba(200,162,75,0.15);
  background: var(--cinema-panel);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s, box-shadow 0.45s;
}
.poster-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(200,162,75,0.55);
  box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 32px rgba(200,162,75,0.12);
}
.poster-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.poster-card:hover img { transform: scale(1.06); }
.poster-card .poster-tone {
  position: absolute;
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.85;
}
.poster-card .poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.15) 100%);
}
.age-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(5,5,7,0.8);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* „Demnächst"-Schrägband */
.soon-ribbon {
  position: absolute;
  top: 1.6rem;
  left: -3.2rem;
  transform: rotate(-38deg);
  background: var(--blood);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.4rem 3.5rem;
  z-index: 5;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #0a0805;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn-gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 28px rgba(200,162,75,0.35);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  border: 1px solid rgba(242,239,233,0.3);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ============================================================
   Versteckte Easter-Egg-Symbole — Hover/Tap enthüllt
   ============================================================ */
.hidden-symbol {
  cursor: pointer;
  color: rgba(200,162,75,0.75);
  border-bottom: 1px dotted rgba(200,162,75,0.3);
  transition: color 0.3s, border-color 0.3s;
  display: inline;
  -webkit-tap-highlight-color: transparent;
}
.hidden-symbol:hover,
.hidden-symbol.tapped {
  color: var(--gold);
  border-bottom-color: rgba(200,162,75,0.6);
}
.hidden-symbol .symbol-reveal {
  display: inline;
  opacity: 0;
  font-size: 0.9em;
  margin-left: 0.15em;
  transition: opacity 0.6s ease;
  filter: drop-shadow(0 0 4px rgba(200,162,75,0.5));
}
.hidden-symbol:hover .symbol-reveal,
.hidden-symbol.tapped .symbol-reveal {
  opacity: 1;
}

/* ============================================================
   Scroll-Animation
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Preistabellen
   ============================================================ */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(200,162,75,0.3);
}
.price-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}
.price-table td.price { color: var(--gold); font-weight: 700; }
.price-table tr:hover td { background: rgba(200,162,75,0.04); }

/* ============================================================
   Bookeo-Container
   ============================================================ */
.bookeo-container {
  background: var(--cinema-panel);
  border-radius: 0.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(200,162,75,0.15);
}

/* ============================================================
   Emma Chat-Widget
   ============================================================ */
#emma-chat-widget {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 50;
}
#emma-chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0805;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,162,75,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
#emma-chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(200,162,75,0.5);
}
#emma-chat-bubble svg { color: #0a0805; }
#emma-chat-window {
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 500px;
  max-height: calc(100vh - 10rem);
  background: var(--cinema-panel);
  border: 1px solid rgba(200,162,75,0.25);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
#emma-chat-header {
  background: var(--gold);
  color: #0a0805;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#emma-chat-header .emma-name { font-weight: 700; font-size: 0.875rem; }
#emma-chat-header .emma-sub { opacity: 0.7; font-size: 0.75rem; }
#emma-chat-header .emma-avatar {
  width: 2rem; height: 2rem;
  background: rgba(5,5,7,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700;
}
#emma-chat-close { color: rgba(5,5,7,0.6); background: none; border: none; cursor: pointer; }
#emma-chat-close:hover { color: #0a0805; }
#emma-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
#emma-chat-messages .msg-bot {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem 0.75rem 0.75rem 0.2rem;
  max-width: 85%;
  font-size: 0.875rem;
  line-height: 1.5;
}
#emma-chat-messages .msg-bot strong { color: var(--gold); font-weight: 700; }
#emma-chat-messages .msg-bot a { color: var(--gold); text-decoration: underline; }
#emma-chat-messages .msg-bot a:hover { color: var(--gold-bright); }
#emma-chat-messages .msg-user {
  background: var(--gold);
  color: #0a0805;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem 0.75rem 0.2rem 0.75rem;
  max-width: 85%;
  align-self: flex-end;
  font-size: 0.875rem;
  line-height: 1.5;
}
#emma-chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 0.5rem;
}
#emma-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
}
#emma-chat-input:focus { border-color: var(--gold); }
#emma-chat-send {
  background: var(--gold);
  color: #0a0805;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
}
#emma-chat-send:hover { background: var(--gold-bright); }

/* ============================================================
   Cookie-Banner
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--cinema-panel);
  border-top: 1px solid rgba(200,162,75,0.25);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
#cookie-banner a { color: var(--gold); }
#cookie-banner a:hover { text-decoration: underline; }
#cookie-banner button { cursor: pointer; }
#cookie-decline {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  background: none;
  color: var(--muted);
  transition: color 0.2s;
}
#cookie-decline:hover { color: var(--text); }
#cookie-accept {
  padding: 0.5rem 1.25rem;
  background: var(--gold);
  border: none;
  border-radius: 2px;
  color: #0a0805;
  font-weight: 700;
  transition: background 0.2s;
}
#cookie-accept:hover { background: var(--gold-bright); }

/* ============================================================
   Utilities
   ============================================================ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Reduced Motion — alles aus
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
  .letterbox::before, .letterbox::after { display: none; }
}
