/* ============================================================
   EMBER & OAK — Holzfeuer-Steakhouse, Bochum
   Nahschwarz · warmes Creme · Glut-Orange · Filmkorn
   ============================================================ */

:root {
  --bg: #0c0908;
  --bg-lift: #120e0b;
  --cream: #f0e7d8;
  --cream-dim: rgba(240, 231, 216, 0.58);
  --cream-faint: rgba(240, 231, 216, 0.32);
  --hairline: rgba(240, 231, 216, 0.14);
  --ember: #ff6b2c;
  --ember-deep: #c94f1d;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ember-deep); color: var(--cream); }

/* ---------- Filmkorn ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grain-jitter 0.9s steps(6) infinite;
}

@keyframes grain-jitter {
  0%   { background-position: 0 0; }
  20%  { background-position: -34px 22px; }
  40%  { background-position: 18px -40px; }
  60%  { background-position: -26px -14px; }
  80%  { background-position: 38px 16px; }
  100% { background-position: 0 0; }
}

/* ---------- Typografie-Grundlagen ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 300; }

h2 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

h2 em, .hero-sub em {
  font-style: italic;
  color: var(--ember);
}

.amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ember);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.6rem;
}

.body-copy {
  max-width: 34em;
  color: var(--cream-dim);
  font-size: 1.02rem;
  margin-top: 1.8rem;
}

.text-link {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 2px;
  transition: color 0.3s;
}
.text-link:hover { color: var(--ember); }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.4rem, 4vw, 3.4rem);
  mix-blend-mode: normal;
  background: linear-gradient(rgba(12, 9, 8, 0.55), transparent);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  color: var(--cream);
  text-decoration: none;
}

.header-cta {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--hairline);
  padding: 0.75em 1.7em;
  transition: border-color 0.35s, color 0.35s, background 0.35s;
}
.header-cta:hover {
  border-color: var(--ember);
  color: var(--bg);
  background: var(--ember);
}

/* ---------- Hero — Scroll-Scrub ---------- */

.hero { height: 420vh; position: relative; }

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  /* Standbild als Fallback: sichtbar bis das Video geladen ist und wenn es fehlt */
  background: var(--bg) url("../assets/hero-poster.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video konnte nicht geladen werden — leeres Element ausblenden, Standbild bleibt */
.hero.video-missing .hero-video { display: none; }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(12, 9, 8, 0.55) 100%),
    linear-gradient(rgba(12, 9, 8, 0.35), transparent 35%, transparent 60%, var(--bg) 98%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: clamp(2.6rem, 9.5vw, 8.2rem);
  line-height: 1;
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* Tracking optisch zentrieren */
  opacity: 0;
  animation: track-in 2.6s var(--ease-out) 0.4s forwards;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

@keyframes track-in {
  from { letter-spacing: 0.55em; text-indent: 0.55em; opacity: 0; }
  to   { letter-spacing: 0.16em; text-indent: 0.16em; opacity: 1; }
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  color: var(--cream-dim);
  letter-spacing: 0.08em;
  margin-top: 1.6rem;
  opacity: 0;
  animation: fade-up 1.6s var(--ease-out) 1.7s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scrollhint {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream-faint);
  opacity: 0;
  animation: fade-up 1.4s var(--ease-out) 2.6s forwards;
}

.hero-scrollhint .line {
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--cream-faint), transparent);
  animation: line-pulse 2.4s ease-in-out infinite;
}

@keyframes line-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(0.55); opacity: 0.4; transform-origin: top; }
}

/* ---------- Szenen (Clip 2 & 3, Parallaxe) ---------- */

.scene {
  position: relative;
  min-height: 108vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.scene-media {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}

.scene-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.scene-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 9, 8, 0.82) 0%, rgba(12, 9, 8, 0.45) 55%, rgba(12, 9, 8, 0.2) 100%),
    linear-gradient(var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%);
}

.scene-copy {
  position: relative;
  z-index: 2;
  padding: 22vh clamp(1.5rem, 8vw, 8rem);
  max-width: 820px;
}

