/* LARsys-Automation GmbH — eigenes Stylesheet.
   Keine externen Fonts/CDNs: die CSP erlaubt nur 'self', der Type-Stack faellt
   also auf die UI-Schrift des Systems zurueck.

   Aufbau: Tokens -> Grundlagen -> Header -> Buttons -> Motion -> Hero ->
   Sektionen -> Bausteine (Karten, Feldbus-Strip, Team, Karriere, Kontakt,
   FAQ, CTA) -> Footer -> Prose -> Responsive.

   Basis ist clients/fhb/website/site/styles.css (Layout-Primitive: Header,
   Hero, Karten, Kontaktformular, Fussleiste, Prosa) -- kein Shop, wie dort.
   Das Motion-System (.reveal/.reveal-stagger, @keyframes rise-in) kommt 1:1
   aus clients/frm/website/site/styles.css. Farben und die neuen Bausteine
   (Team-Grid, Feldbus-Strip, Karriere-Kontaktkarte, Hinweiskasten) sind eigen. */

:root {
  /* Aus dem Kundenlogo gemessen (media/img/logo.webp): das kraeftige Rot der
     Kugel (#e20027) und ein kuehles Grau der Wortmarke "SYS Automation". Eine
     Spur dunkler fuer Flaechen/Buttons, damit weisse Schrift genug Kontrast hat. */
  --accent: #c2001f;
  --accent-deep: #970018;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
  --shadow: 0 1px 2px rgba(10, 14, 20, .06), 0 12px 32px -20px rgba(10, 14, 20, .3);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Hell ist die Voreinstellung -- technische/industrielle Optik wirkt hell
   aufgeraeumter (siehe theme.js). Kuehles Blaugrau statt der warmen Toene von
   fhb/frm, passend zur Elektronik-/Steuerungsbranche. */
:root,
:root[data-theme="light"] {
  --bg: #f4f6f8;
  --bg-2: #e9edf1;      /* getoente Sektion */
  --surface: #ffffff;
  --line: #dbe1e8;
  --line-strong: #bfc9d3;
  --text: #10151c;
  --text-dim: #4b5765;
  --text-faint: #76828f;
  --img-bg: #eaeef2;
  --accent: #c2001f;    /* auf Weiss braucht das Rot Tiefe (Kontrast >= 4.5:1) */
  --accent-deep: #970018;
}

:root[data-theme="dark"] {
  --bg: #0c1017;
  --bg-2: #121821;
  --surface: #151c26;
  --line: #263140;
  --line-strong: #37475a;
  --text: #e9eef4;
  --text-dim: #a9b5c3;
  --text-faint: #7c8896;
  --img-bg: #121821;
  --accent: #ff5b6e;
  --accent-deep: #e2002e;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.85rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.18rem; line-height: 1.3; }

p { margin: 0 0 1em; }

.lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--text-dim); max-width: 56ch; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.kicker {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-deep);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ header
   Zweistufig, siehe header() in build_site.py: eine schmale Servicezeile
   (.topbar) mit Telefon/E-Mail/Zertifizierung/Farbschema, die beim Scrollen
   weglaeuft, darunter die klebrige Hauptreihe (.top) mit Logo, Navigation
   und einer Handlungsschaltflaeche. Die Navigation bricht NIE um
   (flex-wrap: nowrap) -- reicht der Platz nicht, uebernimmt ab 1100px das
   Klappmenue. */

.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.topbar-contact,
.topbar-meta { display: flex; align-items: center; gap: 2px; min-width: 0; }
.topbar-meta { gap: 8px; }

.topbar a,
.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: 7px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-dim);
}
.topbar a { transition: color .18s var(--ease), background-color .18s var(--ease); }
.topbar a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.topbar-note { color: var(--text-faint); padding-right: 2px; }
.topbar svg { width: 15px; height: 15px; flex: none; color: var(--accent); }

