/* Nautex Robotics – Startseite */
/* ── SCHRIFTEN LOKAL (kein Google-Request, DSGVO-konform) ── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(fonts/dm-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/dm-mono-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/dm-mono-latin-500-normal.woff2) format('woff2');
}

:root {
  --navy: #1E2330;
  --navy-mid: #384359;
  --navy-light: #526482;
  --blue-light: #A0C6FF;
  --blue-mid: #6C84AC;
  --blue-pale: #D6E8FF;
  --off-white: #F9F9F9;
  --white: #FFFFFF;
  --text-muted: #6b7a99;
  --border: rgba(30,35,48,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
section { scroll-margin-top: 80px; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--off-white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  background: rgba(249,249,249,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg { height: 32px; width: auto; }
nav ul { display: flex; gap: 2rem; list-style: none; }
nav ul a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--navy-light); transition: color .2s; }
nav ul a:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; background: var(--white); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.lang-btn { padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--navy-light); transition: all .2s; font-family: inherit; }
.lang-btn.active { background: var(--navy); color: var(--white); border-radius: 20px; }
.nav-cta { padding: 8px 18px; background: var(--navy); color: var(--white); border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .2s; }
.nav-cta:hover { background: var(--navy-mid); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 5vw 80px;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 1px; background: var(--blue-light);
}
h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
h1 em { color: var(--blue-light); font-style: normal; }
.hero-sub {
  font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 40px; max-width: 480px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; text-decoration: none; line-height: 1.4;
  padding: 14px 28px; background: var(--blue-light); color: var(--navy);
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.btn-primary:hover { background: var(--blue-pale); }
.btn-outline {
  display: inline-block; text-decoration: none; line-height: 1.4;
  padding: 14px 28px; background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }
a.btn-primary:hover, a.btn-outline:hover { text-decoration: none; }
.btn-primary:focus-visible, .btn-outline:focus-visible,
.nav-cta:focus-visible, nav ul a:focus-visible, .lang-btn:focus-visible {
  outline: 2px solid var(--blue-light); outline-offset: 3px;
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 26px 32px; margin-top: 52px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stats > div { flex: 0 1 auto; min-width: 130px; max-width: 180px; }
.hero-stat-num { font-size: 32px; font-weight: 700; color: var(--blue-light); letter-spacing: -1px; white-space: nowrap; }
.hero-stat-num.is-word { font-size: 20px; padding-top: 6px; white-space: normal; line-height: 1.35; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; font-weight: 400; }

/* hero visual */
.hero-visual { position: relative; }
.crawler-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(160,198,255,0.2);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}
.crawler-viz {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(30,35,48,0.6);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.wall-graphic { width: 100%; }

/* ── Hero-Grafik: Crawler faehrt die Spundwand senkrecht ab ── */
.wg-tick {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px; fill: #6C84AC;
}
.wg-zone {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px; letter-spacing: 0.6px; fill: #A0C6FF;
}
.wg-zone-sub { opacity: 0.65; }
.wg-badge {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px; font-weight: 500; fill: #A0C6FF;
}
.wg-val {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 500;
}

/* Fahrt von oben nach unten */
.wg-rig { animation: wgDrive 9s cubic-bezier(.42,0,.58,1) infinite; }
@keyframes wgDrive {
  0%   { transform: translateY(0);     opacity: 0; }
  4%   { transform: translateY(6px);   opacity: 1; }
  84%  { transform: translateY(156px); opacity: 1; }
  93%  { transform: translateY(160px); opacity: 0; }
  100% { transform: translateY(0);     opacity: 0; }
}

/* Raupenketten laufen mit */
.wg-tread { animation: wgTread 0.9s linear infinite; }
@keyframes wgTread {
  from { transform: translateY(0); }
  to   { transform: translateY(6px); }
}

/* Blinkende Betriebsanzeige */
.wg-led { animation: wgBlink 1.6s ease-in-out infinite; }
@keyframes wgBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Gemessene Spur waechst hinter dem Crawler */
.wg-trail {
  transform-box: fill-box; transform-origin: top center;
  animation: wgTrail 9s cubic-bezier(.42,0,.58,1) infinite;
}
@keyframes wgTrail {
  0%   { transform: scaleY(0); opacity: 0; }
  4%   { transform: scaleY(0.04); opacity: 1; }
  84%  { transform: scaleY(1); opacity: 1; }
  93%  { transform: scaleY(1); opacity: 0; }
  100% { transform: scaleY(0); opacity: 0; }
}

/* Messwerte erscheinen, sobald der Crawler die Stelle passiert hat */
.wg-cal { opacity: 0; }
.wg-c1 { animation: wgCal1 9s linear infinite; }
.wg-c2 { animation: wgCal2 9s linear infinite; }
.wg-c3 { animation: wgCal3 9s linear infinite; }
@keyframes wgCal1 { 0%,17% { opacity: 0; } 23%,88% { opacity: 1; } 94%,100% { opacity: 0; } }
@keyframes wgCal2 { 0%,45% { opacity: 0; } 51%,88% { opacity: 1; } 94%,100% { opacity: 0; } }
@keyframes wgCal3 { 0%,74% { opacity: 0; } 80%,88% { opacity: 1; } 94%,100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .wg-rig { animation: none; transform: translateY(96px); }
  .wg-tread, .wg-led { animation: none; }
  .wg-trail { animation: none; transform: scaleY(0.62); }
  .wg-cal { opacity: 1; animation: none; }
}
}

