/* ==========================================================================
   TM GmbH — Design System
   Creme-Basis, Markenfarben aus dem Logo: Gruen #7cb73f, Blau #3ba1c9
   ========================================================================== */

/* --------------------------------------------------------------------------
   Farb-Token und Themes

   Zwei Farbschemata, umgeschaltet ueber data-theme am <html>-Element:
   "cream" (Standard) und "dark". Das frueher vorhandene Theme "white" gibt
   es nicht mehr — Creme ist die Basis und steht deshalb direkt auf :root.
   Das Attribut data-theme="cream" wird trotzdem gesetzt (vom Umschalter im
   Header), damit eine ausdrueckliche Wahl erkennbar bleibt; es muss keine
   Werte ueberschreiben.

   Aufbau in zwei Schichten:
   1. Primitive Token (--bg, --bg-alt, --surface, --text, --text-muted,
      --border, --accent-green, --accent-blue ...). Nur diese werden im
      Dark-Theme ueberschrieben.
   2. Die gewachsenen Namen (--ink, --bg-subtle, --green ...) zeigen als
      Aliase darauf. Dadurch zieht ein Theme durch die gesamte Website,
      ohne dass tausende Verwendungsstellen angefasst werden muessen.

   Creme ist bewusst EIN Ton: --bg, --bg-alt und alle --tint-*-Flaechen
   tragen denselben hellen Creme-Wert. Abschnitte heben sich dadurch nicht
   mehr ueber einen dunkleren Beigeton voneinander ab, sondern ueber feine
   Linien; Karten liegen mit --surface eine Spur heller darueber.

   --white bleibt bewusst echtes Weiss: es steht fuer Text auf farbigen
   Flaechen (Buttons, Verlaufsbaender) und darf sich nie mitfaerben.
   Flaechen benutzen --surface.
   -------------------------------------------------------------------------- */
:root {
  /* 1. Primitive Token — Theme "cream" (Standard) */
  --bg:           #F5F0E4;
  --bg-alt:       #F5F0E4;
  --surface:      #FBF6EC;
  --surface-2:    #F5F0E4;
  --surface-raised: #FDFAF3;
  /* Nur fuer Hover-/Fokusflaechen, die sich sonst nicht mehr abheben wuerden. */
  --surface-hover: #EDE5D4;
  --text:         #2B2A26;
  --text-muted:   #6B665C;
  --text-subtle:  #8E887B;
  --border-c:     #E3D8C3;
  --border-strong:#D4C7AE;

  --accent-green:   #6EA937;
  --accent-green-d: #55832A;
  --accent-green-l: #93C963;
  --accent-green-tint: #E6EEDA;
  --accent-blue:    #3095bd;
  --accent-blue-d:  #23748f;
  --accent-blue-l:  #5fb6d8;
  --accent-blue-tint: #DFEDF3;

  /* Frueher vier verschiedene Sektions-Toene. Jetzt alle derselbe Creme-Ton,
     damit keine Seite mehr in hellere und dunklere Baender zerfaellt. */
  --tint-green-bg: #F5F0E4;
  --tint-grey-bg:  #F5F0E4;
  --tint-blue-soft:#F5F0E4;
  --tint-green-soft:#F5F0E4;

  /* Flaeche, auf der farbige Fremdlogos liegen — im Dark-Theme hell. */
  --logo-plate:    #FDFBF7;
  --logo-plate-border: #E6DDCC;
  /* Dunkle Steuerelemente (Modal-Buttons, Marken-Band) */
  --control-ink:   #2B2A26;
  --control-on-ink:#FDFBF7;

  --shadow-color:    rgba(74, 62, 40, 0.07);
  --shadow-color-md: rgba(74, 62, 40, 0.09);
  --shadow-color-lg: rgba(74, 62, 40, 0.13);

  /* 2. Aliase auf die gewachsenen Namen */
  --white:        #ffffff;
  --bg-subtle:    var(--bg-alt);
  --bg-white:     var(--surface);
  --bg-green-light: var(--tint-green-bg);
  --bg-grey-green: var(--tint-grey-bg);
  --bg-tint-blue: var(--tint-blue-soft);
  --bg-tint-green:var(--tint-green-soft);
  --ink:          var(--text);
  --ink-2:        var(--text-muted);
  --ink-3:        var(--text-subtle);
  --border:       var(--border-c);
  --border-2:     var(--border-strong);

  --green:        var(--accent-green);
  --green-d:      var(--accent-green-d);
  --green-l:      var(--accent-green-l);
  --green-tint:   var(--accent-green-tint);
  --green-deep:   #1b3a28;

  --blue:         var(--accent-blue);
  --blue-d:       var(--accent-blue-d);
  --blue-l:       var(--accent-blue-l);
  --blue-tint:    var(--accent-blue-tint);

  --grad: linear-gradient(120deg, var(--green) 0%, var(--blue) 100%);
  --grad-soft: linear-gradient(120deg, var(--green-tint) 0%, var(--blue-tint) 100%);
  --grad-deep: linear-gradient(135deg, #1b3a28 0%, #12324a 100%);

  --shadow-sm: 0 2px 10px var(--shadow-color);
  --shadow-md: 0 10px 30px var(--shadow-color-md);
  --shadow-lg: 0 24px 60px var(--shadow-color-lg);

  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
}

/* Theme "dark" — sehr dunkles Gruen-Anthrazit. Markengruen und -blau sind
   aufgehellt, damit sie auf dunklem Grund die AA-Kontraste halten.
   Schatten werden weicher und dunkler statt heller, Spiegelungen flacher. */
:root[data-theme="dark"] {
  --bg:           #121614;
  --bg-alt:       #1A1F1C;
  --surface:      #202622;
  --surface-2:    #1A1F1C;
  --surface-raised:#262D28;
  --text:         #ECEFEA;
  --text-muted:   #A6AEA6;
  --text-subtle:  #87908A;
  --border-c:     #2E3631;
  --border-strong:#3A443E;

  --accent-green:   #8DBB4E;
  --accent-green-d: #A3CC67;
  --accent-green-l: #B4DA80;
  --accent-green-tint: #263021;
  --accent-blue:    #6FA8C9;
  --accent-blue-d:  #8CBEDB;
  --accent-blue-l:  #A5CFE6;
  --accent-blue-tint: #1E2A30;

  --tint-green-bg: #1C2420;
  --tint-grey-bg:  #181D1A;
  --tint-blue-soft:#182227;
  --tint-green-soft:#1A2219;

  --surface-hover: #262D28;
  --logo-plate:    #F2F4F0;
  --logo-plate-border: #3A443E;
  --control-ink:   #ECEFEA;
  --control-on-ink:#121614;

  --green-deep:   #16241c;

  --shadow-color:    rgba(0, 0, 0, 0.45);
  --shadow-color-md: rgba(0, 0, 0, 0.5);
  --shadow-color-lg: rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1440px; }
.section { padding: 110px 0; }
@media (max-width: 780px) {
  .section { padding: 70px 0; }
}

/* Alternating section backgrounds, shared sitewide — flat adjacent color
   blocks (no border/divider) so the seam between sections reads as a
   clean edge rather than a hard rule. Only applied to otherwise-plain
   sections; anything with its own deliberate treatment (hero, dark
   intro, gradient CTA) is left alone. */
.section--white { background: var(--bg-white); }
.section--alt { background: var(--bg-green-light); }
.section--grey-green { background: var(--bg-grey-green); }

/* about.html / en/about.html: a fixed, deliberate background sequence
   per section (white → light green → white → grey-green → CTA
   gradient) instead of one flat color, so the page reads as distinct
   catalog-style chapters — see the .section--white/--alt/--grey-green
   classes on each about.html section below. This block only widens
   the section padding (for the extra breathing room the sequence
   needs to read cleanly) and gives the standalone .stats-section
   .stats-section--plain its background + padding, since on about.html
   it IS the top-level section rather than being wrapped by one. Cards
   (.about-stat-card, .leistung-card, .route-card, .service-card) stay
   explicitly white so they keep standing out against whichever
   background sits behind them. */
body.about-green-bg .section { padding: 135px 0; }
body.about-green-bg .stats-section.stats-section--plain {
  background: var(--bg-green-light);
  padding: 135px 0;
}
@media (max-width: 780px) {
  body.about-green-bg .section { padding: 80px 0; }
  body.about-green-bg .stats-section.stats-section--plain { padding: 80px 0; }
}

/* Thin divider between about.html chapters: a faint brand-green rule,
   no further decoration, kept to the content container's width (not
   full-bleed) so it reads as a quiet underline between chapters rather
   than a design element in its own right. Placed as its own element
   between sections (in the padding gap created above). */
.section-divider {
  height: 1px;
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(107, 168, 52, 0.3);
}

/* ---------- Scroll progress ----------
   Sitzt als letztes Kind im #navbar und liegt auf dessen Unterkante: das
   bottom:-1px deckt die 1px-Border des Headers ab, damit die Leiste als
   Abschluss des Headers gelesen wird und nicht als Ladebalken darüber. */
#scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 2;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ---------- Reveal animations ----------
   Uses the standalone `translate`/`scale` CSS properties (not `transform`)
   so this reveal-in motion can never fight with a card's own hover-lift
   `transform: translateY(-6px)` — they're independent properties with
   independent transition speeds, composited together automatically. */
[data-reveal], [data-reveal="left"], [data-reveal="right"] {
  opacity: 0;
  translate: 0 38px;
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), translate 1.2s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, translate;
}
[data-reveal="left"] { translate: -46px 0; }
[data-reveal="right"] { translate: 46px 0; }
[data-reveal].in-view, [data-reveal="left"].in-view, [data-reveal="right"].in-view {
  opacity: 1;
  translate: 0 0;
}
[data-delay="1"] { transition-delay: 0.15s; }
[data-delay="2"] { transition-delay: 0.3s; }
[data-delay="3"] { transition-delay: 0.45s; }
[data-delay="4"] { transition-delay: 0.6s; }
[data-delay="5"] { transition-delay: 0.75s; }
[data-delay="6"] { transition-delay: 0.9s; }

/* Card-type blocks get a touch of scale added to the fade+rise/slide — a
   slightly more settled, deliberate "arrival" than plain text blocks
   (headings/copy keep the plain fade+rise above). Each rule re-lists its
   own card's normal hover transitions (transform/box-shadow/etc.) alongside
   the reveal ones so hover keeps its own, snappier speed once revealed. */
.service-card[data-reveal], .service-card[data-reveal="left"], .service-card[data-reveal="right"] {
  scale: 0.94;
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), translate 1.2s cubic-bezier(0.16,1,0.3,1), scale 1.2s cubic-bezier(0.16,1,0.3,1), transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.category-card[data-reveal], .category-card[data-reveal="left"], .category-card[data-reveal="right"] {
  scale: 0.94;
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), translate 1.2s cubic-bezier(0.16,1,0.3,1), scale 1.2s cubic-bezier(0.16,1,0.3,1), transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-card[data-reveal], .blog-card[data-reveal="left"], .blog-card[data-reveal="right"] {
  scale: 0.94;
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), translate 1.2s cubic-bezier(0.16,1,0.3,1), scale 1.2s cubic-bezier(0.16,1,0.3,1), transform 0.3s ease, box-shadow 0.3s ease;
}
.support-item[data-reveal], .support-item[data-reveal="left"], .support-item[data-reveal="right"] {
  scale: 0.94;
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), translate 1.2s cubic-bezier(0.16,1,0.3,1), scale 1.2s cubic-bezier(0.16,1,0.3,1), background 0.3s ease;
}
.brand-card[data-reveal], .brand-card[data-reveal="left"], .brand-card[data-reveal="right"] {
  scale: 0.94;
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), translate 1.2s cubic-bezier(0.16,1,0.3,1), scale 1.2s cubic-bezier(0.16,1,0.3,1), transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card[data-reveal].in-view, .service-card[data-reveal="left"].in-view, .service-card[data-reveal="right"].in-view,
.category-card[data-reveal].in-view, .category-card[data-reveal="left"].in-view, .category-card[data-reveal="right"].in-view,
.blog-card[data-reveal].in-view, .blog-card[data-reveal="left"].in-view, .blog-card[data-reveal="right"].in-view,
.support-item[data-reveal].in-view, .support-item[data-reveal="left"].in-view, .support-item[data-reveal="right"].in-view,
.brand-card[data-reveal].in-view, .brand-card[data-reveal="left"].in-view, .brand-card[data-reveal="right"].in-view {
  scale: 1;
}

/* Hero: always already in view on load, so it gets its own gentle on-load
   entrance instead of a scroll trigger. */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-split .hero-h1       { animation: heroRise 1.15s cubic-bezier(0.16,1,0.3,1) both; }
.hero-split .hero-desc     { animation: heroRise 1.15s cubic-bezier(0.16,1,0.3,1) 0.18s both; }
.hero-split .hero-actions  { animation: heroRise 1.15s cubic-bezier(0.16,1,0.3,1) 0.36s both; }
.hero-split .hero-visual   { animation: heroFade 1.4s ease-out 0.22s both; }

/* Every secondary-page hero (About/Services/Markets/Blog/Contact) gets the
   same quiet on-load entrance — it's above the fold at load, so this plays
   once immediately rather than waiting on a scroll trigger. */
.page-hero .hero-badge { animation: heroRise 1s cubic-bezier(0.16,1,0.3,1) both; }
.page-hero .hero-h1    { animation: heroRise 1.15s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.page-hero .hero-desc  { animation: heroRise 1.15s cubic-bezier(0.16,1,0.3,1) 0.26s both; }
.page-hero .hero-visual { animation: heroFade 1.4s ease-out 0.3s both; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="left"], [data-reveal="right"] { opacity: 1; transform: none; translate: none; transition: none; }
  .hero-split .hero-h1, .hero-split .hero-desc, .hero-split .hero-actions, .hero-split .hero-visual,
  .page-hero .hero-badge, .page-hero .hero-h1, .page-hero .hero-desc, .page-hero .hero-visual { animation: none; opacity: 1; transform: none; }
}

/* ---------- Buttons ----------
   Ein Stil fuer alle Haupt-Buttons: Rahmen und Schrift in der Textfarbe,
   Flaeche leer. Bei Hover, Fokus und Klick faehrt eine Fuellung von unten
   nach oben hoch (::before, scaleY 0 -> 1, transform-origin: bottom) und
   die Schrift kippt gleichzeitig auf die Gegenfarbe. Beim Verlassen faehrt
   dieselbe Fuellung wieder nach unten.

   Gesteuert ueber vier Variablen, damit der Button auf dunklen Baendern
   oder Fotos nur die Variablen gesetzt bekommt statt eigener Regeln:
     --btn-line           Rahmenfarbe
     --btn-text           Schrift im Ruhezustand
     --btn-fill           Farbe der hochfahrenden Flaeche
     --btn-text-on-fill   Schrift, sobald gefuellt ist
   Im Dark-Theme drehen sich die Vorgaben automatisch mit, weil sie auf
   --ink und --bg zeigen. ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: transparent;
  border: 1.5px solid var(--btn-line, var(--ink));
  color: var(--btn-text, var(--ink));
  transition: color 0.35s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill, var(--ink));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn:hover,
.btn:focus-visible,
.btn:active { color: var(--btn-text-on-fill, var(--bg)); }
.btn:hover::before,
.btn:focus-visible::before,
.btn:active::before { transform: scaleY(1); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Die alten Varianten bleiben als Klassen bestehen (das Markup aendert sich
   nicht), sehen aber jetzt gleich aus. btn-primary trug frueher den
   Farbverlauf, btn-outline einen grauen Rahmen. */
.btn-primary,
.btn-outline { /* erben alles aus .btn */ }
.btn-outline-square { border-radius: 0; }
.btn-full { width: 100%; justify-content: center; }
.btn-cta-big { padding: 20px 38px; font-size: 16.5px; }
.btn-cta-big svg { transition: transform 0.25s ease; }
.btn-cta-big:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .btn::before { transition: none; }
}

/* ---------- Nav ---------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
#navbar.scrolled {
  box-shadow: 0 2px 12px rgba(20,30,20,0.05);
}
/* Drei Spalten: Logo links, Navigation optisch mittig, Sprachumschalter
   rechts. Die beiden 1fr-Spalten sind gleich breit, dadurch steht die
   mittlere auto-Spalte unabhängig von der Logo- oder Schalterbreite
   zentriert im Header. */
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
}
/* Sprachumschalter und Burger teilen sich die rechte Spalte. */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
/* ---------- Language switcher: compact dropdown ----------
   Only the current language is visible (plus a small caret); clicking
   opens the single other language underneath. Opening/closing is a
   class toggle in main.js (initLangSwitcher) — click outside and Esc
   close it.

   It is the last element in the header row and therefore flush with the
   right edge of the content: 16px on top of .nav-inner's own 28px flex
   gap -> 44px between the nav links and the switcher. */
.nav-lang { position: relative; }
.nav-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0;
  background: none;
  color: var(--ink);
  border: 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease;
}
/* Flaggen statt Sprachkürzel. 22x16 ist das übliche Format der flag-icons;
   der feine Rand hält die weissen Flächen der Union-Jack-Flagge vom weissen
   Header getrennt.

   Die Flagge kommt als Hintergrundbild, nicht als <img>: So zeigen die
   Pfade immer relativ zu style.css und stimmen dadurch auf jeder Ebene
   (/, /leistungen/, /en/), und der Tausch DE<->EN läuft über html[lang] —
   der EN-Generator muss dafür keine Bildpfade umschreiben. */
