/* ==========================================================================
   LECKER ESSEN — Berlin | Stylesheet & Design System
   Editorial Culinary Aesthetics · Running CSS Animations · GPU-Smooth
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-espresso: #120e0c;
  --bg-charcoal: #1b1512;
  --bg-walnut: #261e19;
  --bg-forest: #1a3026;
  --bg-cream: #f7f2e8;
  --bg-porcelain: #fffdf9;
  --bg-sand: #ede4d3;

  --accent-amber: #d98a2b;
  --accent-gold: #f0b65b;
  --accent-terracotta: #b84a2e;
  --accent-sage: #6f8f65;

  --ink-dark: #181310;
  --ink-dark-muted: #5a4f47;
  --ink-light: #faf6ee;
  --ink-light-muted: #cbbeb0;

  --border-dark: rgba(24, 19, 16, 0.12);
  --border-light: rgba(250, 246, 238, 0.14);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Spacing & Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  --container-max: 1320px;
  --container-narrow: 920px;

  /* Shadows & Glows */
  --shadow-soft: 0 18px 45px rgba(18, 14, 12, 0.08);
  --shadow-deep: 0 28px 70px rgba(10, 7, 5, 0.45);
  --glow-amber: 0 0 60px rgba(217, 138, 43, 0.25);

  /* Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-espresso);
}

body {
  font-family: var(--font-sans);
  color: var(--ink-dark);
  background-color: var(--bg-cream);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Subtle organic grain overlay across site */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.028;
  background-image: radial-gradient(rgba(18, 14, 12, 0.9) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

/* ==========================================================================
   Scroll Progress Bar & Back-to-Top / Chapter Indicator
   ========================================================================== */
.scroll-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 2000;
  background: rgba(250, 246, 238, 0.08);
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-amber), var(--accent-gold));
  box-shadow: 0 0 12px rgba(240, 182, 91, 0.65);
  transition: width 0.08s linear;
}

/* Floating Scroll Chapter Navigation (Desktop Home / Long Pages) */
.scroll-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 8px;
  border-radius: var(--radius-pill);
  background: rgba(18, 14, 12, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(250, 246, 238, 0.12);
}

.scroll-rail a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(250, 246, 238, 0.3);
  position: relative;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}

.scroll-rail a:hover,
.scroll-rail a.active {
  background: var(--accent-gold);
  transform: scale(1.45);
  box-shadow: 0 0 12px rgba(240, 182, 91, 0.7);
}

.scroll-rail a::before {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--bg-espresso);
  color: var(--ink-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-rail a:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1080px) {
  .scroll-rail {
    display: none;
  }
}

/* ==========================================================================
   Running CSS Keyframe Animations
   ========================================================================== */
@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-reverse {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float-orb {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(26px, -22px, 0) scale(1.06);
  }
  66% {
    transform: translate3d(-18px, 16px, 0) scale(0.96);
  }
}

@keyframes float-gentle {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes aroma-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.65);
    opacity: 0;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

@keyframes shimmer-sweep {
  0% {
    transform: translateX(-140%) skewX(-20deg);
  }
  60%, 100% {
    transform: translateX(220%) skewX(-20deg);
  }
}

@keyframes gradient-drift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes bob-scroll-cue {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.35;
  }
}

@keyframes steam-rise {
  0% {
    transform: translateY(10px) scaleX(0.95);
    opacity: 0;
  }
  35% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(-28px) scaleX(1.15);
    opacity: 0;
  }
}

/* ==========================================================================
   Layout Helpers & Typography
   ========================================================================== */
.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2.5rem, var(--container-narrow));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 8vw, 8.5rem);
  position: relative;
}

.section-dark {
  background-color: var(--bg-espresso);
  color: var(--ink-light);
}

.section-charcoal {
  background-color: var(--bg-charcoal);
  color: var(--ink-light);
}

.section-forest {
  background-color: var(--bg-forest);
  color: var(--ink-light);
}

.section-cream {
  background-color: var(--bg-cream);
  color: var(--ink-dark);
}

.section-sand {
  background-color: var(--bg-sand);
  color: var(--ink-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-amber);
  font-weight: 500;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
  position: relative;
  display: inline-block;
}

.eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-gold);
  animation: aroma-pulse 2.4s ease-out infinite;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 72;
}

.display-title em,
.display-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-amber);
}