.data-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(160,198,255,0.1);
  border: 1px solid rgba(160,198,255,0.2); border-radius: 20px;
  font-size: 11px; font-weight: 600; color: var(--blue-light); letter-spacing: 0.5px;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* bg decoration */
.hero-bg-circle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(160,198,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg-circle.c1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-bg-circle.c2 { width: 400px; height: 400px; bottom: -100px; left: 20%; }

/* ── SECTION SHARED ── */
section { padding: 100px 5vw; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue-mid); margin-bottom: 20px;
}
.section-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--blue-mid); }
h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 560px; line-height: 1.7; margin-bottom: 60px; }

/* ── PROBLEM ── */
#problem { background: var(--white); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.problem-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--off-white);
  transition: transform .2s, box-shadow .2s;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(30,35,48,0.08); }
.problem-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.problem-icon svg { width: 22px; height: 22px; stroke: var(--blue-light); fill: none; stroke-width: 1.8; }
.problem-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.problem-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── SOLUTION ── */
#solution { background: var(--off-white); }
.solution-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.value-props { display: flex; flex-direction: column; gap: 28px; }
.vp {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px; border-radius: 12px; transition: background .2s;
}
.vp:hover { background: var(--white); }
.vp-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-pale); display: flex; align-items: center; justify-content: center;
}
.vp-icon svg { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 2; }
.vp h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.vp p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.solution-visual {
  background: var(--navy);
  border-radius: 20px; padding: 36px;
  position: relative; overflow: hidden;
}
.process-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(160,198,255,0.15);
  border: 1px solid rgba(160,198,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--blue-light);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.step-label { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.step-desc { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── PLATTFORM ── */
#platform { background: var(--white); }
.platform-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.chain { display: flex; flex-direction: column; }
.chain-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.chain-item:last-child { border-bottom: none; }
.chain-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-pale); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.chain-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.chain-item p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* Portal-Mock mit Heatmap */
.portal-card {
  background: var(--navy); border-radius: 20px; padding: 28px;
  position: sticky; top: 96px;
}
.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.portal-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue-light);
}
.portal-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.portal-tab {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.18);
}
.portal-tab.active { color: var(--navy); background: var(--blue-light); border-color: var(--blue-light); }

.hm-figure { margin: 0; }
.hm-caption { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 16px; line-height: 1.55; }
.hm-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px;
  font-size: 10px; letter-spacing: 0.5px; color: rgba(255,255,255,0.5);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Heatmap nach BAW-ESM: Stationen x Messquerschnitte, gruppiert nach Korrosionszonen */