.nav-lang-flag {
  display: block;
  width: 22px;
  height: 16px;
  flex: none;
  border-radius: 2px;
  border: 1px solid rgba(20, 30, 20, 0.18);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.nav-lang-flag-current { background-image: url('assets/flags/de.svg'); }
.nav-lang-flag-other   { background-image: url('assets/flags/gb.svg'); }
html[lang="en"] .nav-lang-flag-current { background-image: url('assets/flags/gb.svg'); }
html[lang="en"] .nav-lang-flag-other   { background-image: url('assets/flags/de.svg'); }
.nav-lang-toggle:hover,
.nav-lang.is-open .nav-lang-toggle { color: var(--green-d); }
.nav-lang-caret { flex: none; transition: transform 0.2s ease; }
.nav-lang.is-open .nav-lang-caret { transform: rotate(180deg); }
/* Right-aligned with the switcher, which now sits at the very edge of
   the content — centring it would push the menu past that edge. */
.nav-lang-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  left: auto;
  transform: translateY(-4px);
  min-width: 132px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(20, 30, 20, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 20;
}
.nav-lang.is-open .nav-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-lang-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-lang-menu a:hover,
.nav-lang-menu a:focus-visible { color: var(--green-d); background: var(--surface-hover); outline: none; }
/* Nur für Screenreader: die Sprache im Umschalter bleibt benannt, obwohl
   sichtbar nur die Flagge steht. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-link:last-child { border-bottom: none; }

@media (max-width: 900px) {
  /* Only the link list collapses into the burger — the language
     switcher stays visible and sits directly to its left. Ohne die
     mittlere Spalte reicht Logo links / Schalter+Burger rechts. */
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 90px;
}
.page-hero { padding: 90px 0 70px; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20,30,20,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,30,20,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 90%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}
.orb-1 { width: 420px; height: 420px; background: var(--green-l); top: -140px; left: -100px; animation: floatA 14s ease-in-out infinite; }
.orb-2 { width: 380px; height: 380px; background: var(--blue-l); top: -80px; right: -120px; animation: floatB 16s ease-in-out infinite; }
.orb-3 { width: 300px; height: 300px; background: var(--green-tint); bottom: -160px; left: 40%; animation: floatA 18s ease-in-out infinite reverse; }
@keyframes floatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,25px); } }
@keyframes floatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-25px,30px); } }

.hero-content, .page-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--surface);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  position: relative;
}
.badge-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero-line-muted { color: var(--ink); }
.hero-accent {
  font-style: normal;
  color: var(--ink);
}
/* Homepage hero only: keep the original gradient-text treatment. */
.hero-accent-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-locations {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.loc-tag {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.loc-connector { display: flex; align-items: center; gap: 6px; color: var(--green); }
.loc-line { width: 30px; height: 1.5px; background: var(--border-2); }

/* ---------- Homepage hero split (text left / image space right) ---------- */
.hero-content.hero-content-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  text-align: left;
}
.hero-content-split .hero-text { max-width: 560px; }
.hero-content-split .hero-h1 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 0 0 20px;
}
.hero-content-split .hero-desc {
  font-size: 16px;
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-content-split .hero-actions {
  justify-content: flex-start;
}
.btn-hero-cta {
  padding: 18px 52px;
  font-size: 16px;
  border-width: 2px;
}
.hero-visual {
  min-height: 380px;
  width: 100%;
}
@media (max-width: 900px) {
  .hero-content.hero-content-split { grid-template-columns: 1fr; text-align: left; }
  .hero-content-split .hero-text { max-width: 100%; }
  .hero-content-split .hero-desc { max-width: 100%; }
  .hero-visual { display: none; }
}

/* ---------- Page hero, small split variant (text left / image right) ---------- */
.page-hero-split { padding: 56px 0 48px; }
.page-hero-split .hero-content-split {
  max-width: 980px;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
}
.page-hero-split .hero-visual {
  min-height: 230px;
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  position: relative;
  overflow: hidden;
}
.page-hero-split .hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(107,168,52,0.25), rgba(48,149,189,0.25));
}
.page-hero-split .hero-h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 14px; }
.page-hero-split .hero-desc { font-size: 15.5px; margin: 0; max-width: 460px; }
/* No visual on this side (image removed) — collapse back to a single,
   comfortably-measured text column instead of a lopsided split. On this
   page specifically the column also shifts toward the right — see the
   left-bleeding watermark below, which it balances against. */
.page-hero-split .hero-content-split-solo {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin-left: auto;
  margin-right: 4%;
}
.page-hero-split .hero-content-split-solo .hero-desc { max-width: 100%; }

/* Oversized brand-mark watermark behind a hero heading — icon only (no
   wordmark), flattened to solid brand colors, faded almost into the
   white background. Default (services, blog, …): centered and cropped
   by the hero's own overflow so only its upper half reads as a soft
   shape behind the text. */
.hero-icon-watermark {
  position: absolute;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.hero-icon-watermark img { width: 100%; height: auto; display: block; }
.page-hero:not(.page-hero-split) .hero-icon-watermark {
  top: 62%;
  left: 50%;
  width: 1200px;
  transform: translate(-50%, -46%);
}
@media (max-width: 700px) {
  .page-hero:not(.page-hero-split) .hero-icon-watermark { width: 720px; }
}

/* "Über uns": the icon instead bleeds in from the LEFT edge — only its
   right half is visible, positioned so both the blue arc and the green
   oval read as distinct shapes — with the text column shifted right to
   balance it (see .hero-content-split-solo). */
.page-hero-split .hero-icon-watermark {
  top: 28%;
  left: 0;
  width: 1300px;
  transform: translate(-50%, -14%);
  opacity: 0.1;
}
@media (max-width: 900px) {
  .page-hero-split .hero-content-split-solo { margin-left: auto; margin-right: auto; }
  .page-hero-split .hero-icon-watermark { width: 760px; }
}

/* "Kontakt": mirror image of the above — heading stays left (its native
   alignment on this page), the icon bleeds in from the RIGHT edge
   instead, showing only its left half. */
.page-hero-left .hero-icon-watermark {
  top: 28%;
  left: auto;
  right: 0;
  width: 1300px;
  transform: translate(50%, -14%);
  opacity: 0.1;
}
@media (max-width: 900px) {
  .page-hero-left .hero-icon-watermark { width: 760px; }
}

/* ---------- Page hero, compact centered variant (smaller, title stays centered) ---------- */
.page-hero-compact { padding: 56px 0 48px; }
.page-hero-compact .hero-h1 { font-size: clamp(28px, 3.8vw, 42px); margin: 0 0 16px; }
.page-hero-compact .hero-desc { font-size: 16px; margin: 0 auto; }

/* ---------- Page hero, compact left-aligned variant ---------- */
.page-hero-left { padding: 56px 0 48px; }
.page-hero-left .hero-content { max-width: 1180px; text-align: left; margin: 0 auto; }
.page-hero-left .hero-h1 { font-size: clamp(28px, 3.8vw, 42px); margin: 0 0 16px; }
.page-hero-left .hero-desc { font-size: 16px; margin: 0; max-width: 620px; }

.hero-scroll-hint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.scroll-track { width: 2px; height: 40px; background: var(--border-2); border-radius: 2px; overflow: hidden; }
.scroll-thumb { width: 100%; height: 14px; background: var(--grad); border-radius: 2px; animation: scrollThumb 1.8s ease-in-out infinite; }
@keyframes scrollThumb { 0% { transform: translateY(-14px); } 100% { transform: translateY(40px); } }

/* ---------- Marquee ---------- */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  overflow: hidden;
  padding: 20px 0;
}
.marquee { display: flex; }
.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  padding-right: 40px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 40px;
}
.marquee-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); margin-left: 40px; }

/* ---------- Section headers ---------- */
.section-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 18px;
}
.section-desc { font-size: 17px; color: var(--ink-2); max-width: 640px; }
.section-header { text-align: center; margin: 0 auto 56px; max-width: 700px; }
.section-header .section-desc { margin: 0 auto; }

/* ---------- Pillars (trust badges) ---------- */
.pillars { padding: 80px 0 0; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.pillar-icon {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.pillar-card h3 { font-size: 17px; margin: 0 0 8px; }
.pillar-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

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

/* ---------- Stats ---------- */
.stats-section {
  position: relative;
  padding: 90px 0;
  background: var(--grad-soft);
  overflow: hidden;
}
/* The wrapper that holds about.html's stat-card deck — that deck wants
   to sit on the page's plain alternating background, not the gradient
   above. (The homepage's own number band that used to share these
   styles was removed; .stat-plus is all its markup still contributes,
   via the cards' "+" sign.) */
.stats-section.stats-section--plain { background: none; overflow: visible; }
.stat-plus { color: var(--green-d); }

/* ============================================================
   About: four-stat card deck. Standalone component with its own
   class names (.about-stats/.about-stat-card). Shared between
   about.html and en/about.html — the only place on the site that
   still shows numbers of this kind.

   Reveal is driven by initAboutStatsStack() in main.js:
   - Desktop: each card's resting (pre-reveal) offset is measured
     once via getBoundingClientRect and written as --sx/--sy/--sr
     (so it's always exactly right regardless of actual card width at
     any viewport size) before .is-revealed clears it via a
     transition on `translate`/`rotate` — kept as separate CSS
     properties from `transform` (used only by the hover lift) so the
     two transitions never fight over one property's duration, same
     technique as .service-card[data-reveal] above. z-index and
     transition-delay are fixed per slot (nth-child) so the card
     currently animating is always the one on top of the ones still
     waiting, and the reveal order (card 4 first ... card 1 last)
     naturally matches that z-order.
   - Tablet/mobile: .is-simple + per-card .is-in instead — plain
     sequential fade+rise, no stack math.
   - No JS / prefers-reduced-motion: cards render already settled
     (the custom properties default to 0, so .about-stats[data-stat-
     stack] alone already renders flat without needing .is-revealed).
   ============================================================ */
/* .container:has(.about-stats) widens just the container instance that
   wraps this card deck (about.html's shared-with-.about-grid container,
   en/about.html's own) so the four cards get more room. */
.container:has(.about-stats) { max-width: 1320px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  align-items: stretch;
}
.about-stat-card {
  --stat-ink: #1f2421;
  --stat-ink-2: #4a4f4c;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 440px;
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(20, 30, 20, 0.05);
  padding: 36px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease, background 0.3s ease;
}
.about-stat-card:hover,
.about-stat-card:active {
  transform: translateY(-4px);
  background: var(--green-deep);
  border-color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}
.about-stat-card:hover .about-stat-card__icon,
.about-stat-card:active .about-stat-card__icon {
  transform: rotate(8deg);
  color: var(--white);
}
.about-stat-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.about-stat-card__icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--green);
  transition: transform 0.2s ease, color 0.3s ease;
}
.about-stat-card__icon svg { display: block; width: 100%; height: 100%; }
.about-stat-card__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.2vw, 32px);
  color: var(--stat-ink);
  transition: color 0.3s ease;
}
.about-stat-card:hover .about-stat-card__number,
.about-stat-card:active .about-stat-card__number { color: var(--white); }
.about-stat-card__label {
  font-weight: 600;
  margin-top: 10px;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--stat-ink);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.about-stat-card:hover .about-stat-card__label,
.about-stat-card:active .about-stat-card__label { color: var(--white); }
.about-stat-card__desc {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  color: var(--stat-ink-2);
  margin: 10px 0 0;
  text-align: left;
  transition: color 0.3s ease;
}
.about-stat-card:hover .about-stat-card__desc,
.about-stat-card:active .about-stat-card__desc { color: rgba(255, 255, 255, 0.85); }

/* Desktop stack-deck */
.about-stats[data-stat-stack] .about-stat-card {
  translate: var(--sx, 0px) var(--sy, 0px);
  rotate: var(--sr, 0deg);
  transition: translate 0.7s cubic-bezier(0.22, 1, 0.36, 1), rotate 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s ease, box-shadow 0.2s ease;
}
.about-stats[data-stat-stack].is-revealed .about-stat-card {
  translate: 0 0;
  rotate: 0deg;
}
.about-stats[data-stat-stack] .about-stat-card:nth-child(1) { z-index: 1; transition-delay: 0.45s, 0.45s, 0s, 0s; }
.about-stats[data-stat-stack] .about-stat-card:nth-child(2) { z-index: 2; transition-delay: 0.3s, 0.3s, 0s, 0s; }
.about-stats[data-stat-stack] .about-stat-card:nth-child(3) { z-index: 3; transition-delay: 0.15s, 0.15s, 0s, 0s; }
.about-stats[data-stat-stack] .about-stat-card:nth-child(4) { z-index: 4; transition-delay: 0s, 0s, 0s, 0s; }

/* Tablet/mobile fallback: simple sequential fade+rise, no stack math */
.about-stats.is-simple .about-stat-card {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), translate 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s ease, box-shadow 0.2s ease;
}
.about-stats.is-simple .about-stat-card.is-in {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .about-stats[data-stat-stack] .about-stat-card,
  .about-stats.is-simple .about-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    translate: 0 0 !important;
    rotate: 0deg !important;
    opacity: 1 !important;
  }
}

@media (max-width: 1100px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .about-stats { grid-template-columns: 1fr; }
  .about-stat-card { min-height: auto; }
}

/* ---------- Intro / support grid (dark full-bleed section) ---------- */
.intro-dark {
  background: var(--grad-deep);
}
/* Services page: light variant instead of the dark .intro-dark theme,
   matching the subtle light background used by the homepage News
   section. The service-row content (h3/p/card-icon) already renders
   in dark ink by default, so only the section heading needs flipping. */
.services.intro-dark {
  background: var(--bg-subtle);
}
.services.intro-dark .section-h2 { color: var(--ink); }
.services.intro-dark .section-desc { color: var(--ink-2); }
.intro-dark .section-h2 { color: var(--white); }
.intro-dark .section-desc { color: rgba(255,255,255,0.68); }
.intro-header { max-width: 660px; margin-bottom: 52px; }
.intro-header-center { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }
.intro-header .section-h2 {
  color: var(--white);
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.intro-header p {
  color: rgba(255,255,255,0.68);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}
.intro-header-center p { margin: 0 auto; }
.intro-footer-link { text-align: center; margin-top: 48px; }

/* Hairline-divided grid of support points — full-bleed, square corners */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
}
.support-grid-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.support-item {
  position: relative;
  background: rgba(255,255,255,0.035);
  padding: 40px clamp(24px, 4vw, 48px) 34px;
  transition: background 0.3s ease;
  overflow: hidden;
}
.support-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.support-item:hover { background: rgba(255,255,255,0.065); }
.support-item:hover::before { transform: scaleY(1); }
.support-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(255,255,255,0.4);
  margin-bottom: 22px;
  transition: -webkit-text-stroke-color 0.3s ease;
}
.support-item:hover .support-num { -webkit-text-stroke-color: rgba(255,255,255,0.75); }
.support-item h3 {
  color: var(--white);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}
.support-item p {
  color: rgba(255,255,255,0.62);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* Homepage "Wo wir Sie unterstützen" (.intro-split): light variant
   instead of the dark .intro-dark theme, matching the subtle light
   background used further down by the News/Blog section. */
.intro-split.intro-dark { background: var(--bg-subtle); }
.intro-split .section-h2,
.intro-split .intro-header .section-h2 { color: var(--ink); }
.intro-split .section-desc,
.intro-split .intro-header p { color: var(--ink-2); }
.intro-split .support-grid,
.intro-split .support-grid-bleed { background: var(--border); }
.intro-split .support-grid-bleed { border-top-color: var(--border); border-bottom-color: var(--border); }
.intro-split .support-item { background: var(--surface); }
.intro-split .support-item:hover { background: var(--bg-subtle); }
.intro-split .support-num { -webkit-text-stroke-color: rgba(107,168,52,0.55); }
.intro-split .support-item:hover .support-num { -webkit-text-stroke-color: rgba(107,168,52,0.95); }
.intro-split .support-item h3 { color: var(--ink); }
.intro-split .support-item p { color: var(--ink-2); }
.intro-split .link-arrow-light { color: var(--ink); }
@media (max-width: 900px) {
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .support-grid { grid-template-columns: 1fr; }
  .support-item { padding: 30px 26px; }
}

/* ---------- Leistungs-Bildkacheln (index.html, "Wo wir Sie unterstützen")
   Sechs Fotokacheln als zusammenhängende Fläche: 3x2 auf Desktop, 2 Spalten
   auf Tablet, eine auf Mobile. Jede Kachel ist ein einziger Link, der Rest
   sind reine Textcontainer. Der Farbfilter auf dem Bild gleicht die sechs
   Fotos zu einer Serie an (leicht entsättigt, etwas wärmer und dunkler). */
.service-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.service-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  text-decoration: none;
  background: #14181a;
  isolation: isolate;
}
.service-tile-media,
.service-tile-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.service-tile-media img {
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.92) sepia(0.12);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Verlauf von unten, damit die Textzone immer lesbar bleibt. */
.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 35%, rgba(0,0,0,0) 60%);
  transition: background 0.4s ease;
  pointer-events: none;
}
/* Nur die Stapelreihenfolge setzen — die Positionierung steht weiter unten
   an den Elementen selbst und darf hier nicht überschrieben werden. */
.service-tile > .service-tile-cta,
.service-tile > .service-tile-body { z-index: 1; }

.service-tile-cta {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.85);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.service-tile-cta svg { transition: transform 0.3s ease; }

