/* ==========================================================================
   TerraTransfer GmbH — Design System
   Modern, technical, water-themed. Brand: #1B3A5C / #3B7BBD / #F2F5F8
   ========================================================================== */

/* General Sans (Fontshare) for body + headings, JetBrains Mono for numeric values */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@300,400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --brand-900: #0E1F36;
  --brand-800: #14304E;
  --brand-700: #1B3A5C;     /* Primary */
  --brand-600: #25548A;
  --brand-500: #3B7BBD;     /* Accent */
  --brand-400: #6BA4DB;
  --brand-300: #A6C8E8;
  --brand-200: #D5E4F2;
  --brand-100: #EAF1F8;
  --brand-50:  #F2F5F8;

  /* Neutral */
  --ink-900: #0E1A2B;
  --ink-700: #2D3A4D;
  --ink-500: #5A6678;
  --ink-400: #8392A4;
  --ink-300: #B5BFCE;
  --ink-200: #DFE4EC;
  --ink-100: oklch(95% 0.01 220);
  --ink-50:  oklch(98% 0.008 220);  /* tinted */
  --white: oklch(99.5% 0.005 220);  /* gentle brand tint instead of pure #fff */

  /* Semantic */
  --teal: #0FB5A6;
  --aqua: #19A4C8;
  --warn: #E8A33B;
  --danger: #D9534F;

  /* Layout */
  --container: 1200px;
  --container-narrow: 960px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(14, 31, 54, 0.06);
  --shadow-sm: 0 2px 6px rgba(14, 31, 54, 0.06), 0 1px 2px rgba(14, 31, 54, 0.04);
  --shadow-md: 0 12px 28px -8px rgba(14, 31, 54, 0.12), 0 4px 8px -4px rgba(14, 31, 54, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(14, 31, 54, 0.18);

  /* Type */
  --font-sans: 'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  /* Long German/Dutch compound words must break gracefully in narrow columns */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--brand-900); margin: 0 0 .6em; hyphens: manual; -webkit-hyphens: manual; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-700); }
.lead { font-size: 1.18rem; color: var(--ink-700); line-height: 1.6; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}
.container-narrow { max-width: var(--container-narrow); }
section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-700);
  color: var(--white);
  box-shadow: 0 6px 18px -6px rgba(27, 58, 92, .35);
}
.btn-primary:hover { background: var(--brand-800); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(27, 58, 92, .45); }
.btn-secondary {
  background: var(--white);
  color: var(--brand-700);
  border-color: var(--ink-200);
}
.btn-secondary:hover { border-color: var(--brand-500); color: var(--brand-700); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--brand-700);
  padding-left: .4em; padding-right: .4em;
}
.btn-ghost:hover { color: var(--brand-800); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.nav-brand {
  display: flex; align-items: center; gap: .65rem;
  color: var(--brand-900);
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
}
.nav-brand:hover { color: var(--brand-700); }
.nav-brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  border-radius: 10px;
  color: white;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: .55em .85em;
  color: var(--ink-700);
  font-weight: 500; font-size: .96rem;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--brand-700); background: var(--ink-50); }
.nav-links a.active { color: var(--brand-700); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
/* Sprach-Dropdown (details/summary, kein JS) */
.lang-switch {
  position: relative;
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
}
.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .35em .6em;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  color: var(--ink-700);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .15s ease, color .15s ease;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::marker { content: ''; }
.lang-switch summary:hover { background: var(--ink-100); color: var(--brand-700); }
.lang-switch[open] summary { background: var(--white); color: var(--brand-700); box-shadow: var(--shadow-xs); }
.lang-switch .lang-chevron { transition: transform .15s ease; flex-shrink: 0; }
.lang-switch[open] .lang-chevron { transform: rotate(180deg); }
.lang-switch .lang-menu {
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  margin: 0;
  padding: .35rem;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 150px;
  z-index: 100;
}
.lang-switch .lang-menu li { margin: 0; padding: 0; }
.lang-switch .lang-menu a {
  display: block;
  padding: .5rem .8rem;
  color: var(--ink-700);
  text-decoration: none;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}
.lang-switch .lang-menu a:hover { background: var(--ink-50); color: var(--brand-700); }
.lang-switch .lang-menu a[aria-current="true"] { color: var(--brand-700); background: var(--ink-50); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--brand-900); flex-shrink: 0; }