/* Schaltflaeche ohne Rahmen -- in der Servicezeile waere ein 42px-Kasten wie
   im Hauptbalken zu schwer. */
.ghost-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.ghost-btn:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.ghost-btn svg { width: 17px; height: 17px; color: currentColor; }

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

/* Das Logo hat echte Alpha-Transparenz; die graue Wortmarke steht in beiden
   Farbschemata auf einer eigenen weissen Karte -- so bleibt sie im
   Dunkelmodus lesbar, ohne eine zweite Bilddatei zu brauchen. */
.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  border: 1px solid var(--line);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.brand:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.brand img { height: 30px; width: auto; flex: none; display: block; }

.nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; }

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-dim);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
/* Der Akzentstrich waechst aus der linken Kante -- dieselbe Markierung fuer
   Hover (halbtransparent) und aktive Seite (voll), damit nichts springt. */
.nav a::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 3px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav a:hover::after { opacity: .4; transform: scaleX(1); }
.nav a[aria-current] { color: var(--text); }
.nav a[aria-current]::after { opacity: 1; transform: scaleX(1); }

.top-actions { display: flex; align-items: center; gap: 8px; }

/* Genau EINE rote Schaltflaeche im Kopf: der Telefonknopf von frueher stand
   direkt neben der Kontakt-Pille und hat mit ihr um dieselbe Aufmerksamkeit
   konkurriert. Die Nummer steht jetzt als ruhiger Link in der Servicezeile. */
.head-cta { white-space: nowrap; }
.nav .nav-cta { display: none; }

.icon-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 19px; height: 19px; }

:root[data-theme="dark"] .i-moon { display: none; }
:root:not([data-theme="dark"]) .i-sun { display: none; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: var(--accent-deep);
  --btn-fg: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), box-shadow .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), transform .1s var(--ease);
}
.btn:hover { box-shadow: 0 8px 22px -12px rgba(151, 0, 24, .8); }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { box-shadow: none; border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 9px 15px; font-size: .9rem; border-radius: 9px; }

/* ------------------------------------------------------------------ motion
   Zwei Muster, siehe clients/frm/website/site/styles.css fuer die
   ausfuehrliche Begruendung: (1) Hero/Seitenkopf blenden per @keyframes beim
   Laden ein -- braucht kein JS. (2) Weiter unten liegende Bloecke
   (.reveal/.reveal-stagger) blenden erst beim Scrollen ein (app.js,
   IntersectionObserver); ohne JS greift die <noscript>-Regel in head(). */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero .eyebrow, .hero h1, .hero .lead, .hero-cta,
.page-hero .kicker, .page-hero h1, .page-hero .lead, .page-hero-cta {
  animation: rise-in .7s var(--ease) both;
}
.hero h1, .page-hero h1 { animation-delay: .06s; }
.hero .lead, .page-hero .lead { animation-delay: .13s; }
.hero-cta, .page-hero-cta { animation-delay: .2s; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .05s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .1s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .15s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .2s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .25s; }
.reveal-stagger.in-view > *:nth-child(n+7) { transition-delay: .3s; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 9vw, 112px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero::before {
  background: url("img/hero-fertigung.webp") center 42% / cover no-repeat;
}
.hero::after {
  background:
    linear-gradient(96deg, rgba(8, 10, 14, .87) 0%, rgba(8, 10, 14, .79) 26%,
                    rgba(8, 10, 14, .63) 48%, rgba(8, 10, 14, .44) 68%,
                    rgba(8, 10, 14, .3) 85%, rgba(8, 10, 14, .26) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, .3) 0%, rgba(8, 10, 14, .08) 40%,
                    rgba(8, 10, 14, .4) 100%);
}

