@font-face {
  font-family: "HK Grotesk";
  src: url("/assets/fonts/HKGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("/assets/fonts/HKGrotesk-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("/assets/fonts/HKGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben aus dem bestehenden Steffl-Theme */
  --ink: #222222;
  --ground: #f4f4f4;
  --paper: #ffffff;
  --mist: #e8eaed;
  --mist-strong: #dadde2;
  --slate: #4f535d;
  --on-dark: #f4f4f4;
  --on-dark-soft: #c9cbd0;
  --error: #a3261b;

  --font: "HK Grotesk", Helvetica, Arial, sans-serif;

  /* Fünf Größen tragen die Seite */
  --step-display: clamp(2.625rem, 1.4rem + 4.4vw, 5.25rem);
  --step-h2: clamp(2rem, 1.35rem + 2vw, 3rem);
  --step-statement: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --step-body: 1.125rem;
  --step-small: 0.9375rem;

  --margin: clamp(20px, 5vw, 80px);
  --gap: clamp(16px, 2.4vw, 40px);
  --maxw: 1360px;
  --section: clamp(88px, 11vw, 192px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img,
video {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
blockquote,
figure,
fieldset {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-display);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--step-h2);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--step-statement);
  line-height: 1.25;
}

/* Lesbare Zeilenlänge für Fließtext; gestaltete Listen (mit Klasse) bestimmen ihre Breite selbst */
p,
:where(ul, ol):not([class]) > li {
  max-width: 68ch;
  text-wrap: pretty;
}

a {
  color: inherit;
}

/* CI: kursiv unterstrichene Textlinks */
.link,
.prose a {
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness 160ms var(--ease);
}

.link:hover,
.prose a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--ground);
}

.is-dark ::selection {
  background: var(--ground);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: var(--margin);
  top: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--ground);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Raster */
.wrap {
  width: min(100% - 2 * var(--margin), var(--maxw));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

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

.is-dark {
  background: var(--ink);
  color: var(--on-dark);
}

.is-mist {
  background: var(--mist);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.9em;
}

.small {
  font-size: var(--step-small);
}

.muted {
  color: var(--slate);
}

.is-dark .muted {
  color: var(--on-dark-soft);
}

/* Einblendung beim Scrollen – nur wenn Bewegung erwünscht und JS aktiv ist */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] > * {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 700ms var(--ease),
      transform 700ms var(--ease);
  }
  .reveal-ready [data-reveal].is-in > * {
    opacity: 1;
    transform: none;
  }
  .reveal-ready [data-reveal].is-in > :nth-child(2) { transition-delay: 80ms; }
  .reveal-ready [data-reveal].is-in > :nth-child(3) { transition-delay: 160ms; }
  .reveal-ready [data-reveal].is-in > :nth-child(4) { transition-delay: 240ms; }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.85em 1.6em;
  border: 0;
  background: var(--ink);
  color: var(--ground);
  font: inherit;
  font-style: italic;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease),
    transform 120ms var(--ease);
}

.btn:hover {
  background: var(--slate);
}

.btn:active {
  transform: translateY(1px);
}

.btn--light {
  background: var(--ground);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--paper);
}

.btn--small {
  min-height: 44px;
  padding: 0.55em 1.1em;
  font-size: var(--step-small);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: var(--ground);
  transition: transform 260ms var(--ease);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

/* Startseite: Header liegt ohne Hintergrund über dem Hero */
.site-header--overlay {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
}

.site-header--overlay:not(.is-fixed) {
  color: var(--on-dark);
}

.site-header--overlay.is-fixed {
  position: fixed;
  background: var(--ground);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  min-height: 88px;
}

.site-header.is-fixed {
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.08); /* taste-skill-ignore: fixierter Header schwebt */
}

.site-header__logo {
  flex: none;
  color: inherit;
}

.logo-svg {
  width: clamp(150px, 14vw, 196px);
  height: auto;
}

.nav {
  margin-left: auto;
}

.nav__list,
.nav__sub {
  list-style: none;
  padding: 0;
}

.nav__list {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
}

.nav__item {
  position: relative;
}

.nav a {
  display: block;
  padding-block: 10px;
  font-size: var(--step-small);
  text-decoration: none;
}

.nav__list > .nav__item > a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 200ms var(--ease);
}

.nav__list > .nav__item > a:hover,
.nav__list > .nav__item > a[aria-current="page"] {
  text-decoration-color: currentColor;
}

.nav__sub {
  position: absolute;
  left: -20px;
  top: 100%;
  display: none;
  min-width: 220px;
  padding: 12px 20px;
  background: var(--ground);
  color: var(--ink);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.14); /* taste-skill-ignore: Dropdown-Menü */
}

.nav__sub a {
  padding-block: 8px;
}