.service-tile-body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: block;
}
.service-tile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.82);
  margin-bottom: 8px;
}
.service-tile-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green, #6ba834);
  flex: none;
}
.service-tile-title {
  margin: 0 0 6px;
  font-size: 29px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}
.service-tile-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.74);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-tile:hover .service-tile-media img,
.service-tile:focus-visible .service-tile-media img { transform: scale(1.05); }
.service-tile:hover::after,
.service-tile:focus-visible::after {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.58) 38%, rgba(0,0,0,0.12) 70%);
}
.service-tile:hover .service-tile-cta,
.service-tile:focus-visible .service-tile-cta {
  background: var(--surface);
  border-color: var(--white);
  color: var(--ink, #16191c);
}
.service-tile:hover .service-tile-cta svg { transform: translateX(3px); }
.service-tile:focus-visible { outline: 2px solid var(--green, #6ba834); outline-offset: 2px; }

/* Nacheinander einblenden, 80 ms versetzt (überschreibt die globalen
   data-delay-Stufen, die für sechs Kacheln zu träge wären). */
.service-tile:nth-child(1) { transition-delay: 0s; }
.service-tile:nth-child(2) { transition-delay: 0.08s; }
.service-tile:nth-child(3) { transition-delay: 0.16s; }
.service-tile:nth-child(4) { transition-delay: 0.24s; }
.service-tile:nth-child(5) { transition-delay: 0.32s; }
.service-tile:nth-child(6) { transition-delay: 0.4s; }

@media (max-width: 1000px) {
  .service-tiles { grid-template-columns: repeat(2, 1fr); }
  .service-tile-title { font-size: 26px; }
}
@media (max-width: 620px) {
  .service-tiles { grid-template-columns: 1fr; padding: 0 16px; }
  .service-tile { aspect-ratio: 16 / 10; }
  .service-tile-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-tile-media img,
  .service-tile::after,
  .service-tile-cta { transition: none; }
  .service-tile:hover .service-tile-media img { transform: none; }
  .service-tile { transition-delay: 0s !important; }
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.card-icon {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  background: var(--grad);
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-title { font-size: 20px; margin: 0 0 10px; }
.card-desc { color: var(--ink-2); font-size: 15px; margin: 0 0 18px; }
.card-link, .teaser-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--green-d);
  transition: gap 0.2s ease;
}
.card-link:hover, .teaser-link:hover { color: var(--blue-d); }
.link-arrow-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  transition: gap 0.2s ease;
}
.link-arrow-light:hover { gap: 12px; }

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

/* Services grid variant: 2x2 large cards, image flush to card edge */
.services-grid-media {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.services-grid-media .service-card {
  padding: 0;
  overflow: hidden;
}
.services-grid-media .card-body {
  padding: 40px;
}
.services-grid-media .card-title { font-size: 24px; }
.services-grid-media .card-desc { font-size: 16.5px; }
.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--grad-soft);
  position: relative;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-media:has(img)::after { display: none; }
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(107,168,52,0.25), rgba(48,149,189,0.25));
}
@media (max-width: 780px) { .services-grid-media { grid-template-columns: 1fr; } }

/* ---------- Service rows (alternating text / image) ---------- */
.service-rows { display: flex; flex-direction: column; gap: 90px; margin-top: 10px; }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-row-media {
  order: 1;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.service-row-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(107,168,52,0.25), rgba(48,149,189,0.25));
}
.service-row-content { order: 2; }
.service-row-reverse .service-row-media { order: 2; }
.service-row-reverse .service-row-content { order: 1; }
.service-row-content .card-icon { margin-bottom: 20px; }
.service-row-content h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 0 0 14px; }
.service-row-content p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 22px; }
.service-row-content p a,
.card-desc a,
.cat-slide-desc a,
.section-desc a {
  color: var(--blue-d);
  text-decoration-thickness: 1px;
}
@media (max-width: 900px) {
  .service-row { grid-template-columns: 1fr; gap: 28px; }
  .service-row-media, .service-row-reverse .service-row-media { order: 1; }
  .service-row-content, .service-row-reverse .service-row-content { order: 2; }
  .service-rows { gap: 56px; }
}

/* Blog rows — wide rectangular card wrapper around the alternating image/text row */
.blog-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-block:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.blog-block .service-row-media { aspect-ratio: 16 / 9; box-shadow: none; }
/* Once a .service-row-media box contains a real <img> (the per-article
   SVG illustrations), show the artwork plainly — fill the box and
   switch off the decorative gradient wash meant for the empty
   placeholder state. */
.service-row-media picture { display: block; width: 100%; height: 100%; }
.service-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-row-media:has(img)::after { display: none; }
.service-row-media:has(img) { background: var(--surface); }
@media (max-width: 900px) { .blog-block { padding: 22px; } }

/* ---------- about.html "Leistungen" section: the four services moved
   over from the old services.html, as white cards (same visual
   language as the stat/route cards: white fill, 2px green border, 4px
   radius) so they hold up against the page's green background. ---- */
.leistungen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 70px; }
.leistung-card {
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 4px;
  padding: 36px;
}
.leistung-card .card-icon { margin-bottom: 18px; }
.leistung-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0 0 12px; }
.leistung-card p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0 0 18px; }

/* Hover: the card flips to deep brand green, exactly like the
   .about-stat-card panels above it — same --green-deep fill, same
   slight lift, same 0.3s colour crossfade. The 01–04 badge inverts
   (white plate, dark green numeral) instead of keeping the green
   gradient, which would disappear into the new background, and the
   card's link turns light green so it stays the brightest thing in
   the card. Size never changes, only colour and the 4px lift. */
.leistung-card {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.leistung-card:hover,
.leistung-card:focus-within {
  transform: translateY(-4px);
  background: var(--green-deep);
  border-color: var(--green-deep);
  box-shadow: var(--shadow-md);
}
.leistung-card .card-icon,
.leistung-card h3,
.leistung-card p,
.leistung-card .card-link { transition: color 0.3s ease, background 0.3s ease; }

/* "Mehr erfahren" macht die ganze Kachel klickbar, ohne die Karte in
   ein <a> zu verwandeln: zwei dieser Kacheln enthalten selbst schon
   Links auf Blogbeiträge, und ein <a> im <a> ist ungültig und wird
   vom Browser stillschweigend aufgetrennt. Stattdessen deckt ein
   ::after des Links die Karte ab; die inneren Links liegen mit
   position:relative darüber und bleiben einzeln anklickbar. */
.leistung-card,
.service-card { position: relative; }
.card-link--stretched::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.leistung-card p a,
.service-card p a,
.leistung-card .card-desc a,
.service-card .card-desc a { position: relative; z-index: 1; }
.leistung-card:hover h3,
.leistung-card:focus-within h3 { color: var(--white); }
.leistung-card:hover p,
.leistung-card:focus-within p { color: rgba(255, 255, 255, 0.82); }
.leistung-card:hover p a,
.leistung-card:focus-within p a { color: var(--white); }
.leistung-card:hover .card-icon,
.leistung-card:focus-within .card-icon {
  background: var(--surface);
  color: var(--green-deep);
}
.leistung-card:hover .card-link,
.leistung-card:focus-within .card-link { color: #a8e06a; }
/* beats the generic .card-link:hover (blue) inside the dark card */
.leistung-card:hover .card-link:hover,
.leistung-card:focus-within .card-link:hover { color: var(--white); }

/* en/about.html carries the same four service tiles under the older
   .services-grid/.service-card markup — scoped to that page's body
   class so the differently-styled .service-card grid on en/index.html
   keeps its own plain lift-and-shadow hover. */
.about-green-bg .services-grid .service-card {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.about-green-bg .services-grid .service-card:hover,
.about-green-bg .services-grid .service-card:focus-within {
  transform: translateY(-4px);
  background: var(--green-deep);
  border-color: var(--green-deep);
  box-shadow: var(--shadow-md);
}
.about-green-bg .services-grid .service-card h3,
.about-green-bg .services-grid .service-card p,
.about-green-bg .services-grid .service-card .card-icon,
.about-green-bg .services-grid .service-card .card-link { transition: color 0.3s ease, background 0.3s ease; }
.about-green-bg .services-grid .service-card:hover h3,
.about-green-bg .services-grid .service-card:focus-within h3 { color: var(--white); }
.about-green-bg .services-grid .service-card:hover p,
.about-green-bg .services-grid .service-card:focus-within p { color: rgba(255, 255, 255, 0.82); }
.about-green-bg .services-grid .service-card:hover p a,
.about-green-bg .services-grid .service-card:focus-within p a { color: var(--white); }
.about-green-bg .services-grid .service-card:hover .card-icon,
.about-green-bg .services-grid .service-card:focus-within .card-icon {
  background: var(--surface);
  color: var(--green-deep);
}
.about-green-bg .services-grid .service-card:hover .card-link,
.about-green-bg .services-grid .service-card:focus-within .card-link { color: #a8e06a; }
.about-green-bg .services-grid .service-card:hover .card-link:hover,
.about-green-bg .services-grid .service-card:focus-within .card-link:hover { color: var(--white); }

@media (max-width: 700px) {
  .leistungen-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .leistung-card,
  .about-green-bg .services-grid .service-card { transition: background 0.3s ease, border-color 0.3s ease; }
  .leistung-card:hover,
  .leistung-card:focus-within,
  .about-green-bg .services-grid .service-card:hover,
  .about-green-bg .services-grid .service-card:focus-within { transform: none; }
}

/* ---------- standorte.html / en/locations.html office sections ----
   Each office is a full-width two-column split: the photo fills its
   own half edge-to-edge (no container gutter, no radius, full section
   height via object-fit:cover) on the side that office sits on —
   Eschwege flush left, Aktobe flush right — while the text keeps a
   normal inner padding in the other half. The two sections are told
   apart by alternating backgrounds (white / very light green) plus a
   hairline on top. Deliberately no blurred photo behind the text any
   more: with the photo now filling half the section, a second washed
   copy of it behind the copy only made the block restless.
   Below 860px the grid collapses to photo on top, text underneath. */
.office-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.office-section--tint { background: #f5faf0; }

/* ---- pinned office sequence (js/office-pin.js) ----
   The viewport is the pinned box and carries the perspective; both
   panels sit stacked inside it, each filling it completely, and the
   drum rotation around the horizontal axis is animated by GSAP. */
.office-pin-section { position: relative; border-top: 1px solid var(--border); }
.office-pin-viewport {
  position: relative;
  overflow: hidden;
  perspective: 1600px;
  perspective-origin: center center;
}
.office-panel {
  position: absolute;
  inset: 0;
  background: var(--surface);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.office-panel--tint { background: #f5faf0; }
.office-panel .office-split { height: 100%; min-height: 0; }

/* First panel of the sequence: the trade-network map, centred and as
   large as the pinned screen allows. Its routes build themselves up
   while this panel is the visible one, before the drum rotates on to
   the offices. */
.office-panel--map { background: var(--bg-white); }
.office-map-panel {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px clamp(16px, 4vw, 64px);
}
/* Grid centring plus max-height keeps the stage inside the pinned
   panel: aspect-ratio then shrinks its width instead of letting the
   SVG's intrinsic size blow the panel open. */
.office-panel--map .network-map-stage {
  width: min(1200px, 100%);
  max-height: 100%;
  margin: 0 auto;
}
/* Shown only during the map's hold phase (opacity is driven by the
   scrubbed timeline in js/office-pin.js). */
.office-scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  opacity: 0;
  pointer-events: none;
}
.office-pin-section.is-stacked .office-scroll-hint { display: none; }
.office-panel--right .office-photo { order: 2; }
.office-panel--right .office-text { order: 1; }

/* No GSAP, narrow screen or prefers-reduced-motion: plain stacked
   sections, no pin, no rotation. */
.office-pin-section.is-stacked .office-pin-viewport {
  height: auto !important;
  perspective: none;
}
.office-pin-section.is-stacked .office-panel {
  position: static;
  opacity: 1 !important;
  transform: none !important;
  border-top: 1px solid var(--border);
}
.office-pin-section.is-stacked .office-panel:first-child { border-top: 0; }
.office-pin-section.is-stacked .office-panel .office-split { min-height: 520px; }
.office-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 520px;
}
.office-photo { position: relative; min-height: 340px; }
.office-photo picture { display: block; width: 100%; height: 100%; }
.office-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.office-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 86px) clamp(24px, 5vw, 80px);
}
.office-text h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.2vw, 32px); margin: 0 0 16px; }
.office-text p { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 24px; max-width: 54ch; }
/* Aktobe: photo flush against the right screen edge instead */
.office-section--right .office-photo { order: 2; }
.office-section--right .office-text { order: 1; }

@media (max-width: 860px) {
  .office-split { grid-template-columns: 1fr; min-height: 0; }
  .office-photo { height: 260px; min-height: 0; }
  .office-section--right .office-photo,
  .office-section--right .office-text { order: 0; }
}

.office-flag {
  display: block;
  width: 32px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.office-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.office-meta svg { flex-shrink: 0; color: var(--green-d); }

/* ---------- Timeline (vertical, alternating left/right, scroll-synced draw) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline-line-track {
  content: '';
  position: absolute;
  left: 50%; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--border-2);
  transform: translateX(-50%);
}
.timeline-line-fill {
  position: absolute;
  left: 50%; top: 4px;
  width: 2px; height: 0%;
  background: var(--grad);
  transform: translateX(-50%);
  z-index: 0;
}
.timeline-scroll-dot {
  position: absolute;
  left: 50%; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--green);
  box-shadow: 0 0 0 5px var(--surface), var(--shadow-sm);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}
.timeline-item { position: relative; width: 50%; padding-bottom: 64px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:nth-child(odd) { padding-right: 46px; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; padding-left: 46px; text-align: left; }
.timeline-dot {
  position: absolute;
  top: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--surface);
  z-index: 1;
  opacity: 0;
  transform: scale(0.25);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -21px; }
.timeline-item:nth-child(even) .timeline-dot { left: -21px; }
.timeline-item.in-view .timeline-dot { opacity: 1; transform: scale(1); }
.timeline-card {
  display: inline-block;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  max-width: 280px;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s, transform 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s;
}
.timeline-item:nth-child(odd) .timeline-card { transform: translateX(40px); }
.timeline-item:nth-child(even) .timeline-card { transform: translateX(-40px); }
.timeline-item.in-view .timeline-card { opacity: 1; transform: translateX(0); }
.timeline-card h4 { margin: 0 0 6px; font-size: 17px; }
.timeline-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 700px) {
  .timeline { margin-top: 60px; }
  .timeline-line-track, .timeline-line-fill, .timeline-scroll-dot { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%; left: 0; padding-left: 56px; padding-right: 0; text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
    left: 0; right: auto;
  }
  .timeline-item:nth-child(odd) .timeline-card, .timeline-item:nth-child(even) .timeline-card {
    transform: translateX(-28px);
  }
  .timeline-card { max-width: 100%; }
}

/* ---------- Logo marquee (brand slideshow) ---------- */
.logo-marquee-wrap { padding: 34px 0; }
.logo-marquee-track { gap: 28px; padding-right: 28px; animation-duration: 36s; }
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  padding: 0 34px;
}
.logo-chip img { max-height: 40px; max-width: 120px; width: auto; height: auto; object-fit: contain; }

/* ============================================================
   markets.html "Unsere Herstellerpartner" — one section per
   country instead of the former accordion. Each country gets a
   heading bar (flag, name, partner count) and a two-column
   layout: the country's outline map on the left, sticky so it
   stays put while the manufacturers of that country scroll past
   on the right. The map itself (drawing the outline, filling it,
   then dropping in the location dots) is built by
   js/partner-map.js; every step of that choreography is a CSS
   transition keyed off .is-drawn/.is-filled/.is-dotted below.

   Without that module — no JS, offline, or a failed CDN fetch —
   .partner-map never gets .is-built and the map column removes
   itself (the :has() rule below), leaving a plain single-column
   list of manufacturer blocks.

   The blocks themselves keep the sitewide
   [data-reveal="left"/"right"] entrance, so they still glide in
   one after another via the normal IntersectionObserver.
   ============================================================ */
.partner-country-section { padding: 0 0 72px; }
/* Land und Flagge stehen zentriert ueber der Karte, nicht als Leiste am
   linken Rand: die Karte darunter ist selbst mittig, eine linksbuendige
   Zeile mit durchgehender Trennlinie darueber hat sie optisch
   abgeschnitten. Statt der Linie eine kurze gruene Marke. */
.partner-country-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 64px;
  position: relative;
}
.partner-country-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  margin-left: -40px;
  border-top: 2px solid var(--green);
}
.partner-country-flag img {
  display: block; width: 42px; height: 31px;
  object-fit: cover; border-radius: 4px; border: 1px solid var(--border-2);
}
.partner-country-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}

/* Two states, driven by js/partner-map.js:
   .is-interactive  the map was built — closed state, map centred,
                    manufacturer list hidden behind it.
   .is-open         a location was picked: the map glides to the left
                    40% and the manufacturer panel occupies the rest.
   Neither class means no JS/offline: the map column stays hidden and
   the manufacturers render as the plain stacked list they are. */