.hero-inner { max-width: 720px; }
.hero h1 { color: #fff; max-width: 20ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero .lead {
  color: #eef1f5;
  max-width: 52ch;
  margin-bottom: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 15px;
  border-radius: 999px;
  color: #ffd0d6;
  background: rgba(9, 10, 13, .55);
  border: 1px solid rgba(255, 208, 214, .38);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff5b6e;
  box-shadow: 0 0 0 4px rgba(255, 91, 110, .25);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost,
.page-hero.has-img .btn-ghost {
  --btn-fg: #ffffff;
  --btn-bg: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(4px);
}
.hero .btn-ghost:hover,
.page-hero.has-img .btn-ghost:hover {
  --btn-bg: rgba(255, 255, 255, .2);
  border-color: #fff;
  color: #fff;
}

.factbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px clamp(18px, 3vw, 34px);
}
.stat { min-width: 0; padding: clamp(20px, 3vw, 30px) 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(18px, 3vw, 34px); }
.stat b {
  display: block;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  letter-spacing: -.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}
.stat span { font-size: .88rem; color: var(--text-dim); }

/* ------------------------------------------------------------------ sections */

section { padding: var(--section) 0; }
.section-alt { background: var(--bg-2); }

.head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 44px); }
.head p { color: var(--text-dim); margin-bottom: 0; }
.head h2 { margin-bottom: .35em; }

/* ------------------------------------------------------------------ cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* Vier Kacheln: im auto-fit-Raster oben ergaeben sie 3+1 mit einer
   einsamen vierten Kachel. Als 2x2 stehen sie als Block -- und die Bilder
   duerfen groesser werden, weil nur zwei Spalten nebeneinander liegen. */
.cards-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: var(--accent); box-shadow: 0 14px 34px -22px rgba(10, 14, 20, .5); }

.card-media { aspect-ratio: 4 / 3; background: var(--img-bg); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-body h3 { margin-bottom: .4em; font-size: 1.05rem; }
.card-body p { color: var(--text-dim); font-size: .95rem; margin-bottom: 16px; }

.card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .93rem;
  color: var(--accent);
}
.card-more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .card-more svg { transform: translateX(4px); }

.cards-note {
  max-width: 62ch;
  margin: clamp(22px, 3vw, 32px) 0 0;
  color: var(--text-dim);
  font-size: .98rem;
}
.cards-note a { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------------ about */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split img { border-radius: var(--radius); background: var(--img-bg); }
.split p { color: var(--text-dim); }

.seal-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 20px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  color: var(--accent-deep);
  font-size: .86rem;
  font-weight: 700;
}
:root[data-theme="dark"] .badge { color: var(--accent); }
.badge-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text-dim);
}

/* ------------------------------------------------------------- Feldbus-Strip */

/* Logos auf weissem/hellem Grund brauchen im Dunkelmodus eine eigene helle
   Karte -- gleiches Muster wie fhb's Markenstreifen. */
.brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.brands li {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.brands img { width: 100%; height: 46px; object-fit: contain; }

/* ------------------------------------------------------------------- team */

.person-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  text-align: center;
}
.person-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  background: var(--img-bg);
}
.person-card h3 { font-size: 1rem; margin-bottom: .2em; }
.person-card p { color: var(--text-dim); font-size: .88rem; margin: 0; }

/* --------------------------------------------------------------- karriere */

.contact-lines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.contact-lines li { display: flex; align-items: center; gap: 9px; font-size: .96rem; color: var(--text-dim); }
.contact-lines svg { width: 17px; height: 17px; flex: none; color: var(--accent); }
.contact-lines a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-lines a:hover { color: var(--accent); }

.badge-row { margin: 20px 0 0; }
.badge-img { width: 120px; height: auto; border-radius: var(--radius-sm); }

/* ------------------------------------------------------------------- shop
   (keine Vorlage hier -- aber .feature dient auch als Produkt-Kachel fuer die
   Kommunikationsmodul-/Bediengeraete-Blattseiten, siehe render_content().) */