.nav__sub a:hover {
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub {
  display: block;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger-Icon: drei Striche, offen ein Kreuz */
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition:
    transform 200ms var(--ease),
    background-color 200ms var(--ease);
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  transform: translateY(-7px);
}

.menu-toggle span::after {
  transform: translateY(7px);
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

@media (max-width: 899px) {
  .site-header__bar {
    min-height: 72px;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-header__actions .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    margin: 0;
    padding: 104px var(--margin) 48px;
    overflow-y: auto;
    background: var(--ink);
    color: var(--on-dark);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 200ms var(--ease),
      visibility 0s 200ms;
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-open .site-header {
    color: var(--on-dark);
    background: transparent;
  }

  .nav__list {
    flex-direction: column;
    gap: 6px;
  }

  .nav__list > .nav__item > a {
    font-size: var(--step-statement);
    padding-block: 6px;
  }

  .nav__sub {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 10px 2px;
    background: none;
    color: inherit;
    box-shadow: none; /* taste-skill-ignore: setzt den Dropdown-Schatten mobil zurück */
  }

  .nav__sub a {
    color: var(--on-dark-soft);
    font-size: var(--step-body);
    padding-block: 5px;
  }
}

/* ───────── Hero ───────── */
:root {
  /* Höhe der großen Wortmarke (Seitenverhältnis des Logos 289 : 94) */
  --wm-h: calc(min(100vw - 2 * var(--margin), var(--maxw)) * 0.3245);
}

.hero {
  position: relative;
  display: grid;
  background: var(--ink);
  color: var(--on-dark);
}

.hero__content {
  position: relative;
  z-index: 3;
  align-self: center;
  padding-block: 112px calc(var(--wm-h) * 0.45 + 24px);
}

.hero h1 {
  max-width: 19ch;
}

.hero__lede {
  max-width: 34ch;
  margin-top: 24px;
}

.hero .btn {
  margin-top: 40px;
}

.hero .btn,
.site-header--overlay:not(.is-fixed) .btn {
  background: var(--ground);
  color: var(--ink);
}

.hero .btn:hover {
  background: var(--paper);
}

/* Wortmarke wie auf der bisherigen Seite: über der Unterkante des Heros,
   beim Scrollen wandert sie schneller nach oben und blendet aus (main.js setzt --lift und opacity) */
.brandmark {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  color: var(--ground);
  pointer-events: none;
  transform: translateY(calc(55% + var(--lift, 0px)));
}

.wordmark-svg {
  width: 100%;
  height: auto;
}

/* Sektion nach dem Hero: dunkel wie der Hero, mit Platz für die überstehende Wortmarke, der beim Scrollen
   mit dem Ausblenden schrumpft (main.js setzt --wm-p von 0 bis 1) – am Ende oben so viel wie unten */
.page-home .quote {
  padding-top: calc(var(--section) + var(--wm-h) * 0.55 * (1 - var(--wm-p, 0)));
  background: var(--ink);
  color: var(--on-dark);
}

/* ── Bild-Slider wie auf der bisherigen Seite ── */
.hero--slider {
  height: max(640px, 100svh);
  touch-action: pan-y;
}

.slider__slides {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

/* weicher dunkler Verlauf hinter Navigation, Text und Wortmarke – statt einer Box */
.slider__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(20 20 20 / 0.5) 0, rgb(20 20 20 / 0) 160px), /* taste-skill-ignore: neutrale Abdunklung über Foto */
    linear-gradient(90deg, rgb(20 20 20 / 0.72) 0%, rgb(20 20 20 / 0.5) 30%, rgb(20 20 20 / 0.14) 52%, rgb(20 20 20 / 0) 66%), /* taste-skill-ignore: neutrale Abdunklung über Foto */
    linear-gradient(0deg, rgb(20 20 20 / 0.6) 0%, rgb(20 20 20 / 0.3) 22%, rgb(20 20 20 / 0) 44%); /* taste-skill-ignore: neutrale Abdunklung über Foto */
}

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms var(--ease);
}

.slider__slide.is-active {
  opacity: 1;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Punkte rechts unten wie bisher, oberhalb der Wortmarke; dazu Wischen und automatischer Wechsel, keine Pfeile */
.slider__dots {
  position: absolute;
  z-index: 3;
  right: 10%;
  bottom: calc(var(--wm-h) * 0.45 + 24px);
  display: flex;
  gap: 4px;
}

.slider__dots button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.slider__dots button::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid var(--ground);
  border-radius: 50%;
  transition: background-color 200ms var(--ease);
}

.slider__dots button:hover::before,
.slider__dots button[aria-pressed="true"]::before {
  background: var(--ground);
}

@media (max-width: 899px) {
  .hero__content {
    align-self: end;
  }

  .slider__slides::after {
    background:
      linear-gradient(180deg, rgb(20 20 20 / 0.45) 0, rgb(20 20 20 / 0) 120px), /* taste-skill-ignore: neutrale Abdunklung über Foto */
      linear-gradient(0deg, rgb(20 20 20 / 0.76) 0%, rgb(20 20 20 / 0.58) 42%, rgb(20 20 20 / 0) 74%); /* taste-skill-ignore: neutrale Abdunklung über Foto */
  }

  .slider__dots {
    top: 136px;
    right: var(--margin);
    bottom: auto;
    gap: 0;
  }

  .slider__dots button {
    width: 24px;
    height: 24px;
  }

  .slider__dots button::before {
    width: 9px;
    height: 9px;
    border-width: 1.5px;
  }
}

@media (max-width: 599px) {
  .hero h1 {
    font-size: clamp(2rem, 8.6vw, 2.625rem);
  }

  .hero .btn {
    margin-top: 28px;
  }

}

/* ───────── Zitat ───────── */
.quote__figure {
  grid-column: 1 / -1;
  width: min(100%, 50ch);
  margin-inline: auto;
  font-size: var(--step-statement);
}

.quote__text p {
  max-width: none;
  line-height: 1.4;
}

.quote__figure figcaption {
  font-size: var(--step-small);
}

.quote__figure figcaption {
  margin-top: 28px;
  font-style: italic;
}

/* ───────── Herr Steffl erklärt ───────── */
.stories__intro {
  grid-column: 1 / span 4;
  align-self: start;
}

.stories__intro h2 + p {
  margin-top: 28px;
}

.stories__intro p + p {
  margin-top: 1em;
}

.stories__list {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.story__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #333;
  overflow: hidden;
}

.story__play {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.story__play img,
.story__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__play img {
  transition: transform 500ms var(--ease);
}

.story__play:hover img {
  transform: scale(1.03);
}

.story__icon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--ground);
}