@media (max-width: 920px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid var(--ink-100);
    box-shadow: var(--shadow-md);
    gap: .25rem;
    z-index: 99;
    /* Menü darf nie höher werden als der Viewport, sonst sind die unteren Einträge unerreichbar */
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .9em 1em; font-size: 1rem; border-radius: 8px; }
  /* Hamburger absolut rechts ankern — garantiert sichtbar, auch wenn Logo overflowed */
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: clamp(1rem, 3vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
    order: unset;
    z-index: 101;
  }
  .nav-inner { padding-right: 5rem; }     /* Platz freihalten für den absolut positionierten Toggle (40px Click-Area + bis zu 32px right-offset + Sicherheitsabstand) */
  .nav-cta { gap: .35rem; flex-shrink: 0; }
  /* Logo darf bei Bedarf schrumpfen (statt andere Elemente vom Header zu schubsen) */
  .nav-brand { min-width: 0; flex-shrink: 1; }
  .brand-logo { height: auto; max-height: 22px; max-width: 160px; width: auto; }
}
@media (max-width: 640px) {
  .nav-inner { gap: .4rem; padding-right: 4rem; }
  .brand-logo { max-height: 20px; max-width: 145px; }
  .nav-cta .btn-primary { display: none; }   /* Mobile: Demo-Button nur über Hamburger-Menü */
  /* .lang-switch bleibt sichtbar — Sprachwechsel direkt im Header */
}
@media (max-width: 480px) {
  .brand-logo { max-height: 18px; max-width: 110px; }
  .nav-inner { padding-right: 4rem; gap: .45rem; }
  .lang-switch { font-size: .78rem; }
  .lang-switch summary { padding: .3em .5em; }
  .theme-toggle { width: 32px; height: 32px; }
}
@media (max-width: 400px) {
  .brand-logo { max-height: 16px; max-width: 95px; }
  .nav-inner { padding-right: 3.75rem; gap: .4rem; }
}
@media (max-width: 360px) {
  .brand-logo { max-height: 14px; max-width: 82px; }
  .nav-inner { padding-right: 3.5rem; gap: .35rem; }
}
@media (max-width: 330px) {
  .brand-logo { max-height: 12px; max-width: 70px; }
  .nav-inner { padding-right: 3.25rem; gap: .3rem; }
  .lang-switch { font-size: .72rem; }
  .lang-switch summary { padding: .25em .4em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  /* Stufe-2 Mesh: 5 weiche radial-gradients in Brand-Blau, Teal, Aqua,
     übereinandergelegt für einen wasserig-weichen Hintergrund. Dezent,
     bleibt unter dem Text. */
  background:
    radial-gradient(900px 600px at 12% 18%, rgba(59, 123, 189, 0.22), transparent 55%),
    radial-gradient(800px 600px at 88% 12%, rgba(25, 164, 200, 0.18), transparent 55%),
    radial-gradient(700px 500px at 78% 78%, rgba(15, 181, 166, 0.16), transparent 55%),
    radial-gradient(600px 500px at 30% 88%, rgba(107, 164, 219, 0.14), transparent 55%),
    radial-gradient(500px 400px at 55% 50%, rgba(166, 200, 232, 0.12), transparent 60%),
    linear-gradient(180deg, #F4F8FC 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(27,58,92,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,58,92,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .35em .85em;
  background: var(--brand-100);
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(15,181,166,.18); }

.hero h1 { margin-bottom: 1rem; }
.hero h1 .gradient {
  /* Solide Brand-Color statt Gradient-Text (Impeccable absolute ban) */
  color: var(--brand-700);
  font-weight: 800;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.hero-trust {
  display: flex; gap: 1.4rem 2rem; flex-wrap: wrap;
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--ink-100);
  font-size: .88rem; color: var(--ink-500);
}
/* Inline-Stil: Wert + Label nebeneinander, kein Pseudo-Hero-Metric-Block */
.hero-trust > div { display: flex; align-items: baseline; gap: .45rem; }
.hero-trust strong { color: var(--brand-900); font-weight: 700; font-size: .95rem; }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 5.4;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, #DDEBF7 0%, #F2F7FB 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.6);
  overflow: hidden;
}
.hero-visual svg { width: 100%; height: 100%; display: block; }
.hero-card {
  position: absolute; padding: .8rem 1rem; background: white;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  font-size: .85rem; line-height: 1.4;
}
.hero-card .label { color: var(--ink-500); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.hero-card .value { color: var(--brand-900); font-weight: 700; font-size: 1.25rem; font-family: var(--font-mono); }
.hero-card .delta { font-size: .75rem; font-weight: 600; }
.hero-card.tl { top: 6%; left: 6%; }
.hero-card.br { bottom: 6%; left: 6%; }
.hero-card.ml { bottom: 6%; right: 6%; }
@media (max-width: 600px) {
  .hero-card { padding: .55rem .8rem; font-size: .78rem; }
  .hero-card .value { font-size: 1.05rem; }
  .hero-card.ml { display: none; }
}

/* ---------- USP strip ---------- */
.usp-strip {
  background: var(--brand-700);
  color: var(--brand-200);
  padding: 2.2rem 0;
  border-top: 1px solid var(--brand-800);
}
.usp-strip .usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.usp-item { display: flex; gap: .9rem; align-items: flex-start; font-size: .92rem; }
.usp-item .icon {
  flex: 0 0 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  color: var(--brand-300);
}
.usp-item strong { display: block; color: var(--white); margin-bottom: .15rem; font-weight: 600; }
@media (max-width: 820px) { .usp-strip .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .usp-strip .usp-grid { grid-template-columns: 1fr; } }

/* ---------- Section header ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p.lead { color: var(--ink-500); }

/* ---------- Solutions cards ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 720px) { .solutions-grid { grid-template-columns: 1fr; } }
.solution {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.solution:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.solution .icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
  color: var(--brand-700);
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
}
.solution.featured { background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-700) 100%); color: var(--brand-100); border-color: transparent; }
.solution.featured h3 { color: var(--white); }
.solution.featured p { color: var(--brand-200); }
.solution.featured .icon { background: rgba(255,255,255,.1); color: var(--brand-200); }
.solution .meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.solution .tag { font-size: .78rem; padding: .25em .7em; background: var(--ink-50); color: var(--ink-700); border-radius: 999px; font-weight: 500; }
.solution.featured .tag { background: rgba(255,255,255,.1); color: var(--brand-200); }
.solution .more { display: inline-flex; align-items: center; gap: .35em; margin-top: 1rem; font-weight: 600; }
.solution.featured .more { color: var(--brand-300); }

/* ---------- Product portfolio ---------- */
.products {
  background: var(--ink-50);
  background-image: radial-gradient(1000px 500px at 50% -100%, rgba(59,123,189,.08), transparent 60%);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 920px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }
.product {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.product-visual {
  height: 180px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--brand-50) 0%, var(--brand-100) 100%);
  margin-bottom: 1.2rem;
  display: grid; place-items: center;
  color: var(--brand-500);
  position: relative; overflow: hidden;
}
.product-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 70%, rgba(59,123,189,.12), transparent 50%);
}
.product h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.product .tag { font-size: .72rem; font-weight: 700; color: var(--brand-500); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .15rem; }
.product p { font-size: .92rem; color: var(--ink-500); margin-bottom: 1rem; }
.product ul { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; }
.product ul li { padding: .25rem 0; color: var(--ink-700); display: flex; gap: .5rem; align-items: center; }
.product ul li::before { content: ""; width: 4px; height: 4px; background: var(--brand-500); border-radius: 50%; flex: 0 0 4px; }

/* ---------- Software stack ---------- */
.software {
  background: var(--brand-900);
  background-image:
    radial-gradient(800px 400px at 80% 20%, rgba(59,123,189,.18), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(15,181,166,.12), transparent 60%);
  color: var(--brand-200);
}
.software h2, .software h3 { color: var(--white); }
.software p { color: var(--brand-300); }
.software .section-head .eyebrow { background: rgba(255,255,255,.08); color: var(--brand-200); border-color: rgba(255,255,255,.12); }
.software-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 920px) { .software-grid { grid-template-columns: 1fr; } }
.software-feature { display: flex; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.software-feature:first-child { border-top: 0; padding-top: 0; }
.software-feature .icon { flex: 0 0 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--brand-300); display: grid; place-items: center; }
.software-feature h4 { font-size: 1.2rem; color: var(--white); margin-bottom: .3rem; }
.software-feature p { margin: 0; font-size: .92rem; }
.terminal {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.7;
  box-shadow: var(--shadow-lg);
}
.terminal .dots { display: flex; gap: 6px; margin-bottom: 1rem; }
.terminal .dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.terminal .line { color: var(--brand-300); }
.terminal .line .ts { color: var(--brand-400); }
.terminal .line .ok { color: var(--teal); }
.terminal .line .val { color: var(--white); }
.terminal .line .key { color: var(--brand-200); }