.partner-country-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: flex-start;
}
.partner-map-col { display: none; }
.partner-country-layout.is-interactive .partner-map-col {
  display: block;
  flex: 1 1 100%;
  transition: flex-basis 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.partner-country-layout.is-interactive.is-open .partner-map-col {
  flex: 0 0 40%;
  position: sticky;
  top: 108px;
  padding-right: 48px;
}
/* The visible glide: the map box itself animates from centred-and-
   capped to filling its (now narrower) column. */
.partner-country-layout.is-interactive .partner-map {
  max-width: 520px;
  margin-inline: auto;
  transition: max-width 0.6s cubic-bezier(0.65, 0, 0.35, 1), margin 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.partner-country-layout.is-interactive.is-open .partner-map {
  max-width: 100%;
  margin-inline: 0;
}

.partner-map-cta {
  display: none;
  margin: 28px auto 0;
  max-width: 520px;
  text-align: center;
}
.partner-map-cta-text {
  margin: 0 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.partner-country-layout.is-interactive .partner-map-cta { display: block; }
.partner-country-layout.is-interactive.is-open .partner-map-cta { display: none; }

.partner-blocks { display: flex; flex-direction: column; gap: 64px; }
/* Closed (or no JS) the panel column is simply the full list. */
/* scroll-margin keeps the panel heading clear of the sticky navbar
   when opening a manufacturer scrolls it into view. */
.partner-panel-col { flex: 1 1 0; min-width: 0; scroll-margin-top: 110px; }
.partner-country-layout.is-interactive:not(.is-open) .partner-panel-col { display: none; }
.partner-country-layout.is-interactive.is-open .partner-panel-col {
  display: block;
  animation: partner-panel-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes partner-panel-in {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: none; }
}

/* Only the selected manufacturer is shown inside the panel; the swap
   slides the old one out and the new one in from the matching side. */
.partner-country-layout.is-interactive .partner-blocks > .partner-block { display: none; }
.partner-country-layout.is-interactive .partner-blocks > .partner-block.is-active {
  display: grid;
  opacity: 1;
  translate: none;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.partner-block.is-entering-right { opacity: 0; transform: translateX(40px); }
.partner-block.is-entering-left  { opacity: 0; transform: translateX(-40px); }
.partner-block.is-leaving-left   { opacity: 0; transform: translateX(-40px); }
.partner-block.is-leaving-right  { opacity: 0; transform: translateX(40px); }

.partner-panel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}
.partner-panel-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border-2);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.partner-panel-nav button:hover:not(:disabled) { background: var(--control-ink); color: var(--control-on-ink); border-color: var(--control-ink); }
.partner-panel-nav button:disabled { opacity: 0.35; cursor: default; }
.partner-panel-close { margin-left: auto; }
.partner-panel-count { font-size: 13px; font-weight: 700; color: var(--ink-2); min-width: 46px; text-align: center; }

/* ---- the map ---- */
/* The badge layer sits on top of the SVG, so the map box is the
   positioning context for both. */
.partner-map { position: relative; }
.pm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pm-shape {
  fill: var(--green-tint);
  fill-opacity: 0;
  transition: fill-opacity 0.8s ease;
}
.pm-svg.is-filled .pm-shape { fill-opacity: 1; }
.pm-stroke {
  fill: none;
  stroke: var(--green-d);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s ease-in-out;
}
.pm-svg.is-drawn .pm-stroke { stroke-dashoffset: 0; }

.pm-dot {
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.45s ease var(--pm-delay, 0s);
}
.pm-svg.is-dotted .pm-dot { opacity: 1; }
.pm-dot-core {
  fill: var(--green-d);
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 0.2s ease, transform 0.2s ease;
}
.pm-dot:hover .pm-dot-core,
.pm-dot:focus-visible .pm-dot-core { transform: scale(1.5); }
.pm-dot-halo { fill: var(--green); opacity: 0; transition: opacity 0.25s ease; }
.pm-dot:hover .pm-dot-halo,
.pm-dot:focus-visible .pm-dot-halo,
.pm-dot.is-active .pm-dot-halo { opacity: 0.22; }
.pm-dot.is-active .pm-dot-core { fill: var(--blue-d); }

/* Slow pulsing ring so the dots read as "click me". Stops on the dot
   you are pointing at and on the one currently open, so the active
   state stays calm. */
.pm-dot-pulse {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  animation: pm-pulse 2.6s ease-out var(--pm-delay, 0s) infinite;
}
@keyframes pm-pulse {
  0%   { transform: scale(0.7); opacity: 0.55; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.pm-dot:hover .pm-dot-pulse,
.pm-dot:focus-visible .pm-dot-pulse,
.pm-dot.is-active .pm-dot-pulse { animation-play-state: paused; opacity: 0; }

.pm-dot.is-hot .pm-dot-core { transform: scale(1.5); }
.pm-dot.is-hot .pm-dot-halo { opacity: 0.22; }
.pm-dot.is-hot .pm-dot-pulse { animation-play-state: paused; opacity: 0; }

/* ---- badges over the dots ----
   Each location carries a small white card with the brand logos and
   the manufacturer's name, joined to its dot by a short dashed
   leader. js/partner-map.js places them (first free slot out of
   above/below/left/right/diagonal, collision-checked against the
   badges already placed) and draws the leaders, so nothing overlaps
   where the locations sit close together.
   The three moving parts are deliberately kept on separate CSS
   properties so they never fight each other: the entrance lives on
   .pm-badge's `transform`, the idle float on the box's `translate`,
   the hover lift on the box's `transform`. */
.pm-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pm-badge {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transform-origin: center bottom;
  transition:
    opacity 0.45s ease var(--pm-delay, 0s),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) var(--pm-delay, 0s);
}
.partner-map.is-badged .pm-badge { opacity: 1; transform: none; }

.pm-badge-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1.5px solid var(--green);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(22, 25, 28, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pm-badge-text { display: block; text-align: center; }
.partner-map.is-badged .pm-badge-box {
  animation: pm-badge-float 4.6s ease-in-out var(--pm-float-delay, 0s) infinite;
}
@keyframes pm-badge-float {
  0%, 100% { translate: 0 -2px; }
  50%      { translate: 0 2px; }
}
.pm-badge-logos { display: flex; align-items: center; gap: 7px; }
.pm-badge-logos img {
  display: block;
  height: 26px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
}
.pm-badge-name {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
}
/* "Mehr erfahren →" only on hover/focus, so the closed map stays calm. */
.pm-badge-cta {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-d);
  white-space: nowrap;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.pm-badge:hover .pm-badge-box,
.pm-badge:focus-visible .pm-badge-box,
.pm-badge.is-hot .pm-badge-box {
  transform: translateY(-4px);
  border-color: var(--green-d);
  box-shadow: 0 10px 22px rgba(22, 25, 28, 0.16);
}
.pm-badge:hover .pm-badge-cta,
.pm-badge:focus-visible .pm-badge-cta,
.pm-badge.is-hot .pm-badge-cta,
.pm-badge.is-active .pm-badge-cta { max-height: 18px; opacity: 1; }
.pm-badge:focus-visible { outline: none; }
.pm-badge:focus-visible .pm-badge-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.pm-badge.is-active .pm-badge-box {
  border-color: var(--blue-d);
  box-shadow: 0 10px 22px rgba(22, 25, 28, 0.18);
}

/* Compact variant: too many locations for cards with names (Germany),
   so the card shrinks to its logos and the name moves into a tooltip
   above it — floated out of flow, so hovering never changes the card
   size and the placement stays valid. */
.partner-map.is-compact .pm-badge-box { padding: 6px 9px; }
/* Keep the compact cards roughly square: smaller logos, at most two
   of them (BurnusCare alone carries Kamill, Burti and Glysolid). */
.partner-map.is-compact .pm-badge-logos { gap: 5px; }
.partner-map.is-compact .pm-badge-logos img { height: 21px; max-width: 52px; }
.partner-map.is-compact .pm-badge-logos img:nth-child(n + 3) { display: none; }
.partner-map.is-compact .pm-badge-text {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  background: var(--surface);
  border: 1.5px solid var(--green-d);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(22, 25, 28, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3;
}
/* Only on hover/focus — a tooltip that stayed open for the active
   card would sit permanently on top of its neighbours. */
.partner-map.is-compact .pm-badge:hover .pm-badge-text,
.partner-map.is-compact .pm-badge:focus-visible .pm-badge-text,
.partner-map.is-compact .pm-badge.is-hot .pm-badge-text { opacity: 1; }
.partner-map.is-compact .pm-badge-cta { max-height: 18px; opacity: 1; }
/* No usable logo: the card would be empty, so it keeps its name even
   in the compact layout. */
.partner-map.is-compact .pm-badge--nologo .pm-badge-text {
  position: static;
  transform: none;
  opacity: 1;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.partner-map.is-compact .pm-badge--nologo .pm-badge-cta { max-height: 0; opacity: 0; }
.partner-map.is-compact .pm-badge--nologo:hover .pm-badge-cta,
.partner-map.is-compact .pm-badge--nologo.is-hot .pm-badge-cta { max-height: 18px; opacity: 1; }

/* Short connector between a card and its dot — the gap is only ~13px,
   so a solid hairline reads better than a dashed one. */
.pm-leader {
  stroke: var(--green-d);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pm-svg.is-dotted .pm-leader { opacity: 0.75; }

/* Opened panel: the map only keeps 40% of the row, so the badges
   step down a size to stay inside it. */
.partner-country-layout.is-open .pm-badge-box { padding: 5px 8px; gap: 4px; }
.partner-country-layout.is-open .pm-badge-logos img { height: 20px; max-width: 56px; }
.partner-country-layout.is-open .pm-badge-name { font-size: 10.5px; }

/* ---- mobile: no badges, a list of logo buttons instead ---- */
.pm-mobile-list { display: none; }
.pm-mobile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1.5px solid var(--green);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pm-mobile-item.is-active { border-color: var(--blue-d); background: var(--green-tint); }
.pm-mobile-logos { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pm-mobile-logos img { display: block; height: 22px; width: auto; max-width: 54px; object-fit: contain; }
/* One logo is enough in the narrow two-column grid — a second one
   would push the name out of its cell. */
.pm-mobile-logos img:nth-child(n + 2) { display: none; }
.pm-mobile-name {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.partner-block { scroll-margin-top: 110px; border-radius: 4px; }
.partner-block { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 36px; align-items: center; }
/* Einheitlicher Rahmen fuer jedes Partnerfoto: weisser Rand als Padding
   statt Linie, weicher Schatten, 4px Radius — derselbe Stil fuer die
   Einzelbilder und fuer beide Ebenen der Meentzen-Komposition. */
.partner-block-media,
.partner-block-media-stack picture {
  border-radius: 4px;
  padding: 7px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.partner-block-media {
  order: 1;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.partner-block-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
/* Zwei Fotos uebereinandergelegt (Charlotte Meentzen): das Gebaeude als
   grosse untere Ebene oben links, der Empfangsbereich kleiner und nach
   rechts unten versetzt darueber. Die Box bekommt eine feste Hoehe aus
   ihrem Seitenverhaeltnis, damit die obere Ebene weder aus dem Panel
   ragt noch in den Text laeuft. Rahmen und Verlauf der Standard-Box
   entfallen hier, die beiden Ebenen bringen ihren eigenen mit.

   Geometrie: das grosse Bild ist 85% breit (4:3), das kleine 50% (4:3)
   und sitzt buendig unten rechts. Daraus ergibt sich eine Hoehe von
   0.675 x Breite — so ueberdeckt das kleine Bild rund ein Viertel des
   grossen und ragt unten nur leicht darueber hinaus. */
.partner-block-media-stack {
  position: relative;
  aspect-ratio: 1 / 0.675;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.partner-block-media-stack picture {
  position: absolute;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}
.pm-stack-back {
  top: 0;
  left: 0;
  width: 85%;
  aspect-ratio: 4 / 3;
  z-index: 1;
}
.pm-stack-front {
  right: 0;
  bottom: 0;
  width: 50%;
  aspect-ratio: 4 / 3;
  z-index: 2;
}
/* Einblenden beim Oeffnen des Panels: erst die untere Ebene, 150ms
   spaeter gleitet die obere von rechts unten herein. Nur im
   interaktiven Zustand — ohne JS stehen beide Bilder einfach da. */
.partner-country-layout.is-interactive .partner-block.is-active .pm-stack-back {
  animation: pm-stack-in 0.5s ease both;
}
.partner-country-layout.is-interactive .partner-block.is-active .pm-stack-front {
  animation: pm-stack-in-front 0.5s 0.15s ease both;
}
@keyframes pm-stack-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pm-stack-in-front {
  from { opacity: 0; transform: translate(22px, 22px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 780px) {
  /* Gebaeude ueber die volle Breite, der Empfangsbereich darunter und
     nur noch leicht ueberlappend. */
  .partner-block-media-stack { aspect-ratio: 1 / 1.08; }
  .pm-stack-back { width: 100%; }
  .pm-stack-front { width: 55%; }
}
@media (prefers-reduced-motion: reduce) {
  .partner-country-layout.is-interactive .partner-block.is-active .pm-stack-back,
  .partner-country-layout.is-interactive .partner-block.is-active .pm-stack-front {
    animation: none;
  }
}
.partner-block-media-placeholder {
  position: absolute;
  inset: 7px;
  border-radius: 2px;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-d);
}
.partner-block-media-placeholder svg { opacity: 0.45; }
.partner-block-media:has(img) .partner-block-media-placeholder { display: none; }
.partner-block-content { order: 2; }
.partner-block-reverse .partner-block-media { order: 2; }
.partner-block-reverse .partner-block-content { order: 1; }
.partner-block-content h3 { font-family: var(--font-display); font-weight: 800; font-size: 21px; margin: 0 0 8px; }
.partner-block-meta { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 16px; }
.partner-block-meta .dot { margin: 0 6px; color: var(--border-2); }
.partner-block-text p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.partner-block-text p:last-child { margin-bottom: 0; }
.partner-block-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 20px; }
.partner-block-brands img { max-height: 30px; max-width: 100px; width: auto; height: auto; object-fit: contain; }
.partner-block-tm { margin: 16px 0 0; font-size: 13px; font-style: italic; color: var(--ink-3); }

/* Below 980px map on top, panel underneath — the map never slides
   aside on a narrow screen, it just stays put and the selected
   manufacturer unfolds below it. */
@media (max-width: 980px) {
  .partner-country-layout.is-interactive .partner-map-col,
  .partner-country-layout.is-interactive.is-open .partner-map-col {
    flex: 1 1 100%;
    position: static;
    padding-right: 0;
  }
  .partner-country-layout.is-interactive .partner-map,
  .partner-country-layout.is-interactive.is-open .partner-map { max-width: 400px; margin-inline: auto; }
  .partner-country-layout.is-interactive.is-open .partner-panel-col { flex: 1 1 100%; margin-top: 40px; }
  .partner-blocks { gap: 48px; }
}
@media (max-width: 780px) {
  .partner-block { grid-template-columns: 1fr; gap: 22px; }
  .partner-block-media, .partner-block-reverse .partner-block-media { order: 1; }
  .partner-block-content, .partner-block-reverse .partner-block-content { order: 2; }
  .partner-country-title { font-size: 24px; }
  .partner-country-flag img { width: 34px; height: 25px; }
  /* Too little room for floating cards — the manufacturers become a
     plain list of logo buttons under the map. */
  .pm-badges, .pm-leaders { display: none; }
  .pm-mobile-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-width: 400px;
    margin: 22px auto 0;
  }
}
@media (max-width: 560px) {
}
@media (prefers-reduced-motion: reduce) {
  .pm-shape, .pm-stroke, .pm-dot { transition: none; }
  .pm-dot-pulse { animation: none; opacity: 0.35; }
  /* Badges simply are there — no rising, no idle float. */
  .pm-badge { transition: none; }
  .partner-map.is-badged .pm-badge-box { animation: none; translate: none; }
  .partner-country-layout.is-interactive .partner-map-col,
  .partner-country-layout.is-interactive .partner-map { transition: none; }
  .partner-country-layout.is-interactive.is-open .partner-panel-col { animation: none; }
  .partner-country-layout.is-interactive .partner-blocks > .partner-block.is-active { transition: none; }
}

/* ---------- Brand cards ---------- */
/* Flex instead of grid so an incomplete last row centres itself
   automatically, however many brands there are — a 5-column grid
   would leave the leftover cells empty and open on the right.
   --brand-cols drives the tile width per breakpoint. */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  --brand-cols: 5;
}
.brand-card { flex: 0 0 calc((100% - (var(--brand-cols) - 1) * 36px) / var(--brand-cols)); }
.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 28px 22px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.brand-card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
a.brand-card { text-decoration: none; color: inherit; }
.brand-card-logo { max-width: 82%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
/* Squarer logos (wordmark stacked over an emblem) need a little more
   height than the wide wordmarks to carry the same optical weight. */
.brand-card-logo--tall { max-height: 76px; }
.brand-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-d);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.brand-card-link:hover { gap: 10px; color: var(--blue-d); }
@media (max-width: 1100px) { .brands-grid { --brand-cols: 4; } }
@media (max-width: 780px) { .brands-grid { --brand-cols: 3; } }
@media (max-width: 560px) { .brands-grid { --brand-cols: 2; } .brand-card { aspect-ratio: 4/3; padding: 22px 16px; } }

.portfolio-more { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- Brand detail modal ---------- */
.brand-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.brand-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.brand-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 18, 0.6);
  backdrop-filter: blur(3px);
}
.brand-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s cubic-bezier(0.16,1,0.3,1);
}
.brand-modal.is-open .brand-modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.brand-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 1;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(250, 247, 241, 0.92);
  color: #2B2A26;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}
.brand-modal-close:hover { background: var(--surface); transform: scale(1.08); }
.brand-modal-hero {
  aspect-ratio: 2 / 1;
  background: var(--grad-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.brand-modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,16,12,0) 50%, rgba(10,16,12,.6) 100%);
}
/* Designed stand-in for brands without a cleared press image: the
   brand's own colour as a flat field, the logo badge centred on it,
   and no darkening gradient (there is no photo to lift the badge off). */
.brand-modal-hero.has-accent {
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 2;
}
.brand-modal-hero.has-accent::after { display: none; }
.brand-modal-hero.has-accent .brand-modal-logo-badge {
  background: var(--surface);
  padding: 18px 26px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.brand-modal-logo-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin: 18px;
  background: var(--logo-plate);
  border-radius: 10px;
  padding: 9px 16px;
  box-shadow: var(--shadow-sm);
}
.brand-modal-logo { max-width: none; max-height: 24px; width: auto; height: auto; object-fit: contain; }
.brand-modal-body { padding: 32px 32px 36px; }
.brand-modal-name { font-size: 24px; margin: 0 0 12px; }
.brand-modal-desc { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 26px; }
/* Die beiden Buttons stehen nebeneinander und teilen sich die Breite;
   wird das Fenster zu schmal, bricht der zweite von selbst um. Der
   Hersteller-Link steht als eigene Zeile darunter, nicht in dieser Reihe.
   Beide Buttons folgen dem Button-Stil der Website: eckig und mit der
   Fuellung, die von unten nach oben hochfaehrt. */
.brand-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-modal-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 0.35s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.3s ease;
}
.brand-modal-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--green-d);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.brand-modal-link:hover::before,
.brand-modal-link:focus-visible::before { transform: scaleY(1); }
.brand-modal-link:hover,
.brand-modal-link:focus-visible { border-color: var(--green-d); }
.brand-modal-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* "Praesentation herunterladen": leerer Rahmen, fuellt sich mit der
   Textfarbe, Schrift kippt auf die Gegenfarbe. */
.brand-modal-link.is-secondary {
  background: transparent;
  color: var(--ink);
}
.brand-modal-link.is-secondary::before { background: var(--ink); }
.brand-modal-link.is-secondary:hover,
.brand-modal-link.is-secondary:focus-visible {
  color: var(--bg);
  border-color: var(--ink);
}

/* Noch keine Praesentation hinterlegt: der Knopf bleibt sichtbar, damit
   der Platz erkennbar ist, ist aber inaktiv und sagt das auch
   (siehe brands-data.js). */
.brand-modal-link.is-disabled,
.brand-modal-link.is-disabled:hover {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-3);
  cursor: default;
  pointer-events: none;
}
.brand-modal-link.is-disabled::before { display: none; }
.brand-modal-link.is-secondary[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .brand-modal-link::before { transition: none; }
}

/* Dritte Zeile im Fenster: fuehrt zum Hersteller der Marke auf der
   Portfolio-Seite. Bewusst nur ein Textlink, damit die beiden Buttons
   darueber ihr Gewicht behalten. */
.brand-modal-hersteller {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}
.brand-modal-hersteller:hover { color: var(--ink); text-decoration: underline; }
.brand-modal-hersteller[hidden] { display: none; }
@media (max-width: 560px) {
  .brand-modal-body { padding: 26px 22px 30px; }
  .brand-modal-name { font-size: 21px; }
  .brand-modal-link { flex: 1 1 100%; }
}

/* ---------- Product category cards ----------
   4 cards in a plain 2×2 grid — the calmer of the two options for an
   even card count (4-in-a-row would squeeze each illustration into a
   quarter-width box and break the series' visual rhythm). Drops to a
   single column below 560px. */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.category-media {
  height: 170px;
  background: var(--grad-soft);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.category-body { padding: 26px 28px 30px; }
.category-card h3 { font-size: 19px; margin: 0 0 8px; }
.category-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
/* Die ganze Karte fuehrt auf ihre Kategorieseite: der Link ist sichtbar
   als Textzeile und legt sich zusaetzlich unsichtbar ueber die Karte,
   damit auch ein Klick aufs Bild zaehlt. Die Karte selbst bleibt ein
   <article> — ein Link um Ueberschrift plus Absatz waere fuer
   Screenreader eine einzige, sehr lange Beschriftung. */
.category-card { position: relative; }
.category-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--green);
  text-decoration: none;
}
.category-card-link::after { content: ''; position: absolute; inset: 0; }
.category-card-link svg { transition: transform 0.2s ease; }
.category-card:hover .category-card-link { color: var(--ink); }
.category-card:hover .category-card-link svg { transform: translateX(4px); }
.category-card-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

/* ---------- Brand banner (data-driven brand slideshow) ---------- */
.mb {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.mb *, .mb *::before, .mb *::after { box-sizing: border-box; }

.mb__track {
  display: grid;
  position: relative;
  isolation: isolate;
}

.mb__slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 72px);
  min-height: clamp(440px, 46vw, 620px);

  background:
    radial-gradient(120% 100% at 74% 34%, var(--mb-bg-glow, transparent) 0%, transparent 64%),
    linear-gradient(135deg, var(--mb-bg) 0%, var(--mb-bg-2, var(--mb-bg)) 100%);
  color: var(--mb-ink, var(--white));
  font-family: var(--mb-font-body, inherit);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .7s ease;
}

.mb__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.mb__slide::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 1.6vw, 22px);
  border: 1px solid var(--mb-frame, transparent);
  border-radius: 18px;
  pointer-events: none;
  z-index: 1;
}