.scene-salon .scene-copy { margin-left: auto; text-align: right; }
.scene-salon .scene-shade {
  background:
    linear-gradient(260deg, rgba(12, 9, 8, 0.82) 0%, rgba(12, 9, 8, 0.45) 55%, rgba(12, 9, 8, 0.2) 100%),
    linear-gradient(var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%);
}
.scene-salon .body-copy { margin-left: auto; }
.scene-salon .text-link { display: inline-block; margin-top: 1.6rem; }

/* ---------- Die Karte ---------- */

.menu {
  position: relative;
  background: var(--bg);
  padding: clamp(7rem, 14vh, 11rem) clamp(1.5rem, 6vw, 5rem);
}

.menu-inner { max-width: 1060px; margin: 0 auto; }

.menu-head { text-align: center; margin-bottom: clamp(3.5rem, 8vh, 6rem); }

.menu-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6.5rem);
}

.menu-col-title {
  font-size: 1.9rem;
  font-style: italic;
  color: var(--ember);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1.1rem;
  margin-bottom: 2.2rem;
}

.dishes { list-style: none; }

.dish { padding: 1.25rem 0; }
.dish + .dish { border-top: 1px solid rgba(240, 231, 216, 0.07); }

.dish-line {
  display: flex;
  align-items: baseline;
  gap: 0.9em;
}

.dish-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.leader {
  flex: 1;
  border-bottom: 1px dotted var(--cream-faint);
  transform: translateY(-4px);
}

.dish-price {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ember);
}

.dish-note {
  font-size: 0.82rem;
  color: var(--cream-faint);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}

.menu-foot {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream-dim);
  margin-top: clamp(3.5rem, 8vh, 6rem);
}

/* ---------- Reservieren ---------- */

.reserve {
  background: var(--bg-lift);
  border-top: 1px solid rgba(240, 231, 216, 0.06);
  padding: clamp(7rem, 14vh, 11rem) clamp(1.5rem, 6vw, 5rem);
}

.reserve-inner { max-width: 1120px; margin: 0 auto; }

.reserve-head { text-align: center; margin-bottom: clamp(3.5rem, 8vh, 5.5rem); }

.reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.info-title {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1.4rem;
}
.info-title:not(:first-child) { margin-top: 2.8rem; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(240, 231, 216, 0.07);
  font-size: 0.88rem;
}
.hours dt { color: var(--cream-dim); }
.hours dd { color: var(--cream); }

address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--cream-dim);
  line-height: 2;
}

.reserve-map {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.reserve-map svg {
  width: 100%;
  flex: 1;
  min-height: 340px;
  border: 1px solid var(--hairline);
  display: block;
}

.map-link {
  align-self: center;
  margin-top: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* ---------- Formular ---------- */

.reserve-form .field { margin-bottom: 1.6rem; }

.field-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 0.55rem;
}

.field input,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.15rem;
  padding: 0.45em 0;
  border-radius: 0;
  transition: border-color 0.3s;
}

.field select option { background: var(--bg-lift); }

.field input:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--ember);
}

.btn {
  display: block;
  width: 100%;
  margin-top: 2.2rem;
  background: transparent;
  border: 1px solid var(--ember);
  color: var(--ember);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding: 1.15em 1em;
  cursor: pointer;
  transition: background 0.35s, color 0.35s;
}
.btn:hover { background: var(--ember); color: var(--bg); }

.form-note {
  font-size: 0.8rem;
  color: var(--cream-faint);
  margin-top: 1.3rem;
}

.form-confirm {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--ember);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--cream);
}

/* ---------- Fusszeile ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(240, 231, 216, 0.06);
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
}

.footer-mark {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.footer-line {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-top: 0.9rem;
}

.footer-nav { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 2.5rem; }

.footer-nav a {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--ember); }

.footer-tiny {
  font-size: 0.66rem;
  color: rgba(240, 231, 216, 0.22);
  margin-top: 2.4rem;
  letter-spacing: 0.08em;
}

/* ---------- Einblendungen ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Mobil ---------- */

