/* 6 · Industries (Export s05.png, 1440 × 808, lila Grund). Kopf links (Eyebrow + Titel), rechts „Alle Branchen“.
   Kartenreihe ab x 80 bis an den rechten Fensterrand: vier Karten 328 × 510, Abstand 16, Radius 30 (bei 328 breit).
   ≥ 1200: vier Karten fließend nebeneinander, < 1200: horizontales Scroll-Snap-Karussell. */
.s06 { padding: 88px 0 70px; }

/* Kopf */
.s06__head { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.s06__title { margin-top: 18px; color: var(--text-primary); }

.s06__arrow { flex: none; width: 16px; height: 16px; }
.s06__arrow path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* „Alle Branchen“: Disclosure mit allen Branchenseiten */
.s06__all { position: relative; flex: none; margin-bottom: 0; }
.s06__all-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 0;
  color: var(--brand); cursor: pointer; list-style: none; white-space: nowrap;
}
.s06__all-btn::-webkit-details-marker { display: none; }
.s06__all-btn:hover { color: var(--brand-hover); }
.s06__all-btn .s06__arrow { transition: rotate 0.3s var(--ease-out-quint); }
.s06__all[open] .s06__all-btn .s06__arrow { rotate: 90deg; }
.s06__all-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.s06__all-list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5;
  list-style: none; margin: 0; padding: 8px; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--color-primary-600) 18%, transparent);
}
.s06__all-list a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--text-primary); text-decoration: none;
}
.s06__all-list a:hover { background: var(--surface-tint); color: var(--brand); }

/* Kartenreihe: links bündig mit dem Inhalt, rechts bis an den Fensterrand */
.s06__track {
  --s06-pad: max(var(--gutter), calc((100% - var(--page-max)) / 2));
  list-style: none; margin: 37px 0 0; padding: 0 0 0 var(--s06-pad);
  display: flex; gap: 16px;
}
.s06__item { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; container-type: inline-size; }

.s06__card {
  position: relative; z-index: 0; aspect-ratio: 328 / 510; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 9.15cqi; /* 30 px bei 328 px Breite — wächst mit dem Foto, damit dessen Ecken bündig bleiben */
  background: color-mix(in srgb, var(--color-black), var(--color-neutral-950));
  color: var(--text-on-dark);
}
.s06__photo { position: absolute; z-index: -2; inset: 0 0 auto; width: 100%; height: auto; aspect-ratio: 656 / 740; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, var(--color-black) 80%, transparent);
  mask-image: linear-gradient(to bottom, var(--color-black) 80%, transparent); }
/* Übergang Foto → dunkler Grund */
.s06__card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 40%; height: 33%; z-index: -1;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--color-black), var(--color-neutral-950)));
  pointer-events: none;
}
.s06__body { padding: 0 24px 24px; } /* statisch: der Klickbereich von .s06__more::after bezieht sich auf die Karte */
.s06__desc { margin-top: 10px; max-width: 300px; color: var(--color-white-a85); }
.s06__more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  color: var(--color-primary-300); text-decoration: none; white-space: nowrap;
}
/* ganze Karte klickbar, Fokus am Kartenrand */
.s06__more::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.s06__card:hover .s06__more { color: var(--color-primary-200); }
.s06__card:hover .s06__more .s06__arrow { translate: 3px 0; }
.s06__more .s06__arrow { transition: translate 0.3s var(--ease-out-quint); }
.s06__more:focus-visible { outline: none; }
.s06__card:has(.s06__more:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.s06__photo { transition: scale 0.6s var(--ease-out-quint); }
.s06__card:hover .s06__photo { scale: 1.03; }

/* < 1200: Karussell (Scrollen nur innerhalb der Reihe, Seite bleibt ohne Überlauf) */
@media (max-width: 1199px) {
  .s06__track {
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: var(--s06-pad);
    padding-right: var(--gutter); padding-bottom: 4px;
    scrollbar-width: none;
  }
  .s06__track::-webkit-scrollbar { display: none; }
  .s06__item { flex-basis: 300px; scroll-snap-align: start; }
}

@media (max-width: 767px) {
  .s06__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .s06__title { margin-top: 14px; }
  .s06__all-list { left: 0; right: auto; }
  .s06__track { margin-top: 28px; gap: 12px; }
  .s06__item { flex-basis: min(78vw, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  .s06__photo, .s06__more .s06__arrow, .s06__all-btn .s06__arrow { transition: none; }
}