.story__icon::before {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--ink);
}

.story__title {
  margin-top: 14px;
  font-size: var(--step-small);
  line-height: 1.4;
}

.story__title span {
  display: block;
}

@media (max-width: 1100px) {
  .stories__intro {
    grid-column: 1 / -1;
  }

  .stories__list {
    grid-column: 1 / -1;
    margin-top: 48px;
  }
}

@media (max-width: 699px) {
  .stories__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }
}

/* ───────── Marken ───────── */
.brands__head {
  grid-column: 1 / span 6;
}

.brands__text {
  grid-column: 8 / span 5;
  align-self: end;
}

.brands__tiles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(48px, 6vw, 88px);
}

.brand-tile {
  display: block;
  text-decoration: none;
}

.brand-tile__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.brand-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition:
    transform 700ms var(--ease),
    opacity 300ms var(--ease);
}

.brand-tile:hover .brand-tile__media img {
  transform: scale(1.03);
  opacity: 0.7;
}

.brand-tile .brand-svg {
  position: relative;
  width: clamp(150px, 22vw, 300px);
  color: var(--ground);
}

.brand-tile__caption {
  display: block;
  margin-top: 16px;
}

.brand-tile__caption em {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

@media (max-width: 899px) {
  .brands__head,
  .brands__text {
    grid-column: 1 / -1;
  }

  .brands__text {
    margin-top: 24px;
  }
}

@media (max-width: 599px) {
  .brands__tiles {
    grid-template-columns: 1fr;
  }
}

/* ───────── Auszeichnungen ───────── */
.proof__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
}

.proof__row + .proof__row {
  margin-top: clamp(80px, 9vw, 144px);
}

.proof__media {
  grid-column: 1 / span 6;
}

.proof__body {
  grid-column: 8 / span 5;
}

.proof__row--flip .proof__media {
  grid-column: 7 / span 6;
  grid-row: 1;
}

.proof__row--flip .proof__body {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.proof__media img {
  width: 100%;
}

/* Weiterempfehlungsrate: nachgebaut statt Grafik, Werte stehen im HTML (--v = Wert von 5) */
.rating__total {
  max-width: none;
  font-size: var(--step-statement);
  line-height: 1.2;
}

.rating__value {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(4rem, 2.6rem + 5vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.rating__list {
  display: grid;
  gap: 20px;
  margin: clamp(32px, 4vw, 56px) 0 0;
}

.rating__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 24px;
}

@media (max-width: 599px) {
  .rating__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.rating__row dd {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-soft);
}

/* fünf Sterne als Maske, gefüllt bis zum Wert */
.rating__stars {
  width: 110px;
  height: 22px;
  background: linear-gradient(90deg, var(--ground) calc(var(--v) * 20%), rgb(255 255 255 / 0.22) 0); /* taste-skill-ignore: harte Kante, Füllstand der Sterne */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.6 6.1 6.6.6-5 4.4 1.5 6.5L12 17.2l-5.7 3.4 1.5-6.5-5-4.4 6.6-.6z'/%3E%3C/svg%3E") 0 0 / 20% 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.6 6.1 6.6.6-5 4.4 1.5 6.5L12 17.2l-5.7 3.4 1.5-6.5-5-4.4 6.6-.6z'/%3E%3C/svg%3E") 0 0 / 20% 100% repeat-x;
}

@media (max-width: 899px) {
  .proof__media,
  .proof__body,
  .proof__row--flip .proof__media,
  .proof__row--flip .proof__body {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .proof__body {
    margin-top: 32px;
  }
}

/* ───────── Schauraum ───────── */
.showroom__head {
  grid-column: 1 / span 5;
}

.showroom__head p {
  margin-top: 28px;
  font-size: var(--step-statement);
  line-height: 1.35;
}

.showroom__text {
  grid-column: 7 / span 6;
}

.showroom__visit {
  margin-top: 1.6em;
  font-size: var(--step-small);
}

.gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(56px, 7vw, 104px);
  padding: 0;
  list-style: none;
}

.gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--mist);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

@media (max-width: 899px) {
  .showroom__head,
  .showroom__text {
    grid-column: 1 / -1;
  }

  .showroom__text {
    margin-top: 32px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* Bild-Großansicht */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(20 20 20 / 0.96);
  color: var(--on-dark);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--margin);
}

.lightbox__count {
  padding-left: 12px;
  font-size: var(--step-small);
  color: var(--on-dark-soft);
}

.lightbox__bar button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

/* Die Seite dahinter scrollt nicht mit; Wischen und Ziehen übernimmt das Skript, Zoomen der Browser */
html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox {
  overscroll-behavior: contain;
  touch-action: pinch-zoom;
}

/* Platz für die Pfeile links und rechts */
.lightbox figure {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 0;
  padding: 0 max(var(--margin), 72px) 24px;
  cursor: grab;
  user-select: none;
}

.lightbox figure:active {
  cursor: grabbing;
}

.lightbox img {
  max-height: calc(100dvh - 140px);
  width: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  transition: transform 250ms var(--ease);
}

/* Pfeile links und rechts wie früher im Hero-Slider der bisherigen Seite */
.lightbox__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  border: 0;
  background: none;
  color: var(--ground);
  cursor: pointer;
  transition: opacity 300ms var(--ease);
}

.lightbox__arrow:hover {
  opacity: 0.5;
}

.lightbox__arrow--prev {
  left: 0;
}

.lightbox__arrow--next {
  right: 0;
}

.lightbox__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: translate(-30%, -50%) rotate(-45deg);
}

.lightbox__arrow--next::before {
  transform: translate(-70%, -50%) rotate(135deg);
}

