/* ==========================================================================
   renderhouse.ch — Design tokens (from client spec: Header Colors / Footer)
   ========================================================================== */
:root {
  --cream: #F7F2E9;          /* header + page background */
  --sand-100: #EDE3D4;       /* hover, dividers on light */
  --sand: #DCC6A4;           /* logo square, «render» */
  --brown: #54463B;          /* text, buttons, dark footer */
  --brown-900: #3E342B;      /* hover state */
  --red: #B23A2E;            /* the dot, active underline */
  --white: #fff;
  --shadow: 0 18px 40px -12px rgba(62, 50, 41, .22);
  --shadow-sm: 0 6px 20px rgba(62, 50, 41, .14);

  --text: #45392F;           /* body copy: darker than --brown for legibility */
  --text-muted: #6A5A4C;     /* secondary copy, still > 5.5:1 on cream */
  --font: "Inter", "Inter Fallback", "Segoe UI", Arial, sans-serif;
  --font-head: "Inter Tight", "Inter Tight Fallback", "Inter", "Segoe UI", Arial, sans-serif;
  --radius: 4px;
  --radius-lg: 10px;
  --gutter: clamp(16px, 5vw, 80px);
  --maxw: 1440px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

/* Metric-matched fallbacks: no text reflow while the web font loads */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.1%; ascent-override: 90.4%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"); size-adjust: 98%; ascent-override: 98.8%; descent-override: 24.6%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-feature-settings: "kern", "calt";
  font-size: clamp(16.5px, .6vw + 12px, 18px);
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sand); color: var(--brown-900); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; color: var(--brown-900); }
h2 { font-size: clamp(32px, 3.6vw, 56px); font-weight: 650; }
h3 { font-size: clamp(20px, 1.6vw, 25px); font-weight: 600; letter-spacing: -.015em; }
h4 { font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--brown); color: var(--cream); padding: 10px 16px; z-index: 1000; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 26px; border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: -.005em; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--brown); color: var(--cream); }
.btn--primary:hover { background: var(--brown-900); box-shadow: var(--shadow-sm); }
.btn--sand { background: var(--sand); color: var(--brown); }
.btn--sand:hover { background: var(--cream); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.btn--light { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--light:hover { background: #fff; color: var(--brown); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   Header (spec: #F7F2E9, logo left, nav right, dropdown with 6 services)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; transition: box-shadow .3s var(--ease); }
/* blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile panel inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--sand-100), 0 8px 30px -18px rgba(62,50,41,.35); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: clamp(30px, 3vw, 42px); width: auto; }

.nav, .nav__panel { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 48px); }
.nav__list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 48px); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0; text-decoration: none; font-size: 17px; background: none; border: 0; color: var(--brown);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="true"]::after, .nav__link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__link[aria-expanded="true"] { color: var(--brown-900); }
.nav__link .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; right: -40px; top: calc(100% + 22px);
  min-width: 300px; padding: 12px 0; margin: 0; list-style: none;
  background: var(--cream); border-top: 2px solid var(--brown);
  box-shadow: 0 24px 48px rgba(62, 50, 41, 0.14);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease-out), visibility .25s;
}
.dropdown__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.dropdown__menu a { display: block; padding: 13px 28px; text-decoration: none; font-size: 16px; transition: background .2s; }
.dropdown__menu a:hover, .dropdown__menu a:focus-visible { background: var(--sand-100); outline: none; }

.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: var(--radius); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--brown); transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile: the same menu becomes a full-screen panel */
@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .burger { display: block; }
  .nav__panel {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; justify-content: flex-start; gap: 28px;
    background: var(--cream); padding: 16px var(--gutter) 40px; overflow-y: auto; text-align: center;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease-out), visibility .5s;
  }
  .nav__panel.is-open { clip-path: inset(0); visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; width: 100%; max-width: 420px; }
  .nav__list > li { width: 100%; border-bottom: 1px solid var(--sand-100); }
  .nav__list .nav__link { font-size: 20px; padding: 14px 0; justify-content: center; }
  .nav__link::after { display: none; }
  /* service list is always expanded; its toggle becomes a small label */
  .dropdown .nav__link { pointer-events: none; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); padding: 18px 0 4px; }
  .dropdown .chev { display: none; }
  .dropdown__menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; background: none; }
  .dropdown__menu a { font-size: 19px; padding: 9px 0; }
  .dropdown__menu a:hover { background: none; }
  .nav__panel .btn { width: 100%; max-width: 420px; font-size: 18px; padding: 18px; }
}