.mb__texture {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .5;
  pointer-events: none;
}

.mb__content { position: relative; z-index: 1; max-width: 34rem; }

.mb__eyebrow {
  display: inline-block;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  padding: 8px 18px;
  border: 1px solid var(--mb-hairline, rgba(255,255,255,.4));
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mb-ink);
}

.mb__wordmark {
  display: block;
  height: clamp(38px, 4.6vw, 66px);
  width: auto;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.mb__brandname {
  margin: 0 0 clamp(12px, 1.6vw, 20px);
  font-family: var(--mb-font-display, "Inter", sans-serif);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: var(--mb-font-display-weight, 700);
  line-height: .95;
  letter-spacing: var(--mb-tracking, -.02em);
  color: var(--mb-ink);
}

.mb__headline {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-family: var(--mb-font-display, "Inter", sans-serif);
  font-size: clamp(1.55rem, 2.9vw, 2.5rem);
  font-weight: var(--mb-font-display-weight, 700);
  line-height: 1.12;
  letter-spacing: var(--mb-tracking, -.01em);
  color: var(--mb-ink);
}

.mb__text {
  margin: 0 0 clamp(20px, 2.6vw, 28px);
  font-size: clamp(.98rem, 1.15vw, 1.06rem);
  line-height: 1.62;
  color: var(--mb-ink);
  opacity: .82;
}

.mb__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(24px, 3vw, 34px);
  padding: 0;
  list-style: none;
}

.mb__facts li {
  padding: 8px 16px;
  border: 1px solid var(--mb-hairline, rgba(255,255,255,.35));
  border-radius: 6px;
  font-size: .82rem;
  color: var(--mb-ink);
}

.mb__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.mb__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--mb-cta-radius, 999px);
  background: var(--mb-cta-bg, var(--control-ink));
  color: var(--mb-cta-ink, var(--control-on-ink));
  font-family: var(--mb-font-body, inherit);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.mb__cta svg { transition: transform .25s ease; }
.mb__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.mb__cta:hover svg { transform: translateX(4px); }

.mb__cta--ghost {
  background: transparent;
  border-color: var(--mb-hairline, rgba(255,255,255,.5));
  color: var(--mb-ink);
}
.mb__cta--ghost:hover { background: var(--mb-ghost-hover, rgba(255,255,255,.14)); box-shadow: none; }

.mb__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.mb__visual img {
  width: 100%;
  height: auto;
  max-height: clamp(300px, 34vw, 470px);
  object-fit: contain;
  filter: drop-shadow(0 26px 40px rgba(50,30,29,.20));
}

.mb__visual-empty {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--mb-hairline, rgba(0,0,0,.25));
  border-radius: 14px;
}
.mb__visual-empty-label {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mb-ink);
  opacity: .5;
}

.mb__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.mb__dots { display: flex; gap: 10px; padding: 0; margin: 0; list-style: none; }

.mb__dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(0,0,0,.18);
  cursor: pointer;
  transition: background .3s ease, width .3s ease;
}
.mb__dot[aria-current="true"] { width: 56px; background: var(--control-ink); }

.mb__arrows { display: flex; gap: 8px; }

.mb__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 50%;
  background: transparent;
  color: var(--control-ink);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.mb__arrow:hover { background: var(--control-ink); border-color: var(--control-ink); color: var(--white); }

.mb :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

@media (max-width: 900px) {
  .mb__slide {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: clamp(30px, 7vw, 48px) clamp(22px, 6vw, 36px);
  }
  .mb__visual { order: -1; min-height: 0; }
  .mb__visual img { max-height: 260px; }
  .mb__visual-empty { min-height: 160px; }
  .mb__content { max-width: none; }
  .mb__slide::before { inset: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mb__slide, .mb__cta, .mb__cta svg, .mb__dot, .mb__arrow { transition: none; }
}

/* ---------- Blog cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-img {
  height: 150px;
  background: var(--grad-soft);
  position: relative;
  overflow: hidden;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(107,168,52,0.25), rgba(48,149,189,0.25));
}
/* Beitragsbild im Teaser auf der Startseite. Sobald ein echtes <img>
   drinsteckt, fuellt es die Bildflaeche formatfuellend und der
   dekorative Verlauf des Platzhalterzustands entfaellt — dieselbe
   Mechanik wie bei .service-row-media. Die Groesse der Flaeche selbst
   kommt aus home.css (Balkenlayout, 300px Bildspalte), nicht hier. */
.blog-card-img picture { display: block; width: 100%; height: 100%; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-img:has(img)::after { display: none; }
.blog-card-img:has(img) { background: var(--surface); }
.blog-card-body { padding: 26px; }
.blog-meta { font-size: 12.5px; font-weight: 700; color: var(--green-d); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.blog-card-body h3 { font-size: 18px; margin: 0 0 10px; line-height: 1.3; }
.blog-card-body p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 90px;
}
.about-text p { color: var(--ink-2); }
.about-grid { align-items: center; }
/* "Lieferroute" diagram — replaces the old plain highlight list. A
   dashed trunk/branch line (SVG, drawn in via the same pathLength:1 +
   stroke-dashoffset trick used by .vg-draw / .nm-route elsewhere)
   fans out from a pulsing origin dot into three curves; each curve
   ends at a .route-card (icon + text), absolutely positioned at the
   same vertical % as its line's endpoint (viewBox height 280, so e.g.
   y=40 -> top:14.29%). Sequencing (line draw -> icon pop -> text
   slide, one branch after another, then a slow continuous flow) is
   orchestrated by initRouteDiagram() in main.js — CSS here only
   defines the states (.is-drawn/.is-flowing/.is-in) it toggles.
   prefers-reduced-motion: JS adds the settled classes without ever
   starting the looping pulse/flow animations (see initRouteDiagram). */
.route-diagram { position: relative; min-height: 300px; }
.route-diagram-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-origin { fill: var(--blue); opacity: 0; transition: opacity 0.3s ease; }
.route-origin-pulse {
  fill: none; stroke: var(--blue); stroke-width: 2;
  opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.route-diagram.is-in .route-origin { opacity: 1; }
.route-diagram.is-animating .route-origin-pulse { animation: routePulse 2.6s ease-out infinite; }
@keyframes routePulse { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

.route-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.65,0,0.35,1), stroke-width 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}
.route-line.is-drawn { stroke-dashoffset: 0; }
.route-line.is-flowing {
  stroke-dasharray: 0.035 0.035;
  transition: stroke-width 0.2s ease, opacity 0.2s ease;
  animation: routeFlow 2.4s linear infinite;
}
@keyframes routeFlow { to { stroke-dashoffset: -0.14; } }
.route-diagram:has(.route-card[data-route-card="0"]:hover) .route-line[data-route="0"],
.route-diagram:has(.route-card[data-route-card="1"]:hover) .route-line[data-route="1"],
.route-diagram:has(.route-card[data-route-card="2"]:hover) .route-line[data-route="2"] {
  stroke-width: 2.4;
  opacity: 1;
}

.route-card {
  position: absolute;
  left: 34%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 4px;
  padding: 14px 18px;
  opacity: 0;
  transition: opacity 0.4s ease, border-color 0.2s ease;
}
.route-card.is-in { opacity: 1; }
.route-card-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}
.route-card-icon svg { width: 18px; height: 18px; }
.route-card.is-in .route-card-icon { transform: scale(1); opacity: 1; }
.route-card:hover .route-card-icon { transform: scale(1) translateY(-3px); }
.route-card span {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.route-card.is-in span { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .route-origin-pulse { animation: none !important; opacity: 0 !important; }
  .route-line.is-flowing { animation: none !important; }
  .route-line, .route-card, .route-card-icon, .route-card span { transition: none !important; }
}

@media (max-width: 900px) {
  .route-diagram { min-height: 0; display: flex; flex-direction: column; gap: 16px; padding-left: 36px; }
  .route-diagram-svg { display: none; }
  .route-diagram::before {
    content: '';
    position: absolute;
    left: 13px; top: 6px; bottom: 6px;
    width: 1px;
    background: repeating-linear-gradient(to bottom, var(--green) 0 4px, transparent 4px 9px);
  }
  .route-card {
    position: static;
    top: auto !important;
    left: auto; right: auto;
    transform: none;
    width: 100%;
  }
  .route-card:hover .route-card-icon { transform: none; }
}

/* About visual — image placeholder composition (main + accent) */
.about-image-stack { position: relative; }
.about-image {
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(107,168,52,0.25), rgba(48,149,189,0.25));
}
.about-image:has(img)::after { display: none; }
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-image-main { aspect-ratio: 4 / 5; width: 100%; }
.about-image-accent {
  position: absolute;
  left: -36px; bottom: -36px;
  width: 46%;
  aspect-ratio: 1 / 1;
  border: 4px solid var(--white);
}
@media (max-width: 900px) {
  .about-image-accent { left: -16px; bottom: -28px; width: 42%; }
}

/* ---------- Values mindmap ---------- */
.value-mindmap { margin-top: 130px; }
.mindmap-connector {
  position: relative;
  height: 130px;
  max-width: 1100px;
  margin: 0 auto;
  /* used only as a scroll-observer hook (data-reveal) — the container
     itself stays put; the node + branch lines animate on their own below,
     so this doesn't double up with a whole-block fade too. */
  opacity: 1;
  translate: 0;
}
.mindmap-node {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 6px var(--green-tint);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.mindmap-connector svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mindmap-connector path {
  fill: none;
  stroke: var(--border-2);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.65,0,0.35,1);
}
.mindmap-connector path:nth-of-type(1) { transition-delay: 0.15s; }
.mindmap-connector path:nth-of-type(2) { transition-delay: 0.3s; }
.mindmap-connector path:nth-of-type(3) { transition-delay: 0.45s; }
.mindmap-connector.in-view .mindmap-node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mindmap-connector.in-view path { stroke-dashoffset: 0; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 1100px; margin: 0 auto; }
.value-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.8s cubic-bezier(0.16,1,0.3,1), scale 0.8s cubic-bezier(0.16,1,0.3,1);
}
.value-card::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--green);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.value-num { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--blue-d); margin-bottom: 16px; }
.value-card h3 { font-size: 21px; margin: 0 0 14px; }
.value-card p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 0; }

/* Cards branch out from the mindmap connector once its lines have drawn
   in — left card slides in from the left, middle rises from below, right
   card slides in from the right, timed just behind their own branch line.
   Uses standalone translate/scale (not transform) so this never fights
   with the card's own transform-based hover lift; each nth-child rule is
   fully self-contained so the reveal delay never bleeds into hover. */
.value-card[data-reveal], .value-card[data-reveal="left"], .value-card[data-reveal="right"] {
  opacity: 0;
  translate: 0 30px;
  scale: 0.95;
}
.value-card[data-reveal="left"] { translate: -40px 0; }
.value-card[data-reveal="right"] { translate: 40px 0; }
.value-card[data-reveal].in-view, .value-card[data-reveal="left"].in-view, .value-card[data-reveal="right"].in-view {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}
.values-grid .value-card:nth-child(1) {
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) 0.55s, translate 0.8s cubic-bezier(0.16,1,0.3,1) 0.55s, scale 0.8s cubic-bezier(0.16,1,0.3,1) 0.55s, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.values-grid .value-card:nth-child(2) {
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) 0.7s, translate 0.8s cubic-bezier(0.16,1,0.3,1) 0.7s, scale 0.8s cubic-bezier(0.16,1,0.3,1) 0.7s, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.values-grid .value-card:nth-child(3) {
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) 0.85s, translate 0.8s cubic-bezier(0.16,1,0.3,1) 0.85s, scale 0.8s cubic-bezier(0.16,1,0.3,1) 0.85s, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .mindmap-node, .mindmap-connector path, .value-card[data-reveal], .value-card[data-reveal="left"], .value-card[data-reveal="right"] {
    opacity: 1; translate: 0 0; scale: 1; stroke-dashoffset: 0; transition: none;
  }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-image-stack { max-width: 420px; margin: 0 auto; }
  .value-mindmap { margin-top: 80px; }
  .mindmap-connector { display: none; }
  .values-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .value-card::before { display: none; }
}

