/* =========================================================
   Seite Dienstleistungen
   Fuenf Bereiche mit je eigener Struktur:
   1. Typografischer Index  2. Stapelkarten  3. Kachel-Raster
   4. Waagrechte Projekt-Reise  5. Goldener Abschluss
   ========================================================= */

:root {
  --cream: #f5f0e6;
  --tile: #171512;
  --ink-line: rgba(14, 13, 11, 0.2);
}

/* ---------- 1. Kopf mit Index ---------- */

.dl-hero {
  position: relative;
  padding-block: calc(var(--header-height) + clamp(2.5rem, 6vw, 5rem)) clamp(3.5rem, 7vw, 6rem);
}

.dl-hero__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  animation: fade-up 1s var(--ease-out) backwards;
}

.dl-hero__top .eyebrow {
  margin-bottom: 0;
}

.dl-hero__legend {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dl-hero__key {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dl-hero__key::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgba(245, 240, 230, 0.38);
}

.dl-hero__key--solid::before {
  background: var(--gold);
}

.dl-hero__title {
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.dl-hero__title em {
  color: var(--gold);
  font-style: normal;
}

.dl-index {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  animation: fade-up 1.1s var(--ease-out) 0.45s backwards;
}

.dl-index ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(1.25rem, 2.5vw, 2.5rem);
}

/* Jede Leistung: Linie oben, Nummer, Name. Schwerpunkte haben eine goldene Linie */
.dl-index a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.dl-index .is-focus a {
  border-top: 2px solid var(--gold);
}

.dl-index__no {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.dl-index__no::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(245, 240, 230, 0.38);
}

.dl-index .is-focus .dl-index__no::before {
  background: var(--gold);
}

.dl-index__name {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dl-index a:hover,
.dl-index a:focus-visible {
  border-top-color: var(--gold);
  color: var(--gold);
}

.dl-hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  animation: fade-up 1.1s var(--ease-out) 0.6s backwards;
}

.dl-hero__foot p {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.dl-hero__foot strong {
  color: var(--text);
  font-weight: 600;
}

/* Bildvorschau, die der Maus folgt */
.peek {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: clamp(13rem, 18vw, 20rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1rem;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  will-change: transform;
}

.peek.is-visible {
  opacity: 1;
}

.peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transition: transform 0.7s var(--ease-out);
}

.peek.is-visible img {
  transform: scale(1);
}

@media (hover: none), (max-width: 900px) {
  .peek {
    display: none;
  }
}

/* ---------- 2. Stapelkarten Schwerpunkt ---------- */

.stack {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 9vw, 8rem);
}

.stack__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1rem 4rem;
  align-items: baseline;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.stack__head h2 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
}

.card {
  position: sticky;
  top: calc(var(--header-height) + 1rem + var(--i, 0) * 1.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  height: min(44rem, calc(100svh - var(--header-height) - 5rem));
  min-height: 30rem;
  margin-bottom: clamp(3rem, 8vh, 6rem);
  padding: clamp(1rem, 1.5vw, 1.5rem);
  border-radius: calc(var(--radius) + 0.5rem);
  transform-origin: 50% 0;
  will-change: transform;
}

.card:nth-child(2) { --i: 1; }
.card:nth-child(3) { --i: 2; margin-bottom: 0; }

.card--dark {
  border: 1px solid var(--line);
  background: var(--tile);
  color: var(--text);
}

.card--gold {
  background: var(--gold);
  color: var(--bg);
}

.card--light {
  background: var(--cream);
  color: var(--bg);
}

.card__text {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.5vw, 2.5rem);
}

/* Kontur doppelt so breit, die Fuellung in Kartenfarbe wird darueber gemalt:
   So verschwinden die inneren Linien der ueberlappenden Schriftteile (z.B. in der "1") */
.card__no {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.8;
  -webkit-text-stroke: 3px currentColor;
  paint-order: stroke fill;
}

.card--gold .card__no {
  color: var(--gold);
  -webkit-text-stroke-color: var(--bg);
}

.card--dark .card__no {
  color: var(--tile);
  -webkit-text-stroke-color: var(--gold);
}

.card--light .card__no {
  color: var(--cream);
  -webkit-text-stroke-color: var(--gold-dark);
}

