/* =============================================================
   COMPONENTS CSS – proZerspanung Website
   ============================================================= */

/* =============================================================
   TOPBAR
   ============================================================= */
.topbar {
  background: var(--color-schwarz);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-m);
  padding: 0.5rem 0;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.topbar__item:hover {
  color: var(--color-weiss);
}

.topbar__item svg {
  flex-shrink: 0;
  stroke: var(--color-rot);
}

@media (max-width: 768px) {
  .topbar { display: none; }
}

/* =============================================================
   NAV – Shop "bald" badge
   ============================================================= */
.nav__link--soon::after {
  content: 'bald';
  font-size: 0.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  /* weiß auf --color-rot nur 3,87:1, --color-rot-active erreicht 5,2:1 */
  background: var(--color-rot-active);
  color: var(--color-weiss);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  margin-left: 0.375rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cta);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  /* --color-rot ergibt mit weißer Schrift nur 3,87:1 (WCAG AA braucht 4,5:1 bei 15px/400),
     --color-rot-active als Ruhezustand erreicht 5,2:1, siehe fehlerlog.md 2026-07-27 */
  background-color: var(--color-rot-active);
  color: var(--color-weiss);
  border-color: var(--color-rot-active);
  box-shadow: 0 4px 16px rgba(238, 62, 73, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-rot);
  border-color: var(--color-rot);
  box-shadow: 0 6px 22px rgba(238, 62, 73, 0.4);
}

.btn--primary:active {
  background-color: var(--color-rot-active);
  border-color: var(--color-rot-active);
  box-shadow: none;
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-weiss);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn--outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-schwarz);
  border-color: rgba(28, 28, 28, 0.3);
}

.btn--outline-dark:hover {
  background-color: var(--color-schwarz);
  color: var(--color-weiss);
  border-color: var(--color-schwarz);
}

.btn--text {
  padding: 0;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  /* --color-rot auf hellem Grund nur 3,87:1, --color-rot-active erreicht 5,2:1 */
  color: var(--color-rot-active);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.btn--text:hover { color: var(--color-rot); }

.btn--text svg {
  transition: transform var(--transition-fast);
}

.btn--text:hover svg { transform: translateX(3px); }

/* =============================================================
   NAVIGATION
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-schwarz);
  transition: box-shadow var(--transition-base);
}

/* Subtiler Rot-Akzent unten links → transparent */
.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--color-rot) 0%,
    rgba(238, 62, 73, 0.3) 15%,
    rgba(255, 255, 255, 0.06) 40%,
    transparent 100%
  );
}

.nav--scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.04),
              0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-l);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.92;
  transition: opacity var(--transition-fast);
}

.nav__logo:hover { opacity: 1; }

.nav__logo img {
  height: 34px;
  width: auto;
}

/* Desktop nav */
.nav__menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.4375rem 0.875rem;
  border-radius: 100px;
  transition: color var(--transition-fast),
              background-color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link:hover {
  color: var(--color-weiss);
  background-color: rgba(255, 255, 255, 0.09);
}

.nav__link--cta {
  font-family: var(--font-cta);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  /* weiß auf --color-rot nur 3,87:1, --color-rot-active erreicht 5,2:1 */
  background-color: var(--color-rot-active);
  color: var(--color-weiss);
  padding: 0.4375rem 1.125rem;
  margin-left: 0.375rem;
  box-shadow: 0 2px 10px rgba(238, 62, 73, 0.35);
  transition: background-color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
}

.nav__link--cta:hover {
  background-color: var(--color-rot);
  color: var(--color-weiss);
  box-shadow: 0 4px 16px rgba(238, 62, 73, 0.45);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* 0.75rem Padding + min-width/height sichern 44x44px Touch-Ziel (WCAG), vorher ~36x30px */
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 100px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  transition: background-color var(--transition-fast);
}

.nav__hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav__hamburger-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav--open .nav__hamburger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav__hamburger-bar:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav. Breakpoint bewusst höher als die übrigen 768px-Breakpoints im
   Projekt: 8 Menüpunkte + Logo + Kontakt-Button passen erst ab ca. 995px in
   eine Zeile (gemessen), darunter brach "Tool-Finder"/"Über uns" einzeln um,
   statt dass die Zeile umbricht oder scrollt (Dean-Meldung 2026-09-08). */
@media (max-width: 1050px) {
  .nav__hamburger { display: flex; }

  .nav__menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: var(--space-xs) 0 var(--space-m);
    display: none;
  }

  .nav--open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0 var(--container-padding);
  }

  .nav__link {
    padding: 0.75rem 0.25rem;
    font-size: 0.9375rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: space-between;
    background-color: transparent;
  }

  .nav__link:hover {
    background-color: transparent;
    color: var(--color-weiss);
  }

  .nav__link--cta {
    margin: var(--space-s) 0 0;
    padding: 0.75rem;
    text-align: center;
    justify-content: center;
    border-radius: 100px;
    border-bottom: none;
    box-shadow: none;
  }

}

/* =============================================================
   HERO – Split Layout
   ============================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Optisch statt mathematisch zentriert: etwas weniger Luft oben, mehr
     unten -- vermeidet den "tot zentrierten" Eindruck einer exakt
     symmetrischen Mitte (siehe Feinschliff-Feedback 2026-08-10) */
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--color-schwarz);
  /* Blueprint-Raster: kräftigere Hauptlinien alle 128px + feine Nebenlinien
     alle 32px, wie echtes Konstruktionspapier -- bewusst gleichmäßig über
     die ganze Fläche (kein Verlauf/Vignette, siehe Fehlerlog 2026-08-10) */
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  /* Phase der Raster-Wiederholung auf die Werkzeug-Box einrasten (per JS
     gemessen, siehe main.js) -- dadurch treffen die Kalibriermarken auf
     .hero__media exakt auf einen Rasterschnittpunkt statt frei zu schweben */
  background-position: var(--hero-grid-x, 0) var(--hero-grid-y, 0);
}