/* ---------- Sensormanager hero block ---------- */
.sm-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 3rem;
}
@media (max-width: 920px) { .sm-hero { grid-template-columns: 1fr; gap: 2rem; } }
.sm-hero h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 1rem; color: white; }
.sm-hero .pill {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .25em .8em;
  background: rgba(15,181,166,.14);
  color: var(--teal);
  border: 1px solid rgba(15,181,166,.28);
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  margin-bottom: 1.2rem;
}
.sm-hero .features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .55rem; }
.sm-hero .features li { display: flex; gap: .65rem; align-items: flex-start; color: var(--brand-200); font-size: .94rem; }
.sm-hero .features li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px;
  background: rgba(15,181,166,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230FB5A6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 4px;
}
.sm-screenshot-stack { /* früher überlappte Zwei-Bild-Komposition — jetzt single image */ }
.sm-screenshot-stack img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}

/* small software-feature cards under sm-hero */
.sm-secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .sm-secondary { grid-template-columns: 1fr; } }
.sm-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.sm-card .icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: var(--brand-300);
  display: grid; place-items: center;
  margin-bottom: .9rem;
}
.sm-card h4 { font-size: 1.2rem; color: white; margin-bottom: .35rem; }
.sm-card p { font-size: .9rem; color: var(--brand-300); margin: 0; }

/* ---------- Product detail spec page: image inline with table ---------- */
.product-detail-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--ink-100);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-xs);
}
.product-detail-img.tall {     /* for portrait images like the thermistor chain */
  max-height: 380px;
}

/* ---------- Responsive YouTube / video embed ---------- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-900);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--ink-100);
  cursor: pointer;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-frame .yt-link {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%;
  z-index: 1;
}
.video-frame .yt-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease, filter .3s ease;
}
.video-frame::after {                 /* play button overlay */
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 86px; height: 86px;
  margin: -43px 0 0 -43px;
  background: rgba(217, 53, 53, 0.95);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .2s ease, background .2s ease;
  pointer-events: none;
  z-index: 2;
}
.video-frame::before {                /* play triangle */
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  margin: -16px 0 0 -10px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #fff;
  z-index: 3;
  pointer-events: none;
  transition: transform .2s ease;
}
.video-frame:hover::after { transform: scale(1.08); background: rgb(217, 53, 53); }
.video-frame:hover .yt-poster { transform: scale(1.03); filter: brightness(.92); }
/* Once activated (iframe present), hide the play button */
.video-frame.is-loaded::after,
.video-frame.is-loaded::before { display: none; }
.video-frame.is-loaded { cursor: default; }
.video-caption {
  font-size: .88rem;
  color: var(--ink-500);
  margin-top: .8rem;
  display: flex; gap: .4rem; align-items: center;
}
.video-caption svg { color: var(--danger); flex: 0 0 16px; }

/* Standalone video block (centered above section content) */
.video-feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 820px) { .video-feature { grid-template-columns: 1fr; } }
.video-feature h3 { font-size: 1.4rem; margin-bottom: .8rem; }

/* ---------- Trust / security ---------- */
/* Card-Grid bewusst aufgebrochen: kein Karten-Chrome, kein Border, nur Icon + Text — bricht den Rhythmus der vier Card-Sections darüber */
.security-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 2.5rem;
  padding: .5rem 0;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  padding: 2rem 0;
}
@media (max-width: 820px) { .security-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .security-grid { grid-template-columns: 1fr; gap: 1.2rem; } }
.cert {
  background: transparent;
  border: none;
  padding: 0;
  display: flex; gap: .85rem; align-items: flex-start;
}
.cert .icon {
  flex: 0 0 32px; height: 32px; border-radius: 8px;
  background: var(--brand-100); color: var(--brand-700);
  display: grid; place-items: center;
}
.cert strong { display: block; font-size: .95rem; color: var(--brand-900); margin-bottom: .1rem; font-weight: 600; }
.cert span { font-size: .85rem; color: var(--ink-500); line-height: 1.4; }