.portal-card {
  --rail: 74px; --ylab: 52px;
  /* Ampelskala (Standard) */
  --c1:#1a9850; --c2:#8ac765; --c3:#fee08b; --c4:#f79b58; --c5:#d6383a;
  --i1:#12161F; --i2:#12161F; --i3:#12161F; --i4:#12161F; --i5:#FFFFFF;
}
/* Barrierefreie Alternative: eine Farbe, monoton heller */
.portal-card[data-scale="safe"] {
  --c1:#1c5cab; --c2:#3987e5; --c3:#6da7ec; --c4:#9ec5f4; --c5:#cde2fb;
  --i1:#FFFFFF; --i2:#FFFFFF; --i3:#12161F; --i4:#12161F; --i5:#12161F;
}

/* Steuerleiste: Leistungsstufe + Farbskala */
.portal-modes {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
  margin: 0 0 20px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pm-group { display: flex; align-items: center; gap: 10px; }
.pm-label {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.45); font-weight: 700;
}
.pm-btns { display: flex; gap: 4px; }
.pm-btn {
  font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  padding: 5px 12px; border-radius: 20px;
  color: rgba(255,255,255,0.6); background: transparent;
  border: 1px solid rgba(255,255,255,0.18); transition: all .18s;
}
.pm-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.45); }
.pm-btn[aria-pressed="true"] { color: var(--navy); background: var(--blue-light); border-color: var(--blue-light); }
.pm-btn:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }

.hm-figure { margin: 0; }
.hm-caption { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 16px; line-height: 1.55; }
.hm-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px;
  font-size: 10px; letter-spacing: 0.5px; color: rgba(255,255,255,0.5);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Heatmap nach BAW-ESM: Stationen x Messquerschnitte, nach Korrosionszonen gruppiert */