/* Setzt die rote Nav-Akzentlinie (.nav::after) am oberen Hero-Rand fort,
   statt zwei unverbundene rote Linien nebeneinander stehen zu lassen */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--color-rot) 0%,
    rgba(238, 62, 73, 0.3) 15%,
    rgba(255, 255, 255, 0.06) 40%,
    transparent 100%
  );
  z-index: 1;
}

.hero__panel {
  position: relative;
}

.hero__panel--left {
  position: relative;
  z-index: 2;
  width: 52%;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl)
    max(var(--container-padding), calc((100vw - var(--container-max)) / 2 + var(--container-padding)));
}

/* Rechtes Feld: echte Produktfotos, freigestellt, wechseln per Crossfade.
   Kein KI-Bild -- deshalb kein .ai-label nötig. */
.hero__panel--right {
  position: relative;
  z-index: 1;
  width: 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
  height: 100%;
  overflow: hidden;
}

/* Kalibriermarken in den vier Ecken -- rahmt das Produktfoto wie ein
   Messobjekt unter Präzisionskontrolle, statt eines Flächen-Glows */
.hero__media {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 84%;
  max-height: 52vh;
  aspect-ratio: 4 / 3;
  background-image:
    linear-gradient(to right, rgba(238, 62, 73, 0.85) 0 100%),
    linear-gradient(to bottom, rgba(238, 62, 73, 0.85) 0 100%),
    linear-gradient(to right, rgba(238, 62, 73, 0.85) 0 100%),
    linear-gradient(to bottom, rgba(238, 62, 73, 0.85) 0 100%),
    linear-gradient(to right, rgba(238, 62, 73, 0.85) 0 100%),
    linear-gradient(to bottom, rgba(238, 62, 73, 0.85) 0 100%),
    linear-gradient(to right, rgba(238, 62, 73, 0.85) 0 100%),
    linear-gradient(to bottom, rgba(238, 62, 73, 0.85) 0 100%);
  background-repeat: no-repeat;
  background-size:
    22px 1.5px, 1.5px 22px,
    22px 1.5px, 1.5px 22px,
    22px 1.5px, 1.5px 22px,
    22px 1.5px, 1.5px 22px;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.55));
  transition: opacity 1.1s ease;
}

.hero__slide--active {
  opacity: 1;
}

/* Füllgrad-Ausgleich: die 6 Produktfotos füllen die Box bei reinem
   object-fit:contain unterschiedlich stark (47-69% je nach Seiten-
   verhältnis). Erster Versuch (2026-08-10) hat die kleineren Fotos
   HOCHskaliert -- dabei übersehen, dass .hero__media durch max-height:52vh
   bei manchen Viewport-Höhen null vertikalen Rand übrig hat: das Werkzeug
   ragte oben aus der Box und wurde von overflow:hidden hart abgeschnitten
   (Dean-Meldung 2026-08-10, "komplett abgeschnitten" -- gemessen: bei
   1512px Breite lag der Rand exakt bei 0px selbst OHNE jede Skalierung).
   Korrekter, überlaufsicherer Ansatz: NUR die beiden am stärksten
   füllenden SLOKY-Fotos auf das Füllniveau der übrigen vier Fotos
   (47-49%) HERUNTERskalieren -- Verkleinern kann eine bereits sicher
   passende Box nie überlaufen lassen, in keiner Fensterbreite. Die vier
   NINE9-Diagonalwerkzeuge bleiben unskaliert (liegen mit 47-49% ohnehin
   schon eng beieinander, keine Korrektur nötig). */
.hero__slide--fill-b { transform: scale(0.68); }
.hero__slide--fill-c { transform: scale(0.82); }

/* Produktbezeichnung, wechselt synchron mit dem Slide -- füllt die Fläche
   mit echtem Inhalt statt reiner Dekoration. Eigener Flex-Bereich UNTER
   .hero__media (nicht absolut darüber gelegt), damit hochkante Werkzeuge,
   die die Media-Box bis zum unteren Rand ausfüllen, den Text nie
   überlappen können. */
.hero__caption {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.hero__dots {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  gap: var(--space-xs);
}

.hero__dot {
  width: 7px;
  height: 7px;
  padding: 8px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  background-clip: content-box;
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.hero__dot:hover {
  background-color: rgba(255, 255, 255, 0.45);
}

.hero__dot--active,
.hero__dot--active:hover {
  background-color: var(--color-rot-hover);
  transform: scale(1.3);
}

.hero__content {
  max-width: 540px;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* --color-rot auf dem dunklen Hero-Overlay nur 4,40:1, --color-rot-hover erreicht 6,57:1 */
  color: var(--color-rot-hover);
  margin-bottom: var(--space-m);
}

.hero__headline {
  font-family: var(--font-cta);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-weiss);
  margin-bottom: var(--space-m);
}

.hero__subline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin-bottom: var(--space-l);
  max-width: 46ch;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: var(--space-xl);
  }

  .hero__panel--left {
    width: 100%;
    padding: var(--space-xl) var(--container-padding) var(--space-l);
  }

  .hero__panel--right {
    width: 100%;
    padding: 0 var(--container-padding) var(--space-l);
  }

  .hero__media {
    width: 60%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__ctas .btn { justify-content: center; }
}

/* =============================================================
   MARQUEE STRIP
   ============================================================= */
.marquee {
  overflow: hidden;
  background-color: var(--color-schwarz);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.875rem 0;
  cursor: default;
}