/* ---------- Value slideshow (Über uns): pinned, scroll-scrubbed
   wiping sequence — see js/value-slideshow-pin.js.

   The BASE styles below are the no-JS state on purpose: the three
   points simply sit underneath each other and are all readable. Only
   when the script actually sets the sequence up does it add
   .is-pinned, which turns the viewport into a single screen with the
   slides stacked on top of each other; the script then drives every
   slide's text parts and visual off one scrubbed GSAP timeline
   (outgoing wipes left and fades, incoming comes in from the right
   edge — already faintly visible there, blurred — and sharpens).
   .is-flow is the narrow-screen variant: no pin, slides stay stacked
   and just fade in sideways one by one.

   The decorative dot/arc/network background sits in the viewport but
   outside the track, so it never travels with a slide; in pinned mode
   the timeline gives it a few percent of counter-parallax. ---------- */
.value-slideshow-viewport { position: relative; }
.value-slideshow-track { position: relative; z-index: 1; }

/* ---- pinned mode (desktop, JS) ---- */
/* Das Panel ist eine Spalte: Ueberschrift oben, danach die Buehne, die
   den Rest der Hoehe bekommt. Die Ueberschrift liegt deshalb mit im
   gepinnten Bereich — stand sie darueber, lag zwischen ihr und der "01"
   die halbe leere Panelhoehe. */
.value-slideshow-viewport.is-pinned {
  overflow: hidden;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
}
.value-slideshow-viewport.is-pinned .section-header {
  position: relative;
  z-index: 2;
  flex: none;
  margin: 0;
  padding-top: 10px;
}
.value-slideshow-viewport.is-pinned .value-slideshow-track {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}
/* All three slides occupy the same screen; the timeline decides which
   one is readable. Only the active one takes pointer events, so text
   selection never hits an invisible neighbour. */
.value-slideshow-viewport.is-pinned .value-slide {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
  pointer-events: none;
}
.value-slideshow-viewport.is-pinned .value-slide.is-active { pointer-events: auto; }
/* Every visual sits above every text — the slides themselves carry no
   z-index, so these two levels apply across all three of them. That is
   what makes the incoming text slide in UNDERNEATH the visual of the
   point it is replacing instead of across it. */
.value-slideshow-viewport.is-pinned .value-slide-text { position: relative; z-index: 1; }
.value-slideshow-viewport.is-pinned .value-slide-visual { position: relative; z-index: 2; }

/* ---- flow mode (narrow screens, JS) ---- */
.value-slideshow-viewport.is-flow .value-slide {
  opacity: 0;
  translate: 28px 0;
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), translate 0.6s cubic-bezier(0.22,1,0.36,1);
}
.value-slideshow-viewport.is-flow .value-slide.in-view { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .value-slideshow-viewport.is-flow .value-slide { transition: opacity 0.4s ease; translate: 0 0; }
}

/* Background decoration behind the slideshow: a very faint dot grid
   (masked out toward the edges), two large pale contour circles, and
   a small network of lines/nodes biased toward the right/visual side
   so it never sits behind the text column. Positioned once, shared by
   all three slides — it doesn't change with the active slide, and it
   isn't part of .value-slideshow-track so it never moves with it. A
   very slow drift keeps it from feeling static without being
   distracting; prefers-reduced-motion turns that off. */
.value-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Im gepinnten Modus schreibt die Timeline das Parallax auf dieselbe
   transform-Eigenschaft — die CSS-Drift muss dann aus sein. */
.value-slideshow-viewport.is-pinned .value-bg-svg { animation: none; }
.value-bg-svg {
  width: 100%;
  height: 100%;
  color: var(--border);
  animation: valueBgDrift 28s ease-in-out infinite;
}
.value-bg-arc {
  fill: none;
  stroke: var(--border-2);
  stroke-width: 1.5;
  opacity: 0.5;
}
.value-bg-network { opacity: 0.1; }
.value-bg-network path { fill: none; stroke: var(--green); stroke-width: 1.2; }
.value-bg-network path:nth-of-type(even) { stroke: var(--blue); }
.value-bg-network circle { fill: var(--green); }
.value-bg-network circle:nth-of-type(even) { fill: var(--blue); }
@keyframes valueBgDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .value-bg-svg { animation: none; }
}
@media (max-width: 900px) {
  .value-bg-arc, .value-bg-network { display: none; }
}

/* Base = the readable stacked layout (no JS, and narrow screens):
   visual above, text below. Pinned mode switches to the two-column
   screen further down. */
.value-slide {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  align-content: start;
}
.value-slide .value-slide-visual { order: -1; }
.value-slideshow-viewport.is-pinned .value-slide {
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  height: 100%;
  padding: 0 8px;
  /* Beide Spalten ueber die volle Hoehe, damit die Grafik rechts in dem
     Raum, der ihr bleibt, optisch mittig steht. */
  align-items: stretch;
  align-content: normal;
}
/* Der Text beginnt oben, direkt unter der Ueberschrift — nicht in der
   Mitte des Panels. Das ist der eigentliche Abstand zwischen
   "Was uns auszeichnet" und der "01". */
.value-slideshow-viewport.is-pinned .value-slide-text {
  align-self: start;
  padding-top: 40px;
}
.value-slideshow-viewport.is-pinned .value-slide .value-slide-visual { order: 0; }
.value-slide-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--blue-d);
  margin-bottom: 16px;
}
.value-slide-text h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 16px; }
.value-slide-text p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0; }
/* Visual column. In pinned mode the timeline moves and crossfades it
   independently of the text (slightly later, from the opposite side),
   so it gets its own transform — nothing here, it is all written by
   js/value-slideshow-pin.js. */
.value-slide-visual {
  display: flex; align-items: center; justify-content: center;
}
.value-slideshow-viewport.is-pinned .value-slide-visual { height: 100%; min-height: 0; }
/* Die Grafik darf das Panel nie ueberragen: eine auto-Zeile waechst auf
   ihre max-content-Hoehe, das Panel schneidet (overflow: hidden) unten
   ab. minmax(0,1fr) bindet die Zeile an die Panelhoehe, max-height am
   SVG laesst es proportional mitschrumpfen statt anzuecken. */
.value-slideshow-viewport.is-pinned .value-slide { grid-template-rows: minmax(0, 1fr); }
.value-slideshow-viewport.is-pinned .value-slide-visual svg { max-height: 100%; }
.value-slide-visual svg { width: 100%; max-width: 260px; height: auto; }
.value-slideshow-viewport.is-pinned .value-slide-visual svg { max-width: 440px; }
.value-slideshow-viewport.is-pinned .value-slide-visual-products svg { max-width: 520px; }
.value-slideshow-viewport.is-pinned .value-slide-visual-map svg { max-width: 550px; }
.value-slideshow-viewport.is-pinned .value-slide-visual-network svg { max-width: 705px; }
.vg-map-fill {
  fill: #d8e5c9;
  stroke: #8fa876;
  stroke-width: 1.1;
  stroke-linejoin: round;
  opacity: 0;
  transform-origin: center;
  scale: 0.94;
  transition: opacity 0.7s ease, scale 0.7s cubic-bezier(0.16,1,0.3,1);
}
.is-active .vg-map-fill { opacity: 1; scale: 1; }

.vg-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s cubic-bezier(0.16,1,0.3,1) 0.1s; }
.is-active .vg-draw { stroke-dashoffset: 0; }
.is-active .vg-draw.vg-delay-1 { transition-delay: 0.2s; }
.is-active .vg-draw.vg-delay-2 { transition-delay: 0.3s; }
.is-active .vg-draw.vg-delay-3 { transition-delay: 0.4s; }
.is-active .vg-draw.vg-delay-4 { transition-delay: 0.5s; }
.is-active .vg-draw.vg-delay-5 { transition-delay: 0.6s; }
.vg-pop { opacity: 0; transform-origin: center; scale: 0.3; transition: opacity 0.4s ease 0.45s, scale 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.45s; }
.is-active .vg-pop { opacity: 1; scale: 1; }
.is-active .vg-pop.vg-delay-1 { transition-delay: 0.55s; }
.is-active .vg-pop.vg-delay-2 { transition-delay: 0.65s; }
.is-active .vg-pop.vg-delay-3 { transition-delay: 0.75s; }
.is-active .vg-pop.vg-delay-4 { transition-delay: 0.85s; }
.is-active .vg-pop.vg-delay-5 { transition-delay: 0.95s; }

/* Bottom bar of the pinned screen: "Scroll" left, the progress bar
   centred, the counter right. Three grid columns rather than
   space-between, so the bar is centred on the screen and not on
   whatever width the two labels happen to have. Only exists while the
   section is pinned — in flow mode there is nothing to track. */
.value-slide-nav { display: none; }
.value-slideshow-viewport.is-pinned .value-slide-nav {
  position: absolute;
  left: 8px; right: 8px; bottom: clamp(10px, 3vh, 28px);
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.value-scroll-hint {
  justify-self: start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.value-progress {
  justify-self: center;
  position: relative;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: var(--border-2);
  overflow: hidden;
}
.value-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
}
.value-slideshow-viewport.is-pinned .value-slide-text p { max-width: 460px; }
@media (prefers-reduced-motion: reduce) {
  .vg-draw { transition: none; stroke-dashoffset: 0; }
  .vg-pop { transition: none; opacity: 1; scale: 1; }
}

/* ============================================================
   Homepage product-category tiles (#produktkategorien) — one flat
   coloured motif per card, drawn as inline SVG on a shared 160×160
   viewBox so all four sit at the same scale and share one outline
   colour (--ci-line) and stroke-width ladder (2.4 silhouette / 2.0
   secondary / 1.2–1.4 detail).

   Three layers of motion, all CSS, no JS animation loop:
   1. Entrance — .vg-draw/.vg-pop (defined above) stroke the outlines
      on while .ci-fig fades and lifts the whole figure in. Both key
      off .is-active on .category-media, added once by
      initCategoryIllustrations() in main.js.
   2. Idle loop — each motif's own small animation (drop, drum,
      spray, bubbles) runs continuously, but only once .is-active is
      set, so nothing moves before the card has been seen.
   3. Hover — no separate animation; hovering raises --ci-amp, which
      the loop keyframes multiply their travel distance by, and zooms
      the illustration slightly. Amplitude is a custom property the
      running keyframes read live, so the loops get more pronounced
      without restarting or jumping the way a duration swap would.

   transform-box: view-box makes a transform-origin resolve in viewBox
   units (needed for the drum, which must turn around the porthole's
   centre, not its own bounding box); fill-box makes it the element's
   own drawn bounds (right for the particles' scale).
   ============================================================ */
.category-media {
  display: flex;
  align-items: center;
  justify-content: center;
  --ci-line: #2c3833;
  --ci-amp: 1;
}
.category-card:hover .category-media { --ci-amp: 1.4; }
.category-illustration {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.35s ease;
}
.category-card:hover .category-illustration { transform: scale(1.04); }

.ci-fig {
  opacity: 0;
  transform: translateY(10px);
  transform-box: view-box;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-active .ci-fig { opacity: 1; transform: none; }

/* Particles stay invisible until their loop starts (and under
   prefers-reduced-motion, which never starts one). */
.ci-drop, .ci-spray, .ci-bubble, .ci-wash, .ci-sparkle { opacity: 0; }
.ci-drop, .ci-spray, .ci-bubble, .ci-wash, .ci-sparkle,
.ci-foam {
  transform-box: fill-box;
  transform-origin: center;
}

/* Kosmetik: a drop forms at the pipette tip and falls, every 3s */
.is-active .ci-drop { animation: ci-serum 3s ease-in-out infinite; }
@keyframes ci-serum {
  0%, 4%  { opacity: 0; transform: translateY(0) scale(0.2); }
  13%     { opacity: 1; transform: translateY(0) scale(1); }
  27%     { opacity: 1; transform: translateY(0) scale(1); }
  50%     { opacity: 1; transform: translateY(calc(13px * var(--ci-amp))) scale(0.85); }
  57%     { opacity: 0; transform: translateY(calc(15px * var(--ci-amp))) scale(0.5); }
  100%    { opacity: 0; transform: translateY(0) scale(0.2); }
}

/* Waschmittel: the laundry in the porthole turns, bubbles drift up */
.is-active .ci-drum {
  transform-box: view-box;
  transform-origin: 71px 98px;
  animation: ci-drum-spin 16s linear infinite;
}
@keyframes ci-drum-spin { to { transform: rotate(1turn); } }
.is-active .ci-wash-1 { animation: ci-wash-rise 3.6s ease-in infinite 0s; }
.is-active .ci-wash-2 { animation: ci-wash-rise 3.6s ease-in infinite 1.2s; }
.is-active .ci-wash-3 { animation: ci-wash-rise 3.6s ease-in infinite 2.1s; }
@keyframes ci-wash-rise {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  15%  { opacity: 0.85; }
  80%  { opacity: 0; transform: translateY(calc(-30px * var(--ci-amp))) scale(1); }
  100% { opacity: 0; transform: translateY(calc(-30px * var(--ci-amp))) scale(1); }
}

/* Putzmittel: a short burst of mist, then a small sparkle */
.is-active .ci-spray-1 { animation: ci-spray 3s ease-out infinite 0s; }
.is-active .ci-spray-2 { animation: ci-spray 3s ease-out infinite 0.07s; }
.is-active .ci-spray-3 { animation: ci-spray 3s ease-out infinite 0.14s; }
.is-active .ci-spray-4 { animation: ci-spray 3s ease-out infinite 0.21s; }
.is-active .ci-spray-5 { animation: ci-spray 3s ease-out infinite 0.28s; }
@keyframes ci-spray {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  6%   { opacity: 0.95; }
  26%  { opacity: 0; transform: translate(calc(var(--sx, 16px) * var(--ci-amp)), calc(var(--sy, -6px) * var(--ci-amp))) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--sx, 16px) * var(--ci-amp)), calc(var(--sy, -6px) * var(--ci-amp))) scale(1); }
}
.is-active .ci-sparkle { animation: ci-sparkle 3s ease-in-out infinite; }
@keyframes ci-sparkle {
  0%, 27% { opacity: 0; transform: scale(0.3) rotate(-20deg); }
  36%     { opacity: 1; transform: scale(1) rotate(0deg); }
  50%     { opacity: 0; transform: scale(0.6) rotate(15deg); }
  100%    { opacity: 0; transform: scale(0.3) rotate(-20deg); }
}

/* Bier: bubbles rise through the glass, the foam head bobs */
.is-active .ci-bubble-1 { animation: ci-bubble 3.2s ease-in infinite 0s; }
.is-active .ci-bubble-2 { animation: ci-bubble 3.2s ease-in infinite 0.7s; }
.is-active .ci-bubble-3 { animation: ci-bubble 3.2s ease-in infinite 1.5s; }
.is-active .ci-bubble-4 { animation: ci-bubble 3.2s ease-in infinite 2.2s; }
@keyframes ci-bubble {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  12%  { opacity: 0.8; }
  78%  { opacity: 0; transform: translateY(calc(-50px * var(--ci-amp))) scale(1); }
  100% { opacity: 0; transform: translateY(calc(-50px * var(--ci-amp))) scale(1); }
}
.is-active .ci-foam { animation: ci-foam 2.8s ease-in-out infinite alternate; }
@keyframes ci-foam {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-1.6px * var(--ci-amp))); }
}

@media (prefers-reduced-motion: reduce) {
  .ci-fig { opacity: 1; transform: none; transition: none; }
  .category-illustration,
  .category-card:hover .category-illustration { transition: none; transform: none; }
  .ci-drop, .ci-spray, .ci-bubble, .ci-wash, .ci-sparkle,
  .ci-foam, .ci-drum,
  .is-active .ci-drop, .is-active .ci-spray, .is-active .ci-bubble,
  .is-active .ci-wash, .is-active .ci-sparkle, .is-active .ci-foam,
  .is-active .ci-drum { animation: none; transform: none; }
}

/* ---------- Services page: connector line + split CTA ----------
   Bridges the timeline above with the closing CTA below, using the
   same line/dot visual language as .timeline-line-fill/-scroll-dot,
   just played once via the generic [data-reveal] observer instead of
   continuous scroll-progress tracking. ---------- */
.cta-connector { position: relative; width: 2px; height: 90px; margin: 0 auto; background: var(--border-2); }
.cta-connector-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0%;
  background: var(--grad);
  transition: height 0.9s cubic-bezier(0.16,1,0.3,1);
}
.cta-connector-dot {
  position: absolute; left: 50%; bottom: -7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--green);
  box-shadow: 0 0 0 5px var(--surface), var(--shadow-sm);
  transform: translateX(-50%) scale(0.3);
  opacity: 0;
  transition: opacity 0.4s ease 0.5s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.5s;
}
.cta-connector.in-view .cta-connector-fill { height: 100%; }
.cta-connector.in-view .cta-connector-dot { opacity: 1; transform: translateX(-50%) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .cta-connector-fill { height: 100%; transition: none; }
  .cta-connector-dot { opacity: 1; transform: translateX(-50%) scale(1); transition: none; }
}

.cta-split { background: var(--surface); padding-top: 70px; }
.cta-split-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.contact-form-wrap-compact { padding: 36px; }
.contact-form-wrap-compact .form-group { margin-bottom: 16px; }
.cta-split-text h2 { margin: 0 0 16px; }
.cta-split-text p { margin: 0 0 20px; max-width: 460px; }
@media (max-width: 900px) {
  .cta-split-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-split-text { order: -1; }
}