.card h3 {
  margin-top: auto;
  font-size: clamp(1.875rem, 3.4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.card p {
  max-width: 34rem;
  margin-top: 1rem;
  opacity: 0.82;
}

.card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

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

/* Bildnachweis: kleines i-Symbol, die Nennung gleitet beim Darueberfahren, Antippen oder Fokus auf */
.credit {
  position: absolute;
  right: 0.875rem;
  bottom: 0.875rem;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.5rem;
}

.credit__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(14, 13, 11, 0.45);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* groessere unsichtbare Tippflaeche fuer Finger */
.credit__toggle::before {
  content: "";
  position: absolute;
  inset: -0.5rem;
}

.credit__text {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 13, 11, 0.6);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(0.5rem);
  backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}

.credit__text a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.credit:hover .credit__toggle,
.credit.is-open .credit__toggle,
.credit:focus-within .credit__toggle {
  border-color: var(--gold);
  background: rgba(14, 13, 11, 0.75);
}

.credit:hover .credit__text,
.credit.is-open .credit__text,
.credit:focus-within .credit__text {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* Leistungen als Pillen statt Liste */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.chips li {
  padding: 0.4rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.card--dark .chips li {
  border-color: var(--line);
}

.card--gold .chips li,
.card--light .chips li {
  border-color: var(--ink-line);
}

.chips--light li {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(14, 13, 11, 0.3);
  backdrop-filter: blur(6px);
}

/* ---------- 3. Kachel-Raster ---------- */

.bento-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.bento-section__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 3rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.bento-section__head h2 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
}

.bento-section__head em {
  color: var(--gold);
  font-style: normal;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Alle Leistungen als gleich gebaute Fotokacheln: Bild füllt alles, Text liegt unten darauf */
.bento__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tile);
  isolation: isolate;
}

.bento__tile > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.bento__tile:hover > img {
  transform: scale(1.05);
}

.bento__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(14, 13, 11, 0.96) 0%, rgba(14, 13, 11, 0.7) 38%, rgba(14, 13, 11, 0.1) 70%, rgba(14, 13, 11, 0) 100%);
}

.bento__body {
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
}