.marquee__track {
  display: flex;
  animation: marquee-scroll 44s linear infinite;
  width: max-content;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__inner {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  white-space: nowrap;
  padding: 0 1.625rem;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.marquee__item--accent {
  /* --color-rot auf --color-schwarz nur 4,40:1, --color-rot-hover erreicht 6,57:1 */
  color: var(--color-rot-hover);
}

.marquee__dot {
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.3125rem;
  flex-shrink: 0;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* =============================================================
   USP BAR – Rot
   ============================================================= */
.usp-bar {
  /* weißer Text darin nur 3,87:1 auf --color-rot, --color-rot-active erreicht 5,2:1 */
  background-color: var(--color-rot-active);
  padding: var(--space-l) 0 calc(var(--space-l) + 28px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}

.usp-bar__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-s);
}

.usp-bar__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.usp-bar__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.usp-bar__icon svg {
  color: var(--color-weiss);
}

.usp-bar__text {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-weiss);
  line-height: 1.3;
}

.usp-bar__text span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.125rem;
}

@media (max-width: 768px) {
  .usp-bar {
    clip-path: none;
    padding-bottom: var(--space-l);
  }

  .usp-bar__list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-m);
  }
}

@media (max-width: 480px) {
  .usp-bar__list { grid-template-columns: 1fr; }
}

/* =============================================================
   STATS
   ============================================================= */
.stats {
  background-color: var(--color-schwarz);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats__item {
  text-align: center;
  padding: var(--space-m) var(--space-l);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.stats__item:first-child {
  border-left: none;
}

.stats__number {
  display: block;
  font-family: var(--font-cta);
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-weiss);
  margin-bottom: 0.5rem;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.03em;
}

.stats__number--accent {
  color: var(--color-rot);
}

.stats__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .stats__item:first-child { border-top: none; }
}

/* =============================================================
   BRAND CARDS
   ============================================================= */
.brands__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-m);
  align-items: start;
}

.brand-card {
  position: relative;
  overflow: visible;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.brand-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  position: relative;
  border-radius: var(--radius-m);
  flex-shrink: 0;
}

.brand-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}

.brand-card:hover .brand-card__image img {
  transform: scale(1.04);
}

.brand-card__content {
  padding: var(--space-m) var(--space-xs) var(--space-s);
  display: flex;
  flex-direction: column;
}

.brand-card__label {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* --color-rot auf hellem Grund nur 3,87:1, --color-rot-active erreicht 5,2:1 */
  color: var(--color-rot-active);
  margin-bottom: 0.4rem;
}

.brand-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-schwarz);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.brand-card__text {
  font-size: 0.9375rem;
  color: var(--color-grau-72);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-m);
}

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

@media (min-width: 600px) and (max-width: 900px) {
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   WHY US
   ============================================================= */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  counter-reset: why-counter;
}

.why-us__item {
  padding: var(--space-l) 0 var(--space-m);
  border-left: none;
  border-top: 2px solid var(--color-rot);
  counter-increment: why-counter;
}

.why-us__item::before {
  content: "0" counter(why-counter);
  display: block;
  font-family: var(--font-cta);
  font-size: 2.5rem;
  font-weight: 400;
  color: rgba(238, 62, 73, 0.28);
  line-height: 1;
  margin-bottom: var(--space-s);
  letter-spacing: -0.03em;
}

.why-us__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-schwarz);
  margin-bottom: 0.5rem;
}

.why-us__text {
  font-size: 0.9375rem;
  color: var(--color-grau-72);
  line-height: 1.7;
}

.why-us__item .btn--text {
  margin-top: var(--space-s);
}

@media (max-width: 768px) {
  .why-us__grid { grid-template-columns: 1fr; gap: 0; }
  .why-us__item { padding: var(--space-m) 0; }
}

/* Apple-Stil Karten-Swipe (premium-motion Skill, siehe
   PREMIUM-MOTION-PATTERNS.md Pattern 2): .why-us-pin ist der Pin-Trigger
   (Ueberschrift + Karten-Swipe zusammen, damit die Ueberschrift beim Pinnen
   nicht separat wegscrollt), .why-us__track die Karten-Reihe die per
   horizontalScroll() verschoben wird. Generische Klassen -- gilt fuer jede
   Seite mit diesem Pattern, ueberschreibt die statische .why-us__grid
   gezielt innerhalb von .why-us__viewport. */
.why-us-pin {
  position: relative;
}

@media (min-width: 900px) {
  .why-us-pin {
    /* KEIN min-height + justify-content:center -- das klingt nach der
       richtigen Loesung, ist es aber nicht: bei unbekannter, ggf. kurzer
       Viewport-Hoehe ist der reale Inhalt (Ueberschrift + Karte + Dots)
       schnell hoeher als jeder feste Hoehen-Deckel, und zentrierter
       ueberlaufender Flex-Inhalt laeuft SYMMETRISCH nach oben UND unten
       ueber -- die Ueberschrift landet dann wieder hinter der Nav.
       Stattdessen: nur festes Padding oben/unten, keine erzwungene Box-
       Hoehe. Dadurch kann nichts ueberlaufen, die Ueberschrift bleibt in
       jedem Fall komplett sichtbar. */
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
  }
}

.why-us__viewport {
  position: relative;
  overflow: hidden;
}

.why-us__viewport .why-us__grid {
  display: flex;
  gap: 0;
}

.why-us__viewport .why-us__item {
  flex: 0 0 100%;
  max-width: 100%;
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.why-us__viewport .why-us__icon {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-m);
  color: var(--color-rot);
}

.why-us__viewport .why-us__item::before {
  font-size: 3rem;
}