.section-dark .display-title em {
  color: var(--accent-gold);
}

h1.display-title {
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
}

h2.display-title {
  font-size: clamp(2.1rem, 4.3vw, 3.8rem);
}

h3.display-title {
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
}

.lead-text {
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-dark-muted);
}

.section-dark .lead-text,
.section-charcoal .lead-text,
.section-forest .lead-text {
  color: var(--ink-light-muted);
}

/* ==========================================================================
   Buttons & Interactive Pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.92rem 1.7rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-140%) skewX(-20deg);
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-terracotta));
  color: var(--ink-light);
  box-shadow: 0 12px 30px rgba(184, 74, 46, 0.32);
}

.btn-primary::after {
  animation: shimmer-sweep 4.6s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(217, 138, 43, 0.42);
}

.btn-outline-light {
  border-color: rgba(250, 246, 238, 0.32);
  color: var(--ink-light);
  background: rgba(250, 246, 238, 0.04);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(250, 246, 238, 0.14);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border-color: rgba(24, 19, 16, 0.25);
  color: var(--ink-dark);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--ink-dark);
  color: var(--ink-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.62rem 1.2rem;
  font-size: 0.86rem;
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled,
.site-header.header-solid {
  background: rgba(18, 14, 12, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(250, 246, 238, 0.1);
  padding: 10px 0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-light);
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-terracotta));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(217, 138, 43, 0.35);
  transition: transform 0.5s var(--ease-spring);
}

.brand-logo:hover .brand-emblem {
  transform: rotate(18deg) scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: rgba(250, 246, 238, 0.84);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-block: 6px;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink-light);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(250, 246, 238, 0.08);
  border: 1px solid rgba(250, 246, 238, 0.14);
  color: var(--ink-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58c97b;
  box-shadow: 0 0 8px #58c97b;
  animation: aroma-pulse 2s infinite;
}

.mobile-menu-btn {
  display: none;
  background: rgba(250, 246, 238, 0.08);
  border: 1px solid rgba(250, 246, 238, 0.16);
  color: var(--ink-light);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 980px) {
  .main-nav,
  .status-badge {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 12, 0.97);
  backdrop-filter: blur(22px);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out-expo);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink-light);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.mobile-drawer-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(250, 246, 238, 0.1);
  border: 1px solid var(--border-light);
  color: var(--ink-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section & 3D WebGL Canvas Stage
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 64px;
  background: radial-gradient(circle at 75% 35%, #2f1f16 0%, #16100d 55%, #0e0a08 100%);
  color: var(--ink-light);
  overflow: hidden;
}

/* Ambient running background glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-orb-1 {
  width: 460px;
  height: 460px;
  top: -100px;
  right: 8%;
  background: rgba(217, 138, 43, 0.22);
  animation: float-orb 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 380px;
  height: 380px;
  bottom: -80px;
  left: -60px;
  background: rgba(184, 74, 46, 0.2);
  animation: float-orb 18s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 280px;
  height: 280px;
  top: 40%;
  left: 38%;
  background: rgba(111, 143, 101, 0.14);
  animation: float-orb 11s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-coords {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-light-muted);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(250, 246, 238, 0.14);
  background: rgba(250, 246, 238, 0.04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0.4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(250, 246, 238, 0.12);
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--accent-gold);
  line-height: 1.1;
}

.hero-stat-lbl {
  font-size: 0.8rem;
  color: var(--ink-light-muted);
  margin-top: 4px;
}

/* Hero 3D Stage Card */
.hero-3d-stage {
  position: relative;
  height: clamp(410px, 56vh, 590px);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 45%, rgba(240, 182, 91, 0.12), rgba(24, 18, 15, 0.65) 70%);
  border: 1px solid rgba(250, 246, 238, 0.14);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.hero-3d-stage:active {
  cursor: grabbing;
}

.webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

.stage-hud-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.stage-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(18, 14, 12, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 246, 238, 0.16);
  color: var(--ink-light);
}

.stage-hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 6;
}

.model-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(18, 14, 12, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(250, 246, 238, 0.16);
}

.model-switch-btn {
  border: none;
  background: transparent;
  color: var(--ink-light-muted);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.model-switch-btn:hover {
  color: var(--ink-light);
}

.model-switch-btn.active {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-terracotta));
  color: var(--ink-light);
  font-weight: 600;
}