.bento__no {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.bento__tile h3 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 2.2vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.bento__tile p {
  max-width: 30rem;
  margin-top: 0.75rem;
  color: rgba(245, 240, 230, 0.85);
  font-size: 1rem;
}

.bento__tile .chips {
  margin-top: 1.25rem;
}

/* Mit Maus: Stichworte erst beim Darüberfahren einblenden, damit das Raster ruhig bleibt */
@media (hover: hover) and (pointer: fine) {
  .bento__tile .chips {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: max-height 0.5s var(--ease-out), margin-top 0.5s var(--ease-out), opacity 0.35s ease, transform 0.5s var(--ease-out);
  }

  .bento__tile:hover .chips {
    max-height: 10rem;
    margin-top: 1.25rem;
    opacity: 1;
    transform: none;
  }
}

.bento__tile--cta {
  justify-content: space-between;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  background: var(--gold);
  color: var(--bg);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.bento__tile--cta::after {
  display: none;
}

.bento__tile--cta:hover {
  background: var(--white);
}

.bento__tile--cta span:first-child {
  padding-right: 3.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bento__tile--cta strong {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.bento__arrow {
  position: absolute;
  top: clamp(1.25rem, 2vw, 2rem);
  right: clamp(1.5rem, 2.4vw, 2.25rem);
  font-size: 2.5rem;
  line-height: 1;
  transition: transform 0.4s var(--ease-out);
}

.bento__tile--cta:hover .bento__arrow {
  transform: translateX(8px);
}

/* Senkrechte Beschriftung und Zeitbalken gibt es nur im Akkordeon (grosse Bildschirme) */
.bento__label,
.bento__timer {
  display: none;
}

/* Grosse Bildschirme: Panorama-Akkordeon. Eingeklappte Streifen sind dunkel und
   tragen ihren Namen senkrecht, der offene Streifen zeigt Foto, Text und Stichworte.
   Die Klasse is-accordion setzt js/dienstleistungen.js, ohne Script bleibt das Raster. */
@media (min-width: 1101px) {
  .bento.is-accordion {
    display: flex;
    gap: 1rem;
    height: clamp(34rem, 74vh, 50rem);
  }

  .js .bento.is-accordion .bento__tile {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: auto;
    cursor: pointer;
    transition: flex-grow 0.9s var(--ease-out), opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), background-color 0.3s ease;
  }

  .js .bento.is-accordion .bento__tile.is-open {
    flex-grow: 5;
    cursor: default;
  }

  .js .bento.is-accordion .bento__tile--cta.is-open {
    flex-grow: 3;
    cursor: pointer;
  }

  /* Foto: eingeklappt entsaettigt und dunkel, offen in voller Farbe */
  .bento.is-accordion .bento__tile > img {
    filter: grayscale(0.85) brightness(0.5);
    transform: scale(1.12);
    transition: filter 0.9s var(--ease-out), transform 1.4s var(--ease-out);
  }

  .bento.is-accordion .bento__tile:not(.is-open):hover > img {
    filter: grayscale(0.4) brightness(0.68);
  }

  .bento.is-accordion .bento__tile.is-open > img,
  .bento.is-accordion .bento__tile.is-open:hover > img {
    filter: none;
    transform: scale(1);
  }

  /* Senkrechter Name auf den eingeklappten Streifen */
  .bento.is-accordion .bento__label {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(180deg);
    transition: opacity 0.4s ease 0.35s, color 0.3s ease;
  }

  .bento.is-accordion .bento__label span {
    color: var(--gold);
    font-size: 0.8125rem;
  }

  .bento.is-accordion .bento__tile:not(.is-open):hover .bento__label {
    color: var(--gold);
  }

  .bento.is-accordion .bento__tile.is-open .bento__label {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  /* Inhalt des offenen Streifens: feste Breite, damit beim Aufklappen nichts umbricht */
  .bento.is-accordion .bento__body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: min(34rem, 36vw);
    padding: clamp(1.75rem, 2.6vw, 2.75rem);
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .bento.is-accordion .bento__tile.is-open .bento__body {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease 0.35s, transform 0.9s var(--ease-out) 0.35s;
  }

  .bento.is-accordion .bento__tile h3 {
    font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  }

  .bento.is-accordion .bento__tile .chips {
    max-height: none;
    margin-top: 1.25rem;
    opacity: 1;
    transform: none;
  }

  /* Grosse, nur umrandete Nummer oben rechts im offenen Streifen */
  .bento.is-accordion .bento__tile[data-no]::before {
    content: attr(data-no);
    position: absolute;
    top: 1.25rem;
    right: 1.75rem;
    color: transparent;
    font-family: var(--font-display);
    font-size: clamp(6rem, 10vw, 11rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    -webkit-text-stroke: 1.5px rgba(245, 240, 230, 0.6);
    opacity: 0;
    transform: translateY(-1.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
  }

  .bento.is-accordion .bento__tile.is-open[data-no]::before {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease 0.45s, transform 1s var(--ease-out) 0.45s;
  }

  /* Goldener Zeitbalken, solange das Akkordeon selbst weiterblaettert */
  .bento.is-accordion .bento__timer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: block;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
  }

  .bento.is-accordion.is-auto .bento__tile.is-open .bento__timer {
    animation: bento-timer 6s linear forwards;
  }

  /* Anfrage-Streifen: ohne Innenabstand, sonst waere er eingeklappt breiter als die anderen */
  .bento.is-accordion .bento__tile--cta {
    padding: 0;
  }

  .bento.is-accordion .bento__tile--cta > span:first-child,
  .bento.is-accordion .bento__tile--cta > strong {
    position: absolute;
    left: clamp(1.75rem, 2.6vw, 2.75rem);
    width: clamp(15rem, 22vw, 26rem);
    margin: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .bento.is-accordion .bento__tile--cta > span:first-child {
    top: clamp(1.75rem, 2.6vw, 2.75rem);
  }

  .bento.is-accordion .bento__tile--cta > strong {
    bottom: clamp(1.75rem, 2.6vw, 2.75rem);
  }

  .bento.is-accordion .bento__tile--cta.is-open > span:first-child,
  .bento.is-accordion .bento__tile--cta.is-open > strong {
    opacity: 1;
    transition: opacity 0.7s ease 0.35s;
  }

  .bento.is-accordion .bento__tile--cta .bento__arrow {
    opacity: 0;
  }

  .bento.is-accordion .bento__tile--cta.is-open .bento__arrow {
    opacity: 1;
    transition: opacity 0.7s ease 0.35s, transform 0.4s var(--ease-out);
  }

  .bento.is-accordion .bento__tile--cta .bento__label,
  .bento.is-accordion .bento__tile--cta .bento__label span {
    color: var(--bg);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
  }
}

@keyframes bento-timer {
  to {
    transform: scaleX(1);
  }
}

/* ---------- 4. Projekt-Reise ---------- */

.path {
  position: relative;
  background: var(--cream);
  color: var(--bg);
}

.path__sticky {
  position: relative;
  overflow-x: auto;
  padding-block: clamp(4rem, 8vw, 6rem);
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, calc((100vw - var(--wrap-max)) / 2));
  scrollbar-width: thin;
}

.path__bar {
  display: none;
}

.path__track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  padding-inline: max(1.25rem, calc((100vw - var(--wrap-max)) / 2));
}

.path__track > li {
  scroll-snap-align: start;
}

.path__intro {
  width: clamp(18rem, 32vw, 30rem);
  padding-right: clamp(1rem, 3vw, 3rem);
}

.path__intro .eyebrow {
  color: var(--gold-dark);
}

.path__intro h2 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
}

.path__intro p:not(.eyebrow) {
  margin-top: 1.5rem;
  opacity: 0.75;
}

/* Hinweis nur auf Touch-Geräten, wo die Reise von Hand gewischt wird */
.path__hint {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.path__hint::after {
  content: "\2192";
  font-size: 1.125rem;
  letter-spacing: 0;
  animation: nudge 1.6s ease-in-out infinite;
}

.path:not(.is-pinned) .path__hint {
  display: inline-flex;
}

@keyframes nudge {
  50% {
    transform: translateX(6px);
  }
}

.path__step {
  display: flex;
  flex-direction: column;
  width: clamp(16rem, 23vw, 22rem);
  padding-left: 1.5rem;
  border-left: 1px solid var(--ink-line);
}

.path__no {
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.path__verb {
  margin-top: clamp(4rem, 14vh, 10rem);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.8vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.path__step--focus .path__verb {
  color: var(--gold-dark);
}

.path__step a {
  width: fit-content;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold-dark);
  text-underline-offset: 0.3em;
}

.path__step a:hover {
  color: var(--gold-dark);
}

.path__step p {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.7;
}

/* Grosse Bildschirme: Bereich wird festgehalten, die Reise läuft seitwärts (JS setzt .is-pinned) */
.path.is-pinned .path__sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100svh;
  padding-block: var(--header-height) 2rem;
  overflow: hidden;
  overflow: clip;
  scroll-snap-type: none;
}

.path.is-pinned .path__track {
  will-change: transform;
}

.path.is-pinned .path__bar {
  position: absolute;
  right: max(1.25rem, calc((100vw - var(--wrap-max)) / 2));
  bottom: 3rem;
  left: max(1.25rem, calc((100vw - var(--wrap-max)) / 2));
  display: block;
  height: 2px;
  background: var(--ink-line);
}

.path__bar span {
  display: block;
  height: 100%;
  background: var(--bg);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 5. Goldener Abschluss ---------- */

.finale {
  padding-block: clamp(5rem, 12vw, 10rem);
  background: var(--gold);
  color: var(--bg);
}

.finale__kicker {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.finale h2 {
  margin-top: 1.25rem;
  font-size: clamp(3rem, 9.5vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.finale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--ink-line);
}

.finale__phone {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.finale__phone:hover {
  color: var(--white);
}

.finale__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}

.finale .btn {
  background: var(--bg);
  color: var(--text);
}

.finale .btn:hover {
  background: var(--white);
  color: var(--bg);
}

.finale .btn--outline {
  background: transparent;
  color: var(--bg);
  box-shadow: inset 0 0 0 2px var(--bg);
}

.finale .btn--outline:hover {
  background: var(--bg);
  color: var(--text);
}

/* ---------- Responsive ---------- */

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

@media (max-width: 900px) {
  .stack__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    position: relative;
    top: auto;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    margin-bottom: 1.25rem;
  }

  .card__media {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  .card h3 {
    margin-top: 1.5rem;
  }

  .card__no {
    font-size: 4rem;
  }

  .finale__buttons {
    margin-left: 0;
  }

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

@media (max-width: 600px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento__tile {
    aspect-ratio: 5 / 6;
  }

  .bento__tile--cta {
    aspect-ratio: auto;
    min-height: 14rem;
  }

  .dl-index__name {
    font-size: 1.0625rem;
  }

  /* "Ansprechpartner." muss auch auf 320 px in eine Zeile passen */
  .dl-hero__title {
    font-size: clamp(1.75rem, 8.4vw, 2.5rem);
  }

  .finale__buttons,
  .finale__buttons .btn {
    width: 100%;
  }
}
