/* ============================================================
   INCANTO EVENTS — Direction B (Studio Swiss)
   ============================================================ */

/* ---------- Self-hosted fonts (DSGVO; no Google CDN) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/inter-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --paper: #fafaf8;
  --fg: #0a0a0a;
  --muted: #777777;
  --line: #e6e6e6;
  --accent: #9c6a1e;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(24px, 4vw, 64px);
}

body.theme-dark {
  --bg: #0c0c0c;
  --paper: #141414;
  --fg: #f6f6f6;
  --muted: #8a8a8a;
  --line: #242424;
  --accent: #d9a04a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* `clip` instead of `hidden` — `hidden` implicitly forces overflow-y to
     `auto`, which turns html/body into a scroll container and silently
     breaks every `position: sticky` element (including the site header).
     `overflow: clip` clips without creating a scroll container. */
  overflow-x: clip;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Site header (logo over nav) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: background 0.3s ease;
}
body.is-scrolled .site-header {
  background: color-mix(in oklab, var(--bg) 96%, transparent);
}
.header-logo {
  display: flex;
  justify-content: center;
  padding: 28px var(--pad-x) 20px;
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1),
              padding 0.4s cubic-bezier(.4,0,.2,1),
              opacity 0.25s ease;
}
body.is-scrolled .header-logo {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.header-logo img {
  height: 92px;
  width: auto;
}
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 0 var(--pad-x) 18px;
  transition: padding-top 0.4s cubic-bezier(.4,0,.2,1);
}
/* When the logo collapses we lose all top whitespace — give the nav row
   its own breathing room so it doesn't crowd the browser chrome. */
