/* =============================================================
   SteinLine GmbH — Naturstein & fugenlose Badezimmer, Basel
   Design system + styles. Vanilla CSS, keine Abhängigkeiten.
   ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Farben — abgeleitet vom Logo */
  --ink-950: #1c1b1a;
  --ink-900: #262423;
  --ink-800: #333333;
  --ink-600: #55514e;
  --ink-500: #6e6b68;
  --ink-300: #b8b2ac;
  --ink-200: #dad6d2;
  --ink-100: #ebe7e3;
  --paper:   #f7f5f3;
  --paper-2: #efece8;

  --red-700: #8e1a1a;
  --red-800: #6e1414;
  --red-600: #a92626;
  --red-100: #f2e3e3;

  --white-a-10: rgba(255, 255, 255, 0.10);
  --white-a-20: rgba(255, 255, 255, 0.20);
  --white-a-60: rgba(255, 255, 255, 0.60);

  /* Typografie */
  --font-serif: "Playfair Display", "Times New Roman", Times, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-hero:  clamp(2.6rem, 6.4vw, 6rem);
  --fs-h2:    clamp(2rem, 4.4vw, 4rem);
  --fs-h3:    clamp(1.25rem, 1.9vw, 1.7rem);
  --fs-lead:  clamp(1.05rem, 1.35vw, 1.35rem);
  --fs-body:  clamp(0.98rem, 1.05vw, 1.06rem);
  --fs-small: 0.85rem;
  --fs-eyebrow: 0.72rem;

  /* Abstände */
  --space-section: clamp(6rem, 12vw, 12rem);
  --space-gap: clamp(2rem, 4vw, 4.5rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1440px;
  --maxw-text: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fade: 700ms;

  --header-h: 84px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-950);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--red-700);
  outline-offset: 3px;
  border-radius: 1px;
}

.fugenlos :focus-visible,
.site-footer :focus-visible,
.nav-overlay :focus-visible {
  outline-color: #fff;
}

/* ---------- 3. Utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 1.5rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--red-700);
  flex: none;
}

.eyebrow--light { color: var(--ink-300); }
.eyebrow--light::before { background: var(--red-600); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-600);
  max-width: var(--maxw-text);
}

.accent { color: var(--red-700); }
.accent-light { color: var(--red-600); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--ink-950);
  color: #fff;
  padding: 0.85rem 1.5rem;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 200ms var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-fg: #fff;
  --btn-bg: var(--red-700);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.05rem 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: color 300ms var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-950);
  transform: translateY(101%);
  transition: transform 420ms var(--ease-out);
  z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }

.btn svg { width: 16px; height: 16px; flex: none; }

.btn--ghost {
  --btn-fg: var(--ink-950);
  --btn-bg: transparent;
  border: 1px solid var(--ink-200);
}
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; border-color: var(--ink-950); }

.btn--onDark {
  --btn-fg: #fff;
  --btn-bg: transparent;
  border: 1px solid var(--white-a-20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.06);
}
.btn--onDark::after { background: var(--red-700); }
.btn--onDark:hover, .btn--onDark:focus-visible { border-color: var(--red-700); }

/* Textlink mit animierter Unterstreichung */
.link-underline {
  background-image: linear-gradient(var(--red-700), var(--red-700));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 380ms var(--ease-out);
  padding-bottom: 2px;
}
.link-underline:hover, .link-underline:focus-visible { background-size: 100% 1px; }

/* ---------- 5. Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  gap: 1.75rem;
  background: var(--paper);
  transition: opacity 600ms var(--ease), visibility 600ms;
}
.preloader__inner { display: grid; justify-items: center; gap: clamp(1.5rem, 3vw, 2.25rem); }
.preloader__logo {
  height: clamp(46px, 7vw, 84px);
  width: auto;
}
/* Textfallback, falls das Logo nicht geladen werden kann */
.preloader__mark {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}
.preloader__bar {
  width: clamp(140px, 18vw, 220px); height: 1px;
  background: var(--ink-200);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red-700);
  transition: width 900ms var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 380ms var(--ease), background-color 380ms var(--ease),
              transform 420ms var(--ease), box-shadow 380ms var(--ease);
}