/* mobil liegen die Pfeile auf dem Bildrand, der Schatten hält sie auch auf hellen Fotos lesbar */
@media (max-width: 899px) {
  .lightbox figure {
    padding-inline: var(--margin);
  }

  .lightbox__arrow {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    filter: drop-shadow(0 0 6px rgb(0 0 0 / 0.6)); /* taste-skill-ignore: Pfeil über hellem Foto */
  }

  .lightbox__arrow::before {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox img {
    transition: none;
  }
}

.lightbox figcaption {
  margin-top: 12px;
  font-size: var(--step-small);
  color: var(--on-dark-soft);
}

/* ───────── Kundenstimmen ───────── */
.voices__head {
  grid-column: 1 / -1;
}

.voices__lead {
  grid-column: 1 / span 7;
  margin-top: clamp(48px, 5vw, 80px);
}

.voices__lead blockquote p {
  font-size: var(--step-statement);
  line-height: 1.4;
}

.voices__more {
  grid-column: 9 / span 4;
  display: grid;
  gap: 48px;
  align-content: start;
  margin-top: clamp(48px, 5vw, 80px);
}

.voice figcaption {
  margin-top: 16px;
  font-size: var(--step-small);
  font-style: italic;
  color: var(--on-dark-soft);
}

.voices__link {
  grid-column: 1 / -1;
  margin-top: 56px;
}

@media (max-width: 899px) {
  .voices__lead,
  .voices__more {
    grid-column: 1 / -1;
  }
}

/* ───────── CTA-Block mit Küchen-Check-Einstieg ───────── */
.cta__intro {
  grid-column: 1 / span 5;
  align-self: start;
  padding-left: clamp(20px, 2.4vw, 36px);
  border-left: 6px solid var(--ink);
}

.cta__intro h2 + p {
  margin-top: 28px;
}

.cta__intro p + p {
  margin-top: 1em;
}

.cta__start {
  grid-column: 7 / span 6;
}

.cta__question {
  font-size: var(--step-statement);
  line-height: 1.25;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px 22px;
  background: var(--mist);
  text-decoration: none;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.choice::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms var(--ease);
}

.choice:hover {
  background: var(--ink);
  color: var(--ground);
}

.choice:hover::after {
  transform: translateX(3px) rotate(45deg);
}

@media (max-width: 899px) {
  .cta__intro,
  .cta__start {
    grid-column: 1 / -1;
  }

  .cta__start {
    margin-top: 48px;
  }
}

/* ───────── Beratungstermin-Button (alle Bildschirme) ─────────
   Senkrechte Lasche in der Mitte des rechten Bildschirmrands, mobil kleiner.
   main.js zeigt ihn nach dem Hero (.is-visible), bis der CTA-Block ins Bild kommt.
   .is-on-dark: helle Fassung über dunklen Sektionen. */
.float-cta {
  position: fixed;
  z-index: 40;
  top: 50%;
  right: 0;
  display: inline-flex;
  align-items: center;
  padding: 1.4em 0.75em;
  background: var(--ink);
  color: var(--ground);
  font-style: italic;
  text-decoration: none;
  writing-mode: vertical-rl;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.2); /* taste-skill-ignore: Button schwebt über dem Inhalt */
  opacity: 0;
  visibility: hidden;
  transform: translate(100%, -50%);
  transition:
    opacity 400ms var(--ease),
    transform 400ms var(--ease),
    background-color 300ms var(--ease),
    color 300ms var(--ease),
    visibility 0s 400ms;
}

.float-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition-delay: 0s;
}

.float-cta:hover {
  background: var(--slate);
}

.float-cta.is-on-dark {
  background: var(--ground);
  color: var(--ink);
}

.float-cta.is-on-dark:hover {
  background: var(--paper);
}

/* über dem offenen Menü nicht zeigen */
.nav-open .float-cta {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 899px) {
  .float-cta {
    padding: 1em 0.45em;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-cta {
    transition-duration: 0s;
  }
}

/* ───────── Footer ───────── */
.site-footer {
  padding-block: clamp(72px, 8vw, 128px) 40px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--step-small);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.footer__brand {
  grid-column: 1 / span 3;
  color: var(--on-dark);
}

.footer__brand .logo-svg {
  width: 180px;
}

.footer__address {
  grid-column: 5 / span 3;
  font-style: normal;
}

.footer__contact {
  grid-column: 9 / span 4;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 0;
  list-style: none;
}

.footer__contact .footer__strong,
.footer__address .footer__strong {
  font-weight: 700;
}

/* Statische Karte (scripts/map.mjs): unskaliert mittig beschnitten, der Standort liegt immer in der Mitte.
   Ein Klick öffnet die Routenplanung von Google Maps in einem neuen Fenster. */
.footer__map {
  position: relative;
  grid-column: 1 / -1;
  margin-top: clamp(48px, 5vw, 80px);
}

.footer__map-link {
  position: relative;
  display: block;
  height: clamp(260px, 26vw, 360px);
  overflow: hidden;
  background: var(--ink);
  user-select: none;
}

.footer__map img {
  width: 100%;
  height: 100%;
  object-fit: none;
  object-position: 50% 50%;
  -webkit-user-drag: none;
}

/* Logo direkt über dem Kartenpunkt */
.footer__map-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--ground);
  filter: drop-shadow(0 0 10px rgb(0 0 0 / 0.85)); /* taste-skill-ignore: Logo über Kartenschrift lesbar halten */
  transform: translate(-50%, calc(-100% - 22px));
}

.footer__map-logo .logo-svg {
  display: block;
  width: clamp(130px, 12vw, 160px);
}