body.is-scrolled .site-nav {
  padding-top: 16px;
}
.site-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.site-nav .nav-links a {
  transition: color 0.25s ease;
  position: relative;
  padding: 6px 0;
}
.site-nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.site-nav .nav-links a:hover {
  color: var(--fg);
}
.site-nav .nav-links a:hover::after {
  transform: scaleX(1);
}
.site-nav .nav-links a.active {
  color: var(--fg);
}
.site-nav .nav-links a.active::after {
  transform: scaleX(1);
}
.site-nav .nav-utility {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.light-only { display: block; }
.dark-only { display: none; }
body.theme-dark .light-only { display: none; }
body.theme-dark .dark-only { display: block; }

/* ---------- Mobile-only hooks (hamburger + editorial-overlay extras) ---------- */
/* On desktop these stay hidden; the mobile @media block below switches them on. */
.nav-toggle,
.nav-direct-label,
.site-nav .nav-utility .nav-call,
.site-nav .nav-utility .nav-wa,
.site-nav .nav-links .navnum { display: none; }

@media (max-width: 1024px) {
  /* ── Variante C — schlanke Top-Leiste: Logo links (groß), Burger rechts, NICHT sticky ── */
  .site-header {
    position: relative;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(22px + env(safe-area-inset-top, 0px)) var(--pad-x) 16px;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.is-scrolled .site-header { background: var(--bg); }

  .header-logo {
    order: 0;
    position: relative;
    z-index: 80;
    justify-content: flex-start;
    padding: 0;
    max-height: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
  }
  body.is-scrolled .header-logo {
    max-height: none;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
  }
  .header-logo img { height: 72px; }

  .site-nav { order: 1; display: block; padding: 0; flex: 0 0 0; }
  /* Desktop sticky-collapse gives the nav row extra top padding; mobile header
     doesn't collapse, so reset that. */
  body.is-scrolled .site-nav { padding-top: 0; }

  /* Hamburger — rechts, inline in der Leiste */
  .nav-toggle {
    order: 2;
    display: inline-flex;
    position: relative;
    z-index: 80;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    color: var(--fg);
    background: transparent;
    border: 0;
  }
  .nav-toggle span {
    display: block;
    height: 1.6px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1), width 0.35s cubic-bezier(.2,.7,.2,1), opacity 0.2s ease;
    transform-origin: center;
  }
  .nav-toggle span:nth-child(1) { width: 26px; }
  .nav-toggle span:nth-child(2) { width: 18px; }
  .nav-toggle span:nth-child(3) { width: 26px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); width: 24px; }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: translateX(8px); }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); width: 24px; }

  /* ── Editoriales Vollbild-Overlay ── */
  .site-nav .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 116px var(--pad-x) 200px;
    z-index: 60;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.3s ease;
    font-size: 13px;
  }
  body.nav-open .site-nav .nav-links {
    opacity: 1;
    pointer-events: auto;
    clip-path: inset(0 0 0 0);
  }
  body.nav-open { overflow: hidden; }

  .site-nav .nav-links a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: var(--sans);
    text-transform: none;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--fg);
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(.2,.7,.2,1), transform 0.5s cubic-bezier(.2,.7,.2,1);
  }
  .site-nav .nav-links a .navnum {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 400;
    color: var(--muted);
    min-width: 26px;
    align-self: center;
  }
  .site-nav .nav-links a.active { color: var(--accent); }
  .site-nav .nav-links a.active .navnum { color: var(--accent); }
  .site-nav .nav-links a::after,
  .site-nav .nav-links a.active::after { display: none; }
  body.nav-open .site-nav .nav-links a { opacity: 1; transform: none; }
  body.nav-open .site-nav .nav-links a:nth-child(1) { transition-delay: 0.10s; }
  body.nav-open .site-nav .nav-links a:nth-child(2) { transition-delay: 0.15s; }
  body.nav-open .site-nav .nav-links a:nth-child(3) { transition-delay: 0.20s; }
  body.nav-open .site-nav .nav-links a:nth-child(4) { transition-delay: 0.25s; }
  body.nav-open .site-nav .nav-links a:nth-child(5) { transition-delay: 0.30s; }
  body.nav-open .site-nav .nav-links a:nth-child(6) { transition-delay: 0.35s; }
  body.nav-open .site-nav .nav-links a:nth-child(7) { transition-delay: 0.40s; }
  body.nav-open .site-nav .nav-links a:nth-child(8) { transition-delay: 0.45s; }

  /* ── Footer: „Lieber direkt?" + Anrufen / WhatsApp + Theme ── */
  .site-nav .nav-utility {
    position: fixed;
    left: var(--pad-x);
    right: var(--pad-x);
    bottom: 28px;
    justify-self: stretch;
    display: grid;
    /* Two columns: Anrufen + WhatsApp. Originally `1fr 1fr auto` with
       the theme-toggle in the auto column — restored if Dark-mode is
       re-enabled. */
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
    z-index: 65;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.2,.7,.2,1) 0.42s, transform 0.5s cubic-bezier(.2,.7,.2,1) 0.42s;
  }
  body.nav-open .site-nav .nav-utility {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-direct-label {
    /* Override the desktop `display: none` set above the media query. */
    display: block;
    grid-column: 1 / -1;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .site-nav .nav-utility .nav-call,
  .site-nav .nav-utility .nav-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.15s ease, opacity 0.2s;
  }
  .site-nav .nav-utility .nav-call { background: var(--fg); color: var(--bg); }
  .site-nav .nav-utility .nav-wa { background: #1f9d56; color: #fff; }
  .site-nav .nav-utility .nav-call:active,
  .site-nav .nav-utility .nav-wa:active { transform: scale(0.97); }
  .site-nav .nav-utility .nav-call svg,
  .site-nav .nav-utility .nav-wa svg { width: 16px; height: 16px; }
  .site-nav .nav-utility .theme-toggle {
    width: 52px;
    height: auto;
    border-radius: 999px;
    flex-shrink: 0;
  }
  .site-nav .nav-utility .theme-toggle svg { width: 18px; height: 18px; }
  .site-nav .nav-utility .nav-cta { display: none; }
}
.nav-cta {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.nav-cta:hover {
  border-color: var(--fg);
  color: var(--fg);
}
.nav-cta:active { transform: translateY(1px); }
.nav-cta svg {
  width: 14px;
  height: 14px;
}
.nav-cta .cta-text {
  /* Visually hidden on desktop — kept for accessibility */
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.theme-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover {
  border-color: var(--fg);
  color: var(--fg);
}
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .sun { display: none; }
body.theme-dark .theme-toggle .sun { display: block; }
body.theme-dark .theme-toggle .moon { display: none; }



/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 9vw, 120px) var(--pad-x) clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.hero .meta {
  display: flex;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 116px);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 12px;
  max-width: 38ch;
}
.hero-right .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-right p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.hero-right .name {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { padding-bottom: 0; }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.svc {
  border-right: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.25s;
}
.svc:last-child { border-right: 0; }
.svc:hover { background: var(--paper); }
.svc .photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.svc image-slot {
  width: 100%;
  height: 100%;
  --slot-bg: var(--paper);
  --slot-fg: var(--muted);
}
.svc .photo img-wrap { display: block; width: 100%; height: 100%; }
.svc .num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.svc .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.svc h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.svc .arrow {
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.25s;
}
.svc:hover .arrow { transform: translateX(6px); }
@media (max-width: 880px) {
  .services { grid-template-columns: 1fr; }
  .svc { border-right: 0; border-bottom: 1px solid var(--line); }
  .svc:last-child { border-bottom: 0; }
}

/* ---------- Quote (image + big quote) ---------- */
.quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.quote .photo {
  border-right: 1px solid var(--line);
}
.quote .photo image-slot {
  width: 100%;
  height: 100%;
  min-height: 520px;
  --slot-bg: var(--paper);
  --slot-fg: var(--muted);
}
.quote .body {
  padding: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.quote .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote blockquote {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.028em;
  max-width: 18ch;
}
@media (max-width: 880px) {
  .quote { grid-template-columns: 1fr; }
  .quote .photo { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Gallery ---------- */
.gallery {
  padding: clamp(48px, 6vw, 80px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.gallery .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
}
.gallery-grid .cell {
  aspect-ratio: 1/1;
  overflow: hidden;
}
.gallery-grid .cell:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-grid .cell image-slot {
  width: 100%;
  height: 100%;
  --slot-bg: var(--paper);
  --slot-fg: var(--muted);
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .cell:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1; }
}

/* ---------- Testimonials ---------- */
.stimmen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.stim {
  border-right: 1px solid var(--line);
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
}
.stim:last-child { border-right: 0; }
.stim .num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.stim p {
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.stim .who {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) {
  .stimmen { grid-template-columns: 1fr; }
  .stim { border-right: 0; border-bottom: 1px solid var(--line); }
  .stim:last-child { border-bottom: 0; }
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(72px, 10vw, 144px) var(--pad-x);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: clamp(32px, 5vw, 80px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta h2 {
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.cta-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta .phone {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.cta .wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  align-self: start;
  transition: opacity 0.2s;
}
.cta .wa:hover { opacity: 0.7; }
.cta .wa svg { width: 14px; height: 14px; }
@media (max-width: 880px) {
  .cta { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 28px var(--pad-x);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.footer-center { display: flex; gap: 28px; justify-self: center; }
.footer-right { justify-self: end; }
.footer a:hover { color: var(--fg); }
.footer-logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
}
.footer-logo img {
  height: 100%;
  width: auto;
}
@media (max-width: 760px) {
  .footer { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .footer-center, .footer-right, .footer-logo { justify-self: center; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Content subpages (Impressum / Datenschutz / etc.)
   ============================================================ */
.page-head {
  padding: clamp(64px, 9vw, 120px) var(--pad-x) clamp(48px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.page-head .crumb {
  display: flex;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.page-head .crumb .here { color: var(--accent); }
.page-head h1 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.page-head .meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  max-width: 38ch;
}
.page-head .meta .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-head .meta .updated {
  font-size: 14px;
  color: var(--fg);
}
@media (max-width: 880px) {
  .page-head { grid-template-columns: 1fr; }
}

.content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(56px, 7vw, 96px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.content-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-toc .toc-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.content-toc a {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  padding: 4px 0;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  transition: color 0.2s, border-color 0.2s;
}
.content-toc a:hover,
.content-toc a.active {
  color: var(--fg);
  border-left-color: var(--accent);
}
.content-toc .toc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-right: 8px;
}

.prose {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
  max-width: 68ch;
}
.prose h2 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.prose h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.prose h2 .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.prose h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 28px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.prose p {
  margin: 12px 0;
  color: color-mix(in oklab, var(--fg) 80%, var(--muted));
}
.prose strong {
  color: var(--fg);
  font-weight: 500;
}
.prose a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.prose a:hover {
  border-bottom-color: var(--accent);
}
.prose ul {
  padding-left: 20px;
  margin: 12px 0;
}
.prose ul li {
  margin: 6px 0;
  color: color-mix(in oklab, var(--fg) 80%, var(--muted));
}
.prose .fact {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--paper);
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  align-items: baseline;
}
.prose .fact dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.prose .fact dd {
  margin: 0;
  color: var(--fg);
}

@media (max-width: 880px) {
  .content { grid-template-columns: 1fr; }
  .content-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
  .content-toc a { border-left: 0; padding-left: 0; }
}

/* ============================================================
   Event subpages (Hochzeit / Firmenevents / Geburtstage)
   ============================================================ */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.event-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
}
.event-cell:nth-child(3n) { border-right: 0; }
/* Bottom row (last 3) — remove bottom border (the grid wrapper provides it) */
.event-grid > .event-cell:nth-last-child(-n+3) { border-bottom: 0; }

/* 2-column variant (firmen / geburtstag) */
.event-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.event-grid.cols-2 .event-cell { border-right: 1px solid var(--line); }
.event-grid.cols-2 .event-cell:nth-child(2n) { border-right: 0; }
.event-grid.cols-2 > .event-cell { border-bottom: 1px solid var(--line); }
.event-grid.cols-2 > .event-cell:nth-last-child(-n+2) { border-bottom: 0; }

.event-cell.is-img {
  overflow: hidden;
  background: var(--paper);
}
.event-cell.is-img image-slot {
  width: 100%;
  height: 100%;
  --slot-bg: var(--paper);
  --slot-fg: var(--muted);
}
.event-cell.is-text {
  padding: clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  text-align: center;
  align-items: center;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: default;
}
.event-cell.is-text::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 2.4vw, 36px);
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(.2,.7,.2,1);
}
.event-cell.is-text > * {
  transition: color 0.3s ease, transform 0.3s ease;
}
.event-cell.is-text:hover {
  background: var(--fg);
  color: var(--bg);
}
.event-cell.is-text:hover .num {
  color: var(--accent);
}
.event-cell.is-text:hover h3 {
  color: var(--bg);
  transform: translateY(-2px);
}
.event-cell.is-text:hover p {
  color: color-mix(in oklab, var(--bg) 80%, transparent);
}
.event-cell.is-text:hover::after {
  width: clamp(32px, 4vw, 56px);
  left: calc(50% - clamp(16px, 2vw, 28px));
}
.event-cell.is-text h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.event-cell.is-text p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 32ch;
}
.event-cell.is-text .num {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 880px) {
  .event-grid { grid-template-columns: 1fr; }
  .event-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 4/3;
  }
  .event-grid > .event-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .event-grid > .event-cell:last-child { border-bottom: 0; }
}

/* Social ribbon */
.socials {
  padding: clamp(56px, 7vw, 88px) var(--pad-x);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.socials .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.socials .row {
  display: inline-flex;
  gap: 12px;
}
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.socials a svg { width: 18px; height: 18px; }

/* ============================================================
   About page (Das bin ich)
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.about-split .photo {
  border-right: 1px solid var(--line);
  overflow: hidden;
  min-height: 640px;
}
.about-split .photo image-slot {
  width: 100%;
  height: 100%;
  --slot-bg: var(--paper);
  --slot-fg: var(--muted);
}
.about-split .body {
  padding: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}
.about-split .body .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-split .body .name {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.about-split .body p {
  font-size: 15px;
  line-height: 1.7;
  color: color-mix(in oklab, var(--fg) 80%, var(--muted));
  max-width: 56ch;
}
@media (max-width: 880px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split .photo { border-right: 0; border-bottom: 1px solid var(--line); min-height: 420px; }
}

/* ============================================================
   Lightbox (gallery image viewer)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 80px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  display: flex;
  opacity: 1;
  animation: lbFade 0.25s ease;
}
@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.lb-open { overflow: hidden; }

.lightbox .lb-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lightbox .lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  pointer-events: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: lbZoom 0.32s cubic-bezier(.2,.7,.2,1);
}
@keyframes lbZoom {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox button {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--accent);
}
.lightbox button:active { transform: scale(0.95); }
.lightbox button svg { width: 18px; height: 18px; }

.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev:active { transform: translateY(-50%) scale(0.95); }
.lightbox .lb-next:active { transform: translateY(-50%) scale(0.95); }

.lightbox .lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 760px) {
  .lightbox { padding: 12px; }
  .lightbox .lb-close { top: 14px; right: 14px; }
  .lightbox .lb-prev  { left: 12px; }
  .lightbox .lb-next  { right: 12px; }
  .lightbox button { width: 40px; height: 40px; }
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-bottom: 1px solid var(--line);
}
.contact-split .info {
  padding: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 64px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-split .info .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-split .info .intro {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 32ch;
  font-weight: 400;
}
.contact-split .info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 4px 0 0;
}
.contact-split .info-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-split .info-list > div:first-child { border-top: 1px solid var(--line); }
.contact-split .info-list dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}
.contact-split .info-list dd {
  margin: 0;
  font-size: 15px;
  color: var(--fg);
  align-self: center;
}
.contact-split .info-list a {
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.contact-split .info-list a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.contact-split .wa-direct {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 14px 22px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.15s;
}
.contact-split .wa-direct:hover { opacity: 0.9; }
.contact-split .wa-direct:active { transform: translateY(1px); }
.contact-split .wa-direct svg { width: 16px; height: 16px; }
.contact-split .wa-direct .arrow {
  font-size: 16px;
  transition: transform 0.25s;
  color: var(--accent);
}
.contact-split .wa-direct:hover .arrow { transform: translateX(4px); }

/* ---------- Form ---------- */
.contact-form {
  padding: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.contact-form label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  width: 100%;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.25s, color 0.25s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: color-mix(in oklab, var(--muted) 70%, var(--bg));
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 0;
  border-bottom-color: var(--accent);
}
.contact-form input:focus + .field-bar,
.contact-form textarea:focus + .field-bar { width: 100%; }
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.contact-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
  cursor: pointer;
}
.contact-form .field.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}
.contact-form .field.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
}
.contact-form .field.check input:checked {
  background: var(--fg);
  border-color: var(--fg);
}
.contact-form .field.check input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--bg);
  clip-path: polygon(15% 50%, 0 65%, 40% 100%, 100% 25%, 85% 15%, 38% 75%);
}
.contact-form .field.check label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.contact-form .field.check label a {
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.contact-form .form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.contact-form .submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}
.contact-form .submit:hover { opacity: 0.9; }
.contact-form .submit:active { transform: translateY(1px); }
.contact-form .submit:disabled { opacity: 0.5; cursor: not-allowed; }
.contact-form .submit svg {
  width: 16px; height: 16px;
}
.contact-form .form-hint {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form .form-success {
  margin-top: 8px;
  padding: 16px 20px;
  background: color-mix(in oklab, var(--accent) 10%, var(--bg));
  border-left: 2px solid var(--accent);
  font-size: 14px;
  color: var(--fg);
}

@media (max-width: 880px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-split .info {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.gallery-page {
  padding: clamp(40px, 5vw, 72px) var(--pad-x) clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.gallery-page .head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
}
.gallery-page .head h2 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.gallery-page .head .meta {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-page .masonry {
  column-count: 4;
  column-gap: 6px;
}
.gallery-page .cell {
  break-inside: avoid;
  margin-bottom: 6px;
  overflow: hidden;
  background: var(--paper);
  display: block;
}
.gallery-page .cell image-slot {
  width: 100%;
  height: 100%;
  --slot-bg: var(--paper);
  --slot-fg: var(--muted);
}
/* Aspect-ratio variants — drive the natural masonry rhythm */
.gallery-page .cell.a-tall      { aspect-ratio: 3 / 4; }
.gallery-page .cell.a-portrait  { aspect-ratio: 4 / 5; }
.gallery-page .cell.a-square    { aspect-ratio: 1 / 1; }
.gallery-page .cell.a-landscape { aspect-ratio: 4 / 3; }
.gallery-page .cell.a-wide      { aspect-ratio: 3 / 2; }
.gallery-page .cell.a-cinema    { aspect-ratio: 16 / 9; }

@media (max-width: 1280px) {
  .gallery-page .masonry { column-count: 3; }
}
@media (max-width: 760px) {
  .gallery-page .masonry { column-count: 2; column-gap: 4px; }
  .gallery-page .cell { margin-bottom: 4px; }
}
@media (max-width: 460px) {
  .gallery-page .masonry { column-count: 1; }
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.fact-cell {
  border-right: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fact-cell:last-child { border-right: 0; }
.fact-cell .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-cell .value {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.fact-cell .sub {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 880px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact-cell:nth-child(2) { border-right: 0; }
  .fact-cell:nth-child(1), .fact-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ------------------------------------------------------------------
   <picture>/<img> behaviour — replaces the <image-slot> from the
   design handoff. Every cell that originally hosted an image-slot
   uses our responsive <picture> element instead. Make it fill the
   parent and crop with object-fit, matching the design intent.
   ------------------------------------------------------------------ */
.svc .photo,
.quote .photo,
.gallery-grid .cell,
.about-split .photo,
.event-cell.is-img,
.gallery-page .cell {
    overflow: hidden;
}
.svc .photo picture,
.svc .photo img,
.quote .photo picture,
.quote .photo img,
.gallery-grid .cell picture,
.gallery-grid .cell img,
.about-split .photo picture,
.about-split .photo img,
.event-cell.is-img picture,
.event-cell.is-img img,
.gallery-page .cell picture,
.gallery-page .cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