/* ==========================================================================
   Hero — zoom-in title images + «B E Y O N D   I M A G I N A T I O N»
   ========================================================================== */
.hero {
  position: relative; height: calc(100svh - var(--header-h)); min-height: 520px; max-height: 1100px;
  overflow: hidden; background: #2a231d; color: #fff; isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide.is-leaving { opacity: 0; z-index: 2; transition-duration: 1.6s; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transform-origin: var(--origin, 50% 50%); will-change: transform; }
.hero__slide.is-active img, .hero__slide.is-leaving img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }

/* scroll-driven zoom-in of the whole stage (progressive enhancement) */
@supports (animation-timeline: view()) {
  .hero__slides { animation: hero-scroll linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  @keyframes hero-scroll { to { transform: scale(1.08); } }
  .hero__content { animation: hero-fade linear both; animation-timeline: view(); animation-range: exit 0% exit 60%; }
  @keyframes hero-fade { to { opacity: 0; transform: translateY(-60px); } }
}

.hero::after { /* legibility gradient */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 50%, rgba(20,15,10,.45), rgba(20,15,10,.12) 75%),
    linear-gradient(to bottom, rgba(20,15,10,.25), transparent 30%, transparent 60%, rgba(20,15,10,.55));
}
.hero__content {
  position: relative; z-index: 4; height: 100%;
  display: grid; place-items: center; align-content: center; text-align: center; padding: 0 var(--gutter);
}
.hero__title {
  margin: 0; color: #fff; font-family: var(--font-head); font-weight: 400; line-height: 1.15;
  font-size: clamp(26px, 4.4vw, 84px); letter-spacing: .38em; margin-right: -.38em; /* optical centering of tracked text */
  text-shadow: 0 2px 24px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.25);
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .9em;
}
.hero__title .word { display: inline-flex; white-space: nowrap; }
.hero__title .ch { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.35em) scale(1.4); animation: letter-in 1.4s var(--ease-out) forwards; animation-delay: calc(.4s + var(--i) * 70ms); }
@keyframes letter-in { to { opacity: 1; filter: blur(0); transform: none; } }
/* safety net: if animations are paused (background tab, power saving), show the text anyway */
.hero.intro-done .ch, .hero.intro-done .hero__cta { animation: none; opacity: 1; filter: none; transform: none; }
.hero__cta { margin-top: clamp(28px, 5vh, 48px); opacity: 0; animation: fade-up 1.2s var(--ease-out) 2s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(72px, 10vw, 150px); }
.section--alt { background: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: .16em; color: var(--brown); text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { font-size: clamp(17px, 1.2vw, 19.5px); color: var(--text-muted); margin: 0; max-width: 56ch; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; text-align: center; justify-items: center; } .eyebrow { justify-content: center; } }

/* ==========================================================================
   Service block
   ========================================================================== */