/* ------------------------------------------------------------------ contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.info-card + .info-card { margin-top: 16px; }
.info-card h3 { font-size: 1.05rem; }
.partner-card { border-left: 3px solid var(--accent); }

.addr { font-style: normal; color: var(--text-dim); }
.addr strong { color: var(--text); }

.hours { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: var(--text-dim); }
.hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.hours strong { color: var(--text); }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.social-row svg { width: 15px; height: 15px; }

.geo-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
}
.geo-line .coords { font-family: var(--mono); font-size: .8rem; color: var(--text-faint); }

/* form */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 700; color: var(--text-dim); }
.field input,
.field textarea {
  font: inherit;
  font-size: .98rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--text-faint); margin: 0; }
.form-msg { font-size: .94rem; font-weight: 600; margin: 0; min-height: 1.4em; }
.form-msg[data-state="ok"] { color: #1c7a4b; }
.form-msg[data-state="err"] { color: #b3261e; }
:root[data-theme="dark"] .form-msg[data-state="ok"] { color: #58cf90; }
:root[data-theme="dark"] .form-msg[data-state="err"] { color: #ff8a7a; }

/* ------------------------------------------------------------------ CTA band */

.cta-band { background: var(--bg-2); border-top: 1px solid var(--line); }
.cta-inner { padding: clamp(44px, 7vw, 80px) var(--gutter); text-align: center; }
.cta-inner > div:first-child { max-width: 58ch; margin-inline: auto; }
.cta-inner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-inner p { color: var(--text-dim); }
.cta-note { font-size: .92rem; color: var(--text-faint); margin-bottom: 0; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 26px;
}

/* --------------------------------------------------------- weiter-Links */

.sib-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.sib-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: .96rem;
  color: var(--text-dim);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.sib-list a::before { content: "\203A"; color: var(--accent); font-weight: 800; }
.sib-list a:hover { border-color: var(--accent); color: var(--text); }

/* ------------------------------------------------------------------ footer */

.foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  font-size: .95rem;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--accent); }

.foot .legal .credit { flex-basis: 100%; }
.foot .legal .credit a { display: inline; padding: 0; }
.foot-route { margin: 12px 0 0; }
.foot-route a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
}
.foot-route a:hover { color: var(--accent); }
.foot-route svg { width: 15px; height: 15px; flex: none; }

.foot .legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: .86rem;
}

/* ------------------------------------------------------- crumbs + page hero */