.footer__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--ground);
  box-shadow: 0 0 0 2px var(--ground); /* taste-skill-ignore: Ring um den Kartenpunkt */
  transform: translate(-50%, -50%);
}

.footer__route {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--ground);
  color: var(--ink);
}

.icon-external {
  flex: none;
  width: 1em;
  height: 1em;
}

.footer__map-link:hover .footer__route {
  background: var(--paper);
  text-decoration: none;
}

.footer__osm {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 0.6875rem;
  color: var(--on-dark-soft);
}

.footer__nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px var(--gap);
  margin-top: clamp(56px, 6vw, 96px);
}

.footer__nav ul {
  padding: 0;
  list-style: none;
}

.footer__nav li {
  padding-block: 3px;
  color: var(--on-dark-soft);
}

.footer__nav li:first-child {
  font-weight: 700;
  color: var(--on-dark);
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(56px, 6vw, 96px);
  color: var(--on-dark-soft);
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  list-style: none;
}

@media (max-width: 899px) {
  .footer__brand,
  .footer__address,
  .footer__contact {
    grid-column: 1 / -1;
  }

  .footer__address,
  .footer__contact {
    margin-top: 32px;
  }

  .footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ───────── Cookie-Banner ───────── */
/* Schlichte dunkle Leiste am unteren Rand, verdeckt keine Inhalte dauerhaft.
   „Alle akzeptieren“ und „Nur notwendige“ sind bewusst gleich gestaltet (Vorgabe der Datenschutzbehörde). */
.cookie-banner {
  position: fixed;
  z-index: 70;
  inset: auto 0 0;
  max-height: 100svh;
  overflow-y: auto;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--step-small);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px var(--gap);
}

.cookie-banner__text {
  flex: 1 1 46ch;
  max-width: 76ch;
}

.cookie-banner .cookie-banner__title {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-banner__actions .btn {
  min-width: 11rem;
}

.cookie-banner__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}

.cookie-banner__links .link-button {
  min-height: 44px;
}

.cookie-banner__list {
  display: grid;
  gap: 16px;
  margin: 8px 0 20px;
  padding: 0;
  list-style: none;
}

.cookie-banner__name {
  font-weight: 700;
}

.cookie-banner__state {
  margin-left: 0.6em;
  color: var(--on-dark-soft);
}

.cookie-banner__info {
  margin-top: 4px;
  color: var(--on-dark-soft);
}

.cookie-banner__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  cursor: pointer;
}

.cookie-banner__toggle input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ground);
}

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