/* ---------- Contact page: full-bleed photo hero + centered form ----------
   Split background (Eschwege left / Aktobe right, same photos as
   standorte.html), blended at the seam via a mask-image fade on each
   half (not a hard edge), dark green overlay for text contrast, white
   centered heading/intro/form. Darunter .contact-facts — eine schlichte
   Zeile im Stil der Footer-Kontaktspalte, ohne Rahmen und Kasten.
   .footer-contact-item (sitewide footer, unrelated to this page's own
   redesign) stays where it was. ---------- */
.footer-contact-item { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; }

.contact-hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 64px;
}
.contact-hero-bg { position: absolute; inset: 0; z-index: 0; }
.contact-hero-photo {
  position: absolute;
  inset: 0;
  animation: contactHeroPhotoIn 1.3s cubic-bezier(0.16,1,0.3,1) both;
}
.contact-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-hero-photo--left {
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(50% - 70px), transparent calc(50% + 70px));
  mask-image: linear-gradient(to right, #000 0%, #000 calc(50% - 70px), transparent calc(50% + 70px));
}
.contact-hero-photo--right {
  -webkit-mask-image: linear-gradient(to right, transparent calc(50% - 70px), #000 calc(50% + 70px), #000 100%);
  mask-image: linear-gradient(to right, transparent calc(50% - 70px), #000 calc(50% + 70px), #000 100%);
  animation-delay: 0.08s;
}
@keyframes contactHeroPhotoIn {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(13, 32, 22, 0.42) 0%, rgba(13, 32, 22, 0.58) 100%);
}
.contact-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  text-align: center;
  color: var(--white);
}
.contact-hero-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 48px);
  margin: 0 0 16px;
  animation: heroRise 1.15s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}
.contact-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 40px;
  animation: heroRise 1.15s cubic-bezier(0.16,1,0.3,1) 0.42s both;
}
.contact-hero-form-wrap {
  text-align: left;
  animation: heroRise 1.15s cubic-bezier(0.16,1,0.3,1) 0.54s both;
}
.contact-hero-form-wrap .form-group label { color: var(--white); }
.contact-hero-form-wrap .form-group input,
.contact-hero-form-wrap .form-group textarea {
  background: rgba(250, 247, 241, 0.92);
  border: 1px solid rgba(250, 247, 241, 0.55);
  color: #2B2A26;
}
.contact-hero-form-wrap .form-group input { border-radius: 999px; padding: 15px 22px; }
.contact-hero-form-wrap .form-group textarea { border-radius: 24px; padding: 16px 22px; resize: vertical; min-height: 0; }
.contact-hero-form-wrap .form-group input:focus,
.contact-hero-form-wrap .form-group textarea:focus { background: #FDFBF7; border-color: #FAF7F1; }
.contact-hero-form-wrap .form-group input::placeholder,
.contact-hero-form-wrap .form-group textarea::placeholder { color: #8a938f; }
/* Liegt immer auf dem Foto, nicht auf der Seitenflaeche: helle Taste mit
   dunkler Schrift, in jedem Theme gleich. */
.contact-hero-submit {
  --btn-line: #FAF7F1;
  --btn-text: #FAF7F1;
  --btn-fill: #FAF7F1;
  --btn-text-on-fill: #2B2A26;
}
@media (max-width: 780px) {
  .contact-hero { min-height: auto; padding: 110px 20px 56px; }
  .contact-hero-photo--right { display: none; }
  .contact-hero-photo--left { -webkit-mask-image: none; mask-image: none; }
  .contact-hero-form-wrap .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-hero-photo, .contact-hero-h1, .contact-hero-desc, .contact-hero-form-wrap { animation: none; opacity: 1; transform: none; }
}

/* Kontaktdaten unter dem Formular: bewusst schlicht, in derselben
   Sprache wie die Kontaktspalte im Footer — Linien-Icon, kleine graue
   Beschriftung, Wert in normaler Schriftstaerke. Die frueheren gruen
   umrandeten Kacheln mit fetten Werten und Hover-Anhebung standen in
   Konkurrenz zum Formular darueber, das der eigentliche Zweck der
   Seite ist. */
.contact-details-section { padding-top: 48px; padding-bottom: 56px; }
.contact-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
}
.contact-facts--offices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 28px;
}
.contact-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.contact-fact-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-top: 2px;
}
.contact-fact-icon svg { display: block; width: 100%; height: 100%; }
.contact-fact-flag {
  flex: none;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border-2);
  margin-top: 5px;
}
.contact-fact-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-fact-label { font-size: 13.5px; color: var(--ink-3); }
.contact-fact-value {
  font-size: 16.5px;
  font-weight: 400;
  color: var(--ink-2);
  word-break: break-word;
  transition: color 0.2s ease;
}
/* Hover nur als Farbwechsel — kein Anheben, kein Schatten. */
a.contact-fact:hover .contact-fact-value { color: var(--green-d); }
@media (max-width: 900px) {
  .contact-facts, .contact-facts--offices { grid-template-columns: 1fr; gap: 18px; }
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.form-group input, .form-group textarea {
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg-subtle);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--surface);
}
.contact-form .btn-full { padding: 18px 30px; font-size: 16px; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  color: var(--green-d);
  font-weight: 600;
  font-size: 14.5px;
}
.form-success.show { display: flex; }
.form-error {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #fbe9e7;
  color: #a83a2c;
  font-weight: 600;
  font-size: 14.5px;
}
.form-error a { color: inherit; text-decoration: underline; }
.form-error.show { display: flex; }

/* ---------- Customer Card email-gate modal (about.html) — same
   overlay/backdrop/panel transition language as .brand-modal, just a
   small form instead of a brand profile. ---------- */

/* ---------- CTA band ---------- */
.cta-band {
  padding: 64px 0;
  background: var(--grad);
  text-align: center;
}
.cta-band-inner { max-width: 620px; margin: 0 auto; padding: 0 24px; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 38px); color: var(--white); margin: 0 0 14px; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0 0 32px; font-size: 16.5px; }
.cta-band .btn {
  --btn-line: rgba(255,255,255,0.75);
  --btn-text: var(--white);
  --btn-fill: var(--white);
  --btn-text-on-fill: var(--green-d);
}
.cta-band .btn:hover,
.cta-band .btn:focus-visible { border-color: var(--white); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-subtle);
  border-top: 3px solid transparent;
  border-image: var(--grad) 1;
  padding: 70px 0 26px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 60px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--ink-2); font-size: 14.5px; margin: 14px 0 10px; max-width: 320px; }
.footer-logo img { height: 44px; }
.footer-founded { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 18px; }
.footer-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.footer-col-title { font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 16px; }
.footer-col a { display: block; text-decoration: none; color: var(--ink-2); font-size: 14.5px; margin-bottom: 12px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--green-d); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13.5px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { text-decoration: none; color: var(--ink-3); }
.footer-legal a:hover { color: var(--green-d); }

/* standorte.html / en/locations.html only: credit line for the two
   Wikimedia Commons office photos (see the HTML comment above this
   element for full author/license/source detail per photo). */
.footer-photo-credits { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.footer-photo-credits a { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--border-2); }
.footer-photo-credits a:hover { color: var(--green-d); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
}
@media (max-width: 560px) {
  .footer-links-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Markets page — pinned/snapped product-category scenes
   One category fills the viewport at a time; js/category-pin.js pins
   .cat-pin-viewport with GSAP ScrollTrigger (native scroll drives it —
   wheel/trackpad/keyboard/touch all just work) and snaps to each of
   the 6 .cat-slide "pages", running the enter/exit transition itself
   via GSAP. This CSS only sets up the resting/stacked states; the
   motion in between is inline styles from GSAP, not CSS transitions.
   On mobile / reduced-motion / no-JS, js/category-pin.js adds
   .is-stacked to the section and the whole thing degrades to plain
   stacked sections with a simple IntersectionObserver fade — see the
   rules at the bottom of this block. ========================================================================== */
.cat-pin-section { padding: 90px 0 0; background: var(--surface); }
.cat-pin-header { max-width: 640px; margin: 0 auto 50px; text-align: center; }

.cat-pin-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--surface);
}

.cat-pin-progress {
  position: absolute;
  right: clamp(14px, 2.5vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-pin-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: var(--surface);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.cat-pin-dot:hover { border-color: var(--green); }
.cat-pin-dot.is-active { background: var(--green); border-color: var(--green); transform: scale(1.35); }

.cat-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cat-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }

.cat-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px) saturate(1.05);
  opacity: 0;
  transform: scale(1.04);
}
.cat-slide-bg::after { content: ''; position: absolute; inset: 0; background: var(--surface); opacity: 0.78; }
.cat-slide.is-active .cat-slide-bg { opacity: 1; } /* actual 15-25% visible strength comes from the ::after overlay above, not this opacity */

.cat-slide-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: 100%;
}
.cat-slide-media { order: 1; }
.cat-slide-media img {
  width: 100%;
  height: clamp(260px, 46vh, 460px);
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 3px solid var(--green);
  box-shadow: var(--shadow-lg);
}
.cat-slide-text { order: 2; }
.cat-slide-reverse .cat-slide-media { order: 2; }
.cat-slide-reverse .cat-slide-text { order: 1; }

.cat-slide-text h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw + 1vh, 36px);
  line-height: 1.15;
  margin: 0 0 clamp(6px, 1.2vh, 10px);
  color: var(--ink);
}
/* Normale Schreibweise statt Versalien: gesperrte Grossbuchstaben
   lasen sich wie ein Etikett ueber der Ueberschrift und standen in
   Konkurrenz zu ihr. Als kleine gruene Unterzeile ordnet sich die
   Zeile der Ueberschrift unter. */
.cat-slide-claim {
  font-weight: 700;
  font-size: clamp(12px, 0.9vw + 0.55vh, 13.5px);
  color: var(--green-d);
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 clamp(10px, 2vh, 18px);
}
.cat-slide-desc {
  font-size: clamp(14px, 0.7vw + 0.8vh, 15.5px);
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 clamp(10px, 2vh, 18px);
  max-width: 480px;
}
.cat-slide-products {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
  margin: 0 0 clamp(10px, 2vh, 16px);
  padding: 0;
}
.cat-slide-products li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 5px 12px;
}
.cat-slide-brands { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.cat-slide-brands strong { color: var(--ink); }

/* ============================================================
   Product showcase — a studio-shoot style cut-out product shot: a
   soft ground shadow and a fading reflection directly under the
   product, on a plain light studio background, replacing the
   framed photo inside a .cat-slide-media. Built as a standalone,
   reusable component (.product-showcase) — swap only the two
   <img src> + alt text to move another category to the same
   treatment later.

   Entrance (opacity/translateY/scale) animates the whole
   .product-showcase__stage as one unit, so the image, its
   reflection and its shadow move together — keyed off
   .cat-slide.is-active (desktop pin) / .in-view (mobile stacked
   fallback), the same classes js/category-pin.js already toggles.
   Once settled, the scene is static — no idle animation.

   The extra .product-showcase/.product-showcase__stage ancestor
   classes on the __img/__reflection selectors below are there only
   to out-specificity the shared `.cat-slide-media img` framing
   (border/box-shadow/fixed height/object-fit:cover) that the other
   5 categories' plain photos still use — that shared rule itself is
   untouched, so those 5 scenes are unaffected.
   ============================================================ */

/* Plain, light studio ground instead of the blurred category photo —
   scoped to this one slide's .cat-slide-bg via the modifier class, so
   the other 5 categories' blurred-photo background is untouched. */
.cat-slide-bg-studio {
  background-image: none;
  background: linear-gradient(to bottom, var(--surface) 0%, var(--surface) 55%, var(--surface-2) 100%);
}
.cat-slide-bg-studio::after { opacity: 0; }

.cat-slide-media-product { display: flex; align-items: center; justify-content: center; }

.product-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.product-showcase__stage {
  position: relative;
  width: 58%;
  max-width: 460px;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-slide.is-active .product-showcase__stage,
.cat-pin-section.is-stacked .cat-slide.in-view .product-showcase__stage {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-showcase .product-showcase__stage .product-showcase__img,
.cat-pin-section.is-stacked .product-showcase .product-showcase__stage .product-showcase__img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
}

/* Reflection: the very same image, mirrored directly beneath the
   product and masked out after about a third of its height — not a
   second, boxed copy. */
.product-showcase .product-showcase__stage .product-showcase__reflection,
.cat-pin-section.is-stacked .product-showcase .product-showcase__stage .product-showcase__reflection {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 100%;
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
  transform: scaleY(-1);
  opacity: 0.12;
  filter: blur(1px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 35%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 35%);
  pointer-events: none;
}

/* Contact shadow, positioned right under the lying tube (left/right
   insets, not a centered fixed width) — slightly stronger toward the
   cap end via the gradient's own left-ish focal point. */
.product-showcase__shadow {
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 8%;
  bottom: -4%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 50%, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.1) 45%, transparent 72%);
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .product-showcase__stage { transition: opacity 0.6s ease; transform: none !important; }
  .cat-slide.is-active .product-showcase__stage,
  .cat-pin-section.is-stacked .cat-slide.in-view .product-showcase__stage { opacity: 1; }
}

/* ============================================================
   Product showcase — GROUP variant (Waschmittel). Builds on the
   single-item .product-showcase above — same studio background,
   same reset strategy against the shared `.cat-slide-media img`
   framing. Originally a three-item layout (Burti/Milwa/Gama); as of
   2026-10 reduced to Gama only, sized to ~40-45% of the column
   width via a plain width percentage (not the old height-driven
   sizing, which existed to keep three differently-shaped products
   reading as the same size) and centred both horizontally and
   vertically in the stage. Entrance (opacity/translateY), the
   reflection and the contact shadow are unchanged from before; this
   stays its own modifier class so the single-item .product-showcase
   rules (Kosmetik) are unaffected.
   ============================================================ */
.product-showcase--group {
  perspective: 1400px;
}
.product-showcase--group .product-showcase__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 55vh;
  max-height: 460px;
  min-height: 280px;
  /* The group's items animate themselves individually (below) —
     the shared stage itself stays put, aside from the optional
     mouse-parallax tilt js/category-product.js applies inline. */
  opacity: 1;
  transform: none;
  transition: none;
}

.product-showcase__item {
  position: relative;
  flex-shrink: 0;
  transform-origin: bottom center;
  opacity: 0;
  transform: translateY(24px) scale(1);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-slide.is-active .product-showcase__item,
.cat-pin-section.is-stacked .cat-slide.in-view .product-showcase__item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-showcase--group .product-showcase__item {
  width: 42%;
}
/* Bier (vier Neunspringer-Flaschen) nutzt dieselbe Gruppen-Variante
   wie Gama. Das Motiv ist breiter als das Gama-Bild, deshalb eine
   eigene Breite innerhalb der geforderten 45-55 % der Spalte — bei
   50 % steht die Gruppe gleich groß im Bild wie Gama, ohne dass die
   Stage-Höhe (max. 460px) etwas abschneidet. */
.product-showcase--bier .product-showcase__item {
  width: 50%;
}
/* Vier nebeneinander stehende Flaschen brauchen einen breiteren,
   etwas tiefer liegenden Kontaktschatten als Gamas kompakter
   Pod-Haufen — sonst verschwindet er komplett hinter dem Motiv. */
.product-showcase--bier .product-showcase__item .product-showcase__shadow {
  left: 7%;
  right: 7%;
  bottom: -1%;
  height: 7%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.26) 34%, transparent 72%),
    radial-gradient(ellipse at 62% 58%, rgba(0, 0, 0, 0.12) 0%, transparent 74%);
  filter: blur(3px);
}
.product-showcase--group .product-showcase__item > picture {
  display: block;
}
.product-showcase--group .product-showcase__item .product-showcase__img,
.cat-pin-section.is-stacked .product-showcase--group .product-showcase__item .product-showcase__img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
}

.product-showcase--group .product-showcase__item .product-showcase__reflection,
.cat-pin-section.is-stacked .product-showcase--group .product-showcase__item .product-showcase__reflection {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 100%;
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
  transform: scaleY(-1);
  opacity: 0.07;
  filter: blur(1px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 28%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 28%);
  pointer-events: none;
}

/* Contact shadow: narrow and dark right at the base (barely
   blurred), layered with a softer cast shadow falling back/right —
   as if lit from the front-left. */
.product-showcase--group .product-showcase__item .product-showcase__shadow {
  position: absolute;
  z-index: 0;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 9%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.35) 22%, transparent 65%),
    radial-gradient(ellipse at 64% 55%, rgba(0, 0, 0, 0.13) 0%, transparent 70%);
  background-repeat: no-repeat;
  filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
  .product-showcase__item { transition: opacity 0.6s ease; transform: none !important; }
  .cat-slide.is-active .product-showcase__item,
  .cat-pin-section.is-stacked .cat-slide.in-view .product-showcase__item { opacity: 1; }
}

/* ============================================================
   Product showcase — FLOAT variant (Putz- & Haushaltsmittel:
   Poliboy left/higher, Heitmann right/lower and in front). Unlike
   the grounded single-item and group variants above, these two
   hang in the air over the studio floor: a soft ellipse shadow is
   cast ON the floor some distance below each one (not a contact
   shadow, and no reflection — floating objects don't have one),
   and — unlike Kosmetik/Waschmittel — a slow idle float is kept
   here deliberately (js/category-product.js), each item on its own
   rhythm, synced with its shadow (smaller/lighter while lifted,
   bigger/darker while lowered). Same studio background and the
   same .cat-slide-media img reset strategy as the other variants;
   none of this applies without the --float modifier.
   ============================================================ */
