/* ============================================================
   MANYMEN — global stylesheet
   Pure CSS, no framework. Design tokens at top.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --c-bg:        #0c0c0c;  /* near-black base (live dark sections + footer + menu) */
  --c-bg-dark:   #0c0c0c;  /* dark section — live uses the same #0c0c0c as the base */
  --c-bg-lift:   #1b1b1b;  /* subtle lift for dropdowns/facades on dark (not a live section color) */
  --c-taupe:     #46413c;  /* warm price band */
  --c-white:     #ffffff;
  --c-off:       #ffffff;  /* light band (live uses pure #fff) */
  --c-offtext:   #e8e6e6;  /* muted body text on dark bands */
  --c-ink:       #0c0c0c;  /* text on light */
  --c-muted:     #b2b0b0;  /* muted text on dark */

  /* type */
  --font-display: "Havelock Titling", "Havelock Fallback", "Arial Narrow", sans-serif;
  --font-body:    "Mundial", "Mundial Fallback", "Helvetica Neue", Arial, sans-serif;

  /* spacing scale */
  --sp-1: 0.5rem;  --sp-2: 1rem;  --sp-3: 1.5rem;
  --sp-4: 2.5rem;  --sp-5: 4rem;  --sp-6: 6rem;
  --sp-section: clamp(4.5rem, 9vw, 8.1rem);  /* live section padding ≈ 129.6px */

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 100px;  /* live fixed header height; burger + scroll-padding derive from this */

  /* breakpoints (referenced in media queries below) */
  /* 480 / 768 / 1024 / 1440 */

  /* z-index layers */
  --z-nav: 100;
  --z-overlay: 200;
  --z-menu: 300;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ---------- Fonts ----------
   PRODUCTION: licensed woff2 go in assets/fonts/ + real @font-face rules here
   (see NOTES.md [FONT LICENSE]). Until then the stack falls back to system fonts.
   The metric overrides below (size-adjust / ascent / descent) make the fallback
   faces hold Havelock's/Mundial's line metrics so layout doesn't reflow when the
   licensed fonts land — and so the un-licensed fallback is less visually jarring.
   Values are first-pass; fine-tune against the licensed fonts before launch. */

/* Display fallback — Arial Narrow standing in for Havelock Titling */
@font-face {
  font-family: "Havelock Fallback";
  src: local("Arial Narrow"), local("ArialNarrow"), local("Helvetica Neue Condensed"), local("sans-serif-condensed");
  size-adjust: 92%;
  ascent-override: 100%;
  descent-override: 24%;
  line-gap-override: 0%;
  font-display: swap;
}
/* Body fallback — Helvetica/Arial standing in for Mundial Light */
@font-face {
  font-family: "Mundial Fallback";
  src: local("Helvetica Neue"), local("Helvetica"), local("Arial"), local("sans-serif");
  size-adjust: 98%;
  ascent-override: 96%;
  descent-override: 26%;
  line-gap-override: 0%;
  font-display: swap;
}

/* ---------- Accessibility: focus + skip link ---------- */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: calc(var(--z-menu) + 2);
  background: var(--c-white); color: var(--c-ink); padding: 0.6rem 1rem; border-radius: 4px;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  color: var(--c-white);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: lowercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); }
/* live section H2s ("Wieso", "Preisliste", "Standort", ...) = 59.2px/400 lowercase */
h2 { font-size: clamp(2rem, 5vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: var(--c-muted);
}
/* live CTA heading ("Bereit für den nächsten Level…") = 40px / weight 500 / not lowercase.
   line-height 1.1 (not 1.0) so Havelock descenders (g, j, y) never clip on reuse. */
.h2-cta { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 500; text-transform: none; line-height: 1.1; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-section); }
.section--dark  { background: var(--c-bg-dark); }
.section--taupe { background: var(--c-taupe); }
.section--light { background: var(--c-off); color: var(--c-ink); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--sp-3); }
/* intro CTA: compact band (live ≈ 283px vs default 130px-section) — tighter,
   asymmetric padding to sit right under the brand strip */
