/* ============================================================
   Haargalerie Ilona Beinhoff — Stuttgart
   Preset: WARM-ORGANIC / NATUR · Architecture: editorial-column
   Olive/Sage #6f7a4f · Terracotta #c06a4a · Cream #f5efe6
   Fonts: Lora (humanist serif, display) + Inter (body)
   FOUNDATION — tokens · base · self-hosted fonts · nav · footer
                 · cinematic hero · scroll/motion primitives
   ============================================================ */

/* ---------- Self-hosted fonts (Zero-Tracking, kein Google-CDN) ---------- */
@font-face { font-family:"Lora"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/lora-400.woff2") format("woff2"); }
@font-face { font-family:"Lora"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/lora-500.woff2") format("woff2"); }
@font-face { font-family:"Lora"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/lora-600.woff2") format("woff2"); }
@font-face { font-family:"Lora"; font-style:italic; font-weight:400; font-display:swap; src:url("../fonts/lora-400i.woff2") format("woff2"); }
@font-face { font-family:"Lora"; font-style:italic; font-weight:500; font-display:swap; src:url("../fonts/lora-500i.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  /* Brand — warm-organic / Natur */
  --c-olive:       #6f7a4f;   /* sage-olive, primary */
  --c-olive-deep:  #586341;   /* darker olive for hover/ink-accents */
  --c-olive-soft:  #8b9669;   /* lighter olive */
  --c-olive-wash:  #eef0e3;   /* very pale olive tint */
  --c-terra:       #c06a4a;   /* terracotta accent */
  --c-terra-deep:  #a4553a;
  --c-terra-soft:  #f4e2d8;   /* pale terracotta wash */
  --c-cream:       #f5efe6;   /* page background */
  --c-cream-warm:  #efe6d8;   /* warm sand surface */
  --c-cream-deep:  #e7dcc9;   /* deeper sand / image placeholder */
  --c-paper:       #fbf8f2;   /* card / lifted surface */

  /* Ink */
  --c-ink:         #2e2a22;   /* deep warm umber-brown text */
  --c-ink-mute:    rgba(46,42,34,0.66);
  --c-ink-faint:   rgba(46,42,34,0.42);
  --c-rule:        rgba(46,42,34,0.14);
  --c-rule-soft:   rgba(46,42,34,0.08);

  /* Text on dark olive */
  --c-on-dark:        #f3efe5;
  --c-on-dark-mute:   #cdd0bd;
  --c-on-dark-faint:  #bcbfab;  /* lightened from #a4a890 → AA-large on olive-deep (footer legal links + microcopy) */

  /* fonts */
  --f-display: "Lora", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type scale */
  --size-h1: clamp(2.6rem, 6vw, 5rem);
  --size-h2: clamp(2rem, 4.2vw, 3.2rem);
  --size-h3: clamp(1.35rem, 2.2vw, 1.9rem);
  --size-body: clamp(1.02rem, 1.05vw, 1.12rem);
  --size-eyebrow: 0.72rem;

  /* spacing */
  --gap-xs: 0.5rem;
  --gap-sm: 0.875rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;
  --gap-2xl: 6.5rem;

  --shell: 1180px;
  --shell-col: 760px;        /* the editorial reading column */
  --shell-wide: 1280px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 22px 60px -32px rgba(46,42,34,0.4);
  --shadow-card: 0 12px 36px -22px rgba(46,42,34,0.34);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.72;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.005em; color: var(--c-ink); }
p { max-width: 66ch; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }
.shell-wide { max-width: var(--shell-wide); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }
.shell-col { max-width: var(--shell-col); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 2rem); }
section { padding: clamp(3.4rem, 8vw, 6.5rem) 0; position: relative; }

.eyebrow {
  display: inline-block; font-family: var(--f-body); font-weight: 600;
  font-size: var(--size-eyebrow); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--c-olive-deep);
}
.eyebrow.on-dark { color: var(--c-on-dark-mute); }
.eyebrow.terra { color: var(--c-terra-deep); }

/* leaf bullet — botanical motif used as a section ornament */
.leaf-rule { display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--gap-sm); }
.leaf-rule::before, .leaf-rule::after { content: ""; width: 34px; height: 1px; background: var(--c-olive-soft); }
.leaf-rule .lf { color: var(--c-olive); font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-body); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.95rem 1.75rem; border-radius: 999px;
  transition: all 0.4s var(--ease); cursor: pointer; border: 1.5px solid transparent;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-primary { background: var(--c-olive); color: #fff; }
.btn-primary:hover { background: var(--c-olive-deep); box-shadow: 0 14px 34px -14px rgba(111,122,79,0.7); transform: translateY(-2px); }
.btn-terra { background: var(--c-terra); color: #fff; }
.btn-terra:hover { background: var(--c-terra-deep); box-shadow: 0 14px 34px -14px rgba(192,106,74,0.6); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(46,42,34,0.28); color: var(--c-ink); background: transparent; }
.btn-ghost:hover { background: rgba(46,42,34,0.05); border-color: var(--c-ink); }
.btn-ghost.on-dark { color: var(--c-on-dark); border-color: rgba(243,239,229,0.45); }
.btn-ghost.on-dark:hover { background: rgba(243,239,229,0.1); border-color: var(--c-on-dark); }
.btn-light { background: var(--c-paper); color: var(--c-ink); }
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.4s var(--ease), box-shadow 0.5s var(--ease);
  padding: 1.2rem 0; border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(245,239,230,0.88); backdrop-filter: blur(14px) saturate(1.15);
  border-bottom-color: var(--c-rule-soft); padding: 0.7rem 0; box-shadow: 0 10px 30px -24px rgba(46,42,34,0.5);
}
.nav-inner { max-width: var(--shell-wide); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 38px; width: auto; transition: height 0.4s var(--ease); }
.nav.scrolled .nav-logo { height: 32px; }
.nav-menu { display: flex; align-items: center; gap: 1.85rem; }
.nav-menu a {
  font-family: var(--f-body); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--c-ink-mute);
  position: relative; padding: 4px 0; transition: color 0.3s var(--ease);
}
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--c-terra); transition: width 0.35s var(--ease); }
.nav-menu a:hover, .nav-menu a.active { color: var(--c-ink); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a.nav-cta {
  background: var(--c-olive); color: #fff; padding: 0.62rem 1.3rem; border-radius: 999px;
  letter-spacing: 0.04em; font-weight: 600;
}
.nav-menu a.nav-cta::after { display: none; }
.nav-menu a.nav-cta:hover { background: var(--c-olive-deep); color: #fff; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: transparent; border: 0; }
.nav-burger span { width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-mobile { display: none; }

@media (max-width: 920px) {
  .nav-menu { display: none; }
  .nav-burger { display: flex; }
  .nav { background: rgba(245,239,230,0.94); backdrop-filter: blur(12px); border-bottom-color: var(--c-rule-soft); }
  .nav-mobile {
    display: block; max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease);
    background: var(--c-paper); border-top: 1px solid var(--c-rule-soft);
  }
  .nav-mobile.open { max-height: 520px; }
  .nav-mobile a { display: block; padding: 0.9rem clamp(1.2rem, 5vw, 3rem); font-family: var(--f-body); font-size: 0.9rem; font-weight: 500; color: var(--c-ink-mute); border-bottom: 1px solid var(--c-rule-soft); }
  .nav-mobile a:hover, .nav-mobile a.active { color: var(--c-terra-deep); }
  .nav-mobile a.nav-cta { color: var(--c-olive-deep); font-weight: 600; }
}

/* ============================================================
   HERO — Cinematic v2 (crossfade + ken-burns + grain + leaf-dust + char reveal)
   warm-organic variant: olive/cream gradient, soft light
   ============================================================ */
.hero-cinematic {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: var(--c-olive-deep);
}
.hero-cinematic .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; will-change: transform, opacity;
}
.hero-cinematic .bg-1 { animation: kenburns 28s ease-in-out infinite alternate, fade3 30s linear infinite; }
.hero-cinematic .bg-2 { animation: kenburns 28s ease-in-out infinite alternate -9.5s, fade3 30s linear infinite -10s; }
.hero-cinematic .bg-3 { animation: kenburns 28s ease-in-out infinite alternate -19s, fade3 30s linear infinite -20s; }
@keyframes fade3 { 0% { opacity: 0; } 4% { opacity: 1; } 30% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kenburns { 0% { transform: scale(1.05) translate(0,0); } 100% { transform: scale(1.16) translate(-1.5%, -1.5%); } }

/* warm gradient + olive tint for legibility + brand colour */
.hero-cinematic::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(46,42,34,0.42) 0%, rgba(46,42,34,0.18) 36%, rgba(46,42,34,0.7) 100%),
    linear-gradient(110deg, rgba(88,99,65,0.46) 0%, rgba(46,42,34,0.05) 58%);
}
.hero-cinematic .haze {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(58% 50% at 22% 26%, rgba(244,226,216,0.2), transparent 70%);
}
.hero-cinematic .vignette { position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 220px 70px rgba(40,36,26,0.55); }
.hero-cinematic .dust { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0.5; }
.hero-cinematic .dust span {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(244,226,216,0.85); box-shadow: 0 0 7px 1px rgba(244,226,216,0.45);
  animation: drift 28s linear infinite;
}
@keyframes drift {
  0% { transform: translateY(20px) translateX(0); opacity: 0; }
  10% { opacity: 0.8; } 90% { opacity: 0.35; }
  100% { transform: translateY(-130px) translateX(34px); opacity: 0; }
}
.letterbox { position: absolute; left: 0; right: 0; height: 48px; z-index: 5; background: linear-gradient(var(--c-olive-deep), rgba(88,99,65,0)); pointer-events: none; }
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; transform: scaleY(-1); }

