/* ============================================================
   Haarstudio Döring — Vaihingen · Familie Döring
   Preset: minimalist-editorial · Warm Family-Editorial
   Blush #f4d4cc · Sage #a8b89e · Champagne #d4c2a8 · Cream #faf7f2
   FOUNDATION — tokens, fonts, base, nav, footer, motion primitives
   ============================================================ */

/* --- Self-hosted fonts (Zero-Tracking, kein Google-CDN) --- */
@font-face { font-family:"Fraunces"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/fraunces-400.woff2") format("woff2"); }
@font-face { font-family:"Fraunces"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/fraunces-500.woff2") format("woff2"); }
@font-face { font-family:"Fraunces"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/fraunces-600.woff2") format("woff2"); }
@font-face { font-family:"Fraunces"; font-style:italic; font-weight:400; font-display:swap; src:url("../fonts/fraunces-400i.woff2") format("woff2"); }
@font-face { font-family:"Fraunces"; font-style:italic; font-weight:500; font-display:swap; src:url("../fonts/fraunces-500i.woff2") format("woff2"); }
@font-face { font-family:"Plus Jakarta Sans"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/jakarta-400.woff2") format("woff2"); }
@font-face { font-family:"Plus Jakarta Sans"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/jakarta-500.woff2") format("woff2"); }
@font-face { font-family:"Plus Jakarta Sans"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/jakarta-600.woff2") format("woff2"); }
@font-face { font-family:"Plus Jakarta Sans"; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/jakarta-700.woff2") format("woff2"); }

/* --- Design Tokens --- */
:root {
  /* Brand — warm family palette */
  --c-blush: #f4d4cc;
  --c-blush-deep: #e9b6aa;
  --c-blush-soft: #fbeae5;
  --c-sage: #a8b89e;
  --c-sage-deep: #8a9b80;
  --c-sage-dark: #6f8064;
  --c-champagne: #d4c2a8;
  --c-champagne-deep: #c0a98a;
  --c-cream: #faf7f2;
  --c-cream-warm: #f3ece1;
  --c-cream-deep: #ece2d2;

  /* Ink */
  --c-ink: #2c2420;
  --c-ink-mute: rgba(44, 36, 32, 0.66);
  --c-ink-faint: rgba(44, 36, 32, 0.4);
  --c-rule: rgba(44, 36, 32, 0.14);
  --c-rule-soft: rgba(44, 36, 32, 0.08);

  /* CTA */
  --c-cta: var(--c-sage-deep);
  --c-cta-hover: var(--c-sage-dark);
  --c-cta-text: #ffffff;

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

  /* Type */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Sizes */
  --size-eyebrow: 0.74rem;
  --size-body: clamp(1rem, 1.05vw, 1.08rem);
  --size-small: 0.86rem;

  --line-tight: 1.06;
  --line-snug: 1.25;
  --line-normal: 1.62;

  --shadow-soft: 0 18px 50px -28px rgba(44,36,32,0.32);
  --shadow-card: 0 10px 32px -20px rgba(44,36,32,0.28);
  --radius: 18px;
  --radius-sm: 12px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--size-body);
  line-height: var(--line-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--c-sage); color: #fff; }
:focus-visible { outline: 2px solid var(--c-sage-deep); outline-offset: 3px; }

/* --- Typography helpers --- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: var(--line-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--gap-md);
  color: var(--c-ink);
}
em, .italic { font-style: italic; }
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--size-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--c-sage-dark);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--gap-sm);
}
.eyebrow.blush { color: var(--c-blush-deep); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--c-ink-mute); line-height: 1.55; }

/* --- Layout containers --- */
.shell { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-tight { max-width: 860px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-wide { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: var(--gap-2xl) 0; }
section.tight { padding: var(--gap-xl) 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.95rem 1.6rem;
  font-family: var(--f-body); font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; transition: all .28s cubic-bezier(.2,.7,.2,1);
  cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary { background: var(--c-cta); color: var(--c-cta-text); box-shadow: 0 10px 26px -14px var(--c-sage-dark); }
.btn-primary:hover { background: var(--c-cta-hover); transform: translateY(-2px); box-shadow: 0 16px 34px -16px var(--c-sage-dark); }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-champagne-deep); }
.btn-ghost:hover { background: var(--c-champagne); color: var(--c-ink); border-color: var(--c-champagne); }
.btn-light { background: #fff; color: var(--c-ink); box-shadow: var(--shadow-card); }
.btn-light:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--c-rule-soft);
}
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md);
}
.nav-brand { display: inline-flex; align-items: center; gap: 12px; }
.nav-logo { height: 30px; width: auto; flex-shrink: 0; transition: transform .35s; }
.nav-brand:hover .nav-logo { transform: scale(1.04) rotate(-1deg); }
.nav-menu { display: flex; gap: var(--gap-md); align-items: center; }
.nav-menu a {
  font-family: var(--f-body); font-size: 0.86rem; font-weight: 500;
  color: var(--c-ink); padding: 0.4rem 0; position: relative; letter-spacing: 0.01em;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -1px;
  height: 1.5px; background: var(--c-sage-deep); transition: right .3s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { right: 0; }
.nav-cta {
  font-family: var(--f-body); font-size: 0.82rem; font-weight: 600;
  padding: 0.55rem 1.15rem; background: var(--c-cta); color: #fff !important;
  border-radius: 999px; transition: background .25s, transform .25s;
  letter-spacing: 0.04em;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--c-cta-hover); transform: translateY(-1px); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: transparent; border: 0;
}
.nav-burger span { width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .3s; }
.nav-mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--c-cream); border-bottom: 1px solid var(--c-rule);
  padding: var(--gap-sm) var(--gap-md) var(--gap-md);
  box-shadow: var(--shadow-soft);
}
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 0.7rem 0; font-family: var(--f-body); font-size: 1rem; border-bottom: 1px solid var(--c-rule-soft); }
.nav-mobile a:last-child { border-bottom: 0; }
@media (max-width: 940px) {
  .nav-menu { display: none; }
  .nav-burger { display: inline-flex; }
}

/* --- Footer --- */
.footer {
  background: var(--c-ink);
  color: var(--c-cream);
  padding: var(--gap-2xl) 0 var(--gap-lg);
  margin-top: var(--gap-2xl);
}
.footer a { color: var(--c-cream); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--gap-xl);
  align-items: start;
}
.footer-brand .footer-logo { height: 30px; width: auto; margin-bottom: var(--gap-md); filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { color: rgba(250,247,242,0.7); font-size: 0.92rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--f-body); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--c-champagne); margin-bottom: var(--gap-md); font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block; padding: 0.3rem 0;
  font-family: var(--f-body); font-size: 0.92rem; color: rgba(250,247,242,0.78);
  line-height: 1.6; transition: color .2s;
}
.footer-col a:hover { color: var(--c-blush); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--gap-md);
  padding-top: var(--gap-md); margin-top: var(--gap-xl);
  border-top: 1px solid rgba(250,247,242,0.16);
  font-family: var(--f-body); font-size: 0.78rem; color: rgba(250,247,242,0.55);
  letter-spacing: 0.03em;
}
.footer-bottom a { color: rgba(250,247,242,0.7); }
.footer-bottom a:hover { color: var(--c-blush); }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--gap-lg); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Scroll-progress bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-blush), var(--c-sage), var(--c-champagne));
  transform-origin: left center; transform: scaleX(0);
  z-index: 100; pointer-events: none;
}