.service { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--sand-100); }
.service:nth-of-type(even) { background: #fff; }
.service__num { font-size: 14px; font-weight: 700; letter-spacing: .2em; color: var(--red); }

/* ---------- Slider (equal-size frames, scroll-snap, drag, keys) ---------- */
.slider { position: relative; --ratio: 16 / 9; margin-inline: auto; max-width: min(100%, calc((100svh - var(--header-h) - 130px) * var(--ratio))); }
@media (max-width: 640px) { .slider { max-width: 100%; } }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; border-radius: var(--radius-lg); background: var(--sand-100);
  box-shadow: var(--shadow);
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.slide { position: relative; margin: 0; aspect-ratio: var(--ratio); scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.slide--contain img { object-fit: contain; background: #fff; }
.slide figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: var(--radius);
  background: rgba(247, 242, 233, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 700; color: var(--brown);
}
.slider__ui { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.slider__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--brown); background: transparent;
  display: grid; place-items: center; transition: background .25s, color .25s;
}
.slider__btn:hover { background: var(--brown); color: var(--cream); }
.slider__btn:disabled { opacity: .3; pointer-events: none; }
.slider__btn svg { width: 20px; height: 20px; }
.slider__count { min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .08em; }
.slider__count span { opacity: .5; font-weight: 400; }
@media (max-width: 640px) { .slider__track { border-radius: var(--radius); } }

/* ---------- Before / After comparison ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.compare-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .compare-grid, .compare-grid--2 { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; } }
.compare-card h3 { font-size: 18px; margin: 14px 0 0; text-align: center; }
.compare {
  --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); user-select: none; touch-action: pan-y; background: var(--sand-100); cursor: ew-resize;
}
.compare--wide { aspect-ratio: 16 / 9; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.3); pointer-events: none; }
.compare__handle {
  position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: #fff; color: var(--brown); display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0,0,0,.25); pointer-events: none;
}
.compare__handle svg { width: 26px; height: 26px; }
.compare__tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: var(--radius); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(62,52,43,.82); color: var(--cream); pointer-events: none; }
.compare__tag--before { left: 14px; } .compare__tag--after { right: 14px; background: rgba(247,242,233,.92); color: var(--brown); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.compare input[type=range]:focus-visible + .compare__line { background: var(--red); }

/* ---------- Mood switcher (day / dusk / winter) ---------- */
.mood { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.mood__stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sand-100); }
.mood__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.mood__stage img.is-active { opacity: 1; }
.segmented { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--sand-100); gap: 4px; margin-top: 10px; }
.segmented button { border: 0; background: transparent; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; transition: background .25s, color .25s, box-shadow .25s; }
.segmented button[aria-pressed="true"] { background: var(--brown); color: var(--cream); box-shadow: var(--shadow-sm); }
.segmented svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .mood { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #1f1a16; }
.video video { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Für wen wir arbeiten (from client mockup)
   ========================================================================== */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 40px); }
.audience__card { background: #F2EADF; display: flex; flex-direction: column; border-radius: 2px; overflow: hidden; transition: box-shadow .4s var(--ease); }
.audience__card:hover { box-shadow: var(--shadow); }
.audience__img { aspect-ratio: 1; overflow: hidden; }
.audience__img img { width: 100%; height: 100%; object-fit: cover; }
.audience__body { padding: clamp(22px, 2.2vw, 34px); }
.tag { display: inline-block; background: #7A6858; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px; margin-bottom: 18px; }
.audience__body h3 { font-size: clamp(20px, 1.5vw, 24px); margin-bottom: 10px; }
.audience__body p { margin: 0; color: var(--text-muted); }
@media (max-width: 960px) { .audience { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; text-align: center; } }

/* ==========================================================================
   Preise (plain block until the client provides prices)
   ========================================================================== */
.price { max-width: 640px; text-align: center; display: grid; justify-items: center; }
.price p { color: var(--text-muted); font-size: clamp(17px, 1.2vw, 19.5px); margin-bottom: 28px; }

/* ==========================================================================
   About
   ========================================================================== */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__media { position: relative; }
.about__portrait { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.about__side { position: absolute; width: 58%; right: -10%; bottom: -12%; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 6px solid var(--cream); box-shadow: var(--shadow); }
.about__side img { width: 100%; height: 100%; object-fit: cover; }
.about__name { margin-top: 18px; font-weight: 700; color: var(--brown-900); }
.about__name small { display: block; font-weight: 400; color: var(--text-muted); font-size: 15px; }
.about__langs { display: flex; gap: 8px; margin: 24px 0 0; flex-wrap: wrap; }
.about__langs span { padding: 7px 14px; border-radius: 999px; background: var(--sand-100); font-size: 14px; font-weight: 700; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; text-align: center; } .about__media { max-width: 440px; margin: 0 auto 40px; } .about__langs { justify-content: center; } .about__side { right: -6%; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 900px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--sand); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--font-head); font-size: clamp(18px, 1.4vw, 21px); font-weight: 600; letter-spacing: -.012em; color: var(--brown-900);
  -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover .faq__icon { background: var(--sand); }
/* Plus → minus. Integer pixel geometry so both bars render razor sharp. */
.faq__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sand-100); transition: background-color .3s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 11px; top: 17px; width: 14px; height: 2px; border-radius: 1px; background: var(--brown); transition: transform .4s var(--ease-out), background-color .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--brown); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--cream); }
.faq__item[open] .faq__icon::after { transform: rotate(180deg); }
/* while the close animation runs, the icon already shows «closed» */
.faq__item.is-closing .faq__icon { background: var(--sand-100); }
.faq__item.is-closing .faq__icon::before, .faq__item.is-closing .faq__icon::after { background: var(--brown); }
.faq__item.is-closing .faq__icon::after { transform: rotate(90deg); }
.faq__body { overflow: hidden; }
.faq__body p { margin: 0; padding: 0 60px 28px 0; color: var(--text-muted); }
@media (max-width: 560px) { .faq__body p { padding-right: 0; } }