.footer__consent:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (max-width: 599px) {
  /* am Handy kompakt: ohne Überschrift, damit der Banner nicht den halben Bildschirm füllt */
  .cookie-banner {
    padding-block: 14px calc(14px + env(safe-area-inset-bottom));
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .cookie-banner__inner {
    gap: 8px;
  }

  .cookie-banner .cookie-banner__title {
    display: none;
  }

  .cookie-banner__links .link-button {
    min-height: 40px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions {
    gap: 8px;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding-inline: 0.6em;
  }
}

/* ───────── Küchen-Check (/termin/) ───────── */
.check {
  padding-block: clamp(40px, 5vw, 88px) clamp(96px, 11vw, 176px);
}

.check__intro {
  grid-column: 1 / span 5;
  grid-row: 1;
  align-self: start;
  padding-top: clamp(8px, 2vw, 32px);
}

.check__intro h1 {
  font-size: var(--step-h2);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.check__lede {
  margin-top: 28px;
  font-size: var(--step-statement);
  line-height: 1.35;
}

.check__price {
  margin-top: 40px;
  padding-left: 20px;
  border-left: 6px solid var(--ink);
}

/* Porträt-Karte: wer berät */
.check__host {
  grid-column: 1 / span 5;
  grid-row: 2;
  align-self: end;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 56px;
}

.check__host img {
  width: 112px;
  height: 140px;
  object-fit: cover;
  object-position: 50% 22%;
}

.check__host figcaption {
  font-size: var(--step-small);
  line-height: 1.5;
}

.check__host strong {
  display: block;
  font-size: var(--step-body);
}

.check__host span {
  display: block;
  margin-top: 6px;
  color: var(--slate);
}

/* Das Formular als ruhige weiße Fläche; die Navigation steht immer an derselben Stelle */
.check__panel {
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  min-height: 680px;
  padding: clamp(28px, 3.6vw, 64px);
  background: var(--paper);
}

.check__panel .check-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.check__panel .is-stepped .step__nav {
  margin-top: auto;
  padding-top: 40px;
}

.page-check .site-header__actions .btn {
  display: none;
}

@media (max-width: 899px) {
  .check__intro,
  .check__panel,
  .check__host {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .check__panel {
    min-height: 0;
    margin: 40px calc(var(--margin) * -1) 0;
  }

  .check__host {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    margin-top: 48px;
  }

  .check__host img {
    width: 88px;
    height: 110px;
  }
}

/* So läuft Ihre Beratung ab */
.journey__title {
  grid-column: 1 / span 6;
}

.journey__intro {
  grid-column: 8 / span 5;
  align-self: end;
  font-size: var(--step-statement);
  line-height: 1.35;
}

.journey__steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(56px, 6vw, 104px);
  padding: 0;
  list-style: none;
}

.journey__step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.journey__step h3 {
  margin-top: 28px;
}

.journey__step p {
  margin-top: 12px;
  color: var(--on-dark-soft);
}

@media (max-width: 899px) {
  .journey__title,
  .journey__intro {
    grid-column: 1 / -1;
  }

  .journey__intro {
    margin-top: 24px;
  }

  .journey__steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* Kundenstimmen */
.check-voices__title {
  grid-column: 1 / -1;
}

.check-voices__lead {
  grid-column: 1 / span 7;
  margin-top: clamp(48px, 5vw, 88px);
}

.check-voices__lead p {
  font-size: var(--step-statement);
  line-height: 1.4;
}

.check-voices__more {
  grid-column: 9 / span 4;
  display: grid;
  gap: 40px;
  align-content: start;
  margin-top: clamp(48px, 5vw, 88px);
}

.check-voices figcaption {
  margin-top: 16px;
  font-size: var(--step-small);
  font-style: italic;
  color: var(--slate);
}

@media (max-width: 899px) {
  .check-voices__lead,
  .check-voices__more {
    grid-column: 1 / -1;
  }
}

/* Schauraum */
.visit {
  padding-block: var(--section);
  background: var(--mist);
}

.visit__media {
  grid-column: 1 / span 7;
}

.visit__media img {
  width: 100%;
}

.visit__body {
  grid-column: 9 / span 4;
  align-self: center;
}

.visit__body h2 + p {
  margin-top: 28px;
}

.visit__body p + p {
  margin-top: 1em;
}

.visit__body .btn {
  margin-top: 40px;
}

@media (max-width: 899px) {
  .visit__media,
  .visit__body {
    grid-column: 1 / -1;
  }

  .visit__body {
    margin-top: 40px;
  }
}

/* Fortschritt */
.check__progress {
  display: none;
  height: 4px;
  background: var(--mist);
}

.check__progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--ink);
  transition: width 360ms var(--ease);
}

.check__count {
  display: none;
  margin-top: 14px;
}

.is-stepped .check__progress,
.is-stepped .check__count {
  display: block;
}

/* Schritte */
.step {
  min-width: 0;
  padding: 0;
  border: 0;
}

.step + .step {
  margin-top: 56px;
}

.is-stepped .step {
  display: none;
  margin-top: 32px;
}

.is-stepped .step.is-current {
  display: block;
  animation: step-in 360ms var(--ease);
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-stepped .step.is-current {
    animation: none;
  }
}

.step__q {
  padding: 0;
  margin-bottom: 24px;
  font-size: var(--step-statement);
  line-height: 1.25;
}

.step__q:focus {
  outline: none;
}

/* Antwort-Karten */
.options {
  display: grid;
  gap: 10px;
}

.options--plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 20px;
  background: var(--mist);
  line-height: 1.3;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.option:hover {
  background: var(--mist-strong);
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option:has(input:checked) {
  background: var(--ink);
  color: var(--ground);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.option small {
  display: block;
  margin-top: 2px;
  font-size: var(--step-small);
  opacity: 0.75;
}

.option--plan {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-block: 18px;
}

.option--plan svg {
  width: 64px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Eingabefelder */
.field + .field {
  margin-top: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--step-small);
  font-weight: 700;
}

.field .optional {
  font-weight: 400;
  color: var(--slate);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid #a9adb5;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.field input[type="file"] {
  padding: 14px;
  font-size: var(--step-small);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--ink);
  outline-offset: 0;
  border-color: var(--ink);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field__label {
  margin-bottom: 8px;
  font-size: var(--step-small);
  font-weight: 700;
}

/* Grundriss-Upload als Ablagefeld statt Browser-Standardknopf */
.field .upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 104px;
  margin: 0;
  padding: 20px;
  border: 1px dashed #a9adb5; /* taste-skill-ignore: Ablagefeld ist ein Formularfeld */
  background: var(--ground);
  font-size: var(--step-body);
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.field .upload:hover,
.field .upload.is-over {
  border-color: var(--ink);
  background: var(--mist);
}

.field .upload:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.js .upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload__action {
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.upload__chosen {
  display: none;
}

.field .upload.has-file {
  border-style: solid;
  border-color: var(--ink);
  background: var(--paper);
}

.upload.has-file .upload__empty {
  display: none;
}

.upload.has-file .upload__chosen {
  display: grid;
  gap: 6px;
}

.upload__name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.upload__remove {
  min-height: 0;
  margin-top: 10px;
  font-size: var(--step-small);
}

.field__help {
  margin-top: 8px;
  font-size: var(--step-small);
  color: var(--slate);
}

.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  font-size: var(--step-small);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--ink);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px; /* taste-skill-ignore: unsichtbares Spam-Feld */
  overflow: hidden;
}

.link-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.link-button:hover {
  text-decoration-thickness: 2px;
}

/* Zusammenfassung vor dem Absenden */
.summary {
  margin-bottom: 28px;
  padding: 18px 20px;
  background: var(--ground);
  font-size: var(--step-small);
}

.summary p {
  max-width: none;
}

.summary .link-button {
  min-height: 0;
  margin-top: 6px;
}

/* Navigation & Fehler */
.step__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}

.step__nav .btn {
  margin-left: auto;
}

.step__error {
  margin-top: 16px;
  color: var(--error);
  font-size: var(--step-small);
}

.step__error:empty {
  display: none;
}

.step__privacy {
  margin-top: 20px;
}

@media (max-width: 479px) {
  .options--plans {
    grid-template-columns: 1fr 1fr;
  }
}

/* ───────── Danke-Seite ───────── */
.thanks__main {
  grid-column: 1 / span 7;
}

.thanks__main h1 {
  font-size: var(--step-h2);
  line-height: 1.1;
}

.thanks__main h1 + p {
  margin-top: 28px;
  font-size: var(--step-statement);
  line-height: 1.35;
}

.thanks__list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-left: 1.2em;
}

.thanks__main h1 + p + .thanks__block,
.thanks__block + .thanks__block {
  margin-top: 48px;
}

.thanks__block h2 {
  font-size: var(--step-statement);
  line-height: 1.25;
}

.thanks__aside {
  grid-column: 9 / span 4;
}

.thanks__aside figcaption {
  margin-top: 10px;
}

@media (max-width: 899px) {
  .thanks__main,
  .thanks__aside {
    grid-column: 1 / -1;
  }

  .thanks__aside {
    margin-top: 48px;
  }
}

/* ═════════ Unterseiten: Bausteine für alle Seiten außer Startseite und Küchen-Check ═════════
   Aufbau wie auf der bisherigen Seite: Titel in eigenem Band, darunter ein Bild über die volle
   Breite, dann Abschnitte mit Text und Bild im Wechsel. Der CTA-Block folgt automatisch. */

.is-paper {
  background: var(--paper);
}

/* ───────── Seitenkopf ───────── */
.page-head {
  padding-block: clamp(40px, 6vw, 96px) clamp(40px, 5vw, 80px);
}

.page-head__crumb {
  grid-column: 1 / -1;
  margin-bottom: 20px;
  font-size: var(--step-small);
}

.page-head__brand {
  grid-column: 1 / -1;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.page-head__brand .brand-svg {
  width: clamp(140px, 16vw, 220px);
}

.page-head h1 {
  grid-column: 1 / span 9;
  font-size: clamp(2.375rem, 1.35rem + 3.4vw, 4.5rem);
}

.page-head__lede {
  grid-column: 1 / span 7;
  margin-top: clamp(24px, 2.6vw, 36px);
  font-size: var(--step-statement);
  line-height: 1.4;
}

@media (max-width: 899px) {
  .page-head h1,
  .page-head__lede {
    grid-column: 1 / -1;
  }
}

/* ───────── Bild über die volle Breite ───────── */
.page-hero {
  position: relative;
  height: clamp(320px, 54vw, 860px);
  max-height: 82svh;
  overflow: hidden;
  background: var(--mist);
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}

/* Film statt Foto (Unternehmen): stumm in Schleife, blendet über das Standbild ein */
.film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms var(--ease);
}

.film__video.is-playing {
  opacity: 1;
}

/* Pause: klein und zurückhaltend, für alle, die keine Bewegung möchten */
.film__pause {
  position: absolute;
  right: var(--margin);
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgb(20 20 20 / 0.35);
  color: var(--on-dark);
  opacity: 0.75;
  cursor: pointer;
  transition:
    opacity 160ms var(--ease),
    background-color 160ms var(--ease);
}

.film__pause:hover,
.film__pause:focus-visible {
  opacity: 1;
  background: rgb(20 20 20 / 0.6);
}

.film__pause span {
  width: 12px;
  height: 14px;
  border-inline: 4px solid currentColor;
}

.film__pause.is-paused span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
}