/* --- Scroll-Reveal entrance --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="80"]  { transition-delay: 80ms; }
.reveal[data-delay="160"] { transition-delay: 160ms; }
.reveal[data-delay="240"] { transition-delay: 240ms; }
.reveal[data-delay="320"] { transition-delay: 320ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }

/* --- Demo notice pill --- */
.demo-notice {
  position: fixed; bottom: 16px; left: 16px; z-index: 90;
  background: rgba(44,36,32,0.92); color: var(--c-cream);
  font-family: var(--f-body); font-size: 0.7rem; letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem; border-radius: 999px;
  box-shadow: var(--shadow-soft); max-width: 78vw;
  display: inline-flex; align-items: center; gap: 8px;
}
.demo-notice b { color: var(--c-blush); font-weight: 600; }
.demo-notice .close { cursor: pointer; opacity: 0.6; padding-left: 4px; }
.demo-notice .close:hover { opacity: 1; }

/* --- Mobile sticky booking bar --- */
.sticky-book {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-rule);
  box-shadow: 0 -8px 24px -16px rgba(44,36,32,0.4);
}
.sticky-book .btn { flex: 1; justify-content: center; padding: 0.85rem 0.5rem; font-size: 0.78rem; }
@media (max-width: 760px) {
  .sticky-book { display: flex; }
  body { padding-bottom: 0; }
  /* lift the demo-notice above the sticky booking bar so the CTA stays tappable */
  .demo-notice {
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 50%; right: auto; transform: translateX(-50%);
    max-width: calc(100vw - 24px);
  }
}

/* --- Reduced motion guard --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Print --- */
@media print {
  .nav, .footer, .scroll-progress, .demo-notice, .sticky-book, .scroll-cue { display: none !important; }
}