.site-header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; transition: height 380ms var(--ease); }
.brand__fallback {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1;
}

.site-header.is-scrolled {
  height: 66px;
  background: rgba(247, 245, 243, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--ink-200);
}
.site-header.is-scrolled .brand img { height: 34px; }
.site-header.is-hidden { transform: translateY(-100%); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }

.nav__link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-800);
  position: relative;
  padding-block: 4px;
  transition: color 260ms var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 340ms var(--ease-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }

.header__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-950);
  white-space: nowrap;
}
.header__tel svg { width: 15px; height: 15px; color: var(--red-700); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  margin-right: -10px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ink-950);
  transition: transform 320ms var(--ease), opacity 200ms var(--ease), background-color 320ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink-950);
  color: #fff;
  display: grid;
  align-content: center;
  padding: var(--header-h) var(--gutter) 4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 460ms var(--ease), visibility 460ms;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav-overlay ul { display: grid; gap: clamp(0.5rem, 2vw, 1rem); }
.nav-overlay li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.nav-overlay.is-open li { opacity: 1; transform: none; }
.nav-overlay.is-open li:nth-child(1) { transition-delay: 120ms; }
.nav-overlay.is-open li:nth-child(2) { transition-delay: 180ms; }
.nav-overlay.is-open li:nth-child(3) { transition-delay: 240ms; }
.nav-overlay.is-open li:nth-child(4) { transition-delay: 300ms; }
.nav-overlay.is-open li:nth-child(5) { transition-delay: 360ms; }
.nav-overlay.is-open li:nth-child(6) { transition-delay: 420ms; }

.nav-overlay a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 1.15;
}
.nav-overlay a:hover { color: var(--red-600); }

.nav-overlay__foot {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-300);
}
.nav-overlay__foot a:hover { color: #fff; }

/* ---------- 7. Hero + Design Switcher ---------- */
/* Aufbau von oben nach unten: Text — Bild — Bedienung.
   Die Bildfläche bleibt bewusst frei von Buttons. */
.hero {
  margin-top: var(--header-h);
  display: grid;
  gap: clamp(1.35rem, 2.4vw, 2rem);
  padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 2.4vw, 2.25rem);
  background: var(--paper);
}

/* --- Text über dem Bild --- */
.hero__intro {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero__intro .eyebrow { margin-bottom: 1.1rem; }

.hero h1 {
  font-size: clamp(1.95rem, 3.8vw, 3.15rem);
  max-width: 24ch;
  margin-bottom: 1rem;
}

.hero__sub {
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* --- Bildfläche: mittig, im Originalverhältnis, immer ganz sichtbar --- */
.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1264 / 843;
  margin-inline: auto;
  overflow: hidden;
  background: var(--ink-950);
}

.hero__media { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-fade) var(--ease);
  will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 2400ms var(--ease-out);
}
.hero__slide.is-active img { transform: scale(1); }

/* --- Switcher unter dem Bild --- */
.switcher {
  display: grid;
  gap: 1.15rem;
  justify-items: center;
  text-align: center;
  align-items: center;
}

.switcher__label { display: grid; gap: 0.25rem; }

.switcher__kicker {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.switcher__name {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
  color: var(--ink-950);
}

.switcher__finish {
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--ink-500);
}

.switcher__name, .switcher__finish {
  transition: opacity 320ms var(--ease), transform 420ms var(--ease-out);
}
.switcher.is-changing .switcher__name,
.switcher.is-changing .switcher__finish { opacity: 0; transform: translateY(12px); }
.switcher.is-changing .switcher__finish { transition-delay: 60ms; }

.switcher__actions { display: flex; align-items: center; gap: 0.6rem; }

.switcher__arrow {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-200);
  border-radius: 2px;
  color: var(--ink-950);
  background: transparent;
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease), color 260ms var(--ease);
}
.switcher__arrow:hover, .switcher__arrow:focus-visible {
  background: var(--red-700);
  border-color: var(--red-700);
  color: #fff;
}
.switcher__arrow svg { width: 18px; height: 18px; }