@media (max-width: 599px) {
  .page-hero {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

/* ───────── Einleitung: Überschrift links, Text rechts ───────── */
.intro__head {
  grid-column: 1 / span 5;
}

.intro__text {
  grid-column: 7 / span 6;
}

/* Einleitung ohne Überschrift: ein ruhiger Absatz in größerer Schrift */
.intro__statement {
  grid-column: 1 / span 8;
  font-size: var(--step-statement);
  line-height: 1.4;
}

.intro__statement p {
  max-width: none;
}

@media (max-width: 899px) {
  .intro__head,
  .intro__text,
  .intro__statement {
    grid-column: 1 / -1;
  }
  .intro__text {
    margin-top: 28px;
  }
}

/* ───────── Text und Bild im Wechsel ───────── */
.row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
}

.row + .row {
  margin-top: clamp(88px, 10vw, 160px);
}

.row__body {
  grid-column: 1 / span 5;
}

.row__media {
  grid-column: 7 / span 6;
}

.row--flip .row__body {
  grid-column: 8 / span 5;
  grid-row: 1;
}

.row--flip .row__media {
  grid-column: 1 / span 6;
  grid-row: 1;
}

.row__media img {
  width: 100%;
}

/* Bildunterschrift wie bisher: Marke · Modell */
.caption,
.row__media figcaption,
.rail figcaption {
  margin-top: 12px;
  font-size: var(--step-small);
  color: var(--slate);
}

.is-dark .row__media figcaption {
  color: var(--on-dark-soft);
}

@media (max-width: 899px) {
  .row__body,
  .row__media,
  .row--flip .row__body,
  .row--flip .row__media {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .row__media {
    margin-top: 32px;
  }
}

/* ───────── Bildreihe zum Wischen (ersetzt die Slider der bisherigen Seite) ───────── */
.rail {
  margin-top: clamp(48px, 6vw, 88px);
}

.rail__track {
  --rail-h: clamp(300px, 38vw, 600px);
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 max(var(--margin), (100% - var(--maxw)) / 2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--margin), (100% - var(--maxw)) / 2);
  scrollbar-width: none;
  list-style: none;
}

.rail__track::-webkit-scrollbar {
  display: none;
}

.rail__item {
  flex: none;
  scroll-snap-align: start;
}

.rail__item img {
  width: auto;
  height: var(--rail-h);
  max-width: none;
}

.rail figcaption {
  max-width: 40ch;
}

.rail__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.rail__nav button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.rail__nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 599px) {
  .rail__track {
    --rail-h: 360px;
  }
  .rail__nav {
    display: none;
  }
}

/* ───────── Galerie mit Großansicht (Grundraster: .gallery in components.css) ───────── */
.gallery--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section__head + .gallery,
.intro__text + .gallery {
  margin-top: clamp(48px, 6vw, 88px);
}

.section__head {
  grid-column: 1 / span 8;
}