@media (max-width: 820px) {
  .menu-columns { grid-template-columns: 1fr; gap: 3.5rem; }
  .reserve-grid { grid-template-columns: 1fr; }
  .reserve-map { min-height: 300px; }
  .field-row { grid-template-columns: 1fr; }

  /* Szenen-Text auf dem Handy mittig — bewusst nur auf die Video-Szenen
     (.scene / .scene-copy) beschränkt, damit die Fusszeile und das
     schwebende „Demo-Projekt von jawostudio"-Badge davon unberührt bleiben */
  .scene { justify-content: center; }
  .scene-copy {
    padding: 18vh 1.6rem;
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;
  }
  .scene-salon .scene-copy { text-align: center; margin: 0 auto; }
  .scene-salon .body-copy { margin-left: auto; margin-right: auto; }
  .scene-salon .scene-shade {
    background:
      linear-gradient(100deg, rgba(12, 9, 8, 0.82) 0%, rgba(12, 9, 8, 0.45) 55%, rgba(12, 9, 8, 0.2) 100%),
      linear-gradient(var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%);
  }
  .hero { height: 340vh; }
  .hero-title { letter-spacing: 0.3em; text-indent: 0.3em; white-space: normal; }
  @keyframes track-in {
    from { letter-spacing: 0.5em; text-indent: 0.5em; opacity: 0; }
    to   { letter-spacing: 0.22em; text-indent: 0.22em; opacity: 1; }
  }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .hero-title, .hero-sub, .hero-scrollhint { animation-duration: 0.01s; animation-delay: 0s; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ============================================================
   Rechtsseiten — Impressum & Datenschutz
   ============================================================ */

.legal-header {
  position: relative;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.4rem, 4vw, 3.4rem);
  background: var(--bg-lift);
  border-bottom: 1px solid var(--hairline);
}

.legal-back {
  flex-shrink: 0;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  border: 1px solid var(--hairline);
  padding: 0.75em 1.5em;
  transition: border-color 0.35s, color 0.35s;
}
.legal-back:hover { border-color: var(--ember); color: var(--ember); }

.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1.5rem, 6vw, 3rem) clamp(4.5rem, 11vh, 7.5rem);
  overflow-wrap: break-word;
}

.legal-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.legal-updated {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-top: 1rem;
}

/* Echte Anbieterkennzeichnung von jawostudio (Demo-Hinweis) */
.legal-provider {
  margin-top: 2.4rem;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(255, 107, 44, 0.32);
  background: rgba(255, 107, 44, 0.06);
}
.legal-provider .eyebrow { margin-bottom: 1rem; }
.legal-provider p {
  color: var(--cream-dim);
  font-size: 0.92rem;
  line-height: 1.75;
}
.legal-provider p + p { margin-top: 0.9rem; }
.legal-provider strong { color: var(--cream); font-weight: 400; }
.legal-provider a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 44, 0.45);
  transition: border-color 0.3s;
}
.legal-provider a:hover { border-bottom-color: var(--ember); }

.legal-rule {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 2.8rem 0;
}

.legal-section + .legal-section { margin-top: 2.6rem; }

.legal-section h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.legal-section p {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 0.9rem;
}

.legal-section address {
  font-style: normal;
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-top: 0.9rem;
}

.legal-section a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 1px;
  transition: color 0.3s;
}
.legal-section a:hover { color: var(--ember); }

.legal-list {
  list-style: disc;
  margin: 0.9rem 0 0 1.35rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.8;
}
.legal-list li { margin-top: 0.35rem; padding-left: 0.3rem; }

/* Schwebendes Demo-Badge — Verweis auf jawostudio */
.demo-badge {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 95;
  display: inline-block;
  padding: 0.6em 1.15em;
  border-radius: 999px;
  background: rgba(18, 14, 11, 0.85);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}
.demo-badge:hover { color: var(--cream); border-color: var(--ember); }
.demo-badge strong { color: var(--cream); font-weight: 500; }

@media (max-width: 820px) {
  .legal-header { padding: 1.2rem 1.4rem; }
  .legal-back { letter-spacing: 0.22em; padding: 0.7em 1.1em; }
}

/* ============ KI-KENNZEICHNUNG (Art. 50 KI-VO) ============
   Dauerhaft sichtbarer Hinweis direkt am KI-generierten Medium —
   Pflicht seit 02.08.2026, Hinweis nur im Impressum genügt nicht. */
.ai-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(18, 14, 11, 0.72);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ai-badge::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--ember);
  flex-shrink: 0;
}