/* Rotating Circular Stamp Badge */
.rotating-stamp {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 112px;
  height: 112px;
  pointer-events: none;
  z-index: 7;
  animation: spin-slow 24s linear infinite;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light-muted);
}

.hero-scroll-cue span.arrow {
  animation: bob-scroll-cue 1.8s ease-in-out infinite;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

/* ==========================================================================
   Running CSS Kinetic Marquee Bands
   ========================================================================== */
.marquee-band {
  overflow: hidden;
  background: var(--accent-amber);
  color: var(--ink-dark);
  padding: 13px 0;
  border-block: 1px solid rgba(24, 19, 16, 0.18);
  position: relative;
  z-index: 8;
}

.marquee-band.dark-band {
  background: var(--bg-walnut);
  color: var(--accent-gold);
  border-block: 1px solid rgba(250, 246, 238, 0.1);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}

.marquee-band.reverse .marquee-track {
  animation: marquee-reverse 38s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 34px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  white-space: nowrap;
}

.marquee-sep {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ==========================================================================
   Interactive Pinned 3D Scroll Story & Studio Showcase
   ========================================================================== */
.story-pin-section {
  background: linear-gradient(180deg, var(--bg-espresso) 0%, #1d1613 100%);
  color: var(--ink-light);
  position: relative;
  overflow: hidden;
}

.story-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .story-split {
    grid-template-columns: 1fr;
  }
}

.story-sticky-3d {
  position: sticky;
  top: 96px;
  height: clamp(380px, 58vh, 560px);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 45%, rgba(217, 138, 43, 0.16), rgba(14, 10, 8, 0.85));
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

@media (max-width: 960px) {
  .story-sticky-3d {
    position: relative;
    top: 0;
    height: 360px;
  }
}

.story-chapters {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.story-chapter-card {
  padding: clamp(1.7rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: rgba(250, 246, 238, 0.04);
  border: 1px solid rgba(250, 246, 238, 0.1);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s var(--ease-out-expo);
  cursor: pointer;
}

.story-chapter-card:hover,
.story-chapter-card.active {
  background: rgba(250, 246, 238, 0.08);
  border-color: var(--accent-gold);
  transform: translateX(6px);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
  display: block;
}

.story-chapter-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 0.6rem;
}

.story-chapter-card p {
  color: var(--ink-light-muted);
  font-size: 0.98rem;
}

/* ==========================================================================
   Editorial Cards, Dish Showcase & Running Hover Effects
   ========================================================================== */
.section-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.6rem);
}

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

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
}

@media (max-width: 960px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cards-grid-3,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }
}

.culinary-card {
  background: var(--bg-porcelain);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s ease, border-color 0.35s ease;
  position: relative;
}

.culinary-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px rgba(18, 14, 12, 0.14);
  border-color: rgba(217, 138, 43, 0.45);
}

.culinary-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-walnut);
}

.culinary-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.culinary-card:hover .culinary-card-media img {
  transform: scale(1.07);
}

.card-tag-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(18, 14, 12, 0.78);
  backdrop-filter: blur(8px);
  color: var(--ink-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.culinary-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.card-top-meta h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}

.price-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-terracotta);
  white-space: nowrap;
}

.card-desc {
  color: var(--ink-dark-muted);
  font-size: 0.94rem;
  flex: 1;
}

.allergen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.4rem;
}

.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-sand);
  color: var(--ink-dark-muted);
}

.pill-tag.veg {
  background: rgba(111, 143, 101, 0.16);
  color: #2f5427;
}

/* ==========================================================================
   Horizontal Parallax Showcase Strip (Fun to Scroll!)
   ========================================================================== */
.horizontal-scroll-band {
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: var(--bg-sand);
  border-block: 1px solid var(--border-dark);
}

.horizontal-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding-inline: 2rem;
}

.showcase-tile {
  width: clamp(260px, 26vw, 340px);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--bg-porcelain);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.showcase-tile .tile-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-amber);
}

.showcase-tile h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

/* ==========================================================================
   Page Hero Banner (Inner Pages)
   ========================================================================== */