.hero-inner { position: relative; z-index: 6; padding-top: 72px; padding-bottom: 40px; }
.hero-eyebrow {
  font-family: var(--f-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--c-cream-warm); margin-bottom: var(--gap-md);
  opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.hero-title {
  font-family: var(--f-display); font-weight: 500; color: var(--c-on-dark);
  font-size: clamp(2.9rem, 8.4vw, 6.4rem); line-height: 1.0; letter-spacing: -0.012em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.32); margin-bottom: var(--gap-md);
}
.hero-title em { font-style: italic; color: var(--c-terra-soft); }
.hero-title .word { white-space: nowrap; display: inline-block; }
.hero-title .char { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(34px) rotateX(-28deg); }
.hero-cinematic.in-view .hero-title .char { animation: charIn 0.78s var(--ease) forwards; }
@keyframes charIn { to { opacity: 1; filter: blur(0); transform: none; } }
.hero-sub {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem); color: var(--c-cream-warm); max-width: 44ch;
  margin-bottom: var(--gap-md);
  opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) 0.55s forwards;
}
.hero-lede {
  font-size: 1rem; color: var(--c-on-dark-mute); max-width: 46ch; margin-bottom: var(--gap-lg); line-height: 1.65;
  opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) 0.7s forwards;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) 0.9s forwards; }
.hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem; margin-top: var(--gap-lg);
  font-family: var(--f-body); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--c-on-dark-mute);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.1s forwards;
}
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-terra-soft); }
.hero-meta b { color: var(--c-on-dark); font-weight: 600; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 6;
  font-family: var(--f-body); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--c-on-dark-faint); animation: cuePulse 2.4s ease-in-out infinite;
}
@keyframes cuePulse { 0%,100% { opacity: 0.4; transform: translateX(-50%) translateY(0); } 50% { opacity: 1; transform: translateX(-50%) translateY(6px); } }

/* ============================================================
   Scroll reveal primitives + progress bar
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--c-olive), var(--c-terra)); z-index: 200; }
/* Reveals only hide once JS has confirmed it can un-hide them (html.js set by site.js).
   No-JS / JS-failure → content stays fully visible instead of a blank page. */
.reveal { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(32px); }
html.js .reveal.in-view, .reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.rule-hair { height: 1px; background: linear-gradient(90deg, transparent, var(--c-olive-soft), transparent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--c-olive-deep); color: var(--c-on-dark-mute); padding: clamp(3rem,7vw,5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--gap-xl); }
.footer-brand .mark { font-family: var(--f-display); font-size: 1.9rem; color: var(--c-on-dark); margin-bottom: var(--gap-sm); }
.footer-brand .mark em { color: var(--c-terra-soft); font-style: italic; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: var(--c-on-dark-mute); }
.footer-col h4 { font-family: var(--f-body); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-cream-warm); margin-bottom: var(--gap-md); }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; padding: 0.28rem 0; color: var(--c-on-dark-mute); transition: color 0.3s var(--ease); max-width: none; }
.footer-col a:hover { color: var(--c-on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--gap-xl); padding-top: var(--gap-lg); border-top: 1px solid rgba(243,239,229,0.14); font-size: 0.76rem; letter-spacing: 0.02em; color: var(--c-on-dark-faint); }
.footer-bottom a { color: var(--c-on-dark-mute); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--c-terra-soft); }
.footer-zero { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--c-on-dark-faint); margin-top: 0.6rem; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--gap-lg); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Demo notice pill ---------- */
.demo-pill {
  position: fixed; bottom: 14px; left: 14px; z-index: 150;
  background: rgba(46,42,34,0.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(192,106,74,0.4); border-radius: 999px;
  padding: 0.5rem 1rem; font-family: var(--f-body); font-size: 0.66rem; letter-spacing: 0.03em;
  color: var(--c-terra-soft); max-width: min(78vw, 360px); line-height: 1.4;
}
.demo-pill strong { color: var(--c-on-dark); font-weight: 600; }

/* ---------- Sticky mobile booking CTA ---------- */
.sticky-book {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 140;
  padding: 0.7rem 1rem; padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(245,239,230,0.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-rule);
}
.sticky-book a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
  background: var(--c-olive); color: #fff; font-family: var(--f-body); font-weight: 600;
  font-size: 0.86rem; letter-spacing: 0.06em; padding: 0.9rem; border-radius: 999px; }
@media (max-width: 920px) { .sticky-book { display: block; } body { padding-bottom: 66px; } .demo-pill { bottom: 74px; } }

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-title .char { opacity: 1 !important; filter: none !important; transform: none !important; }
  .hero-cinematic .bg-1 { opacity: 1 !important; }
  .hero-eyebrow, .hero-sub, .hero-lede, .hero-actions, .hero-meta { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
