/* Branchen-Detailseiten - gemeinsames Layout (Automotive, Medizintechnik)
   Cinema-Hero = page-hero--cinema Alias */

.auto-page {
  overflow-x: clip;
}

/* --- Hero: full-bleed cinema (page-hero--cinema) --- */
.page-hero--cinema,
.auto-hero {
  position: relative;
  isolation: isolate;
  min-height: min(100dvh, 52rem);
  display: grid;
  align-content: end;
  padding: clamp(6.5rem, 12vw, 8rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 5vw, 3.5rem);
  color: var(--w-on-media);
}

.page-hero--cinema .page-hero__bg,
.auto-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  filter: grayscale(0.35) contrast(1.12) brightness(0.42);
}

.page-hero--cinema .page-hero__veil,
.auto-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--w-shade) 88%, transparent) 0%,
      color-mix(in srgb, var(--w-shade) 55%, transparent) 48%,
      color-mix(in srgb, var(--w-shade) 72%, transparent) 100%
    ),
    radial-gradient(
      ellipse 70% 55% at 70% 30%,
      color-mix(in srgb, var(--w-accent) 18%, transparent),
      transparent 70%
    );
}

.page-hero--cinema .page-hero__inner,
.auto-hero__inner {
  max-width: 44rem;
}

.auto-crumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--w-on-media) 55%, transparent);
}

.auto-crumb a {
  color: color-mix(in srgb, var(--w-on-media) 72%, transparent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--w-hover) var(--w-ease), border-color var(--w-hover) var(--w-ease);
}

.auto-crumb a:hover {
  color: var(--w-on-media);
  border-bottom-color: color-mix(in srgb, var(--w-accent) 70%, transparent);
}

.page-hero--cinema h1,
.auto-hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.page-hero--cinema .page-hero__sub,
.auto-hero__lead {
  margin: 0;
  max-width: 36ch;
  color: color-mix(in srgb, var(--w-on-media) 82%, transparent);
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

.auto-hero__rail {
  display: none;
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(2.5rem, 5vw, 3.5rem);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  gap: 1.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--w-on-media) 55%, transparent);
}

.auto-hero__rail span + span {
  margin-top: 1.4rem;
}

@media (min-width: 960px) {
  .auto-hero__rail {
    display: flex;
    flex-direction: column;
  }
}

/* --- Spec frame --- */
.auto-spec {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid color-mix(in srgb, var(--w-steel) 12%, transparent);
}

.auto-spec__frame {
  display: grid;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--w-steel) 18%, transparent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--w-steel) 5%, transparent),
      transparent 40%
    );
}

@media (min-width: 860px) {
  .auto-spec__frame {
    grid-template-columns: repeat(3, 1fr);
  }
}

.auto-spec__item {
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.2rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid color-mix(in srgb, var(--w-steel) 14%, transparent);
}

@media (min-width: 860px) {
  .auto-spec__item {
    border-bottom: 0;
    border-right: 1px solid color-mix(in srgb, var(--w-steel) 14%, transparent);
  }

  .auto-spec__item:last-child {
    border-right: 0;
  }
}

.auto-spec__code {
  display: block;
  margin-bottom: 0.85rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--w-accent);
}

.auto-spec__item strong {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--w-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auto-spec__item p {
  margin: 0;
  color: var(--w-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Editorial splits --- */
.auto-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .auto-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }

  .auto-split--flip .auto-split__copy {
    order: 2;
  }

  .auto-split--flip .auto-split__visual {
    order: 1;
  }
}

.auto-split__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

.auto-split__copy > p {
  margin: 0 0 1rem;
  max-width: 48ch;
  color: var(--w-body);
  line-height: 1.6;
}

.auto-split__copy > p:last-of-type {
  margin-bottom: 1.25rem;
}

.auto-split__link {
  margin: 1.25rem 0 0;
}

.auto-split__link .cta-program {
  display: inline-flex;
}

.auto-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  max-width: 48ch;
}

.auto-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  border-top: 1px solid color-mix(in srgb, var(--w-steel) 14%, transparent);
  color: var(--w-mist);
  font-size: 0.95rem;
  line-height: 1.45;
}

.auto-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--w-accent);
}

.auto-split__visual {
  margin: 0;
}

.auto-split__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.08);
  border: 1px solid color-mix(in srgb, var(--w-steel) 18%, transparent);
}

.auto-split__visual figcaption {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--w-muted);
}

/* --- Statement --- */
.auto-statement {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid color-mix(in srgb, var(--w-steel) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--w-steel) 12%, transparent);
}

.auto-statement__mark {
  position: absolute;
  top: 0.4rem;
  left: clamp(0.5rem, 3vw, 2rem);
  margin: 0;
  font-family: var(--w-font-display);
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 0.8;
  color: color-mix(in srgb, var(--w-accent) 35%, transparent);
  pointer-events: none;
  user-select: none;
}

