/* ============================================================
   Haarstudio EXIS — Bad Cannstatt · seit 2000
   Preset: MODERN-BOLD (swiss-grid / bento)
   Charcoal #1a1a1a · Coral/Amber #ff6a3d · Off-White #f7f5f2
   Display: Space Grotesk · Body: Inter
   FOUNDATION — tokens, fonts, base, nav, footer, motion primitives
   ============================================================ */

/* --- Self-hosted fonts (Zero-Tracking, kein Google-CDN) --- */
@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/spacegrotesk-500.woff2") format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/spacegrotesk-600.woff2") format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/spacegrotesk-700.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"); }

/* --- Design Tokens --- */
:root {
  /* Brand — modern-bold palette */
  --c-ink: #1a1a1a;           /* charcoal */
  --c-ink-2: #232323;         /* surface dark */
  --c-ink-3: #2e2e2e;         /* dark card */
  --c-coral: #ff6a3d;         /* coral/amber accent */
  --c-coral-deep: #e8542a;    /* coral hover */
  --c-coral-soft: #ffe3d8;    /* coral wash */
  --c-amber: #ffb347;         /* warm secondary accent */

  --c-bg: #f7f5f2;            /* off-white */
  --c-bg-2: #efece6;          /* warm surface */
  --c-bg-3: #e7e2da;          /* deeper surface */
  --c-paper: #ffffff;

  /* Ink on light */
  --c-text: #1a1a1a;
  --c-text-mute: rgba(26,26,26,0.64);
  --c-text-faint: rgba(26,26,26,0.4);
  --c-rule: rgba(26,26,26,0.14);
  --c-rule-soft: rgba(26,26,26,0.08);

  /* Ink on dark */
  --c-cream: #f7f5f2;
  --c-cream-mute: rgba(247,245,242,0.72);

  /* CTA */
  --c-cta: var(--c-coral);
  --c-cta-hover: var(--c-coral-deep);
  --c-cta-text: #1a1a1a;

  /* 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: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;

  --size-eyebrow: 0.72rem;
  --size-body: clamp(1rem, 1.05vw, 1.075rem);
  --size-small: 0.85rem;

  --line-tight: 0.98;
  --line-snug: 1.18;
  --line-normal: 1.62;

  --shadow-soft: 0 24px 60px -30px rgba(26,26,26,0.45);
  --shadow-card: 0 12px 34px -22px rgba(26,26,26,0.4);
  --radius: 4px;          /* swiss-grid = sharp corners */
  --radius-pill: 999px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  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-coral); color: #fff; }
:focus-visible { outline: 2px solid var(--c-coral); outline-offset: 3px; }

/* --- Typography helpers --- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: var(--line-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--gap-md);
  color: var(--c-text);
}
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--size-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--c-coral-deep);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--gap-sm);
}
.eyebrow.light { color: var(--c-coral); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.32rem); color: var(--c-text-mute); line-height: 1.55; }

/* --- Layout containers --- */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-tight { max-width: 880px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-wide { max-width: 1480px; 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: 1rem 1.7rem;
  font-family: var(--f-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius); 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); }
.btn-primary:hover { background: var(--c-cta-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(255,106,61,0.6); }
.btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-cream); transform: translateY(-2px); }
.btn-light { background: var(--c-bg); color: var(--c-ink); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid rgba(247,245,242,0.5); color: var(--c-cream); }
.btn-outline:hover { background: rgba(247,245,242,0.12); border-color: var(--c-cream); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(26,26,26,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(247,245,242,0.1);
}
.nav-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 0.9rem 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: 26px; width: auto; flex-shrink: 0; transition: transform .35s; }
.nav-brand:hover .nav-logo { transform: scale(1.05); }
.nav-menu { display: flex; gap: var(--gap-md); align-items: center; }
.nav-menu a {
  font-family: var(--f-body); font-size: 0.82rem; font-weight: 500;
  color: var(--c-cream); padding: 0.4rem 0; position: relative; letter-spacing: 0.02em;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--c-coral); 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.8rem; font-weight: 600;
  padding: 0.6rem 1.2rem; background: var(--c-coral); color: var(--c-ink) !important;
  border-radius: var(--radius); transition: background .25s, transform .25s, color .25s;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--c-coral-deep); color: #fff !important; transform: translateY(-1px); }
.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-cream); border-radius: 2px; transition: transform .3s; }
.nav-mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--c-ink); border-bottom: 1px solid rgba(247,245,242,0.1);
  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.75rem 0; font-family: var(--f-body); font-size: 1rem; color: var(--c-cream); border-bottom: 1px solid rgba(247,245,242,0.08); }
.nav-mobile a:last-child { border-bottom: 0; color: var(--c-coral); font-weight: 600; }
@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.6fr 1fr 1fr 1.2fr; gap: var(--gap-xl);
  align-items: start;
}
.footer-brand .footer-logo { height: 28px; width: auto; margin-bottom: var(--gap-md); }
.footer-brand p { color: var(--c-cream-mute); font-size: 0.92rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--f-body); font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--c-coral); margin-bottom: var(--gap-md); font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block; padding: 0.32rem 0;
  font-family: var(--f-body); font-size: 0.92rem; color: var(--c-cream-mute);
  line-height: 1.6; transition: color .2s;
}
.footer-col a:hover { color: var(--c-coral); }
.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(247,245,242,0.14);
  font-family: var(--f-body); font-size: 0.78rem; color: rgba(247,245,242,0.5);
  letter-spacing: 0.03em;
}
.footer-bottom a { color: rgba(247,245,242,0.68); }
.footer-bottom a:hover { color: var(--c-coral); }
@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-coral), var(--c-amber));
  transform-origin: left center; transform: scaleX(0);
  z-index: 100; pointer-events: none;
}

/* --- Scroll-Reveal entrance --- */
.reveal { opacity: 0; transform: translateY(28px); 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="120"] { transition-delay: 120ms; }
.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(26,26,26,0.94); color: var(--c-cream);
  font-family: var(--f-body); font-size: 0.7rem; letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem; border-radius: var(--radius);
  box-shadow: var(--shadow-soft); max-width: 78vw;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,106,61,0.4);
}
.demo-notice b { color: var(--c-coral); 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(26,26,26,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,106,61,0.3);
  box-shadow: 0 -8px 24px -16px rgba(0,0,0,0.6);
}
.sticky-book .btn { flex: 1; justify-content: center; padding: 0.9rem 0.5rem; font-size: 0.76rem; }
@media (max-width: 760px) {
  .sticky-book { display: flex; }
  .demo-notice {
    bottom: calc(76px + 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; }
}