/* ---------- Industries ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industries-grid { grid-template-columns: 1fr; } }
.industry {
  padding: 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--ink-100);
}
.industry .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; margin-bottom: 1rem; }
.industry h4 { font-size: 1rem; margin-bottom: .3rem; }
.industry p { font-size: .9rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(27,58,92,.5);
}
.cta-block::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 110%, rgba(255,255,255,.15), transparent 60%);
  pointer-events: none;
}
.cta-block h2 { color: var(--white); margin-bottom: .8rem; }
.cta-block p { color: rgba(255,255,255,.85); margin: 0; }
.cta-block .actions { display: flex; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; }
.cta-block .btn-primary { background: var(--white); color: var(--brand-700); }
.cta-block .btn-primary:hover { background: var(--brand-50); color: var(--brand-700); }
.cta-block .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.cta-block .btn-secondary:hover { border-color: white; color: var(--white); }
@media (max-width: 720px) { .cta-block { grid-template-columns: 1fr; } .cta-block .actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-900);
  color: var(--brand-200);
  padding: 4rem 0 2rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: var(--white); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .55rem; }
.footer-grid a { color: var(--brand-300); }
.footer-grid a:hover { color: var(--white); }
.footer-brand .nav-brand { color: white; margin-bottom: 1rem; font-size: 1.2rem; }
.footer-brand p { color: var(--brand-300); font-size: .9rem; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); color: var(--brand-400); font-size: .82rem; }
.footer-bottom a { color: var(--brand-300); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom .legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(59,123,189,.18), transparent 60%),
    linear-gradient(180deg, var(--brand-50) 0%, white 100%);
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--ink-100);
}
.breadcrumb { font-size: .85rem; color: var(--ink-500); margin-bottom: 1rem; display: flex; gap: .5rem; align-items: center; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .8rem; }
.page-hero .lead { max-width: 700px; }

/* Hero mit Hintergrund-Bild (z.B. Service-Seite) */
.page-hero--bg {
  background-color: var(--brand-900);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-hero--bg h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.page-hero--bg .lead { color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(0,0,0,.30); }
.page-hero--bg .breadcrumb { color: rgba(255,255,255,.85); }
.page-hero--bg .breadcrumb a { color: rgba(255,255,255,.95); }
.page-hero--bg .breadcrumb a:hover { color: var(--white); }
.page-hero--bg .breadcrumb .sep { color: rgba(255,255,255,.5); }

/* ---------- Sections used on subpages ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex; gap: .9rem; padding: .8rem 0;
  border-top: 1px solid var(--ink-100);
}
.feature-list li:first-child { border-top: 0; }
.feature-list .icon { flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; }
.feature-list strong { display: block; color: var(--brand-900); font-size: 1rem; margin-bottom: .15rem; }
.feature-list span { font-size: .9rem; color: var(--ink-500); }

.spec-table {
  width: 100%; border-collapse: collapse;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td { padding: .9rem 1.1rem; text-align: left; font-size: .92rem; }
.spec-table th { background: var(--ink-50); color: var(--ink-500); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.spec-table tr + tr td { border-top: 1px solid var(--ink-100); }
.spec-table td:first-child { color: var(--ink-500); font-weight: 500; width: 38%; }
.spec-table td:last-child { color: var(--brand-900); font-weight: 600; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: white; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-form .field { margin-bottom: 1rem; }
.contact-form label { display: block; font-size: .88rem; font-weight: 500; color: var(--ink-700); margin-bottom: .35rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: .75rem .9rem;
  border: 1px solid var(--ink-200); border-radius: 8px;
  background: var(--white); color: var(--ink-900);
  font: inherit; font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 0; border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(59,123,189,.15);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-meta { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-meta-item { display: flex; gap: .8rem; }
.contact-meta-item .icon { flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; }
.contact-meta-item strong { display: block; color: var(--brand-900); margin-bottom: .15rem; font-size: .98rem; }
.contact-meta-item span, .contact-meta-item a { color: var(--ink-500); font-size: .92rem; }

/* ---------- Logo cloud ---------- */
.logo-cloud {
  display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; align-items: center;
  opacity: .8;
}
.logo-cloud .logo { font-weight: 700; color: var(--ink-400); font-size: 1.1rem; letter-spacing: -.01em; }

/* ---------- Stat bar (Trust-Zahlen) ---------- */
.stat-bar-lead {
  text-align: center; max-width: 760px; margin: 0 auto 1.6rem;
  color: var(--ink-600); font-size: 1.05rem; line-height: 1.5;
}
.stat-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; align-items: start; text-align: center;
}
.stat-bar .stat { padding: 0.5rem; }
.stat-bar .stat-num {
  font-size: 2.6rem; font-weight: 800; color: var(--brand-900);
  letter-spacing: -.02em; line-height: 1; margin-bottom: .55rem;
}
.stat-bar .stat-label {
  font-size: .95rem; color: var(--ink-500); line-height: 1.4;
}
@media (max-width: 720px) {
  .stat-bar { grid-template-columns: 1fr; gap: 1.6rem; }
  .stat-bar .stat-num { font-size: 2.2rem; }
}

/* ---------- Misc ---------- */
.divider { border: 0; border-top: 1px solid var(--ink-100); margin: 3rem 0; }
.muted { color: var(--ink-500); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ---------- Brand logo (image) ---------- */
.brand-logo {
  height: 36px;
  width: auto;
  max-width: none;       /* override base img max-width:100% — sonst stauchend bei schmalem Header */
  object-fit: contain;   /* belt-and-suspenders gegen Stretch wenn Container das Bild kappt */
  flex-shrink: 0;        /* Logo darf nicht im Flex-Container geschrumpft werden */
  display: block;
}
.nav-brand-img {
  display: flex; align-items: center; gap: .65rem;
  color: var(--brand-900);
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
}
.nav-brand-img:hover { color: var(--brand-700); }
.footer-brand .brand-logo {
  filter: brightness(0) invert(1);
  opacity: .92;
  height: 32px;
  margin-bottom: 1rem;
}

/* ---------- Hero photo overlay ---------- */
.hero-visual.with-photo {
  background: var(--brand-900);
  position: relative;
  overflow: hidden;
}
.hero-visual.with-photo .photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;  /* keep Rheinfall + Schloss Laufen + logger all in frame */
  display: block;
}
.hero-visual.with-photo::after {
  content: ""; position: absolute; inset: 0;
  /* Soft tint so floating cards stay readable on the photo */
  background: linear-gradient(160deg, rgba(14, 31, 54, 0.20) 0%, rgba(27, 58, 92, 0.05) 50%, rgba(14, 31, 54, 0.35) 100%);
  pointer-events: none;
}

/* ---------- Product visual with photo ---------- */
.product-visual.photo-bg {
  padding: 0;
  overflow: hidden;
  position: relative;
  background: var(--brand-50);
}
.product-visual.photo-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: .9rem;
  box-sizing: border-box;
  transition: transform .4s ease;
}
.product:hover .product-visual.photo-bg img { transform: scale(1.04); }
/* Gradient-Overlay entfernt — passt nicht zu object-fit: contain auf weissem Boden */

/* ---------- Field photo strip (homepage) ---------- */
.field-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 720px) { .field-strip { grid-template-columns: 1fr; } }
.field-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-100);
}
.field-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.field-tile:hover img { transform: scale(1.05); }
.field-tile .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  color: white;
  background: linear-gradient(180deg, transparent, rgba(14, 31, 54, .7));
  font-size: .92rem; font-weight: 500;
}

/* ---------- Award / partner badges ---------- */
.badges-row { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.badge-img { height: 64px; width: auto; opacity: .85; transition: opacity .2s ease; }
.badge-img:hover { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }


/* ---------- Download-Buttons (PDF-Datenblätter & Anleitungen) ---------- */
.dl-section-title {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-500);
  margin: 1.5rem 0 .65rem;
}
.dl-row { display: flex; flex-direction: column; gap: .55rem; margin-top: .25rem; }
.btn-dl {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1.1rem;
  background: var(--white);
  color: var(--brand-900);
  border: 1.5px solid var(--brand-700);
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(27, 58, 92, .06);
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-dl:hover {
  background: var(--brand-700);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(27, 58, 92, .18);
}
.btn-dl .dl-icon {
  flex: 0 0 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700);
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.btn-dl:hover .dl-icon { background: rgba(255,255,255,.18); color: var(--white); }
.btn-dl .dl-icon svg { width: 18px; height: 18px; opacity: 1; }
.btn-dl .dl-label { flex: 1; line-height: 1.25; }
.btn-dl .ext {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: .25em .6em;
  border-radius: 99px;
  white-space: nowrap;
}
.btn-dl:hover .ext { background: rgba(255,255,255,.18); color: var(--white); }
@media (max-width: 480px) {
  .btn-dl { padding: .7rem .85rem; font-size: .9rem; gap: .65rem; }
  .btn-dl .dl-icon { flex: 0 0 32px; height: 32px; }
}
/* In Sensor-Cards (kompakte Variante) */
.product .dl-row { margin-top: .8rem; }
.product .btn-dl { padding: .6rem .85rem; font-size: .85rem; }
.product .btn-dl .dl-icon { flex: 0 0 30px; height: 30px; }
.product .btn-dl .dl-icon svg { width: 14px; height: 14px; }


/* ---------- Image-Lightbox (Klick zum Vergrößern) ---------- */
.gallery-zoom img,
img.zoomable { cursor: zoom-in; transition: transform .2s ease, filter .2s ease, opacity .2s ease; }
.gallery-zoom img:hover,
img.zoomable:hover { filter: brightness(1.04); transform: scale(1.01); }

.lb-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .88);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: clamp(1rem, 4vw, 3rem);
  animation: lb-fade .18s ease;
}
.lb-overlay.open { display: flex; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lb-overlay .lb-img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
  cursor: default;
  background: #111;
}