/* ==========================================================================
   Footer (dark, spec «def2»)
   ========================================================================== */
.site-footer { background: var(--brown); color: var(--sand-100); padding: clamp(56px, 7vw, 96px) 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 48px 40px; }
.footer-grid h4 { margin: 8px 0 22px; color: var(--cream); font-size: 17px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 28px; }
.footer-brand p { max-width: 42ch; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-list a { text-decoration: none; transition: color .2s; }
.footer-list a:hover { color: var(--sand); }
.contact-row { display: grid; grid-template-columns: 22px 1fr; gap: 16px; margin-bottom: 22px; align-items: start; }
.contact-row svg { width: 20px; height: 20px; color: var(--sand); margin-top: 4px; }
address { font-style: normal; }
.contact-row a.link { color: var(--sand); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.contact-row a { text-decoration: none; }
.email-btn { border: 1.5px solid var(--sand); color: var(--sand); background: transparent; padding: 12px 20px; border-radius: var(--radius); font-size: 16px; transition: background .2s, color .2s; }
.email-btn:hover { background: var(--sand); color: var(--brown); }
.email-btn--light { border-color: var(--brown); color: var(--brown); padding: 6px 12px; }
.email-btn--light:hover { background: var(--brown); color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--brown-900); color: var(--sand); font-size: 15px; }
.footer-bottom nav { display: flex; gap: 36px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-brand p { margin-inline: auto; }
  .contact-row { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom nav { gap: 24px; }
}

/* ==========================================================================
   Lightbox (<dialog>)
   ========================================================================== */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 19, 15, .96); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-variant-numeric: tabular-nums; }
.lightbox__stage { display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 96px); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; animation: lb-img .45s var(--ease-out); }
@keyframes lb-img { from { opacity: 0; transform: scale(.97); } }
.lightbox__caption { text-align: center; padding: 16px 20px 24px; opacity: .85; }
.lightbox button { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: 18px; transform: none; } }

/* ==========================================================================
   Contact popup (<dialog>)
   ========================================================================== */
.contact { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 14px; background: var(--cream); color: var(--text); box-shadow: 0 40px 100px rgba(20,15,10,.45); overflow-y: auto; overscroll-behavior: contain; }
.contact::backdrop { background: rgba(40, 32, 26, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact[open] { animation: contact-in .4s var(--ease-out); }
@keyframes contact-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.contact__form, .contact__done { padding: clamp(22px, 4vw, 36px); }
.contact__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact__head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.contact__head p { margin: 0; color: var(--text-muted); }
.contact__close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sand-100); display: grid; place-items: center; transition: background .2s; }
.contact__close:hover { background: var(--sand); }
.contact__close svg { width: 18px; height: 18px; }
.contact__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--brown-900); }
.field input, .field select, .field textarea { font: inherit; color: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--sand); border-radius: 8px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
/* Select: same look as the text fields, brown chevron instead of the browser arrow */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354463B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field select:hover { border-color: var(--brown); }
.field select:has(option[value=""]:checked) { color: var(--text-muted); } /* placeholder look for «Bitte wählen» */
.field select option { color: var(--text); }
/* Customizable select (Chrome 135+): the open list matches the site too; other browsers keep their native list */
@supports (appearance: base-select) {
  .field select, .field select::picker(select) { appearance: base-select; }
  .field select::picker-icon { display: none; }
  .field select::picker(select) {
    margin-top: 6px; padding: 6px; border: 1.5px solid var(--sand); border-radius: 10px;
    background: var(--cream); box-shadow: 0 18px 40px -12px rgba(62, 50, 41, .3);
    opacity: 0; translate: 0 -6px;
    transition: opacity .2s var(--ease), translate .25s var(--ease-out), display .25s allow-discrete, overlay .25s allow-discrete;
  }
  .field select:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style { .field select:open::picker(select) { opacity: 0; translate: 0 -6px; } }
  .field select option { padding: 10px 12px; border-radius: 6px; gap: 10px; transition: background .15s; }
  .field select option:hover, .field select option:focus-visible { background: var(--sand-100); outline: none; }
  .field select option:checked { font-weight: 600; color: var(--brown-900); }
  .field select option::checkmark { color: var(--red); }
  .field select option[value=""] { display: none; } /* «Bitte wählen» is only the empty state */
}
.field :focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(84,70,59,.14); }
.field :user-invalid { border-color: var(--red); }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.contact__note { margin: 0; font-size: 14px; color: var(--text-muted); max-width: 40ch; }
.contact__status { margin: 14px 0 0; font-size: 15px; min-height: 1.2em; }
.contact__status:empty { display: none; }
.contact__status a { font-weight: 600; }
.contact__done { text-align: center; }
.contact__done p { color: var(--text-muted); margin-bottom: 24px; }
@media (max-width: 560px) {
  .contact__fields { grid-template-columns: 1fr; }
  .contact__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .contact__note { max-width: none; }
}