.hm2-zone {
  display: grid;
  grid-template-columns: var(--rail) var(--ylab) repeat(8, 1fr);
  gap: 2px;
}
.hm2-rail {
  grid-column: 1; display: flex; flex-direction: column; justify-content: center;
  padding-right: 10px; text-align: right; line-height: 1.25;
}
.hm2-rail-kz {
  font-size: 11px; font-weight: 700; color: var(--blue-light);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hm2-rail-name { font-size: 9px; color: rgba(255,255,255,0.45); }
.hm2-ylabel {
  grid-column: 2; font-size: 10px; color: rgba(255,255,255,0.55);
  text-align: right; padding-right: 8px; align-self: center;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hm2-cell {
  height: 28px; border: none; border-radius: 3px; padding: 0;
  position: relative; font-family: inherit; cursor: default;
  display: flex; align-items: center; justify-content: center;
}
.hm2-cell[data-bin="1"] { background: var(--c1); color: var(--i1); }
.hm2-cell[data-bin="2"] { background: var(--c2); color: var(--i2); }
.hm2-cell[data-bin="3"] { background: var(--c3); color: var(--i3); }
.hm2-cell[data-bin="4"] { background: var(--c4); color: var(--i4); }
.hm2-cell[data-bin="5"] { background: var(--c5); color: var(--i5); }
.hm2-cell:hover, .hm2-cell:focus-visible { outline: 2px solid var(--white); outline-offset: 1px; z-index: 3; }
.hm2-val {
  font-size: 10px; font-weight: 700; letter-spacing: -0.2px; display: none;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* Stufe Basis: nur Farbe. Plus und Premium: Messwerte in den Zellen */
.portal-card[data-level="plus"] .hm2-val,
.portal-card[data-level="premium"] .hm2-val { display: block; }
/* Premium: Zellen sind anklickbar und laden das A-Bild */
.portal-card[data-level="premium"] .hm2-cell { cursor: pointer; }
.portal-card[data-level="premium"] .hm2-cell[aria-current="true"] { outline: 2px solid var(--white); outline-offset: 1px; z-index: 2; }

.hm2-cell::after {
  content: none;
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #0d111a; color: var(--white); border: 1px solid rgba(160,198,255,0.35);
  padding: 6px 10px; border-radius: 6px; font-size: 11px; line-height: 1.4;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 4;
}
.hm2-cell:hover::after { content: attr(data-tip); opacity: 1; }

.hm2-wl {
  display: flex; align-items: center; gap: 6px;
  margin: 6px 0 6px calc(var(--rail) + var(--ylab) + 4px);
  padding-top: 5px; border-top: 1px solid rgba(160,198,255,0.55);
  font-size: 10px; color: var(--blue-light);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hm2-wl.is-expert { border-top: 1px dashed rgba(255,255,255,0.35); color: rgba(255,255,255,0.5); }
.hm2-wl-mark {
  width: 0; height: 0; flex-shrink: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 6px solid var(--blue-light);
}

.hm2-xaxis {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  margin: 10px 0 0 calc(var(--rail) + var(--ylab) + 4px);
  font-size: 9px; color: rgba(255,255,255,0.45); text-align: center;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hm2-legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 11px; color: rgba(255,255,255,0.6); }
.hm2-scale { display: flex; gap: 2px; }
.hm2-swatch { width: 26px; height: 10px; border-radius: 2px; display: inline-block; }
.hm2-swatch[data-bin="1"] { background: var(--c1); }
.hm2-swatch[data-bin="2"] { background: var(--c2); }
.hm2-swatch[data-bin="3"] { background: var(--c3); }
.hm2-swatch[data-bin="4"] { background: var(--c4); }
.hm2-swatch[data-bin="5"] { background: var(--c5); }
.hm2-ticks { display: flex; gap: 2px; font-size: 9px; color: rgba(255,255,255,0.45); font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hm2-ticks span { width: 26px; text-align: center; }

/* Rasterpositionen der Heatmap (statt Inline-Styles, damit die CSP streng bleiben kann) */
.hm2-zone[data-rows="2"] { grid-template-rows: repeat(2, auto); }
.hm2-zone[data-rows="3"] { grid-template-rows: repeat(3, auto); }
.hm2-zone[data-rows="4"] { grid-template-rows: repeat(4, auto); }
.hm2-rail[data-span="2"] { grid-row: 1 / span 2; }
.hm2-rail[data-span="3"] { grid-row: 1 / span 3; }
.hm2-rail[data-span="4"] { grid-row: 1 / span 4; }
.hm2-ylabel[data-row="1"], .hm2-cell[data-row="1"] { grid-row: 1; }
.hm2-ylabel[data-row="2"], .hm2-cell[data-row="2"] { grid-row: 2; }
.hm2-ylabel[data-row="3"], .hm2-cell[data-row="3"] { grid-row: 3; }
.hm2-ylabel[data-row="4"], .hm2-cell[data-row="4"] { grid-row: 4; }

.sub-h3 { font-size: 18px; margin-bottom: 24px; }
.visual-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 24px;
}

/* A-Bild des Ultraschallscans, nur in der Stufe Premium */
.ascan { display: none; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); }
.portal-card[data-level="premium"] .ascan { display: block; }
.ascan-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.ascan-title { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-light); }
.ascan-point {
  font-size: 10px; color: rgba(255,255,255,0.6);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ascan svg { width: 100%; height: auto; display: block; }
.ascan-note { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.5; }

.portal-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.pf {
  padding: 22px 20px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--off-white);
}
.pf h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.pf p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── TECHNOLOGY ── */
#technology { background: var(--off-white); }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(30,35,48,0.1); }
.tech-card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue-mid); margin-bottom: 14px;
}
.tech-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.tech-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.tech-badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tech-tag {
  padding: 4px 10px; background: var(--off-white);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 11px; font-weight: 600; color: var(--navy-light);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── ROADMAP ── */
#roadmap { background: var(--navy); color: var(--white); }
#roadmap .section-eyebrow { color: var(--blue-light); }
#roadmap .section-eyebrow::before { background: var(--blue-light); }
#roadmap h2 { color: var(--white); }
#roadmap .section-sub { color: rgba(255,255,255,0.55); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute;
  top: 20px; left: 12%; right: 12%;
  height: 1px; background: rgba(160,198,255,0.2);
}
.tl-item { padding: 0 16px; position: relative; }
.tl-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(160,198,255,0.1); border: 1px solid rgba(160,198,255,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.tl-dot.done { background: var(--blue-light); border-color: var(--blue-light); }
.tl-dot svg { width: 16px; height: 16px; stroke: var(--navy); fill: none; stroke-width: 2.5; }
.tl-dot-ring { width: 16px; height: 16px; border: 2px solid rgba(160,198,255,0.5); border-radius: 50%; }
.tl-date { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--blue-light); margin-bottom: 8px; text-transform: uppercase; }
.tl-title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.tl-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.65; }