.why-us__viewport .why-us__title {
  font-size: 1.75rem;
  max-width: 620px;
  margin-inline: auto;
}

.why-us__viewport .why-us__text {
  font-size: 1.0625rem;
  max-width: 58ch;
  margin-inline: auto;
  line-height: 1.8;
}

.why-us__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-m);
}

.why-us__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(28, 28, 28, 0.18);
  transition: background-color var(--transition-base);
}

.why-us__dot--active {
  background-color: var(--color-rot-active);
}

@media (max-width: 899.98px) {
  .why-us__viewport { overflow: visible; }
  .why-us__viewport .why-us__grid { display: grid; grid-template-columns: 1fr; gap: 0; }
  .why-us__viewport .why-us__item {
    flex: initial;
    max-width: none;
    padding: var(--space-m) 0;
    text-align: left;
  }
  .why-us__viewport .why-us__icon { margin: 0 0 var(--space-s); }
  .why-us__viewport .why-us__item::before { font-size: 2.5rem; }
  .why-us__viewport .why-us__title { font-size: 1rem; max-width: none; margin-inline: 0; }
  .why-us__viewport .why-us__text { font-size: 0.9375rem; max-width: none; margin-inline: 0; line-height: 1.7; }
  .why-us__dots { display: none; }
}

/* =============================================================
   TOOL-FINDER TEASER
   ============================================================= */
.tool-teaser {
  background-color: var(--color-schwarz);
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.tool-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(238,62,73,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.tool-teaser__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.tool-teaser__headline {
  color: var(--color-weiss);
  margin-bottom: var(--space-s);
}

.tool-teaser__label {
  margin-bottom: var(--space-s);
}

.tool-teaser__text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.0625rem;
  margin-bottom: var(--space-l);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================
   CONTACT TEASER
   ============================================================= */
.contact-teaser {
  padding: var(--space-2xl) 0;
}

.contact-teaser__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.contact-teaser__headline {
  margin-bottom: var(--space-s);
}

.contact-teaser__label {
  margin-bottom: var(--space-s);
}

.contact-teaser__text {
  margin-bottom: var(--space-l);
  max-width: 44ch;
}

.contact-teaser__cta {
  margin-bottom: var(--space-m);
}

.contact-teaser__visual-divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-rot);
  border-radius: 2px;
}

.contact-teaser__visual-subtext {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--color-grau-57);
  line-height: 1.6;
}

.contact-teaser__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.contact-teaser__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-grau-72);
}

.contact-teaser__detail svg {
  color: var(--color-rot);
  flex-shrink: 0;
}

.contact-teaser__visual {
  background-color: var(--color-grau-4);
  border-radius: var(--radius-m);
  padding: var(--space-xl) var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.contact-teaser__visual-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* --color-rot auf hellem Grund nur 3,87:1, --color-rot-active erreicht 5,2:1 */
  color: var(--color-rot-active);
}

.contact-teaser__visual-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-schwarz);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .contact-teaser__inner {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   PRE-FOOTER CTA
   ============================================================= */
.prefooter-cta {
  background-color: var(--color-schwarz);
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prefooter-cta::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 420px;
  background: radial-gradient(ellipse at 50% 100%, rgba(238, 62, 73, 0.16) 0%, transparent 62%);
  pointer-events: none;
}

.prefooter-cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.prefooter-cta__label {
  margin-bottom: var(--space-s);
  /* --color-rot auf --color-schwarz nur 4,40:1, --color-rot-hover erreicht 6,57:1 */
  color: var(--color-rot-hover);
}

.prefooter-cta__headline {
  font-family: var(--font-cta);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--color-weiss);
  line-height: 1.1;
  margin-bottom: var(--space-m);
}

.prefooter-cta__text {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-l);
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.prefooter-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .prefooter-cta__actions { flex-direction: column; align-items: stretch; }
  .prefooter-cta__actions .btn { justify-content: center; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background-color: var(--color-schwarz);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-l) 0 var(--space-m);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-l);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-m);
}

.footer__brand-logo {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-m);
}

.footer__tagline {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-s);
}

.footer__links + .footer__col-title {
  margin-top: var(--space-s);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding-block: 0.5rem;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-weiss);
}

@media (min-width: 901px) {
  .footer__links--split {
    display: block;
    columns: 2;
    column-gap: var(--space-l);
  }

  .footer__links--split li {
    break-inside: avoid;
  }
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  flex-wrap: wrap;
}

.footer__copyright {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-m);
}

.footer__legal-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  padding-block: 0.8125rem;
  margin-block: -0.8125rem;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
  }
}

@media (max-width: 480px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================================
   BREADCRUMB
   ============================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-m);
  flex-wrap: wrap;
}

.breadcrumb__link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  /* 0.38 ergab nur 3,2-3,6:1 auf dunklem Hero-Hintergrund, 0.55 erreicht 5-6:1 */
  color: rgba(255, 255, 255, 0.55);
  /* Touch-Ziel war nur 36px hoch, padding bringt es auf ≥44px ohne optischen Abstand zu ändern */
  padding-block: 0.75rem;
  margin-block: -0.25rem;
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb__separator {
  color: rgba(255, 255, 255, 0.16);
  font-size: 0.375rem;
  line-height: 1;
  flex-shrink: 0;
}

.breadcrumb__current {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

/* =============================================================
   PAGE HERO (Produkt- und Inhaltsseiten)
   ============================================================= */
.page-hero {
  background-color: var(--color-schwarz);
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
  min-height: 400px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero__bg-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  pointer-events: none;
}

.page-hero__bg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-schwarz) 0%,
    rgba(28, 28, 28, 0.72) 35%,
    rgba(28, 28, 28, 0.15) 100%
  );
  z-index: 1;
}