.crumbs { border-bottom: 1px solid var(--line); font-size: .85rem; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  color: var(--text-faint);
}
.crumbs li + li::before { content: "\203A"; margin-right: 10px; color: var(--line-strong); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs li[aria-current] { color: var(--text); font-weight: 600; }

.page-hero {
  padding: clamp(40px, 6vw, 76px) 0 clamp(32px, 4vw, 56px);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 30ch; margin-bottom: .4em; }
.page-hero .lead { margin: 0; max-width: 60ch; }

.page-hero.has-img {
  position: relative;
  isolation: isolate;
  border-bottom: 0;
  background: var(--img-bg);
  padding: clamp(52px, 8vw, 104px) 0 clamp(44px, 6vw, 84px);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(8, 10, 14, .88) 0%, rgba(8, 10, 14, .78) 32%,
                    rgba(8, 10, 14, .6) 58%, rgba(8, 10, 14, .38) 82%,
                    rgba(8, 10, 14, .3) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, .3) 0%, rgba(8, 10, 14, .12) 45%,
                    rgba(8, 10, 14, .4) 100%);
}
.page-hero.has-img .kicker { color: #ffd0d6; }
.page-hero.has-img h1 { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.page-hero.has-img .lead {
  color: #eef1f5;
  max-width: 62ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
.page-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ------------------------------------------------------- Bild-Text-Reihen */

.feature {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.feature-text { max-width: 56ch; }
.feature-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--img-bg);
  padding: clamp(16px, 2vw, 28px);
}

/* ------------------------------------------------------------------ prose */

.prose-narrow { max-width: 68ch; }
.wrap.prose-narrow,
.wrap.prose { max-width: var(--maxw); }
.wrap.prose-narrow > * { max-width: 68ch; }
.wrap.prose > * { max-width: 70ch; }
.prose-narrow h2,
.prose-narrow h3,
.prose-narrow h4 {
  margin: 0 0 .5em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
}
.prose-narrow > :is(h2, h3, h4):first-child { padding-top: 0; border-top: 0; }
.prose-narrow p,
.prose-narrow div { color: var(--text-dim); margin-bottom: 1.4em; }
.prose-narrow p:last-child,
.prose-narrow div:last-child { margin-bottom: 0; }
.prose-narrow a { color: var(--accent); }
.prose-narrow ul { padding-left: 1.2em; color: var(--text-dim); margin-bottom: 1.4em; }
.prose-narrow li { margin-bottom: .4em; }
.prose-narrow strong { color: var(--text); }

/* Lange Kategorie-Einleitungen: erster Absatz sichtbar, Rest eingeklappt --
   echtes, crawlbares HTML (kein display:none), siehe split_intro(). */
.more summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .93rem;
  color: var(--accent);
  list-style: none;
  margin-top: -.6em;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; font-weight: 800; }
.more[open] summary::before { content: "\2212"; }
.more[open] summary { margin-bottom: 14px; }

.page { padding: var(--section) 0; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.prose p, .prose li { color: var(--text-dim); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 1.8em; }
.prose dt { font-weight: 700; color: var(--text); }
.prose dd { margin: 0; color: var(--text-dim); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--accent); }

.notice {
  max-width: 74ch;
  font-size: .92rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 0 0 32px;
}
.notice p { margin: 0; }
.notice strong { color: var(--text); }
.notice code {
  font-family: var(--mono);
  font-size: .92em;
  background: var(--bg-2);
  padding: .1em .35em;
  border-radius: 4px;
}

/* faq */
.faq { max-width: 70ch; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.04rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 9px; height: 9px;
  border-right: 2.2px solid var(--accent);
  border-bottom: 2.2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-body { padding: 0 4px 20px; max-width: 66ch; }
.faq-body p { color: var(--text-dim); margin: 0; }
.faq-body a { color: var(--accent); }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature-text { max-width: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Umbruchbreite der Navigation: unterhalb ~1054px reichen Logo + sieben
   Links + Kontakt-Knopf nicht mehr nebeneinander (gemessen). 1100px laesst
   Luft fuer breitere System-Schriften als die hier gemessene. */
@media (max-width: 1100px) {
  .nav-toggle { display: grid; }
  .head-cta { display: none; }
  .nav .nav-cta { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 10px; font-size: 1.02rem; border-radius: 9px; }
  .nav a::after { left: 10px; right: auto; width: 18px; bottom: 7px; }
  /* Im Klappmenue ist "Kontakt" wieder ein normaler Eintrag, keine Pille --
     eine vollbreite rote Flaeche im Auszug wirkt wie ein Fehler. */
  .nav .nav-cta { color: var(--accent); font-weight: 700; }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px 0; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(2n) { padding-left: clamp(18px, 4vw, 34px); border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Auf schmalen Geraeten traegt die Servicezeile nur noch die Kontaktwege. */
@media (max-width: 720px) {
  .cards-pair { grid-template-columns: 1fr; }
  .topbar-note { display: none; }
  .topbar { font-size: .78rem; }
  .topbar a { padding: 4px 7px; gap: 6px; }
}

@media (max-width: 460px) {
  .topbar-contact a:last-child span { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  h1, h2, h3 { hyphens: auto; }
  .prose dl { grid-template-columns: 1fr; gap: 2px 0; }
  .prose dt { margin-top: 12px; }
  .brand img { height: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
  .brands li { min-height: 60px; padding: 10px; }
  .brands img { height: 32px; }
  .hero-cta .btn,
  .page-hero-cta .btn,
  .cta-actions .btn { flex: 1 1 100%; }
}

@media print {
  .top, .foot, .hero::before, .hero::after, .form { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { text-decoration: none; }
}