@media (max-width: 899px) {
  .gallery,
  .gallery--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section__head {
    grid-column: 1 / -1;
  }
}

/* ───────── Unterseiten-Kacheln (Ausstattung) ───────── */
.teasers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 64px) var(--gap);
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}

.teasers > li {
  grid-column: span 2;
}

/* die ersten zwei groß, die übrigen drei kleiner */
.teasers > li:nth-child(-n + 2) {
  grid-column: span 3;
}

.teaser {
  display: block;
  text-decoration: none;
}

.teaser__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
}

.teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.teaser:hover .teaser__media img {
  transform: scale(1.03);
}

.teaser__title {
  display: block;
  margin-top: 18px;
  font-size: var(--step-statement);
  line-height: 1.25;
}

.teaser__text {
  display: block;
  margin-top: 8px;
  max-width: 44ch;
  font-size: var(--step-small);
  color: var(--slate);
}

.teaser__more {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--step-small);
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

@media (max-width: 899px) {
  .teasers > li,
  .teasers > li:nth-child(-n + 2) {
    grid-column: span 3;
  }
}

@media (max-width: 599px) {
  .teasers > li,
  .teasers > li:nth-child(-n + 2) {
    grid-column: 1 / -1;
  }
}

/* ───────── Weiterblättern zwischen den Ausstattungs-Seiten ───────── */
.pager {
  padding-block: clamp(56px, 6vw, 96px);
  background: var(--paper);
}

.pager__back {
  grid-column: 1 / span 6;
  align-self: end;
  font-size: var(--step-small);
}

.pager__next {
  grid-column: 7 / span 6;
  justify-self: end;
  text-align: right;
  text-decoration: none;
}

.pager__label {
  display: block;
  font-size: var(--step-small);
  color: var(--slate);
}

.pager__title {
  display: block;
  margin-top: 6px;
  font-size: var(--step-h2);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

@media (max-width: 599px) {
  .pager__back,
  .pager__next {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
  .pager__back {
    order: 2;
    margin-top: 28px;
  }
}

/* ───────── Team ───────── */
.team {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}

.team__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--focus, 50% 30%);
}

.team__name {
  margin-top: 18px;
  font-size: var(--step-statement);
  line-height: 1.25;
}

.team__role {
  margin-top: 4px;
  font-size: var(--step-small);
  color: var(--slate);
}

@media (max-width: 899px) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 499px) {
  .team {
    grid-template-columns: 1fr;
  }
}

/* ───────── Video: lädt YouTube erst nach Klick ───────── */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.video__start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ground);
  font: inherit;
  cursor: pointer;
}

.video__start img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 300ms var(--ease);
}

.video__start:hover img {
  opacity: 0.4;
}

.video__label {
  position: relative;
  font-size: var(--step-statement);
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__note {
  margin-top: 12px;
  font-size: var(--step-small);
  color: var(--slate);
}

.is-dark .video__note {
  color: var(--on-dark-soft);
}

/* ───────── Kontakt ───────── */
.contact__details {
  grid-column: 1 / span 5;
}

.contact__media {
  grid-column: 7 / span 6;
}

.contact__media img {
  width: 100%;
}

.contact__list {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--step-small);
  color: var(--slate);
}

.contact__value {
  font-size: var(--step-statement);
  line-height: 1.35;
}

@media (max-width: 899px) {
  .contact__details,
  .contact__media {
    grid-column: 1 / -1;
  }
  .contact__media {
    margin-top: 48px;
  }
}

/* ───────── Rechtliches: eine ruhige Textspalte ───────── */
.legal {
  grid-column: 1 / span 8;
}

.legal h2 {
  margin-top: 2.2em;
  font-size: var(--step-statement);
  line-height: 1.25;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ol,
.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 0.6em;
}

@media (max-width: 899px) {
  .legal {
    grid-column: 1 / -1;
  }
}

/* ═════════ Seiten Referenzen, Unser Kundenservice, Küchenabverkauf ═════════ */

/* ───────── Kundenstimmen: weitere Stimmen ruhig in Spalten (Hauptstimme: .voices__lead) ───────── */
.voices__lead {
  margin-bottom: clamp(56px, 6vw, 96px);
}

.voices__grid {
  grid-column: 1 / -1;
  columns: 3;
  column-gap: var(--gap);
}

.voices__grid .voice {
  break-inside: avoid;
  margin-bottom: clamp(40px, 4vw, 64px);
}

.voices__grid .voice blockquote p {
  max-width: none;
}

@media (max-width: 1099px) {
  .voices__grid {
    columns: 2;
  }
}

@media (max-width: 699px) {
  .voices__grid {
    columns: 1;
  }
}

/* ───────── Leistungen: Liste mit Titelzeile je Eintrag ───────── */
.services {
  display: grid;
  gap: clamp(28px, 3vw, 44px);
  padding: 0;
  list-style: none;
}

.services li {
  max-width: none;
}

.services strong {
  display: block;
  margin-bottom: 0.35em;
  font-size: var(--step-statement);
  font-weight: inherit;
  line-height: 1.25;
}

/* ───────── Küchenabverkauf: Hinweis zur aktuellen Lage ───────── */
.notice__contact {
  display: grid;
  gap: 4px;
  margin-top: 1.4em;
}

/* ───────── Kundenservice: Untertitel unter der Einleitungsüberschrift ───────── */
.intro__sub {
  margin-top: 20px;
}

/* ═════════ Seiten D: Kontakt (Abstände der Kontaktliste) ═════════ */
.contact__details h2 {
  margin-bottom: clamp(28px, 3vw, 44px);
}

.contact__list .small {
  margin-top: 8px;
}

.contact__note {
  margin-top: clamp(36px, 4vw, 56px);
}