.page-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* --color-rot auf dem dunklen Hero-Overlay nur 4,40:1, --color-rot-hover erreicht 6,57:1 */
  color: var(--color-rot-hover);
  margin-bottom: var(--space-m);
}

.page-hero__headline {
  font-family: var(--font-cta);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--color-weiss);
  margin-bottom: var(--space-m);
}

.page-hero__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
  max-width: 50ch;
  margin-bottom: var(--space-l);
}

.page-hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .page-hero__bg-wrap { width: 100%; }

  .page-hero__bg-wrap::after {
    background: linear-gradient(
      to bottom,
      rgba(28, 28, 28, 0.55) 0%,
      var(--color-schwarz) 80%
    );
  }
}

@media (max-width: 480px) {
  .page-hero { min-height: auto; padding: var(--space-xl) 0; }
  .page-hero__ctas { flex-direction: column; align-items: stretch; }
  .page-hero__ctas .btn { justify-content: center; }
}

/* =============================================================
   CATEGORY CARDS
   ============================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}

.cat-card {
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-m);
  overflow: hidden;
  background-color: var(--color-weiss);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.cat-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.cat-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-grau-4);
}

.cat-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-card__image img {
  transform: scale(1.04);
}

.cat-card__body {
  padding: var(--space-m);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cat-card__label {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* --color-rot bei 10px nur 3,87:1 auf hellem Grund, --color-rot-active erreicht 5,7:1 */
  color: var(--color-rot-active);
  margin-bottom: 0.375rem;
}

.cat-card__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-schwarz);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.cat-card__text {
  font-size: 0.9375rem;
  color: var(--color-grau-72);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-m);
}

.cat-card__link {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  /* --color-rot bei 13px nur 3,87:1 auf weißer Karte, --color-rot-active erreicht 5,2:1 */
  color: var(--color-rot-active);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color var(--transition-fast);
  margin-top: auto;
  /* Touch-Ziel war nur ~22px hoch, padding bringt es auf ≥44px ohne die Textgröße zu ändern */
  padding-block: 0.75rem;
  margin-block: -0.75rem;
}

.cat-card__link svg {
  transition: transform var(--transition-fast);
}

.cat-card__link:hover { color: var(--color-rot); }
.cat-card__link:hover svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Waisen-Karte (allein in der letzten Zeile) zentrieren statt links hängen
   lassen. Betrifft sitewide alle 22 Seiten mit .cat-grid, je nach Kartenzahl
   unterschiedlich (z. B. 4 Karten: Waise bei 3-spaltig / Desktop; 5 Karten:
   Waise bei 2-spaltig / Tablet). Selbstheilend über nth-child: greift nur, wenn
   bei der jeweils aktiven Spaltenzahl wirklich genau 1 Karte übrig bleibt.
   Ab 480px (1-spaltig) keine Regel nötig, jede Karte ist ohnehin schon volle
   Breite. max-width per calc() aus Spaltenzahl + Gap, kein Schätzwert. */
@media (min-width: 901px) {
  .cat-grid > .cat-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    max-width: calc((100% - 2 * var(--space-m)) / 3);
    margin-inline: auto;
  }
}

@media (min-width: 481px) and (max-width: 900px) {
  .cat-grid > .cat-card:last-child:nth-child(2n+1) {
    grid-column: 1 / -1;
    max-width: calc((100% - var(--space-m)) / 2);
    margin-inline: auto;
  }
}

/* =============================================================
   BRAND BLOCK (Über Hersteller / Produkt-Info)
   ============================================================= */
.brand-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.brand-block__label {
  margin-bottom: var(--space-s);
}

.brand-block__headline {
  margin-bottom: var(--space-s);
}

.brand-block__text {
  color: var(--color-grau-72);
  line-height: 1.75;
  margin-bottom: var(--space-m);
  max-width: 48ch;
}

.brand-block__facts {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: var(--space-s);
}

/* Kapitel-Stack (Apple-Stil Pin+Rotation): Text wechselt synchron mit dem
   Foto. Kapitel 0 bleibt im normalen Textfluss und bestimmt damit die Höhe
   des Stacks (längster Inhalt), die Fakten-Kapitel 1-3 liegen absolut
   darüber und blenden per GSAP an derselben Stelle ein/aus -- kein Layout-
   Sprung zwischen Kapiteln unterschiedlicher Textlänge. */
.brand-block__copy-stack {
  position: relative;
}

.brand-block__chapter--overlay {
  position: absolute;
  inset: 0;
}

.brand-block__chapter .brand-block__text:last-child {
  margin-bottom: 0;
}

.brand-block__fact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.brand-block__fact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-rot);
  margin-top: 2px;
}

.brand-block__fact-text {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-grau-80);
  line-height: 1.3;
}

.brand-block__fact-text span {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-grau-57);
  margin-top: 0.125rem;
}

.brand-block__visual {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: var(--color-grau-4);
}

.brand-block__visual img,
.brand-block__visual canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  display: block;
}

/* KI-Kennzeichnung (EU AI Act Art. 50/Art. 3(60)): dezentes Badge auf
   Bildern, die komplett oder teilweise KI-generiert/-manipuliert sind.
   Default unten rechts; --top für Karten, deren Textinhalt unten auf dem
   Bild liegt (z.B. .featured-brand). .ai-media-wrap ist ein schmaler
   Hilfscontainer für Bilder ohne eigenen positionierten Elternrahmen. */