.lb-close {
  position: absolute;
  top: clamp(.75rem, 2vw, 1.5rem);
  right: clamp(.75rem, 2vw, 1.5rem);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0; border-radius: 50%;
  font-size: 28px; line-height: 1;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.lb-close:hover { background: rgba(255, 255, 255, .22); transform: scale(1.05); }
.lb-close:focus { outline: 2px solid var(--brand-300); outline-offset: 3px; }


/* ---------- Bojen-Galerie ---------- */
.boje-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.boje-gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--ink-100);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}
.boje-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.boje-gallery figcaption {
  padding: .8rem 1rem 1rem;
  font-size: .85rem;
  color: var(--ink-600);
  line-height: 1.4;
}


/* ---------- Dropdown-Untermenü (Produkte) ---------- */
.has-submenu { position: relative; }
.has-submenu > a::after {
  content: "▾";
  font-size: .7em;
  margin-left: .4em;
  opacity: .6;
  transition: transform .15s ease;
  display: inline-block;
}
.has-submenu:hover > a::after,
.has-submenu:focus-within > a::after { transform: rotate(180deg); }

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: -.5rem;
  list-style: none;
  margin: 0;
  padding: .55rem 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
  z-index: 100;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu { display: block; }

.submenu li { display: block; }
.submenu li a {
  display: block;
  padding: .55em 1.1em;
  color: var(--ink-700);
  font-size: .92rem;
  font-weight: 500;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.submenu li a:hover {
  background: var(--ink-50);
  color: var(--brand-700);
}

@media (max-width: 920px) {
  /* Mobile: Submenüs sind klick-/tap-aufklappbar; standardmäßig zu */
  .has-submenu > a { padding-right: 2.4em; position: relative; }
  .has-submenu > a::after {
    display: inline-block;
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform .2s ease;
    margin: 0;
  }
  .has-submenu.open > a::after {
    transform: translateY(-50%) rotate(180deg);
  }
  .submenu {
    display: none;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0;
    margin: .25rem 0 .5rem 1rem;
    min-width: 0;
    border-left: 2px solid var(--ink-100);
    background: transparent;
  }
  .has-submenu.open .submenu { display: block; }
  .submenu li a {
    padding: .55em .9em;
    font-size: .9rem;
  }
  /* Auf Mobile auch Hover-Aufklappen abschalten (sonst kommt es auf Touch-Geräten zu Misch-Effekten) */
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu { display: none; }
  .has-submenu.open:hover .submenu,
  .has-submenu.open:focus-within .submenu { display: block; }
}

/* ---------- Accessibility: Skip-to-content ---------- */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--brand-900);
  color: var(--white);
  padding: .65rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  z-index: 1000;
  transition: top .15s ease;
}
.skip-to-content:focus {
  top: 8px;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ---------- Newsletter-Sektion ---------- */
.newsletter-cta { background: var(--ink-50); padding: 3rem 0; }
.newsletter-card {
  max-width: 880px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem;
  align-items: start;
  background: var(--white);
  padding: 2.2rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) { .newsletter-card { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.6rem; } }
.newsletter-card h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 .5rem; color: var(--brand-900); }
.newsletter-card > div > p { margin: 0; color: var(--ink-600); font-size: .95rem; line-height: 1.55; }
.newsletter-input-row { display: flex; gap: .5rem; }
@media (max-width: 480px) { .newsletter-input-row { flex-direction: column; } }
.newsletter-input-row input[type=email] {
  flex: 1; min-width: 0;
  padding: .75rem .95rem;
  border: 1px solid var(--ink-200); border-radius: 8px;
  background: var(--white); color: var(--ink-900);
  font: inherit; font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.newsletter-input-row input[type=email]:focus {
  outline: 0; border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(59,123,189,.15);
}
.newsletter-input-row button { flex-shrink: 0; }
.newsletter-consent {
  display: flex; gap: .55rem;
  margin-top: .9rem;
  font-size: .8rem; color: var(--ink-500); line-height: 1.45;
}
.newsletter-consent input[type=checkbox] { flex-shrink: 0; margin-top: .2rem; }
.newsletter-consent a { color: var(--brand-700); text-decoration: underline; }
.newsletter-consent a:hover { color: var(--brand-900); }

/* ---------- Referenz-Karten (referenzen.html) ---------- */
.ref-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.ref-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ref-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.ref-card .ref-cat {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: .25em .7em;
  border-radius: 999px;
  margin-bottom: .9rem;
  width: max-content;
}
.ref-card h3 {
  font-size: 1.08rem; line-height: 1.25;
  margin: 0 0 .35rem;
  color: var(--brand-900);
}
.ref-card .ref-num {
  font-size: 1.9rem; font-weight: 800;
  color: var(--brand-700);
  line-height: 1; letter-spacing: -.02em;
  margin: .3rem 0 .35rem;
}
.ref-card .ref-desc {
  font-size: .9rem; line-height: 1.45;
  color: var(--ink-500); margin: 0;
}
@media (max-width: 920px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ref-grid { grid-template-columns: 1fr; } }

/* Referenz-Liste (kompakt) */
.ref-list ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .15rem 2rem;
  border-top: 1px solid var(--ink-100);
}
.ref-list li {
  font-size: .96rem;
  color: var(--ink-700);
  padding: .55rem .15rem;
  border-bottom: 1px solid var(--ink-100);
}
@media (max-width: 720px) { .ref-list ul { grid-template-columns: 1fr; } }