/* ── TEAM ── */
#team { background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(30,35,48,0.1); }
.team-avatar {
  aspect-ratio: 1; background: var(--navy); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--blue-light); letter-spacing: -1px;
}
.team-avatar picture { display: block; width: 100%; height: 100%; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }
.team-info { padding: 20px; }
.team-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.team-role { font-size: 12px; color: var(--blue-mid); font-weight: 600; margin-bottom: 12px; }
.team-skills { display: flex; flex-direction: column; gap: 4px; }
.team-skill { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.team-skill::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--blue-mid); flex-shrink: 0; }

/* ── PATENTS ── */
#patents { background: var(--off-white); }
.patent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.patent-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; display: flex; gap: 20px;
}
.patent-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
}
.patent-icon svg { width: 24px; height: 24px; stroke: var(--blue-light); fill: none; stroke-width: 1.8; }
.patent-az { font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.patent-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.patent-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ── CTA ── */
#contact {
  background: var(--navy);
  text-align: center; padding: 120px 5vw;
}
#contact h2 { color: var(--white); margin-bottom: 20px; }
#contact p { color: rgba(255,255,255,0.6); font-size: 18px; max-width: 520px; margin: 0 auto 48px; line-height: 1.7; }
.contact-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-info { margin-top: 36px; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.contact-item { font-size: 14px; color: rgba(255,255,255,0.72); display: flex; align-items: center; gap: 8px; }
.contact-item a { color: var(--blue-light); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-people {
  margin-top: 52px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.contact-person {
  flex: 0 1 300px; text-align: left;
  padding: 22px 24px; border-radius: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(160,198,255,0.18);
  display: flex; flex-direction: column; gap: 6px;
}
.cp-name { font-size: 15px; font-weight: 700; color: var(--white); }
.cp-role { font-size: 12px; font-weight: 600; color: var(--blue-light); margin-bottom: 8px; }
.contact-person .contact-item { font-size: 13px; }

/* ── FOOTER ── */
footer {
  background: #111520; padding: 40px 5vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
footer p { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.7); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

/* ── REVEAL ON SCROLL (nur wenn JS aktiv) ── */
.js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── HIDE/SHOW LANG ── */
[data-de], [data-en] { }
.lang-de [data-en] { display: none !important; }
.lang-en [data-de] { display: none !important; }
body.lang-en { }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid, .solution-layout, .problem-grid, .patent-grid { grid-template-columns: 1fr; }
  .platform-layout { grid-template-columns: 1fr; gap: 40px; }
  .portal-card { position: static; }
  .portal-features { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  nav ul { display: none; }
}
@media (max-width: 560px) {
  .crawler-card { padding: 14px; }
  .wg-val { font-size: 14px; }
  .wg-zone { font-size: 12px; }
  .wg-tick { font-size: 11px; }
  .wg-badge { font-size: 12px; }
  .tech-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .portal-card { padding: 20px 16px; }
  .portal-card { --rail: 46px; --ylab: 40px; }
  .hm2-zone { gap: 1px; }
  .hm2-rail { padding-right: 6px; }
  .hm2-rail-kz { font-size: 10px; }
  .hm2-rail-name { display: none; }
  .hm2-ylabel { font-size: 9px; padding-right: 5px; }
  .hm2-cell { height: 22px; }
  .hm2-cell::after { white-space: normal; width: 160px; }
  .hm2-xaxis { font-size: 8px; }
  .hm2-swatch, .hm2-ticks span { width: 20px; }
}