.switcher__main {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink-950);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.switcher__main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red-700);
  transform: translateY(101%);
  transition: transform 420ms var(--ease-out);
  z-index: -1;
}
.switcher__main:hover::after, .switcher__main:focus-visible::after { transform: translateY(0); }
.switcher__main svg { width: 17px; height: 17px; transition: transform 520ms var(--ease-out); }
.switcher__main:hover svg { transform: rotate(180deg); }

/* Thumbnails */
.switcher__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.switcher__dot {
  position: relative;
  width: 60px;
  height: 40px;
  border: 1px solid var(--ink-200);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 280ms var(--ease), border-color 280ms var(--ease), transform 280ms var(--ease);
}
.switcher__dot img { width: 100%; height: 100%; object-fit: cover; }
.switcher__dot:hover { opacity: 1; transform: translateY(-2px); }
.switcher__dot[aria-current="true"] {
  opacity: 1;
  border-color: var(--red-700);
  box-shadow: inset 0 0 0 1px var(--red-700);
}

/* ---------- 8. Reveal-Animationen ---------- */
/* Ausgeblendet wird nur, wenn JavaScript läuft — sonst bliebe im
   Fehlerfall Inhalt dauerhaft unsichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal[data-delay="5"] { transition-delay: 450ms; }

.js .reveal-media {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
}
.reveal-media.is-visible { opacity: 1; transform: none; }
.js .reveal-media img { transform: scale(1.06); transition: transform 1600ms var(--ease-out); }
.reveal-media.is-visible img { transform: scale(1); }

/* ---------- 9. Intro ---------- */
.intro__grid {
  display: grid;
  gap: var(--space-gap);
  grid-template-columns: 1fr;
  align-items: stretch;
}

.intro__text h2 { font-size: var(--fs-h2); margin-bottom: 1.75rem; }
.intro__text p + p { margin-top: 1.25rem; }

.intro__media {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink-100);
}
.intro__media img { width: 100%; height: 100%; object-fit: cover; }
.intro__media figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(to top, rgba(12, 11, 10, 0.72), transparent);
}

/* ---------- 10. Leistungen ---------- */
.services__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.services__head h2 { font-size: var(--fs-h2); max-width: 18ch; }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink-200);
}

.service {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--ink-200);
  transition: transform 420ms var(--ease-out);
}
.service__num {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  color: var(--red-700);
}
.service h3 { font-size: var(--fs-h3); }
.service p { color: var(--ink-600); max-width: 52ch; }
.service:hover { transform: translateY(-4px); }
.service:hover h3 { color: var(--red-700); }
.service h3 { transition: color 300ms var(--ease); }

/* ---------- 11. Fugenlos (dunkler Block) ---------- */
.fugenlos {
  position: relative;
  background: var(--ink-950);
  color: #fff;
  overflow: hidden;
}

.fugenlos__bg { position: absolute; inset: 0; z-index: 0; }
.fugenlos__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.fugenlos__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 19, 18, 0.95) 0%, rgba(20, 19, 18, 0.78) 45%, rgba(20, 19, 18, 0.35) 100%);
}

.fugenlos .shell { position: relative; z-index: 1; }

.fugenlos__grid {
  display: grid;
  gap: var(--space-gap);
  grid-template-columns: 1fr;
}

.fugenlos h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: 1.75rem; max-width: 16ch; }
.fugenlos p { color: rgba(255, 255, 255, 0.72); max-width: 54ch; }
.fugenlos p + p { margin-top: 1.15rem; }
.fugenlos .btn { margin-top: 2.5rem; }

.benefits { display: grid; gap: 1.25rem; align-content: start; }
.benefit {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}
.benefit::before {
  content: "";
  position: absolute;
  left: -1px; top: 0;
  width: 1px; height: 26px;
  background: var(--red-600);
}
.benefit b {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}
.benefit span { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.6); line-height: 1.6; }

/* ---------- 12. Materialien ---------- */
.materials__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.materials__head h2 { font-size: var(--fs-h2); max-width: 16ch; }
.materials__hint { font-size: var(--fs-small); color: var(--ink-500); letter-spacing: 0.06em; }