/* Hero-Variante für schmale Seiten ohne Visual */
.hero-narrow { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.hero-narrow .container { max-width: 880px; text-align: center; }
.hero-narrow .lead { margin: 0 auto; max-width: 720px; }



/* ==========================================================================
   THEME: Dark Mode
   Aktiviert über <html data-theme="dark"> (Toggle in Header) oder über
   System-Voreinstellung (prefers-color-scheme: dark) bei "auto".
   ========================================================================== */
[data-theme="dark"] {
  /* Neutral — Inversion mit warmem Unterton */
  --ink-900: #ECEFF4;
  --ink-700: #C5CCD9;
  --ink-500: #8C97AB;
  --ink-400: #6F7A8E;
  --ink-300: #4D586B;
  --ink-200: #2A3344;
  --ink-100: #1B2233;
  --ink-50:  #141A28;
  --white:   #0E1626;               /* „Surface" in Dark — Karten/Header */

  /* Shadows brauchen mehr Tiefe gegen dunklen Untergrund */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.40), 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.55), 0 4px 8px -4px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.65);
}

/* Dark-Mode: Body-Hintergrund (das Body-Background ist nicht --white sondern
   der „Page"-Untergrund — einen Hauch dunkler als Karten). */
[data-theme="dark"] body { background: #0A1120; color: var(--ink-900); }

/* Header sitzt auf var(--white) — passt automatisch. Border etwas anpassen. */
[data-theme="dark"] .site-header { border-bottom: 1px solid var(--ink-200); }

/* Hardcoded weiße Hintergründe gezielt nachziehen */
[data-theme="dark"] .lang-switch summary,
[data-theme="dark"] .lang-switch[open] summary,
[data-theme="dark"] .hero-card,
[data-theme="dark"] .product-visual[style*="background:#fff"],
[data-theme="dark"] .product-visual[style*="background: #fff"],
[data-theme="dark"] .contact-card,
[data-theme="dark"] .ref-card,
[data-theme="dark"] .anw-card,
[data-theme="dark"] .newsletter-card { background: var(--white); }
[data-theme="dark"] .anw-card .body h3 { color: var(--brand-900); }
[data-theme="dark"] .anw-card .body p { color: var(--ink-700); }
[data-theme="dark"] .anw-card .body .tag { color: var(--ink-700); }

/* Logo: weißer Schriftzug auf dunklem Header — dezent invertieren */
[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1) brightness(.95); }

/* Gradient-Text im Hero bleibt sichtbar */
[data-theme="dark"] .hero h1 .gradient {
  background: linear-gradient(90deg, var(--brand-700) 0%, #19A4C8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hero-Trust / Eyebrows lesbar halten */
[data-theme="dark"] .eyebrow { color: var(--brand-700); }
[data-theme="dark"] .eyebrow .dot { background: var(--brand-500); }

/* Buttons: Primary auf Dark — heller Brand-Ton, dunkle Schrift */
[data-theme="dark"] .btn-primary { background: var(--brand-700); color: var(--ink-900); border-color: var(--brand-700); }
[data-theme="dark"] .btn-primary:hover { background: var(--brand-600); color: var(--white); }
[data-theme="dark"] .btn-secondary { background: transparent; color: var(--brand-700); border-color: var(--brand-300); }

/* Featured-Solution-Card: bleibt dunkler Akzent — wir verstärken nur den Rand */
[data-theme="dark"] .solution.featured { border: 1px solid var(--brand-300); }

/* Cards mit transparenten Inhalten: Trennlinien anpassen */
[data-theme="dark"] .ref-list ul,
[data-theme="dark"] .ref-list li { border-color: var(--ink-200); }

/* Chat-Widget Dark-Mode (echte IDs lt. chat.js: #tt-chat-panel/-body/-form/-input/-footer).
   Spezifität: ID + zwei Klassen schlägt chat.css's .tt-msg.tt-bot (zwei Klassen). */
[data-theme="dark"] #tt-chat-panel  { background: var(--white); border-color: var(--ink-200); color: var(--ink-900); }
[data-theme="dark"] #tt-chat-body   { background: var(--ink-50); }
[data-theme="dark"] #tt-chat-body .tt-msg.tt-bot {
  background: var(--ink-100); color: var(--ink-900); border-color: var(--ink-200);
}
[data-theme="dark"] #tt-chat-body .tt-msg.tt-bot a { color: var(--brand-500); }
[data-theme="dark"] #tt-chat-body .tt-msg.tt-system { color: var(--ink-400); }
[data-theme="dark"] #tt-chat-form    { background: var(--white); border-color: var(--ink-200); }
[data-theme="dark"] #tt-chat-input   { background: var(--ink-50); color: var(--ink-900); border-color: var(--ink-200); }
[data-theme="dark"] #tt-chat-input::placeholder { color: var(--ink-400); }
[data-theme="dark"] #tt-chat-suggestions .tt-chip {
  background: var(--ink-100); color: var(--ink-900); border-color: var(--ink-200);
}
[data-theme="dark"] #tt-chat-suggestions .tt-chip:hover { background: var(--ink-200); }
[data-theme="dark"] #tt-chat-footer  { color: var(--ink-400); border-color: var(--ink-200); }
[data-theme="dark"] #tt-chat-footer a { color: var(--brand-500); }

/* Fußleiste */
[data-theme="dark"] .site-footer { background: #060B17; }

/* ==========================================================================
   THEME: Toggle-Button im Header
   ========================================================================== */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--ink-200);
  background: transparent;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--ink-100); color: var(--brand-700); border-color: var(--brand-300); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
[data-theme="dark"] .theme-toggle { border-color: var(--ink-200); color: var(--ink-700); }
[data-theme="dark"] .theme-toggle:hover { background: var(--ink-100); color: var(--brand-700); }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 760px) {
  .theme-toggle { width: 32px; height: 32px; }
}
/* Mobile: nav-cta-Kinder dürfen NICHT schrumpfen oder hinter dem Hamburger verschwinden */
@media (max-width: 920px) {
  .nav-cta { z-index: 102; position: relative; }
  .nav-cta > * { flex-shrink: 0; }
  .lang-switch, .theme-toggle { flex-shrink: 0; }
}


/* Sanftes Cross-Fade beim Theme-Wechsel */
html.theme-fading,
html.theme-fading body,
html.theme-fading * { transition: background-color .25s ease, color .25s ease, border-color .25s ease !important; }

/* ==========================================================================
   THEME: Dark Mode — Korrekturen Runde 2 (2026-04-28)
   Hardcoded weiße Hintergründe + Hero-Gradient + Header → echte Dunkel-Optik
   ========================================================================== */

/* Header: weiß-glasig → dunkel-glasig (Backdrop-Blur bleibt) */
[data-theme="dark"] .site-header {
  background: rgba(14, 22, 38, 0.78);
  border-bottom-color: rgba(255,255,255,0.06);
}