.auto-statement blockquote {
  margin: 0;
  max-width: 80%;
}

.auto-statement blockquote p {
  margin: 0;
  font-family: var(--w-font-display);
  font-size: clamp(1.85rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: pretty;
}

.auto-statement__meta {
  margin: 1.5rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--w-muted);
}

/* --- Bedarf-Matrix --- */
.auto-matrix {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
}

.auto-matrix__head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 40rem;
}

.auto-matrix__head h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.auto-matrix__intro {
  margin: 0;
  color: var(--w-body);
  font-size: 1rem;
  line-height: 1.55;
}

.auto-matrix__grid {
  display: grid;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--w-steel) 16%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--w-steel) 16%, transparent);
}

@media (min-width: 760px) {
  .auto-matrix__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.auto-matrix__grid article {
  padding: 1.5rem 1.25rem 1.6rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--w-steel) 16%, transparent);
}

@media (min-width: 760px) {
  .auto-matrix__grid article:nth-child(odd) {
    padding-right: 2rem;
    border-right: 1px solid color-mix(in srgb, var(--w-steel) 16%, transparent);
  }

  .auto-matrix__grid article:nth-child(even) {
    padding-left: 2rem;
  }
}

.auto-matrix__idx {
  display: block;
  margin-bottom: 0.7rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--w-accent);
}

.auto-matrix__grid h3 {
  margin: 0 0 0.5rem;
  font-family: var(--w-font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.auto-matrix__grid p {
  margin: 0;
  max-width: 40ch;
  color: var(--w-body);
  font-size: 0.95rem;
  line-height: 1.55;
}

.auto-matrix__grid a {
  color: var(--w-steel);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--w-accent) 55%, transparent);
}

.auto-matrix__grid a:hover {
  color: var(--w-mist);
}

/* --- SEO-Prosa --- */
.auto-prose {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem) 0;
}

.auto-prose h2 {
  margin: 0 0 1.25rem;
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.auto-prose__body {
  max-width: 68ch;
}

.auto-prose__body p {
  margin: 0 0 1.15rem;
  color: var(--w-body);
  font-size: 1.02rem;
  line-height: 1.65;
}

.auto-prose__body p:last-child {
  margin-bottom: 0;
}

.auto-prose__body a {
  color: var(--w-steel);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--w-accent) 55%, transparent);
  transition: color 0.35s var(--w-ease);
}

.auto-prose__body a:hover {
  color: var(--w-mist);
}

.auto-prose__body strong {
  color: var(--w-mist);
  font-weight: 600;
}

/* --- FAQ --- */
.auto-faq {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid color-mix(in srgb, var(--w-steel) 12%, transparent);
}

.auto-faq__head {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.auto-faq__head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.auto-faq__list {
  max-width: 52rem;
  border-top: 1px solid color-mix(in srgb, var(--w-steel) 16%, transparent);
}

.auto-faq__list details {
  border-bottom: 1px solid color-mix(in srgb, var(--w-steel) 16%, transparent);
}

.auto-faq__list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2rem 1.15rem 0;
  font-family: var(--w-font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--w-mist);
  position: relative;
}

.auto-faq__list summary::-webkit-details-marker {
  display: none;
}

.auto-faq__list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.15rem;
  font-family: var(--w-font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--w-accent);
  transition: transform 0.35s var(--w-ease);
}

.auto-faq__list details[open] summary::after {
  content: "-";
}

.auto-faq__list details p {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  color: var(--w-body);
  font-size: 0.98rem;
  line-height: 1.6;
}

.auto-faq__list details a {
  color: var(--w-steel);
  text-underline-offset: 0.18em;
}

.auto-faq__list details a:hover {
  color: var(--w-mist);
}

/* --- Reveal ---
   Ohne JS sichtbar (Progressive Enhancement).
   Mit html.js nur bis .is-in versteckt. */
.auto-reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

html.js .auto-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(1.4rem);
  filter: blur(4px);
  transition:
    opacity 0.85s var(--w-ease),
    transform 0.85s var(--w-ease),
    filter 0.85s var(--w-ease);
}

html.js .auto-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .auto-reveal:not(.is-in),
  .auto-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Light Mode - Branchen-Detail */
html[data-theme="light"] .auto-spec__frame,
html[data-theme="light"] .auto-faq__list details,
html[data-theme="light"] .auto-matrix__grid article,
html[data-theme="light"] .auto-split {
  border-color: color-mix(in srgb, var(--w-steel) 18%, transparent);
}

html[data-theme="light"] .auto-spec__item,
html[data-theme="light"] .auto-faq__list details,
html[data-theme="light"] .auto-matrix__grid article {
  background: #fff;
}

html[data-theme="light"] .auto-statement {
  background: color-mix(in srgb, var(--w-steel) 6%, #fff);
}

html[data-theme="light"] .auto-split__visual img {
  box-shadow: 0 16px 40px color-mix(in srgb, black 12%, transparent);
}