.ai-label {
  position: absolute;
  bottom: 0.4rem;
  right: 0.5rem;
  z-index: 2;
  color: var(--color-weiss);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  /* kein Kasten/Hintergrund -- mix-blend-mode kehrt die Textfarbe pixelweise
     gegen den jeweiligen Bildinhalt um (hell wird dunkel, dunkel wird hell),
     dadurch bleibt der Kontrast unabhängig von der Bild-/Hintergrundfarbe
     erhalten, ohne Schimmer- oder Box-Effekt */
  mix-blend-mode: difference;
}

.ai-label--top {
  bottom: auto;
  top: 0.4rem;
}

.ai-media-wrap {
  position: relative;
  display: block;
}

/* Vollflächige Variante ohne Karten-Box (z.B. Apple-Stil Pin+Rotation):
   kein Grau-Hintergrund, kein Padding, kein Rahmen -- Canvas sitzt direkt
   auf dem Seitenhintergrund und bestimmt sein eigenes Seitenverhältnis */
.brand-block__visual--full {
  background-color: transparent;
  border-radius: 0;
  overflow: visible;
  aspect-ratio: auto;
  perspective: 1200px;
}

.brand-block__visual--full img,
.brand-block__visual--full canvas {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  padding: 0;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Bild-Galerie-Variante: mehrere ECHTE, unveraenderte Fotos loesen sich per
   Cross-Fade ab (kein Zoom/Pan-Scrubbing mehr -- wirkte ruckelig/unrund, siehe
   _kontext/fehlerlog.md 2026-08-03). Jedes Bild bleibt stehen, nur Opacity
   wechselt an den Fakten-Trigger-Punkten */
.brand-block__visual--gallery {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  border-radius: 0;
  /* width auf Basis von max-height berechnen, statt width:100% + max-height
     getrennt zu setzen -- sonst quetscht max-height die Box bei kurzen
     Viewports auf ein falsches Seitenverhaeltnis (z.B. 1:1 statt 3:4), weil
     die Breite unveraendert bei 100% bleibt. min() haelt 3:4 in jedem Fall. */
  width: min(100%, calc(78vh * 3 / 4));
  max-width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
}

.brand-block__visual--gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Mehr Praesenz fuer die Pin-Kapitel-Galerie: Produkt bekommt mehr Raum als
   die Standard-50/50-Aufteilung von .brand-block. Generische Klasse, gilt
   fuer jede Seite mit diesem Pattern (siehe PREMIUM-MOTION-PATTERNS.md). */
.brand-block--gallery {
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .brand-block { grid-template-columns: 1fr; }
  .brand-block__visual { order: -1; }
  .brand-block__text { max-width: none; }
}

/* =============================================================
   SERIES CARDS (Produktserien-Vergleich)
   ============================================================= */
.series-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

.series-card {
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-m);
  padding: var(--space-l);
  background-color: var(--color-weiss);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  transition: box-shadow var(--transition-base);
}

.series-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.series-card--highlight {
  border-color: var(--color-rot);
  border-width: 2px;
}

.series-card__badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grau-57);
  background-color: var(--color-grau-4);
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  align-self: flex-start;
}

.series-card__badge--accent {
  /* --color-rot bei 10px nur 3,87:1 auf dem fast-weißen Badge-Hintergrund, --color-rot-active erreicht 5,7:1 */
  color: var(--color-rot-active);
  background-color: rgba(238, 62, 73, 0.08);
}

.series-card__title {
  font-family: var(--font-cta);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-schwarz);
  line-height: 1;
  margin: 0;
}

.series-card__text {
  font-size: 0.9375rem;
  color: var(--color-grau-72);
  line-height: 1.7;
}

.series-card__specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.series-card__specs li {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-grau-72);
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.series-card__specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  background-color: var(--color-rot);
  border-radius: 50%;
  flex-shrink: 0;
}

.series-card--wide {
  grid-column: 1 / -1;
}

.series-card--wide .series-card__text {
  max-width: 70ch;
}

.series-card--wide .series-card__specs {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

/* Bleibt bei ungerader Kartenzahl genau 1 Karte allein in der letzten Zeile
   uebrig, wird sie zentriert statt links haengend angezeigt -- gleiches
   Selbstheilungs-Muster wie .cat-grid/.brand-logo-grid (siehe CLAUDE.md). */
.series-grid > .series-card:last-child:nth-child(2n+1) {
  grid-column: 1 / -1;
  max-width: calc((100% - var(--space-m)) / 2);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .series-grid { grid-template-columns: 1fr; }
  .series-grid > .series-card:last-child:nth-child(2n+1) {
    max-width: none;
  }
}

/* =============================================================
   APPLICATIONS TABLE (Anwendungstabelle)
   ============================================================= */
.applications-table {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .applications-table::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to right, transparent, var(--color-weiss));
    pointer-events: none;
  }
}

.applications-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-heading);
  font-size: 0.875rem;
}

.applications-table thead {
  background-color: var(--color-schwarz);
}