/* Hero-Sektion: war hardcoded weiß-Verlauf → dunkler Tiefen-Verlauf
   mit dezenten farbigen Glow-Akzenten (Brand-Blau + Teal) */
[data-theme="dark"] .hero {
  /* Stufe-2 Mesh im Dark: kräftigere Sättigung, sonst „ertrinkt" der Effekt */
  background:
    radial-gradient(900px 600px at 12% 18%, rgba(59, 123, 189, 0.32), transparent 55%),
    radial-gradient(800px 600px at 88% 12%, rgba(25, 164, 200, 0.26), transparent 55%),
    radial-gradient(700px 500px at 78% 78%, rgba(15, 181, 166, 0.22), transparent 55%),
    radial-gradient(600px 500px at 30% 88%, rgba(107, 164, 219, 0.20), transparent 55%),
    radial-gradient(500px 400px at 55% 50%, rgba(43, 90, 135, 0.18), transparent 60%),
    linear-gradient(180deg, #0A1120 0%, #0E1A2B 100%);
}
[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
}

/* Mobile-Nav: ausgeklapptes Menü hatte hardcoded white */
[data-theme="dark"] .nav-links.open,
[data-theme="dark"] .nav-links {
  /* Desktop ist transparent, Mobile-Open bekommt dunkles Surface */
}
@media (max-width: 920px) {
  [data-theme="dark"] .nav-links.open { background: var(--white); border-bottom-color: var(--ink-200); }
}

/* Buttons: Secondary war weiß auf dunkel */
[data-theme="dark"] .btn-secondary { background: var(--ink-100); color: var(--brand-700); border-color: var(--ink-300); }
[data-theme="dark"] .btn-secondary:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--ink-200); }

/* Detail-Seiten: Bild- und Tabellen-Hintergründe waren weiß */
[data-theme="dark"] .product-detail-img { background: var(--ink-100); border-color: var(--ink-200); }
[data-theme="dark"] .spec-table { background: var(--ink-50); border-color: var(--ink-200); }
[data-theme="dark"] .spec-table th { background: var(--ink-100); color: var(--ink-400); }
[data-theme="dark"] .spec-table tr + tr td { border-top-color: var(--ink-200); }
[data-theme="dark"] .spec-table td:last-child { color: var(--brand-900); /* var ist im Dark hell */ }

/* Contact-Card war weiß */
[data-theme="dark"] .contact-card { background: var(--white); border-color: var(--ink-200); color: var(--ink-900); }

/* Lightbox-Hintergrund passt schon (rgba 0,0,0) — nichts zu tun */

/* Lesbarkeit hero-trust + lead in Dark */
[data-theme="dark"] .lead { color: var(--ink-700); }
[data-theme="dark"] .hero-trust strong { color: var(--brand-900); /* hell im Dark dank var-Override */ }

/* Eyebrow-Pille im Dark — das hellblaue Label muss noch lesbar bleiben */
[data-theme="dark"] .eyebrow { background: var(--brand-100); color: var(--brand-700); border-color: var(--brand-200); }

/* hero-card (statistische Floating-Karten) waren hardcoded white */
[data-theme="dark"] .hero-card { background: var(--white); color: var(--ink-900); border: 1px solid var(--ink-200); }
[data-theme="dark"] .hero-card .label { color: var(--ink-400); }
[data-theme="dark"] .hero-card .value { color: var(--brand-900); }

/* Code-Terminal in Software-Sektion bleibt unverändert (war schon dunkel) */

/* Newsletter-CTA Sektion-Bg */
[data-theme="dark"] .newsletter-cta { background: var(--ink-50); }
[data-theme="dark"] .newsletter-card { background: var(--white); color: var(--ink-900); }

/* page-hero--bg (Sub-Page-Heros mit Foto-Overlay) → das Overlay ist schon
   dunkel-blau. Darunter sitzt manchmal ein heller Sektions-Hintergrund — der ist
   schon var-basiert. Nichts zu tun. */

/* CTA-Block war ein dunkler Brand-Verlauf — unverändert; Primary-Button auf
   diesem Block muss aber im Dark heller sein damit der Kontrast stimmt */
[data-theme="dark"] .cta-block .btn-primary { background: var(--white); color: var(--brand-700); border-color: var(--white); }
[data-theme="dark"] .cta-block .btn-primary:hover { background: var(--ink-100); color: var(--brand-700); }

/* Industry-Icons (Branchen-Seite) — Hintergrund-Tile */
[data-theme="dark"] .industry .icon { background: var(--ink-100); color: var(--brand-700); }

/* Download-Button-Klötze (btn-dl) */
[data-theme="dark"] .btn-dl { background: var(--brand-50); color: var(--brand-700); }
[data-theme="dark"] .btn-dl .ext { background: var(--brand-50); color: var(--brand-700); }

/* Cards mit border-color brand-200 im Hover (Solution, Product) — im Dark ist
   --brand-200 = #1F4368. Hover-Border ist dann fast unsichtbar. Aufhellen: */
[data-theme="dark"] .solution:hover,
[data-theme="dark"] .product:hover { border-color: var(--brand-300); }

/* ==========================================================================
   THEME: Dark Mode — Korrekturen Runde 3 (2026-04-28)
   Brand-Skala bleibt absolut (NICHT mehr invertiert) — verhindert dass
   "always-dark"-Sektionen wie .software, .cta-block, page-hero auf der
   Software-Seite (alle nutzen brand-900 als bg) plötzlich hell werden.
   Stattdessen: explizite Color-Overrides für Text-Stellen.
   ========================================================================== */

/* Headlines: war color: var(--brand-900) (dunkel) → im Dark explizit hell */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: var(--ink-900); }

