/* ==========================================================================
   Seite: Startseite (Default.aspx)
   Inhalt von oben nach unten:
   1. Titelbild (Hero) mit Slogan und Plaketten (MECHANIK 3000, Made in Switzerland, Swissdec)
   2. «In 3 Schritten zum laufenden Betrieb»: Zeitstrahl, je Schritt ein Link
      (Beratung, Schulung, Remote-Support)
   3. «Warum MECHANIK 3000»: Karten-Slider
   4. «Kostenloses Erstgespräch» (Band, Aussehen in Global.css)
   5. «Produkte im Überblick»: Produkt-Slider
   6. «Kunden, die uns vertrauen»: Zähler und Mini-Karte
   Die Abschnitte unten in dieser Datei stehen in der Reihenfolge, wie sie im CSS gebraucht werden.
   ========================================================================== */

/* Dark Mode: nur die abweichenden Farben dieser Seite (Rest siehe Global.css) */
html[data-theme="dark"] .home-index-page {
  --dark-lead: var(--color-light-white);
  --dark-band-bg: linear-gradient(180deg, #0e192b 0%, #0a1323 100%);
  --dark-band-border: var(--color-dark-blue);
  --dark-band-shadow: none;
  --dark-active-border: var(--color-light-blue);
  --dark-active-shadow: 0 14px 30px rgba(8, 16, 28, 0.4);
  --dark-why-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  --dark-number-bg: #2d4f75;
  --dark-icon-stroke: #f2f8ff;
  --dark-icon-text: var(--color-white);
  --dark-link-more-border: rgba(156, 199, 240, 0.45);
  --dark-eyebrow: #8fc1f2;
  --dark-process-bg: linear-gradient(135deg, #13233a 0%, #0f1c2f 100%);
  --dark-process-border: #22385a;
  --dark-process-ring: #12213a;
}

/* ==========================================================================
   Gemeinsam: Abschnitts-Überschrift (Titel + Text)
   und der Rahmen für die Boxen "Produkte" und "Kunden"
   ========================================================================== */
.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
}

/* Kurzer Text unter einer Abschnitts-Überschrift */
.section-head > p {
  margin: 0;
  max-width: 640px;
  font-size: 1.02rem;
}

/* Zentrierte Überschrift (z. B. «Warum MECHANIK 3000») */
.section-head-center {
  text-align: center;
}

.section-head-center > p {
  margin-left: auto;
  margin-right: auto;
}

/* Hintergrund und Rahmen der Boxen «Produkte im Überblick» und «Kunden, die uns vertrauen» */
.home-index-page :is(.products, .trust.card) {
  background: var(--dark-band-bg, linear-gradient(180deg, var(--color-white) 0%, #f8fbff 100%));
  border-color: var(--dark-band-border, #dce7f3);
  box-shadow: var(--dark-band-shadow, 0 12px 30px rgba(18, 52, 90, 0.06));
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: block;
  width: 100%;
  margin-bottom: 0.85rem;
}

/* Titelbild-Box: dunkles Bild mit ERP-Kreis rechts, Text links */
.hero-copy {
  position: relative;
  overflow: visible;
  display: block;
  width: 100%;
  /* Hintergrundbild rechts (ERP-Kreis), links nahtlos in die dunkle Bildfarbe;
     der Verlauf darüber hält den weissen Text lesbar */
  background:
    linear-gradient(90deg, rgba(1, 11, 23, 0.94) 0%, rgba(3, 22, 48, 0.82) 38%, rgba(3, 22, 48, 0.35) 68%, rgba(3, 22, 48, 0) 100%),
    url("/Dateien/Bilder/hero-erp.jpg") right -130px center / auto 175% no-repeat,
    #010b17;
  color: #fff;
  border-radius: var(--radius-container);
  padding: 1.2rem 2rem 2rem;
  box-sizing: border-box;
}

.hero-copy h1,
.hero-copy .lead {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* Text links, rechts bleibt Platz für den ERP-Kreis im Bild */
.hero-copy h1 {
  max-width: 640px;
}

.hero-copy .lead {
  max-width: 520px;
}

/* Zeile mit den Plaketten über dem Slogan */
.hero-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
  position: relative;
}

/* Plaketten «MECHANIK 3000» und «Made in Switzerland»: gemeinsame Form */
.eyebrow,
.made-swiss {
  position: relative;
  border: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-heading, var(--color-white));
}

/* Plakette «MECHANIK 3000» */
.eyebrow {
  z-index: 2;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  background: #2a6fb3;
}

/* Plakette «Made in Switzerland» */
.made-swiss {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem 0.45rem calc(2rem + 108px);
  background: rgba(255, 255, 255, 0.16);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  margin-left: -132px;
}

/* Swissdec-Abzeichen: gut lesbare Plakette über dem Bild */
.hero-cert {
  position: absolute;
  top: 50%;
  right: 0.2rem;
  transform: translateY(-50%);
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem 0.4rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-white);
  background: rgba(3, 18, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  max-width: none;
  white-space: nowrap;
}

/* Grüner Kreis mit Häkchen im Swissdec-Abzeichen */
.hero-cert-icon {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);

  background: #16a34a;
}

/* Slogan «Ein System für den ganzen Betrieb: …» */
.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

/* Text unter dem Slogan */
.lead {
  color: var(--dark-lead, #f2f8ff);
  margin-top: 0.9rem;
}

/* ==========================================================================
   Produkte im Überblick
   ========================================================================== */
/* Box «Produkte im Überblick» */
.products {
  /* seitlich gleich viel Innenabstand wie Hero, "In 3 Schritten" und Erstgespräch */
  --box-pad-x: 2rem;
  padding: 1.6rem var(--box-pad-x) 1.1rem;
  margin-top: 2.8rem;
  border-radius: var(--radius-container);
  border: 1px solid;
}

/* Kopfzeile der Box: Titel links, Knopf «Alle Produkte» rechts */
.products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.7rem;
  padding: 0;
}

.products-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

/* "Alle Produkte" / "Weitere Kunden": Text-Button, beim Hover blau gefüllt */
.link-more {
  font-weight: 700;
}

.button.button-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--dark-link, #0f4c81);
  border: 1px solid var(--dark-link-more-border, #b9cfe6);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  white-space: nowrap;
  transition: color var(--button-hover), border-color var(--button-hover);
}

.button.button-link-more::after {
  content: "\2192";
  line-height: 1;
}

.button.button-link-more::before {
  background: #2a6fb3;
}

.button.button-link-more:hover,
.button.button-link-more:focus-visible {
  color: var(--color-white);
  border-color: #2a6fb3;
}

/* Produkt-Slider: Rahmen (Bezugspunkt für die Pfeile) */
.products-carousel-shell {
  position: relative;
}

.slider-wrap {
  padding-top: 0.75rem;
  padding-bottom: 0.45rem;
}

/* Beide Slider (Produkte, «Warum MECHANIK 3000»): waagrecht wischbar, ohne Scrollbalken */
.slider,
.why-slider {
  display: flex;
  overflow-x: auto;
  padding: 0.5rem 0.9rem 0.7rem 0.85rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Waagrechte Reihe der Produktkarten */
.slider {
  flex-wrap: nowrap;
  gap: 0.9rem;
  scroll-padding-inline: 0.85rem;
}

.slider::-webkit-scrollbar,
.why-slider::-webkit-scrollbar {
  display: none;
}

/* Eine Produktkarte (z. B. Administration) */
.slide {
  flex: 0 0 min(280px, 78vw);
  padding: 1rem;
  transition:
    transform 180ms ease,
    background-color var(--button-hover),
    border-color var(--button-hover),
    box-shadow var(--button-hover);
  box-shadow: none;
  transform-origin: center center;
  border: 1px solid #dbe7f4;
}

.slide:hover,
.slide:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: none;
}

/* Vorderste Produktkarte hervorgehoben */
.slider .slide.is-active {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--dark-active-border, #2a6fb3);
  /* zweite Rahmenlinie als Kontur nach innen: ändert die Breite nicht, Text bricht nicht neu um */
  outline: 1px solid var(--dark-active-border, #2a6fb3);
  outline-offset: -2px;
  box-shadow: var(--dark-active-shadow, none);
}

/* Titel und Text der Produktkarte */
.slide h3 {
  margin: 0.6rem 0 0.45rem 0;
}

.slide p {
  margin: 0;
}

/* ==========================================================================
   In 3 Schritten: Zeitstrahl auf getöntem Band
   ========================================================================== */
.process {
  margin-top: 2.6rem;
  padding: 2.2rem 2rem 2.4rem;
  border-radius: var(--radius-container);
  background: var(--dark-process-bg, linear-gradient(135deg, #e7f0fa 0%, #f3f8fd 100%));
  border: 1px solid var(--dark-process-border, #d6e4f2);
}

/* Die drei Schritte nebeneinander */
.timeline {
  position: relative;
  margin: 1.8rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

/* Verbindungslinie zwischen den Nummern */
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2a6fb3 0%, #62a3db 100%);
}

/* Ein Schritt (Analyse / Einführung / Betreuung) */
.timeline-step {
  position: relative;
  text-align: center;
}

/* Runde Nummer 1 / 2 / 3 */
.timeline-number {
  --step-size: 54px;
  position: relative;
  z-index: 1;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
  box-shadow: 0 0 0 7px var(--dark-process-ring, #eef4fb), 0 10px 22px rgba(30, 95, 160, 0.3);
}

/* Titel und Text des Schritts */
.timeline-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.timeline-step p {
  margin: 0 auto;
  max-width: 300px;
  line-height: 1.5;
}

/* Link unter dem Schritt («Beratung anfragen →» usw., Aussehen: .link-arrow in Global.css) */
.timeline-link {
  display: inline-block;
  margin-top: 0.7rem;
}

/* Kostenloses Erstgespräch: Leiste siehe .cta-band in Global.css (auch auf Mechanik 3000) */
.cta-band {
  margin-top: 2.8rem;
}

/* ==========================================================================
   Warum MECHANIK 3000 (Slider mit Regenbogen-Karten)
   ========================================================================== */
.why {
  margin-top: 2.8rem;
}

/* Slider-Rahmen (Bezugspunkt für die Pfeile) */
.why-carousel-shell {
  position: relative;
  /* sichtbare Karten: 3 ganze + ein Stück der vierten (zeigt, dass es weitergeht); Tablet/Handy siehe unten */
  --why-visible: 3.4;
}

/* Waagrechte Reihe der Karten (wischbar, ohne Scrollbalken) */
.why-slider-wrap {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  margin-top: 0;
  padding-top: 0.75rem;
  padding-bottom: 0.45rem;
}

.why-slider {
  gap: 1rem;
  scroll-behavior: smooth;
}

/* Pfeil-Buttons (auch für den Produkt-Slider), mittig auf dem Rand der Box */
.why-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(18, 52, 90, 0.22);
  color: #2f5f8d;
  font-size: 1.28rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  transition: background-color var(--button-hover), color var(--button-hover);
}

/* Pfeil am Anfang bzw. Ende ausgegraut */
.why-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.why-nav:hover:not(:disabled),
.why-nav:focus-visible:not(:disabled) {
  background: #2a6fb3;
  color: var(--color-white);
  outline: none;
}

/* Position der Pfeile: Produkt-Slider bzw. «Warum»-Slider */
.products-carousel-shell .why-nav-prev {
  left: calc(-1 * var(--box-pad-x) - 0.35rem - 22px);
}

.products-carousel-shell .why-nav-next {
  right: calc(-1 * var(--box-pad-x) - 0.25rem - 22px);
}

.why-carousel-shell .why-nav-prev {
  left: 4px;
}

.why-carousel-shell .why-nav-next {
  right: 4px;
}

@media (min-width: 1200px) {
  .why-carousel-shell .why-nav-prev {
    left: -22px;
  }

  .why-carousel-shell .why-nav-next {
    right: -22px;
  }
}

/* Bis 1200px ist der Seitenrand neben der Box schmaler als ein halber Pfeil:
   Pfeile der Produkte etwas nach innen, sonst ragen sie über das Fenster hinaus */
@media (min-width: 900px) and (max-width: 1199px) {
  .products-carousel-shell .why-nav-prev {
    left: calc(-1 * var(--box-pad-x) - 0.35rem - 10px);
  }

  .products-carousel-shell .why-nav-next {
    right: calc(-1 * var(--box-pad-x) - 0.25rem - 10px);
  }
}

/* Kartenbreite aus --why-visible; die Pfeile blättern um eine Karte */
.why-card {
  border-radius: var(--radius-container);
  padding: 1.25rem 1.2rem;
  border: 1px solid;
  transition:
    transform 180ms ease,
    box-shadow var(--button-hover),
    border-color var(--button-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 205px;
  flex: 0 0 calc((100% - (var(--why-visible) - 1) * 1rem) / var(--why-visible));
}

/* Schatten der Karten */
.home-index-page .why-grid .why-card {
  box-shadow: var(--dark-why-shadow, none);
}

/* Icon-Kästchen oben in der Karte */
.why-card-icon {
  --icon-size: 44px;
  margin-bottom: 0.8rem;
}

/* Titel und Text der Karte */
.why-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.why-card p {
  margin: 0.5rem 0 0;
  font-size: 0.97rem;
  line-height: 1.45;
}

/* Ruhige Karten: neutraler Hintergrund, Farbe nur im Icon-Kästchen.
   Jede Karte setzt dafür nur ihren Farbton (RGB) und die Icon-Farbe. */
.why-grid .why-card:nth-child(1)  { --why-rgb: 255, 93, 93;   --why-icon: #b11f1f; }
.why-grid .why-card:nth-child(2)  { --why-rgb: 255, 159, 67;  --why-icon: #9a4a00; }
.why-grid .why-card:nth-child(3)  { --why-rgb: 254, 202, 87;  --why-icon: #8a6a00; }
.why-grid .why-card:nth-child(4)  { --why-rgb: 29, 209, 161;  --why-icon: #0b7a5c; }
.why-grid .why-card:nth-child(5)  { --why-rgb: 64, 224, 208;  --why-icon: #0b6b67; }
.why-grid .why-card:nth-child(6)  { --why-rgb: 52, 152, 255;  --why-icon: #0c4a9f; }
.why-grid .why-card:nth-child(7)  { --why-rgb: 90, 60, 255;   --why-icon: #3e2ab8; }
.why-grid .why-card:nth-child(8)  { --why-rgb: 186, 85, 211;  --why-icon: #7a2a8f; }
.why-grid .why-card:nth-child(9)  { --why-rgb: 255, 99, 172;  --why-icon: #a0145f; }
.why-grid .why-card:nth-child(10) { --why-rgb: 255, 160, 122; --why-icon: #9a3c0f; }

.home-index-page .why-grid .why-card {
  border-color: var(--card-border);
  background: var(--card-bg);
}

.home-index-page .why-grid .why-card-icon {
  background: rgba(var(--why-rgb), 0.16);
  color: var(--dark-icon-text, var(--why-icon));
}

/* Fokus wie bei "Produkte im Überblick": vorderste Karte angehoben, Rahmen blau
   (Kontur nach innen: ändert die Breite nicht, Text bricht nicht neu um) */
.why-grid .why-card.is-active {
  transform: translateY(-2px) scale(1.04);
  border-color: #2a6fb3;
  outline: 1px solid #2a6fb3;
  outline-offset: -2px;
}

html[data-theme="dark"] .home-index-page .why-grid .why-card.is-active {
  border-color: #7db8f0;
  outline-color: #7db8f0;
}

/* ==========================================================================
   Kunden, die uns vertrauen: links Zähler + Fakten, rechts Mini-Karte mit
   anonymen Punkten (bewusst ohne Namen/Logos). Zähler und Punkte laufen per
   JS beim Hinscrollen hoch; ohne JS oder bei "Bewegung reduzieren" steht alles still da.
   ========================================================================== */
.trust.card {
  --trust-land: #e6eef7;
  --trust-land-border: #b9cde3;
  --trust-dot: #2a6fb3;
  --trust-dot-ring: var(--color-white);
  --trust-glow: rgba(42, 111, 179, 0.14);
  margin-top: 2.8rem;
  padding: 1.6rem 2rem 1.8rem; /* oben/seitlich gleich wie "Produkte im Überblick" */
  border: 1px solid;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.7rem 2.4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .trust.card {
  --trust-land: #1c2c44;
  --trust-land-border: #34507a;
  --trust-dot: #5aa2e8;
  --trust-dot-ring: #0e1728;
  --trust-glow: rgba(90, 162, 232, 0.16);
}

/* sanfter Lichtschein hinter der Karte */
.trust.card::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, var(--trust-glow), transparent);
  pointer-events: none;
}

/* Text links und Mini-Karte rechts liegen über dem Lichtschein */
.trust-intro,
.trust-map {
  position: relative;
}

/* Kopfzeile wie bei "Produkte im Überblick": Titel links, Button rechts, über beide Spalten */
.trust.card .trust-head {
  grid-column: 1 / -1;
  position: relative;
  margin-bottom: 0;
  padding: 0;
}

/* Zähler «103 Betriebe …» */
.trust-stat {
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.45rem;
}

/* Die grosse Zahl, die beim Hinscrollen hochzählt */
.trust-number {
  font-size: clamp(3.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--dark-eyebrow, #2a6fb3);
}

/* Satz unter der Zahl */
.trust-stat span {
  max-width: 34ch;
  font-size: 1.05rem;
  color: var(--dark-copy, #4b647f);
}

/* Fakten mit Icons («Betriebe aus der Metallverarbeitung», «Über 30 Jahre Erfahrung») */
.trust-facts {
  display: grid;
  gap: 0.6rem;
}

.trust-facts li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--dark-heading, var(--color-heading));
}

.trust-facts .icon {
  --icon-size: 34px;
}

/* Mini-Karte rechts (Link zur Kundenseite) */
.trust-map {
  display: block;
}

/* Kartengrafik */
.trust-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Umriss Schweiz und Liechtenstein */
.trust-land {
  fill: var(--trust-land);
  stroke: var(--trust-land-border);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* Kundenpunkt (anonym, ohne Namen) */
.trust-dot {
  fill: var(--trust-dot);
  stroke: var(--trust-dot-ring);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 300ms ease;
}

/* Vor dem Hochzählen (Klasse setzt das Script): Punkte noch unsichtbar */
.trust.is-waiting .trust-dot:not(.is-on) {
  opacity: 0;
  transform: scale(0);
}

/* ==========================================================================
   Handy / Tablet
   ========================================================================== */
/* Handy/Tablet: Pfeile knapp innerhalb der Box (der Seitenrand ist zu schmal für halb aussen) */
@media (max-width: 899px) {
  .why-carousel-shell {
    --why-visible: 2.3;
  }

  .why-nav {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
    background: #2a6fb3;
    color: var(--color-white);
    box-shadow: 0 6px 14px rgba(15, 76, 129, 0.35);
  }

  .why-nav:hover:not(:disabled),
  .why-nav:focus-visible:not(:disabled) {
    background: #1e5fa0;
  }

  .products-carousel-shell .why-nav-prev {
    left: calc(-1 * var(--box-pad-x) - 0.35rem + 4px);
  }

  .products-carousel-shell .why-nav-next {
    right: calc(-1 * var(--box-pad-x) - 0.25rem + 4px);
  }

}

/* Handy: Karte im Fokus mittig, links und rechts gleich viel Rand (dort sitzen die Pfeile).
   Die Karte ist so breit wie der Slider abzüglich Innenabstand; das Skript richtet sie
   am Innenabstand aus, dadurch steht sie immer genau in der Mitte. */
@media (max-width: 600px) {
  .slider {
    padding-left: 2.6rem;
    padding-right: 2.6rem;
    scroll-padding-inline: 2.6rem;
  }

  .slide {
    flex: 0 0 100%;
  }

  .why-carousel-shell {
    --why-visible: 1;
  }

  .why-slider {
    padding-left: 2.6rem;
    padding-right: 2.6rem;
  }

  .products-carousel-shell .why-nav-prev,
  .why-carousel-shell .why-nav-prev {
    left: 2px;
  }

  .products-carousel-shell .why-nav-next,
  .why-carousel-shell .why-nav-next {
    right: 2px;
  }

  /* Box-Innenabstand etwas kleiner, damit die Karte trotz Rand genug Platz hat */
  .products {
    padding-left: 0;
    padding-right: 0;
  }

  .products-head {
    padding: 0 var(--box-pad-x);
  }
}

/* Tablet / Handy: Karten und Kunden-Box untereinander, Zeitstrahl senkrecht */
@media (max-width: 820px) {
  .products-head {
    flex-wrap: wrap;
  }

  /* seitlich gleich wie "In 3 Schritten" auf dem Handy */
  .products {
    --box-pad-x: 1.3rem;
  }

  .trust.card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.6rem 1.3rem;
  }

  .trust.card::before {
    top: auto;
    bottom: -20%;
    right: -20%;
    width: 110%;
    transform: none;
  }

  /* Zeitstrahl senkrecht: Linie links, Text daneben */
  .process {
    padding: 1.6rem 1.3rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline::before {
    top: 10px;
    bottom: 10px;
    left: 26px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, #2a6fb3 0%, #62a3db 100%);
  }

  .timeline-step {
    text-align: left;
    padding-left: 74px;
    min-height: 54px;
  }

  .timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  .timeline-step p {
    margin: 0;
    max-width: none;
  }

}

/* Schweizerkreuz vor "Made in Switzerland" */
.swiss-cross {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  border-radius: 3px;
}

/* Schmale Bildschirme: Swissdec-Abzeichen in eigener Zeile statt über "Made in Switzerland" */
@media (max-width: 700px) {
  .hero-cert {
    position: static;
    transform: none;
    flex-basis: 100%;
    max-width: max-content;
    margin-top: 0.55rem;
    white-space: normal;
  }
}

/* Handy: Titelbild mit weniger Rand und kleineren Plaketten, damit "MECHANIK 3000" und
   "Made in Switzerland" auf einer Zeile bleiben (sonst rutscht die zweite Plakette heraus) */
@media (max-width: 480px) {
  .hero-copy {
    padding: 1.1rem 1.25rem 1.5rem;
  }

  .eyebrow,
  .made-swiss {
    font-size: 0.74rem;
  }

  .eyebrow {
    padding: 0.4rem 0.75rem;
  }

  .made-swiss {
    padding: 0.4rem 0.75rem 0.4rem calc(2rem + 108px);
  }
}

/* Schmale Bildschirme: Bild bleibt im Hintergrund, gleichmässig abgedunkelt */
@media (max-width: 700px) {
  .hero-copy {
    background:
      linear-gradient(180deg, rgba(1, 11, 23, 0.8) 0%, rgba(3, 22, 48, 0.88) 100%),
      url("/Dateien/Bilder/hero-erp.jpg") 78% center / cover no-repeat,
      #010b17;
  }
}

/* Häkchen im Swissdec-Abzeichen */
.hero-cert-icon .ico {
  width: 0.85em;
  height: 0.85em;
  stroke-width: 3.2;
}

/* ==========================================================================
   Raster wie auf einer technischen Zeichnung (Baustein .raster in Global.css):
   hier nur Linienfarben und wie das Raster zu den Rändern ausläuft
   ========================================================================== */
/* Titelbild: weisse Linien links, laufen vor dem ERP-Kreis aus; Text auf dem Bild weiss */
.hero-copy {
  --color-heading: var(--color-white);
  --color-copy: var(--color-white);
  --raster-major: rgba(255, 255, 255, 0.09);
  --raster-minor: rgba(255, 255, 255, 0.04);
  --raster-mask: linear-gradient(90deg, #000 0%, #000 35%, transparent 70%);
}

/* 3 Schritte: blaue Linien (wirken hell und dunkel gleich), zur Mitte hin am stärksten */
.process {
  --raster-major: rgba(42, 111, 179, 0.13);
  --raster-minor: rgba(42, 111, 179, 0.06);
  --raster-mask: radial-gradient(ellipse at 50% 40%, #000 0%, #000 35%, transparent 80%);
}