.applications-table thead th {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.875rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

.applications-table tbody tr {
  border-bottom: 1px solid #E8E8E8;
  transition: background-color var(--transition-fast);
}

.applications-table tbody tr:last-child {
  border-bottom: none;
}

.applications-table tbody tr:hover {
  background-color: rgba(238, 62, 73, 0.04);
}

.applications-table tbody td {
  padding: 0.875rem 1.25rem;
  color: var(--color-grau-72);
  line-height: 1.5;
  vertical-align: middle;
}

.applications-table tbody td:first-child {
  font-weight: 600;
  color: var(--color-grau-80);
}

.applications-table tbody td:last-child {
  font-family: var(--font-cta);
  font-size: 0.875rem;
  /* --color-rot auf hellem Grund nur 3,87:1, --color-rot-active erreicht 5,2:1 */
  color: var(--color-rot-active);
  white-space: nowrap;
}

.applications-table__note {
  margin-top: var(--space-m);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: var(--color-grau-57);
  line-height: 1.6;
}

.applications-table__note a {
  /* --color-rot auf hellem Grund nur 3,87:1, --color-rot-active erreicht 5,2:1 */
  color: var(--color-rot-active);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.applications-table__note a:hover {
  color: var(--color-rot-active);
}

.applications-table .td-mono {
  font-family: 'SF Mono', ui-monospace, 'Roboto Mono', monospace;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
}

/* =============================================================
   SPEC STRIP (Kennzahlen-Leiste, z.B. Baugroessen -- Alternative
   zur Tabelle wenn nur EIN Wert pro Zeile wirklich variiert und
   der Rest sich wiederholt). .spec-block buendelt Leiste + Detail-
   Panel zu einer Einheit: Klick auf einen Chip zeigt die Halter-
   Details dieser Baugroesse direkt darunter -- ersetzt die vormals
   separate Halter-Tabelle komplett (siehe Dean-Feedback 2026-08-03).
   ============================================================= */
.spec-block {
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-m);
  overflow: hidden;
}

/* Wenn ein .spec-block als reine Baugroessen-Auswahl vor einer weiteren
   Komponente steht (z.B. vor .tabs bei den Schnittdaten), statt ein
   .spec-detail-Panel direkt zu enthalten. */
.spec-block--stacked {
  margin-bottom: var(--space-m);
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background-color: #E8E8E8;
}

.spec-strip--4col {
  grid-template-columns: repeat(4, 1fr);
}

.spec-chip {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  border: none;
  font-family: inherit;
  background-color: var(--color-weiss);
  padding: var(--space-m) 0.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.spec-chip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: var(--color-rot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.spec-chip:hover {
  background-color: var(--color-grau-4);
}

.spec-chip:hover::after {
  transform: scaleX(1);
}

.spec-chip[aria-selected="true"] {
  background-color: var(--color-grau-4);
}

.spec-chip[aria-selected="true"]::after {
  transform: scaleX(1);
}

.spec-chip__size {
  display: block;
  font-family: var(--font-cta);
  font-size: 1.5rem;
  color: var(--color-schwarz);
}

.spec-chip__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-grau-57);
}

.spec-chip__chevron {
  width: 13px;
  height: 13px;
  color: var(--color-grau-57);
  transition: transform var(--transition-base), color var(--transition-fast);
}

.spec-chip[aria-selected="true"] .spec-chip__chevron {
  transform: rotate(180deg);
  color: var(--color-rot-active);
}

.spec-detail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-m);
  padding: var(--space-m);
  border-top: 1px solid #E8E8E8;
  background-color: var(--color-weiss);
}

.spec-detail__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-grau-57);
  margin-bottom: 0.3rem;
}

.spec-detail__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-schwarz);
}

.spec-detail__value--mono {
  font-family: 'SF Mono', ui-monospace, 'Roboto Mono', monospace;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.spec-detail__value--accent {
  font-family: var(--font-cta);
  font-size: 1.0625rem;
  color: var(--color-rot-active);
}

.spec-note {
  margin-top: var(--space-m);
  padding: 0.85rem 1.1rem;
  background-color: rgba(238, 62, 73, 0.05);
  border-left: 3px solid var(--color-rot);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-grau-72);
  line-height: 1.6;
}

.spec-note strong {
  color: var(--color-schwarz);
  font-weight: 700;
}

@media (max-width: 720px) {
  .spec-strip { grid-template-columns: repeat(3, 1fr); }
  .spec-detail { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   USE-CASE CARDS (Entscheidungshilfe, z.B. Einsatzbereiche --
   Alternative zur Tabelle wenn die Zeilen eigentlich eine
   "wenn X, dann Winkel Y"-Empfehlung sind, keine reine Lookup-Liste)
   ============================================================= */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: #E8E8E8;
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.use-grid--secondary {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1px;
}

.use-card {
  background-color: var(--color-weiss);
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.use-card__badge {
  font-family: var(--font-cta);
  font-size: 1.6rem;
  color: var(--color-rot-active);
  line-height: 1;
}

.use-card__badge--soft {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: italic;
  color: var(--color-grau-57);
}

.use-card h3 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-schwarz);
  margin: 0;
  line-height: 1.35;
}

.use-card p {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: var(--color-grau-57);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .use-grid,
  .use-grid--secondary {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   ACCORDION (Schnittdaten / aufklappbare Abschnitte)
   ============================================================= */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.accordion__item {
  border-top: 1px solid #E8E8E8;
}

.accordion__item:first-child {
  border-top: none;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: 1.125rem var(--space-m);
  background-color: var(--color-weiss);
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
  border-left: 3px solid transparent;
}

.accordion__trigger:hover {
  background-color: var(--color-grau-4);
}

.accordion__item--open .accordion__trigger {
  border-left-color: var(--color-rot);
  background-color: var(--color-grau-4);
}

.accordion__trigger-label {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-schwarz);
  line-height: 1.3;
}

.accordion__trigger-meta {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-grau-57);
  margin-top: 0.125rem;
}

.accordion__trigger-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-grau-57);
  transition: transform var(--transition-base), color var(--transition-fast);
}

.accordion__item--open .accordion__trigger-icon {
  transform: rotate(180deg);
  color: var(--color-rot);
}

.accordion__content {
  position: relative;
  display: none;
  border-top: 1px solid #E8E8E8;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .accordion__item--open .accordion__content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to right, transparent, var(--color-weiss));
    pointer-events: none;
  }
}

.accordion__item--open .accordion__content {
  display: block;
}

.accordion__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
}