.materials__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 26vw);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-300) transparent;
}
.materials__rail::-webkit-scrollbar { height: 3px; }
.materials__rail::-webkit-scrollbar-track { background: var(--ink-200); }
.materials__rail::-webkit-scrollbar-thumb { background: var(--red-700); }

.material {
  scroll-snap-align: start;
  display: grid;
  gap: 1rem;
}
.material__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink-100); }
.material__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.material:hover .material__img img { transform: scale(1.05); }
.material h3 { font-size: 1.15rem; }
.material span { font-size: var(--fs-small); color: var(--ink-500); }

/* ---------- 13. Referenzen ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--ink-100);
  aspect-ratio: 3 / 2;
  width: 100%;
  display: block;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1000ms var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.045); }

.gallery__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(12, 11, 10, 0.8), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease-out);
  text-align: left;
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
.gallery__cap strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.15rem; }
.gallery__cap em {
  font-style: normal;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 11, 10, 0.96);
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms var(--ease), visibility 380ms;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lightbox__close { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; }
.lightbox__close svg { width: 20px; height: 20px; }

.lightbox__stage {
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  object-fit: contain;
}

.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem var(--gutter) 2.25rem;
}
.lightbox__nav button {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--white-a-20);
  color: #fff;
  border-radius: 2px;
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease);
}
.lightbox__nav button:hover { background: var(--red-700); border-color: var(--red-700); }
.lightbox__nav svg { width: 18px; height: 18px; }
.lightbox__count { color: rgba(255, 255, 255, 0.6); font-size: var(--fs-small); letter-spacing: 0.14em; min-width: 5ch; text-align: center; }

/* ---------- 14. Ablauf ---------- */
.process { background: var(--paper-2); }
.process__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.process__head h2 { font-size: var(--fs-h2); max-width: 16ch; }

.steps { position: relative; display: grid; gap: 0; padding-left: clamp(1.75rem, 4vw, 3rem); }
.steps::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 100%;
  background: var(--ink-200);
}
.steps::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 100%;
  background: var(--red-700);
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
  transition: transform 200ms linear;
}

.step {
  position: relative;
  display: grid;
  gap: 0.6rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.step::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.75rem, 4vw, 3rem) - 3.5px);
  top: calc(clamp(1.5rem, 3vw, 2.5rem) + 0.55em);
  width: 8px; height: 8px;
  background: var(--paper-2);
  border: 1px solid var(--ink-300);
  border-radius: 50%;
}
.step.is-visible::before { background: var(--red-700); border-color: var(--red-700); }
.step__num { font-size: var(--fs-eyebrow); letter-spacing: 0.2em; color: var(--red-700); }
.step h3 { font-size: var(--fs-h3); }
.step p { color: var(--ink-600); max-width: 56ch; }

/* ---------- 15. Über uns ---------- */
.about__grid { display: grid; gap: var(--space-gap); grid-template-columns: 1fr; align-items: start; }
.about h2 { font-size: var(--fs-h2); margin-bottom: 1.75rem; max-width: 15ch; }
.about p { color: var(--ink-600); }
.about p + p { margin-top: 1.15rem; }