.product-showcase--float .product-showcase__stage {
  position: relative;
  width: 80%;
  max-width: 640px;
  height: 58vh;
  max-height: 480px;
  min-height: 320px;
  opacity: 1;
  transform: none;
  transition: none;
}
.product-showcase--float .product-showcase__item {
  position: absolute;
  opacity: 0;
  transform: translateY(30px) rotate(0deg);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-slide.is-active .product-showcase--float .product-showcase__item,
.cat-pin-section.is-stacked .cat-slide.in-view .product-showcase--float .product-showcase__item {
  opacity: 1;
}
/* Once js/category-product.js takes over `transform` for the idle
   float, switch to an opacity-only transition so the rAF loop never
   fights the entrance transition for the same property. */
.product-showcase--float .product-showcase__item.is-live { transition: opacity 0.5s ease; }
.product-showcase__item--poliboy { left: 26%; bottom: 23%; height: 62%; z-index: 2; }
.cat-slide.is-active .product-showcase__item--poliboy,
.cat-pin-section.is-stacked .cat-slide.in-view .product-showcase__item--poliboy {
  transform: translateY(0) rotate(-9deg);
}
.product-showcase__item--heitmann { left: 44%; bottom: 19%; height: 60%; z-index: 3; transition-delay: 0.15s; }
.cat-slide.is-active .product-showcase__item--heitmann,
.cat-pin-section.is-stacked .cat-slide.in-view .product-showcase__item--heitmann {
  transform: translateY(0) rotate(7deg);
}

.product-showcase--float .product-showcase__item .product-showcase__img,
.cat-pin-section.is-stacked .product-showcase--float .product-showcase__item .product-showcase__img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
}

/* Ground shadow: a soft ellipse ON the floor, well below the
   product's own underside — not a contact shadow, no reflection.
   Positioned (not transformed) so the idle-float loop can scale it
   freely without fighting a resting transform. */
.product-showcase--float .product-showcase__shadow {
  position: absolute;
  z-index: 1;
  bottom: 6%;
  width: 34%;
  height: 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.08) 55%, transparent 78%);
  filter: blur(9px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-slide.is-active .product-showcase--float .product-showcase__shadow,
.cat-pin-section.is-stacked .cat-slide.in-view .product-showcase--float .product-showcase__shadow {
  opacity: 1;
}
.product-showcase__shadow--poliboy { left: 23%; transition-delay: 0s; }
.product-showcase__shadow--heitmann { left: 39%; bottom: -2%; transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .product-showcase--float .product-showcase__item { transition: opacity 0.6s ease; transform: none !important; }
  .cat-slide.is-active .product-showcase--float .product-showcase__item,
  .cat-pin-section.is-stacked .cat-slide.in-view .product-showcase--float .product-showcase__item { opacity: 1; }
  .product-showcase--float .product-showcase__shadow { transition: opacity 0.6s ease; }
}

@media (max-width: 900px) and (min-width: 769px) {
  .cat-slide-inner { gap: 36px; }
}

/* ---------- Stacked fallback: mobile (<768px), prefers-reduced-motion,
   or no-JS. Added as .is-stacked on .cat-pin-section by category-pin.js
   (and present by default if that script never runs at all). -------- */
.cat-pin-section.is-stacked .cat-pin-viewport { height: auto; overflow: visible; }
.cat-pin-section.is-stacked .cat-pin-progress { display: none; }
.cat-pin-section.is-stacked .cat-slide {
  position: static;
  display: flex;
  opacity: 0;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.cat-pin-section.is-stacked .cat-slide:first-child { border-top: none; }
.cat-pin-section.is-stacked .cat-slide.in-view { opacity: 1; transform: translateY(0); }
.cat-pin-section.is-stacked .cat-slide-inner { grid-template-columns: 1fr; gap: 24px; }
.cat-pin-section.is-stacked .cat-slide-media,
.cat-pin-section.is-stacked .cat-slide-reverse .cat-slide-media { order: 1; }
.cat-pin-section.is-stacked .cat-slide-text,
.cat-pin-section.is-stacked .cat-slide-reverse .cat-slide-text { order: 2; }
.cat-pin-section.is-stacked .cat-slide-media img { height: 240px; }
.cat-pin-section.is-stacked .cat-slide-desc { max-width: 100%; }

/* ==========================================================================
   About page — SVG trade-network map (js/network-map.js +
   js/network-data.js), built once with d3-geo + topojson-client +
   world-atlas country borders. Scoped entirely under .network-map-*/.nm-*,
   so it can't affect anything else on the site. Every animation here is
   plain CSS (stroke-dashoffset / opacity / transform) — no scroll or
   animation-frame listener ever runs after the map is built.
   ========================================================================== */
/* standorte.html / en/locations.html — the hero and the trade-network
   section are deliberately pulled apart: the hero clips its own
   watermark arc so it cannot bleed into the section below, a hairline
   in brand green sits roughly in the middle of the gap, and heading +
   subtitle are centred with the subtitle capped at 720px. */
.page-hero--clipped { overflow: hidden; }
.section-rule {
  height: 0;
  border: 0;
  border-top: 1px solid rgba(107, 168, 52, 0.3);
  margin: 18px 0;
}

/* Only the heading lives here now — the map itself is the first panel
   of the pinned office sequence below, so no bottom padding that would
   push dead space in front of it. */
.network-map-section {
  padding: 32px 0 48px;
  background: var(--bg-white);
}
.network-map-header { text-align: center; max-width: 820px; margin: 0 auto; }
/* Die Standard-.section-h2 ist mit clamp(28px, 3.6vw, 42px) exakt so
   gross wie die H1 dieser Seite (clamp(28px, 3.8vw, 42px) ab
   .page-hero-compact) — zwei gleich grosse Ueberschriften direkt
   untereinander lasen sich wie zwei gleichwertige Einstiege. Hier
   deshalb rund 64 % der H1, damit die Rangfolge sichtbar ist. */
.network-map-header .section-h2 { font-size: clamp(22px, 1.9vw, 27px); }
.network-map-header .section-desc { margin: 0 auto; max-width: 640px; font-size: 16px; }

.network-map-stage {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 2 / 1;
  /* Clips the intro's slightly zoomed-out map to the same box it
     settles into, and fades the map softly into the section background
     on all four sides. */
  overflow: hidden;
  mask-image:
    linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
  mask-composite: intersect;
}

/* Flat from directly above — no 3D tilt, and the projection inside is
   computed exactly once. The intro only ever animates this element's
   own transform: scale() and opacity (see setIntro in
   js/network-map.js), never the projection.

   Default is the FINISHED state: full opacity, no zoom. If the
   sequence script never runs (no JS, GSAP missing, an error during
   init) the map is simply there, complete. Only once js/office-pin.js
   has actually taken over does the map module write the intro's start
   values — see setIntro() in js/network-map.js. */
.network-map-svg {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform-origin: center center;
}

/* Globe intro layer — a square svg laid over the flat map (see
   createGlobe in js/network-map.js). Its own viewBox is square and it
   uses preserveAspectRatio "meet", so it scales to the smaller side of
   this box and stays perfectly circular whatever the stage's own
   proportions are. Hidden entirely until the scroll sequence takes it
   over, so a page without the sequence never shows it. */
.nm-globe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform-origin: center center;
  pointer-events: none;
}
/* The ocean carries the same tint the flat map's non-target countries
   use, so the disc reads as a sphere against the white section and the
   two stages of the intro stay in the same palette. */
.nm-globe-sphere { fill: var(--green-tint); }
.nm-globe-land { fill: var(--green-l); }
.nm-globe-borders {
  fill: none;
  stroke: var(--surface);
  stroke-width: 0.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Countries */
.nm-country {
  fill: var(--green-tint);
  stroke: var(--surface);
  stroke-width: 0.6;
  transition: fill 0.5s ease;
}
.nm-country.is-target { fill: var(--green-l); }
.nm-country.is-target.is-active { fill: var(--green); }
.nm-country.is-interactive { cursor: pointer; }
.nm-country.is-interactive:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.nm-country.is-target.is-region-hover { fill: var(--blue); transition: fill 0.25s ease; }

/* Region labels — dezent text standing in for individual country names,
   hovering/focusing one highlights every country in its group(s). */
.nm-region-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  fill: var(--ink-2);
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.2s ease, fill 0.2s ease;
}
.nm-region-label:hover,
.nm-region-label:focus-visible { opacity: 1; fill: var(--blue); }
.nm-region-label:focus-visible { outline: none; }
.nm-region-label.is-minor { font-size: 9.5px; font-weight: 600; opacity: 0.6; letter-spacing: 0.03em; }
.nm-region-label.is-minor:hover,
.nm-region-label.is-minor:focus-visible { opacity: 0.9; }
/* While the intro is being scrubbed the opacity is written per frame
   from the scroll position, so the easing transition would only lag
   behind it. */
.network-map-svg.is-animating .nm-region-label { transition: fill 0.2s ease; }

/* Routes — drawn in once via stroke-dashoffset (is-drawing), then switch
   to a small dash pattern that flows forever (is-flowing). */
.nm-route {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: 0.82;
}
.nm-route.is-main { stroke-width: 1.6; }
.nm-route.is-drawing { animation: nm-draw 1.3s cubic-bezier(.65,0,.35,1) forwards; }
.nm-route.is-flowing { animation: nm-flow 2.2s linear infinite; }
@keyframes nm-draw { to { stroke-dashoffset: 0; } }
@keyframes nm-flow { to { stroke-dashoffset: var(--nm-flow-offset, -14px); } }

/* Small terminal dot where a route stops just short of its target, so
   the line never runs into the country's centre or a region label. */
.nm-route-end {
  fill: var(--ink);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.nm-route-end.is-visible { opacity: 0.82; }
.nm-route-end.is-main { fill: var(--ink); }

/* Office markers — permanent label, pulse starts once .is-animating is
   added to the <svg> (after the map itself has faded in). */
.nm-office-core { fill: var(--blue); stroke: var(--surface); stroke-width: 1.4; }
.nm-office-pulse {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.nm-office {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.nm-office.is-visible { opacity: 1; transform: translateY(0); }
.network-map-svg.is-animating .nm-office.is-visible .nm-office-pulse {
  animation: nm-pulse 2.6s ease-out infinite;
}
@keyframes nm-pulse {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.8); }
}
.nm-office-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.nm-office-core.is-interactive { cursor: pointer; }
.nm-office-core.is-interactive:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nm-office-label tspan.nm-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  fill: var(--ink-2);
}

/* Brand-origin marker (Spain) */
.nm-origin { fill: var(--green-d); stroke: var(--surface); stroke-width: 1.2; cursor: pointer; }
.nm-origin:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.network-map-tooltip {
  position: absolute;
  z-index: 5;
  left: 0; top: 0;
  transform: translate(-50%, calc(-100% - 12px));
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  max-width: 220px;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.network-map-tooltip strong { display: block; font-family: var(--font-display); font-size: 13.5px; margin-bottom: 2px; }
.network-map-tooltip .nm-tooltip-label { display: block; margin-top: 6px; font-weight: 700; color: var(--white); }

.network-map-legend {
  position: absolute;
  /* Bottom-left, but nudged right of the Spain origin marker (~x:65 of
     the rendered map) so the box sits in the empty Atlantic/North-Africa
     gap instead of covering that marker and its route. */
  left: 110px; bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0; padding: 14px 18px;
  list-style: none;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  backdrop-filter: blur(6px);
}
.network-map-legend li { display: flex; align-items: center; gap: 10px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-dot-office { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.legend-dot-origin { background: var(--green-d); }
.legend-dot-target { background: var(--green-l); }
.legend-line { width: 16px; height: 0; border-top: 2px dashed var(--ink); flex-shrink: 0; opacity: 0.82; }

@media (max-width: 900px) {
  .network-map-legend {
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translateX(-50%);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    width: calc(100% - 24px);
    max-width: 320px;
    padding: 10px 14px;
    font-size: 11.5px;
  }
  .nm-office-label { font-size: 11px; }
  .nm-office-label tspan.nm-sub { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .network-map-svg { opacity: 1 !important; transition: none !important; }
  .nm-office { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nm-route { animation: none !important; }
  .nm-office-pulse { animation: none !important; opacity: 0 !important; }
}

/* ==========================================================================
   Theme-Feinschliff
   Stellen, an denen ein reiner Token-Tausch nicht reicht: fremde Logos
   brauchen auf dunklem Grund eine helle Flaeche, Spiegelungen und Schatten
   muessen zurueckgenommen werden.
   ========================================================================== */

/* Fremdlogos: auf Creme und Dark auf einer eigenen hellen Kachel, damit die
   mehrfarbigen Marken-Logos lesbar bleiben. Das TM-Logo im Header bleibt
   unberuehrt — es liegt ohnehin auf --surface. */
:root[data-theme="dark"] .brand-card { background: var(--logo-plate); }
:root[data-theme="dark"] .brand-card .brand-card-name,
:root[data-theme="dark"] .brand-card .brand-card-link { color: #16191c; }
.logo-chip {
  background: var(--logo-plate);
  border: 1px solid var(--logo-plate-border);
  border-radius: 12px;
  padding: 0 24px;
}
:root[data-theme="dark"] .brand-modal-logo-badge { background: var(--logo-plate); }

/* Herstellerkarte (markets.html): die Logos sitzen direkt auf der Badge-
   Flaeche, die im Dark Mode dunkel ist. Viele Herstellerlogos sind
   freigestellte PNGs mit dunkler Schrift und verschwinden dort — Rosental
   war gar nicht mehr zu sehen. Nur die Logos bekommen deshalb eine helle
   Platte; der Kasten bleibt dunkel, damit der Markenname darunter hell
   lesbar bleibt. */
:root[data-theme="dark"] .pm-badge-logos {
  background: var(--logo-plate);
  border-radius: 3px;
  padding: 4px 7px;
}
:root[data-theme="dark"] .partner-map.is-compact .pm-badge-logos { padding: 3px 5px; }
:root[data-theme="dark"] .partner-country-layout.is-open .pm-badge-logos { padding: 3px 5px; }

/* Kennzahlen-Karten (about.html): die Karte setzt ihre Textfarben ueber
   zwei eigene, fest verdrahtete Variablen. Die sind fuer helle Karten
   gedacht und blieben im Dark Mode dunkel auf dunkel — Zahlen und Labels
   waren praktisch unsichtbar. Hier nur die beiden Variablen auf die
   Theme-Tokens umbiegen; der Hover-Zustand (weiss auf --green-deep)
   funktioniert dadurch unveraendert weiter. */
:root[data-theme="dark"] .about-stat-card {
  --stat-ink:   var(--text);
  --stat-ink-2: var(--text-muted);
}

/* Standorte: das Aktobe-Panel lag auf einem fest verdrahteten hellen
   Gruenton (#f5faf0) und blieb damit im Dark Mode weiss, waehrend das
   Eschwege-Panel korrekt dunkel wurde. Heller Text auf heller Flaeche. */
:root[data-theme="dark"] .office-panel--tint { background: var(--tint-green-bg); }

/* Gleicher Fehler im Tooltip der Handelsnetzwerk-Karte: --ink zeigt im
   Dark Mode auf die helle Textfarbe, zusammen mit --white ergab das
   weisse Schrift auf fast weissem Grund. */
:root[data-theme="dark"] .network-map-tooltip {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
:root[data-theme="dark"] .network-map-tooltip .nm-tooltip-label { color: var(--text); }

/* Spiegelungen und Bodenschatten der freigestellten Produkte: auf dunklem
   Grund wirkt eine Spiegelung wie ein Fehler, deshalb stark reduziert. */
:root[data-theme="dark"] .product-showcase__reflection { opacity: 0.18; }
:root[data-theme="dark"] .product-showcase__shadow { opacity: 0.45; filter: blur(18px); }

/* Fotokacheln, Verlaufsbaender und alle Flaechen, die schon dunkel sind,
   bleiben unveraendert — dort ist Weiss auf Bild weiterhin richtig. */

/* ==========================================================================
   Theme-Umschalter im Header
   Ein Icon-Button rechts neben der Flagge: im Creme-Theme ein Mond (fuehrt
   nach Dark), im Dark-Theme eine Sonne (fuehrt nach Creme). Beide Icons
   liegen uebereinander, nur eines ist sichtbar — so laesst sich der Wechsel
   weich ueberblenden und drehen, statt das Icon hart auszutauschen.
   Logik in js/theme-switch.js, Erstzustand im Inline-Script im <head>.
   ========================================================================== */
.nav-theme-toggle {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}
.nav-theme-toggle:hover { color: var(--green-d); background: var(--surface-hover); }
.nav-theme-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.nav-theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
/* Creme: Mond sichtbar, Sonne weggedreht. Dark: umgekehrt. */
.nav-theme-icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.nav-theme-icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
:root[data-theme="dark"] .nav-theme-icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
:root[data-theme="dark"] .nav-theme-icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

/* Farbwechsel der Seite selbst weich halten, ohne jede Transition der
   Website zu ueberschreiben. */
body,
#navbar,
.nav-lang-menu,
.mobile-nav {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .nav-theme-icon { transition: opacity 0.01s; transform: none !important; }
  body, #navbar, .nav-lang-menu, .mobile-nav { transition: none; }
}

}