.accordion__table thead {
  background-color: rgba(28, 28, 28, 0.04);
}

.accordion__table thead th {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grau-57);
  padding: 0.625rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.accordion__table tbody tr {
  border-top: 1px solid #F0F0F0;
  transition: background-color var(--transition-fast);
}

.accordion__table tbody tr:hover {
  background-color: rgba(238, 62, 73, 0.03);
}

.accordion__table tbody td {
  padding: 0.625rem 1rem;
  color: var(--color-grau-72);
  vertical-align: middle;
  white-space: nowrap;
}

.accordion__table tbody td:first-child {
  font-weight: 600;
  color: var(--color-grau-80);
  white-space: normal;
  min-width: 180px;
}

.accordion__table .td--vc {
  color: var(--color-schwarz);
  font-weight: 600;
}

.accordion__table .td--sorte {
  font-family: var(--font-cta);
  font-size: 0.75rem;
  /* --color-rot auf hellem Grund nur 3,87:1, --color-rot-active erreicht 5,2:1 */
  color: var(--color-rot-active);
}

.accordion__note {
  padding: 0.75rem 1rem;
  background-color: rgba(238, 62, 73, 0.04);
  border-top: 1px solid rgba(238, 62, 73, 0.12);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-grau-57);
  line-height: 1.5;
}

/* =============================================================
   TABS (Segmented Switcher fuer alternative Datensaetze, z.B.
   Schnittdaten-Anwendungen -- Alternative zum Accordion wenn die
   Inhalte sich gegenseitig ausschliessen statt sich zu ergaenzen)
   ============================================================= */
.tabs__list {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background-color: var(--color-grau-4);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-m);
  max-width: 100%;
  overflow-x: auto;
}

.tabs__trigger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  min-width: 168px;
  padding: 0.625rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-m) - 2px);
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast), box-shadow var(--transition-base);
}

.tabs__trigger:hover:not(.tabs__trigger--active) {
  background-color: rgba(28, 28, 28, 0.04);
}

.tabs__trigger--active {
  background-color: var(--color-weiss);
  box-shadow: var(--shadow-card);
}

.tabs__trigger-label {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-grau-72);
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.tabs__trigger--active .tabs__trigger-label {
  color: var(--color-schwarz);
}

.tabs__trigger-meta {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-grau-57);
}

.tabs__panels {
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-m);
  overflow: hidden;
  background-color: var(--color-weiss);
}

.tabs__panel {
  position: relative;
  display: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabs__panel--active {
  display: block;
}

@media (max-width: 768px) {
  .tabs__panel--active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to right, transparent, var(--color-weiss));
    pointer-events: none;
  }

  .tabs__trigger { min-width: 150px; }
}


/* =============================================================
   COOKIE BANNER
   ============================================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--color-schwarz);
  border-top: 2px solid var(--color-rot);
  padding: 1rem 0;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner--hidden {
  transform: translateY(100%);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  margin: 0;
}

.cookie-banner__text a {
  /* --color-rot auf Schwarz nur 4,40:1, --color-rot-hover erreicht 6,57:1 */
  color: var(--color-rot-hover);
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: var(--color-weiss);
}

.cookie-banner__btn {
  flex-shrink: 0;
  /* weiß auf --color-rot nur 3,87:1, --color-rot-active erreicht 5,2:1;
     Padding erhöht damit Touch-Ziel auf ≥44px Höhe kommt */
  background: var(--color-rot-active);
  color: var(--color-weiss);
  border: none;
  border-radius: var(--radius-s);
  padding: 0.9rem 1.4rem;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.cookie-banner__btn:hover {
  background: var(--color-rot);
}

.cookie-banner__btn:active {
  transform: scale(0.97);
}


/* =============================================================
   UTILITIES – ersetzen einmalige Inline-Styles (Audit 2026-07-16)
   ============================================================= */
.u-mt-m { margin-top: var(--space-m); }
.u-mt-l { margin-top: var(--space-l); }
.u-mb-l { margin-bottom: var(--space-l); }

.u-object-top { object-position: center top; }
.u-object-40  { object-position: center 40%; }

/* Wird in produkte.css/marken.css auf dunklem Grund verwendet: --color-rot dort nur 4,40:1,
   --color-rot-hover erreicht 6,57:1. Falls diese Klasse künftig auch auf hellem Grund
   eingesetzt wird, braucht es eine eigene Kontext-Regel statt dieser globalen Farbe. */
.text-label--accent { color: var(--color-rot-hover); }

.section-header-title--on-dark { color: var(--color-weiss); }

.section-lede {
  max-width: 56ch;
  margin-top: 0.625rem;
}

.section-lede--on-dark {
  color: rgba(255, 255, 255, 0.55);
  max-width: 56ch;
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.contact-link--plain {
  color: inherit;
  text-decoration: none;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.partner-brand-card__desc--tight { margin-bottom: 0.5rem; }
.partner-brand-card__desc--gap { margin-bottom: 0.75rem; }

/* =============================================================
   KONTAKTFORMULAR – Erfolgs-/Fehlerzustand (injiziert via main.js)
   ============================================================= */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-success__icon {
  margin: 0 auto 1.5rem;
  display: block;
  stroke: var(--color-rot);
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-schwarz);
  margin-bottom: 0.75rem;
}

.form-success__text {
  font-family: var(--font-body);
  color: var(--color-grau-72);
  max-width: 40ch;
  margin: 0 auto;
}

.form-success__text a {
  /* --color-rot auf hellem Grund nur 3,87:1, --color-rot-active erreicht 5,2:1 */
  color: var(--color-rot-active);
}

.form-error {
  color: var(--color-rot-active);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  margin-top: 1rem;
}