.pillars { display: grid; gap: 0; border-top: 1px solid var(--ink-200); }
.pillar {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--ink-200);
}
.pillar b {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pillar span { color: var(--ink-500); font-size: var(--fs-small); line-height: 1.65; }

/* ---------- 16. Kontakt ---------- */
.contact { background: var(--ink-950); color: #fff; }
.contact h2 { font-size: var(--fs-h2); color: #fff; max-width: 14ch; margin-bottom: 1.5rem; }
.contact__lead { color: rgba(255, 255, 255, 0.7); max-width: 46ch; }

.contact__grid {
  display: grid;
  gap: var(--space-gap);
  grid-template-columns: 1fr;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.contact__details { display: grid; gap: 2rem; align-content: start; }
.contact__block { display: grid; gap: 0.4rem; }
.contact__block .eyebrow { margin-bottom: 0.25rem; }
.contact__block a, .contact__block address {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: #fff;
}
.contact__block a:hover { color: var(--red-600); }

/* Formular */
.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.field input, .field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.7rem 0;
  border-radius: 0;
  transition: border-color 300ms var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.28); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--red-600);
}
.field textarea { resize: vertical; min-height: 120px; }

.form__row { display: grid; gap: 1.35rem; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  cursor: pointer;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  display: grid;
  place-items: center;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}
.consent input::after {
  content: "";
  width: 9px; height: 9px;
  background: #fff;
  transform: scale(0);
  transition: transform 200ms var(--ease);
}
.consent input:checked { background: var(--red-700); border-color: var(--red-700); }
.consent input:checked::after { transform: scale(1); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

.form__status {
  font-size: var(--fs-small);
  line-height: 1.6;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--red-600);
  background: rgba(255, 255, 255, 0.05);
  display: none;
}
.form__status.is-shown { display: block; }
.form__status.is-error { border-left-color: #d97070; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.6);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  font-size: var(--fs-small);
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer .brand img { height: 44px; }
.site-footer__tag { margin-top: 1rem; max-width: 34ch; line-height: 1.7; }
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.site-footer li + li { margin-top: 0.55rem; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}
.site-footer__bottom nav { display: flex; gap: 1.5rem; }

/* ---------- 18. Legal-Seiten ---------- */
.legal { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); }
.legal__inner { max-width: 76ch; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 2.5rem; }
.legal h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 3rem 0 1rem; }
.legal p, .legal li { color: var(--ink-600); }
.legal p + p { margin-top: 1rem; }
.legal ul { margin-top: 1rem; display: grid; gap: 0.5rem; }
.legal li { padding-left: 1.25rem; position: relative; }
.legal li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 8px; height: 1px;
  background: var(--red-700);
}
.legal address { font-style: normal; line-height: 1.9; color: var(--ink-600); }
.legal .note {
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  background: var(--red-100);
  border-left: 2px solid var(--red-700);
  color: var(--ink-800);
  font-size: var(--fs-small);
  line-height: 1.65;
}
.legal .back { margin-top: 4rem; display: inline-block; }

/* ---------- 19. Breakpoints ---------- */
@media (min-width: 768px) {
  /* Das Bad ist die Hauptfunktion der Seite — entsprechend dominant:
     mindestens 80 % der Seitenbreite, volles Originalverhältnis 3:2. */
  .hero__stage {
    width: min(84vw, 1720px);
    min-width: min(80vw, 1640px);
    height: auto;
    max-width: none;
    aspect-ratio: 1264 / 843;
  }

  .form__row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 21 / 9; }
  .services__grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-gap); }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .intro__grid { grid-template-columns: 1.1fr 0.9fr; }
  /* Bild füllt exakt die Höhe des Textes — kein Leerraum darüber oder darunter */
  /* Bild füllt exakt die Texthöhe — kein Leerraum darunter */
  .intro__media { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .fugenlos__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 0.85fr 1.15fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
  .gallery__item--tall { grid-row: span 2; aspect-ratio: auto; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }

  /* Switcher wird zur Zeile: Bezeichnung links, Bedienung mittig, Thumbnails rechts */
  .switcher {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    gap: 2rem;
  }
  .switcher__label { justify-self: start; }
  .switcher__actions { justify-self: center; }
  .switcher__dots { justify-self: end; flex-wrap: nowrap; }
}

@media (max-width: 1023px) {
  .nav, .header__tel { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 767px) {
  :root { --header-h: 68px; }
  .switcher__dot { width: 48px; height: 34px; }
  .switcher__arrow { width: 46px; height: 46px; }
  .switcher__main { flex: 1; justify-content: center; padding-inline: 1.1rem; }
  .switcher__actions { width: 100%; }
  .lightbox__stage img { max-height: 62vh; }
}

@media (max-width: 420px) {
  .switcher__dots { gap: 0.35rem; }
  .switcher__dot { width: 40px; height: 30px; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__slide { transition: opacity 260ms linear; }
  .hero__slide img, .hero__slide.is-active img { transform: none; }
  .js .reveal, .js .reveal-media { opacity: 1; transform: none; }
  .js .reveal-media img { transform: none; }
}

/* ---------- 21. Print ---------- */
@media print {
  .site-header, .nav-overlay, .preloader, .switcher, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