/* Alle Element-spezifischen Stellen die brand-900 als COLOR nutzen */
[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .hero-trust strong,
[data-theme="dark"] .hero-card .value,
[data-theme="dark"] .spec-table td:last-child,
[data-theme="dark"] .feature-list strong,
[data-theme="dark"] .cert strong,
[data-theme="dark"] .contact-meta-item strong,
[data-theme="dark"] .newsletter-card h2,
[data-theme="dark"] .industries h2 { color: var(--ink-900); }
[data-theme="dark"] .newsletter-consent a:hover { color: var(--ink-700); }

/* "Always-dark"-Sektionen (.software, .cta-block, .footer, page-hero--bg etc.):
   Hier soll Schrift IMMER weiß bleiben — auch im Dark-Mode, weil der
   Hintergrund weiterhin tief-blau ist. var(--white) wird im Dark dunkel,
   also explizit #fff verwenden. */
[data-theme="dark"] .software h2,
[data-theme="dark"] .software h3,
[data-theme="dark"] .software-feature h4,
[data-theme="dark"] .cta-block h2,
[data-theme="dark"] .cta-block .btn-secondary,
[data-theme="dark"] .footer-grid h5,
[data-theme="dark"] .footer-grid a:hover,
[data-theme="dark"] .footer-bottom a:hover,
[data-theme="dark"] .page-hero--bg h1,
[data-theme="dark"] .page-hero--bg .breadcrumb a:hover,
[data-theme="dark"] .usp-item strong,
[data-theme="dark"] .solution.featured h3,
[data-theme="dark"] .terminal .line .val,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-dl:hover .dl-icon,
[data-theme="dark"] .btn-dl:hover .ext { color: #fff; }

/* Buttons im Dark-Mode — Primary bleibt mit brand-Hintergrund (jetzt wieder
   absolut tief), Schrift muss aber #fff sein, nicht --white (das wäre dunkel). */
[data-theme="dark"] .btn-primary { background: var(--brand-700); border-color: var(--brand-700); }
[data-theme="dark"] .btn-primary:hover { background: var(--brand-600); }
[data-theme="dark"] .btn-secondary { background: var(--ink-100); color: var(--ink-900); border-color: var(--ink-300); }
[data-theme="dark"] .btn-secondary:hover { border-color: var(--brand-500); color: var(--brand-500); background: var(--ink-200); }

/* Eyebrow-Pille auf normalem Light-Surface — brand-100 ist hellblau. Im Dark
   sieht das wie ein heller Klecks aus. Dezenter machen. */
[data-theme="dark"] .eyebrow { background: var(--ink-100); color: var(--brand-500); border-color: var(--ink-200); }
[data-theme="dark"] .eyebrow .dot { background: var(--brand-500); box-shadow: 0 0 0 4px rgba(59,123,189,.18); }

/* .industry .icon Tile war brand-50 hell-blau → im Dark dezent dunkler */
[data-theme="dark"] .industry .icon { background: var(--ink-100); color: var(--brand-500); }

/* Hero-Card auf Hero-Seite (Floating-Karten) — Value war brand-900 (dunkel) */
[data-theme="dark"] .hero-card .label { color: var(--ink-400); }

/* Spec-Tabelle Header-Zelle */
[data-theme="dark"] .spec-table th { color: var(--ink-400); }

/* Solution-Card Hover-Border — brand-200 ist hellblau, im Dark gut sichtbar */

/* Lead-Text auf normalen Sektionen */
[data-theme="dark"] .lead { color: var(--ink-700); }

/* Brand-Logo war filter-invert — bleibt erhalten */

/* Solution.featured nutzt color: var(--brand-100/200) — die sind hell, ok */

/* ==========================================================================
   THEME: Dark Mode — Logo-Container auf projekte.html (und ähnlich)
   Förderlogos / Partner-Logos sind PNGs mit dunkler Schrift auf transparent.
   Im Dark-Mode würden sie auf dunklem Surface unlesbar werden — daher den
   Container explizit weiß lassen.
   ========================================================================== */
[data-theme="dark"] .partner-row,
[data-theme="dark"] .funding-strip {
  background: #fff;
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .partner-row img,
[data-theme="dark"] .funding-strip img {
  opacity: 1;
  filter: none;
}
[data-theme="dark"] .funding-strip p { color: #5A6678; }

/* ==========================================================================
   DARK-MODE-LESBARKEITS-PATCH (v=46, 2026-05-04)
   Behebt zu dunkle Schrift auf hellen Brand-50-Boxen + dunkler Schrift
   auf dunklen Surfaces (FAQ, anw-card-Tag, meta-grid, standby-Box).
   ========================================================================== */
[data-theme="dark"] {
  --ink-600: #B0B8C5;            /* fehlte in der Palette */
}

/* FAQ — summary-Titel war color: var(--brand-900) (sehr dunkel) auf dunkler Card */
[data-theme="dark"] .faq-list details { background: var(--white); border-color: var(--ink-200); }
[data-theme="dark"] .faq-list summary { color: var(--ink-900); }
[data-theme="dark"] .faq-list summary::after { color: var(--brand-500); }
[data-theme="dark"] .faq-list details p { color: var(--ink-700); }

/* anw-card .tag (Branchen) — brand-50-Hintergrund war zu hell */
[data-theme="dark"] .anw-card .tag { background: var(--ink-100); color: var(--ink-700); }
[data-theme="dark"] .anw-card .body p { color: var(--ink-700); }

/* meta-grid (Projekte) — Brand-50-Box → dunkle Surface, Text aufhellen */
[data-theme="dark"] .meta-grid > div { background: var(--ink-100); }
[data-theme="dark"] .meta-grid strong { color: var(--brand-500); }
[data-theme="dark"] .meta-grid span { color: var(--ink-700); }
[data-theme="dark"] .timeline-list li { border-color: var(--ink-200); }
[data-theme="dark"] .timeline-list .yr { color: var(--brand-500); }

/* Standby-Box (Service / Montage-Wartung) — inline brand-50-Hintergrund */
[data-theme="dark"] #standby { background: var(--ink-100) !important; border-color: var(--ink-200) !important; }
[data-theme="dark"] #standby .icon { color: var(--brand-500) !important; }
[data-theme="dark"] #standby strong { color: var(--ink-900); }
[data-theme="dark"] #standby span { color: var(--ink-700); }

/* feature-list-Span allgemein hell halten (war ink-500 = im Dark zu dunkel) */
[data-theme="dark"] .feature-list span { color: var(--ink-700); }

/* Page-Hero (Sub-Page-Heros ohne Foto) — war hardcoded heller Brand-50-Gradient.
   Im Dark-Mode wird die globale h1/lead-Schrift hell → hell-auf-hell. Daher
   den Gradient im Dark auf dunkle Surface drehen. */
[data-theme="dark"] .page-hero {
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(59,123,189,.22), transparent 60%),
    linear-gradient(180deg, var(--ink-50) 0%, var(--ink-100) 100%);
  border-bottom-color: var(--ink-200);
}
[data-theme="dark"] .page-hero h1 { color: var(--ink-900); }
[data-theme="dark"] .page-hero .lead { color: var(--ink-700); }
[data-theme="dark"] .page-hero .breadcrumb { color: var(--ink-500); }
[data-theme="dark"] .page-hero .breadcrumb a { color: var(--ink-500); }
[data-theme="dark"] .page-hero .breadcrumb a:hover { color: var(--brand-500); }