.cta-intro { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------- Buttons ---------- */
/* live: light-gray #d2d1d1 bg, black text, 3px radius, 12x24 padding, 15px/300.
   hover: transparent bg + currentColor text + thin border. */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #d2d1d1; color: #000;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 15px; font-weight: 300; line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: transparent; color: var(--c-white); border-color: currentColor; }
.section--light .btn, .section--light .btn--solid { background: var(--c-ink); color: var(--c-off); }
.section--light .btn:hover, .section--light .btn--solid:hover { background: transparent; color: var(--c-ink); }
/* keep .btn--solid as an alias so existing markup keeps working */
.btn--solid { background: #d2d1d1; color: #000; }
.btn--solid:hover { background: transparent; color: var(--c-white); border-color: currentColor; }

/* ---------- Header / nav ---------- */
/* Live: 100px fixed transparent header, 50px logo, no shrink/background on scroll.
   pointer-events:none on the bar (re-enabled on interactive children) so the
   invisible fixed bar doesn't eat clicks on content scrolled beneath it. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 var(--gutter);
  color: var(--c-white);
  pointer-events: none;
  transition: color var(--dur) var(--ease);
}
.site-header .site-logo, .site-header .nav-desktop { pointer-events: auto; }
/* Section-aware theme: JS adds .header--on-light when the bar sits over a
   light section, so white chrome doesn't vanish on the #fff / light bands. */
.site-header.header--on-light { color: var(--c-ink); }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 50px; width: auto; }
/* Swap logo mark with header theme (white on dark, black on light). */
.site-logo .logo-dark { display: none; }
.site-header.header--on-light .site-logo .logo-light { display: none; }
.site-header.header--on-light .site-logo .logo-dark { display: block; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-desktop a { font-size: 14px; font-weight: 300; letter-spacing: 0.02em; position: relative; padding-block: 0.25rem; }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }

/* dropdown */
.has-dropdown { position: relative; }
.has-dropdown > ul {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  flex-direction: column; gap: 0; background: var(--c-bg-lift);
  padding: 0.5rem 0; border-radius: 6px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.has-dropdown:hover > ul, .has-dropdown:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown > ul a { display: block; padding: 0.5rem 1.25rem; }

/* burger — sits INSIDE the menu overlay dialog so the close control is within
   the modal boundary; optically centered on the --header-h bar; 44px touch target. */
.burger {
  position: fixed; top: calc(var(--header-h) / 2); right: var(--gutter); transform: translateY(-50%);
  width: 44px; height: 44px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 0; z-index: calc(var(--z-menu) + 1); color: var(--c-white); transition: color var(--dur) var(--ease);
}
.burger span { display: block; width: 28px; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background var(--dur) var(--ease); }
/* match the header's section-aware theme (burger is inside overlay, theme via body) */
body.header-on-light .burger { color: var(--c-ink); }
/* keep the close control white over the always-dark open panel — higher
   specificity than the on-light rule so it wins when opened over a light band */
body.header-on-light .burger[aria-expanded="true"],
.burger[aria-expanded="true"] { color: var(--c-white); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobile menu overlay.
   Structure: .menu-overlay is a transparent, click-through (pointer-events:none)
   wrapper that holds BOTH the burger (always visible) and the dark .menu-panel
   (the actual dialog surface, fades in/out). This keeps the burger inside the
   dialog boundary for a11y while letting it stay visible when the panel hides. */
.menu-overlay {
  position: fixed; inset: 0; z-index: var(--z-menu);
  pointer-events: none; /* click-through unless the panel is open */
}
.menu-overlay .menu-panel {
  position: absolute; inset: 0; background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.menu-overlay.is-open { pointer-events: auto; }
.menu-overlay.is-open .menu-panel { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-overlay nav { text-align: center; }
/* burger is inside the click-through overlay wrapper, so re-enable its own events
   to keep it clickable whether the panel is open or closed */
.menu-overlay .burger { pointer-events: auto; }
.menu-overlay ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu-overlay a { display: block; font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3.5rem); text-transform: lowercase; padding: 0.35rem 0; }
.menu-overlay .sub a { font-size: clamp(1.1rem, 4vw, 1.5rem); color: var(--c-muted); font-family: var(--font-body); text-transform: none; }

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .burger, .menu-overlay { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  position: relative; padding: var(--sp-6) var(--gutter);
}
.hero h1 { color: var(--c-white); line-height: 1.2; font-size: clamp(2.75rem, 6vw, 3.7rem); }  /* live home hero H1 = 59.2px */
/* live subtitle: 18px / weight 300 / margin-top 30px / no tracking / not uppercase */
.hero .tagline { font-family: var(--font-body); font-weight: 300; font-size: 18px; color: var(--c-white); margin-top: 30px; }
/* live scroll cues: 14px / weight 500, bottom 25px, left x60 + right "Unsere Arbeit" */
.hero-cue { position: absolute; bottom: 25px; display: flex; align-items: center; gap: 0.5rem; color: var(--c-white); font-size: 14px; font-weight: 500; }
.hero-cue--left { left: 60px; }
.hero-cue--right { right: 60px; }
.hero-cue svg { animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }
/* hide the side cues on small screens (matches live mobile behaviour) */
@media (max-width: 767px) { .hero-cue { display: none; } }

/* Subpage scroll cue (.hero-scroll) — used on the 7 non-home heroes, which don't
   have the home page's split left/right cues. Same look as the home left cue.
   SVG sized here so the subpage 16px markup matches the home 14px icon. */
.hero-scroll {
  position: absolute; bottom: 25px; left: 60px;
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--c-white); font-size: 14px; font-weight: 500;
}
.hero-scroll svg { width: 14px; height: 14px; animation: bob 2s var(--ease) infinite; }
@media (max-width: 767px) { .hero-scroll { left: var(--gutter); bottom: 20px; } }

/* ---------- Brand strip (post-hero light band with black logo lockup) ----------
   Live white band ≈ 235px total: 115px mark + ~60px padding top/bottom. */
.brand-strip { display: flex; align-items: center; justify-content: center; padding: 60px var(--gutter); }
.brand-strip .brand-mark { width: 288px; height: 115px; object-fit: contain; }

/* ---------- Full-bleed image bands (live overlapping-gallery, static) ----------
   Live: 1320x780 images, ~60px gutter, 8px radius, ~120px vertical gaps.
   Title: 59.2px white Havelock lowercase, horizontally centered, 180px from image bottom. */
.bands { display: grid; gap: 120px; padding: 0 60px; }
.band { position: relative; display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 1320 / 780; }
.band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band-title {
  position: absolute; left: 50%; bottom: 180px; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.7rem);
  text-transform: lowercase; color: var(--c-white); line-height: 1.1; text-align: center;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .bands { gap: 48px; padding: 0 var(--gutter); }
  .band-title { bottom: 24px; white-space: normal; }
}

/* ---------- Card gallery (subpages: values, team, cross-links) ----------
   Used on backstage/future/event/cuts-and-styles/shapingfutures.
   Distinct from the home page's full-bleed .bands. */
.gallery { display: grid; gap: var(--sp-4); }
.card { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4/3; display: block; }
.card img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.card .card-label { position: absolute; inset: auto 0 0 0; padding: var(--sp-3); background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.card .card-label h3 { color: var(--c-white); }
.card .card-label .eyebrow { color: var(--c-offtext); }
@media (min-width: 768px) { .gallery--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Columns (Wieso es sich lohnt) ---------- */
.cols { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Accordion (price list) ---------- */
/* live rows: title = Mundial 500 / 20px / not lowercase; price value 16px/300 */
.accd { border-top: 1px solid rgba(255,255,255,0.18); }
.accd details { border-bottom: 1px solid rgba(255,255,255,0.18); }
.accd summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 20px 0 0; font-family: var(--font-body); font-weight: 500; font-size: 20px; text-transform: none;
}
.accd summary::-webkit-details-marker { display: none; }
.accd summary::before {
  content: "+"; flex: 0 0 auto; width: 1.2em; font-family: var(--font-body); font-weight: 300;
  display: inline-block; transition: transform var(--dur) var(--ease);
}
.accd details[open] summary::before { transform: rotate(45deg); }
.accd summary .price { font-family: var(--font-body); font-weight: 300; font-size: 16px; color: var(--c-offtext); white-space: nowrap; margin-left: auto; }
.accd details[open] summary { color: var(--c-white); }
.accd details > p { padding: 0 0 var(--sp-3); color: var(--c-offtext); max-width: 60ch; }

/* ---------- Facade (maps / booking lazy embeds) ---------- */
.facade { position: relative; border-radius: 10px; overflow: hidden; background: var(--c-bg-lift); min-height: 300px; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--sp-4); }
.facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade .facade-inner > * + * { margin-top: var(--sp-2); }

/* ---------- Forms ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-weight: 300; }
.hours th { font-family: var(--font-display); text-transform: lowercase; font-weight: 400; }
.hours td { text-align: right; color: var(--c-offtext); }
form label { display: block; font-size: 0.9rem; letter-spacing: 0.04em; }
form input[type="text"], form input[type="email"], form textarea {
  width: 100%; margin-top: 0.35rem; padding: 0.8em 1em;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px; color: var(--c-white); font: inherit;
}
form input:focus, form textarea:focus { outline: 2px solid var(--c-white); outline-offset: 1px; border-color: transparent; }
.section--light form input, .section--light form textarea { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.2); color: var(--c-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg); border-top: 1px solid rgba(255,255,255,0.12); padding: var(--sp-5) var(--gutter) var(--sp-4); }
.contact-strip { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }
@media (min-width: 768px) { .contact-strip { grid-template-columns: repeat(3, 1fr); } }
.contact-strip .eyebrow { display: block; margin-bottom: 0.25rem; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--c-muted); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--sp-3); }
.social { display: flex; gap: 1rem; }
.social a { display: inline-flex; }
.back-to-top { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: var(--z-nav); opacity: 0; visibility: hidden; transition: opacity var(--dur), visibility var(--dur); }
.back-to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* fixed-header anchor offset (matches --header-h) */
html { scroll-padding-top: var(--header-h); }

/* ---------- Reduced motion ---------- */
@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; transform: none; }
  .hero-cue svg, .hero-scroll svg { animation: none; }
  .card img { height: 100%; } /* undo parallax crop when motion is off */
}