/* ==========================================================================
   Mobile sticky CTA + reveal on scroll
   ========================================================================== */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; z-index: 90; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 14px;
    background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(40,32,26,.25); transform: translateY(140%); transition: transform .5s var(--ease-out);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { padding: 14px 10px; font-size: 15px; }
  .site-footer { padding-bottom: 110px; }
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Sub pages (Referenzen, legal)
   ========================================================================== */
.page-hero { padding-block: clamp(72px, 10vw, 140px) clamp(40px, 5vw, 64px); text-align: center; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 62px); max-width: 22ch; margin-inline: auto; }
.page-hero .btn { margin-top: 12px; }

/* ==========================================================================
   Service pages
   ========================================================================== */
.breadcrumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 22px; font-size: 14.5px; color: var(--text-muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a::after { content: "/"; margin-left: 10px; color: var(--sand); }
.breadcrumb [aria-current] { color: var(--brown-900); font-weight: 600; }
.more-link { display: inline-flex; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--brown-900); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.more-link:hover span { transform: translateX(3px); }
.more-link span { transition: transform .25s var(--ease-out); }
.gallery-section { padding-bottom: clamp(56px, 7vw, 100px); }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose-block h2 { font-size: clamp(26px, 2.6vw, 38px); }
.prose-block h2:not(:first-child) { margin-top: 1.6em; }
.prose-block p { max-width: 62ch; }
.checklists { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.checklist { background: #fff; border: 1px solid var(--sand-100); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 32px); }
.checklist h3 { font-size: 19px; margin-bottom: 14px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--text-muted); }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--sand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354463B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.service-card { display: grid; text-decoration: none; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); transition: box-shadow .3s var(--ease); }
.service-card:hover { box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card span { padding: 14px 16px; font-family: var(--font-head); font-weight: 600; color: var(--brown-900); }
.service-card[aria-current="page"] { display: none; }
.dropdown__menu a[aria-current="page"] { color: var(--brown-900); font-weight: 600; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .prose-block { text-align: center; }
  .prose-block p { margin-inline: auto; }
  .checklists { position: static; max-width: 560px; width: 100%; margin-inline: auto; }
}
.page-hero p { max-width: 60ch; margin-inline: auto; font-size: clamp(17px, 1.3vw, 20px); color: var(--text-muted); }
.prose { max-width: 760px; margin-inline: auto; padding-bottom: clamp(72px, 10vw, 140px); }
.page-body { padding-bottom: clamp(72px, 10vw, 140px); }
.prose h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 1.6em; }
.todo { background: #fff6d6; border: 1px dashed #c9a227; padding: 2px 6px; border-radius: 3px; }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.ref-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--sand-100); }
.ref-card__img { aspect-ratio: 4/3; background: var(--sand-100); overflow: hidden; }
.ref-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ref-card__body { padding: 24px; }
.ref-card blockquote { margin: 0 0 14px; font-size: 17px; }
.ref-card cite { font-style: normal; font-weight: 700; font-size: 15px; }
.ref-card--placeholder { border: 2px dashed var(--sand); background: transparent; display: grid; place-items: center; text-align: center; padding: 40px 24px; min-height: 320px; }
@media (max-width: 960px) { .ref-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