.page-hero {
  padding-top: clamp(7.5rem, 12vw, 10rem);
  padding-bottom: clamp(3.2rem, 6vw, 5rem);
  background: radial-gradient(circle at 80% 20%, #2e2017 0%, #140f0c 70%);
  color: var(--ink-light);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 3;
}

@media (max-width: 900px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-light-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a:hover {
  color: var(--accent-gold);
}

.page-hero-3d-mini {
  height: 310px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at center, rgba(217, 138, 43, 0.14), rgba(18, 14, 12, 0.7));
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  cursor: grab;
}

/* ==========================================================================
   Speisekarte Interactive Filter & Menu Rows
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-porcelain);
  border: 1px solid var(--border-dark);
  margin-bottom: 2.4rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 0.58rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--accent-amber);
}

.filter-btn.active {
  background: var(--ink-dark);
  color: var(--ink-light);
  border-color: var(--ink-dark);
}

.menu-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

@media (max-width: 860px) {
  .menu-list-grid {
    grid-template-columns: 1fr;
  }
}

.menu-item-row {
  padding: 1.45rem;
  border-radius: var(--radius-md);
  background: var(--bg-porcelain);
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}

.menu-item-row:hover {
  transform: translateY(-4px);
  border-color: var(--accent-amber);
  box-shadow: var(--shadow-soft);
}

.menu-item-row.hidden-item {
  display: none;
}

/* ==========================================================================
   Forms (Reservierung, Kontakt, Feinkost Inquiry)
   ========================================================================== */
.form-card {
  background: var(--bg-porcelain);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(24, 19, 16, 0.18);
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 4px rgba(217, 138, 43, 0.14);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-dark-muted);
}

.consent-check input {
  margin-top: 4px;
  accent-color: var(--accent-terracotta);
}

.form-feedback {
  margin-top: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(111, 143, 101, 0.14);
  border: 1px solid rgba(111, 143, 101, 0.45);
  color: #1f3c19;
  display: none;
}

.form-feedback.visible {
  display: block;
}

/* ==========================================================================
   Legal & Editorial Prose (Impressum, Datenschutz, AGB)
   ========================================================================== */
.legal-card {
  background: var(--bg-porcelain);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: clamp(1.8rem, 4vw, 3.4rem);
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  color: var(--ink-dark);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 1.12rem;
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
}

.legal-card p,
.legal-card li {
  color: var(--ink-dark-muted);
  margin-bottom: 0.75rem;
}

.legal-card ul {
  padding-left: 1.3rem;
}

.info-box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-sand);
  border-left: 4px solid var(--accent-amber);
  margin-block: 1.4rem;
}

/* ==========================================================================
   Feinkost Package Selector / Cart Drawer Summary
   ========================================================================== */
.box-summary-bar {
  background: var(--bg-espresso);
  color: var(--ink-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-deep);
}

/* ==========================================================================
   Bento Gallery & Animated Features
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4rem;
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-span-8 {
  grid-column: span 8;
}

@media (max-width: 900px) {
  .bento-span-7,
  .bento-span-5,
  .bento-span-4,
  .bento-span-8 {
    grid-column: 1 / -1;
  }
}

.bento-panel {
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--border-dark);
  background: var(--bg-porcelain);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.bento-panel.dark {
  background: var(--bg-charcoal);
  color: var(--ink-light);
  border-color: var(--border-light);
}

/* Floating Animated Steam / Aroma Graphic */
.steam-bars {
  display: inline-flex;
  gap: 5px;
  align-items: flex-end;
  height: 22px;
}

.steam-bars span {
  width: 3px;
  height: 16px;
  border-radius: 99px;
  background: var(--accent-gold);
  animation: steam-rise 2.2s ease-in-out infinite;
}

.steam-bars span:nth-child(2) {
  animation-delay: 0.45s;
  height: 20px;
}

.steam-bars span:nth-child(3) {
  animation-delay: 0.9s;
  height: 14px;
}

/* ==========================================================================
   Site Footer (Google Ads Business Transparency Compliant)
   ========================================================================== */
.site-footer {
  background: #0d0a08;
  color: var(--ink-light);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: 2.2rem;
  border-top: 1px solid rgba(250, 246, 238, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 246, 238, 0.1);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--ink-light-muted);
  font-size: 0.94rem;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--ink-light);
  transform: translateX(4px);
}

.footer-contact-item {
  color: var(--ink-light-muted);
  font-size: 0.93rem;
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

.footer-contact-item strong {
  color: var(--ink-light);
}

.footer-bottom {
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--ink-light-muted);
}

.footer-legal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-pills a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
