/* G regelt. – Neuer Look im Stil von g-prüft.de
   Inhalte: 1:1 Basis von www.g-regelt.de
   Animationen: Interaktiv & modernisiert (Live-Heizkreis, RLT-Schema+FL, Schnittstellen-Hub, Schaltschrank-I/O-Check, Live-Regelkreis mit Echtzeit-Trend) */

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/poppins/poppins-regular.woff2) format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/poppins/poppins-semibold.woff2) format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/poppins/poppins-bold.woff2) format("woff2");
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-t: #059669;
  --accent-2: #14b8a6;
  --accent-soft: rgba(5, 150, 105, 0.09);
  --on-accent: #ffffff;
  --heat: #ea580c;
  --cool: #0284c7;
  --bad: #dc2626;
  --logo-g: #059669;
  --logo-t: #0f172a;
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.16);
  --gutter: 1rem;
  --block: 3rem;
}

.dark {
  --bg: #0b0f19;
  --surface: #0d1117;
  --surface-card: rgba(15, 23, 42, 0.55);
  --surface-2: #1e293b;
  --surface-3: #334155;
  --line: rgba(30, 41, 59, 0.85);
  --line-2: rgba(51, 65, 85, 0.85);
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --accent: #00e5a3;
  --accent-hover: #34f5bc;
  --accent-t: #00e5a3;
  --accent-2: #22d3ee;
  --accent-soft: rgba(0, 229, 163, 0.1);
  --on-accent: #020617;
  --heat: #fb923c;
  --cool: #38bdf8;
  --bad: #f87171;
  --logo-g: #00e5a3;
  --logo-t: #ffffff;
  --header-bg: rgba(11, 15, 25, 0.85);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; --block: 4.5rem; } }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 Poppins, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
::selection { background: #00e5a3; color: #020617; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 90;
  background: var(--accent); color: var(--on-accent);
  padding: 0.55rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

[id] { scroll-margin-top: 5.5rem; }
@media (max-width: 767.98px) { [id] { scroll-margin-top: 7.25rem; } }

/* Container & Sektionen (identisch zu g-prüft.de) */
.wrap {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.narrow-wrap {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.block-abstand { padding-block: var(--block); border-bottom: 1px solid var(--line); }
.block-abstand.no-border { border-bottom: 0; }
.hero-abstand {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero-abstand { padding-top: 3.75rem; padding-bottom: 4.5rem; }
}

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.top-in { height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo-img {
  display: block; width: 136px; height: 32px;
  background: linear-gradient(90deg, var(--logo-g) 0 18.5%, var(--logo-t) 18.5%);
  -webkit-mask: url(/images/logo-gregelt.png) left center / contain no-repeat;
  mask: url(/images/logo-gregelt.png) left center / contain no-repeat;
}
.kopf-nav {
  display: flex; align-items: center; gap: 1.35rem;
  font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.kopf-nav a { position: relative; padding-block: 0.35rem; transition: color 0.15s ease; }
.kopf-nav a:hover { color: var(--accent-t); }
.kopf-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.15rem; height: 2px;
  border-radius: 9999px; background: var(--accent);
  transform: scaleX(0); transform-origin: center; transition: transform 0.2s ease, opacity 0.2s ease; opacity: 0;
}
.kopf-nav a.is-active { color: var(--accent-t); font-weight: 600; }
.kopf-nav a.is-active::after { transform: scaleX(1); opacity: 1; }

.theme-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; min-height: 2.5rem; border-radius: 0.75rem;
  font-size: 0.75rem; font-weight: 500;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-2);
  transition: background-color 0.15s ease, border-color 0.2s ease, color 0.15s ease; flex: none;
}
.theme-btn:hover { background: var(--surface-3); color: var(--text); }
.theme-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; color: #00e5a3; }
.theme-btn .i-moon { display: block; color: #047857; }
.dark .theme-btn .i-sun { display: block; }
.dark .theme-btn .i-moon { display: none; }
.theme-label { display: none; }
@media (min-width: 1280px) { .theme-label { display: inline; } }

.scrollbar {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

@media (max-width: 767.98px) {
  .top-in { height: auto; flex-wrap: wrap; padding-block: 0.6rem; row-gap: 0.35rem; }
  .kopf-nav {
    order: 3; width: 100%; justify-content: space-between; gap: 0.35rem; font-size: 11.5px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .kopf-nav::-webkit-scrollbar { display: none; }
  .kopf-nav a { padding-block: 0.45rem; }
}
@media (max-width: 429.98px) {
  .kopf-nav { font-size: 10.5px; gap: 0.2rem; }
}

/* Typografie */
.sec-head { max-width: 48rem; margin-bottom: 1.75rem; }
.sec-kicker {
  display: block; margin-bottom: 0.6rem;
  font-size: 0.75rem; line-height: 1rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-t);
}
.hero-titel {
  font-size: clamp(1.875rem, 3.6vw, 2.875rem);
  line-height: 1.14; letter-spacing: -0.025em; font-weight: 700;
  color: var(--text); margin: 0 0 1rem 0; text-wrap: balance;
}
.grad-text {
  background-image: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sektion-titel {
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  line-height: 1.18; letter-spacing: -0.02em; font-weight: 700;
  color: var(--text); margin: 0 0 0.75rem 0; text-wrap: balance;
}
.phase-lead-strong { font-size: 1.0625rem; font-weight: 600; color: var(--text); line-height: 1.5; margin-bottom: 0.55rem; }
.sec-lead { max-width: 46rem; font-size: 0.96875rem; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }

/* CTAs & Trust */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.65rem; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 2.75rem; padding: 0.72rem 1.35rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 600; background: var(--accent); color: var(--on-accent);
  transition: background-color 0.15s ease;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 2.75rem; padding: 0.72rem 1.2rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 600; border: 1px solid var(--line-2);
  color: var(--text-2); background: transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-t); }
.btn-full { width: 100%; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.4rem;
  margin-top: 1.4rem; font-size: 0.8125rem; color: var(--text-3);
}
.trust-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-check { color: var(--accent-t); font-weight: 700; }

/* Hero Grid & CAD-Hintergrund */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.12; pointer-events: none; }
.cad path { fill: none; stroke: var(--text-3); stroke-width: 1; }
.cad path.flow { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 34; animation: dash 3s linear infinite; }
.cad circle { fill: var(--accent); }
@keyframes dash { to { stroke-dashoffset: -80; } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 3rem; }
}

/* 4-Schritte-Übersicht */
.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.step-card {
  display: flex; flex-direction: column; padding: 1.4rem; border-radius: 0.875rem;
  border: 1px solid var(--line-2); background: var(--surface-card);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.3s ease;
}
a.step-card:hover, .step-card.is-step-active { border-color: var(--accent); transform: translateY(-2px); }
.step-kicker { display: block; margin-bottom: 0.45rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-t); }
.step-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.step-text { font-size: 0.85rem; line-height: 1.6; color: var(--text-3); }

/* Interaktive Panels */
.fig { margin: 0; }
.shot-caption { margin-top: 0.7rem; font-size: 0.75rem; line-height: 1.5; color: var(--text-3); }
.panel {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 1rem;
  overflow: hidden; box-shadow: var(--shadow-xl);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.panel-hero { box-shadow: var(--shadow-2xl); }
.panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.65rem 1.15rem; border-bottom: 1px solid var(--line); font-size: 0.75rem;
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
}
.panel-title { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--text); }
.panel-meta { font-weight: 600; color: var(--accent-t); text-align: right; }
.dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; flex: none; }
@keyframes pulse { 50% { opacity: 0.35; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr); }
.split-a { padding: 1rem; }
.split-b { border-top: 1px solid var(--line); padding: 1rem; }
.split-b.flush { padding: 0; }
@media (min-width: 640px) { .split-a, .split-b { padding: 1.3rem; } }
@media (min-width: 1024px) {
  .split { grid-template-columns: 7fr 5fr; }
  .split-b { border-top: 0; border-left: 1px solid var(--line); }
}
.ctrl { display: flex; flex-direction: column; gap: 0.95rem; }
.ctrl > .btn-primary:last-child { margin-top: auto; }

/* Hero Heizkreis-Steuerung */
.hero-sim-svg { padding: 0.8rem 0.9rem 0.4rem; }
.hero-sim-controls {
  border-top: 1px solid var(--line); padding: 0.85rem 1.1rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem;
}
@media (min-width: 640px) { .hero-sim-controls { grid-template-columns: 1fr 1fr; align-items: end; } }
.sim-action-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem; grid-column: 1 / -1;
}
.hero-sim-stats {
  border-top: 1px solid var(--line); padding: 0.7rem 1.1rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 0.9rem;
}
@media (min-width: 520px) { .hero-sim-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-stat { border-left: 2px solid var(--accent); padding-left: 0.55rem; }
.hero-stat dt { font-size: 0.6875rem; color: var(--text-3); line-height: 1.25; }
.hero-stat dd { font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); margin-top: 0.1rem; }

/* Pills & Slider */
.tab-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.15rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  min-height: 2.15rem; padding: 0.35rem 0.8rem; border-radius: 0.5rem;
  font-size: 0.75rem; font-weight: 600; background: var(--surface-2); color: var(--text-2);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.pill:hover { color: var(--text); }
.pill.on { background: var(--accent); color: var(--on-accent); }
@media (max-width: 639.98px) { .pill { min-height: 2.5rem; flex: 1 1 auto; } }

.field label, .field-l {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.75rem; font-weight: 600; color: var(--text-2);
}
.field-l { margin-bottom: 0.35rem; }
.field output { color: var(--accent-t); font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"]#sw {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2.1rem;
  background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; --p: 50%;
}
#sw::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--surface-3) var(--p)); }
#sw::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--surface-3) var(--p)); }
#sw::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
#sw::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); }

/* SVG Basis-Styles für Hero & Phasen 1-4 */
.sv { width: 100%; height: auto; overflow: visible; }
.sv text { font-family: Poppins, system-ui, sans-serif; }
.lbl { font-size: 14px; font-weight: 600; fill: var(--text-2); }
.val { font-size: 13px; font-weight: 600; fill: var(--text); font-variant-numeric: tabular-nums; }
.pb { fill: none; stroke: var(--surface-3); stroke-width: 12; }
.pb-t { fill: none; stroke: var(--surface-3); stroke-width: 8; stroke-linejoin: round; }
.mix { fill: var(--surface); stroke: var(--text-2); stroke-width: 2; stroke-linejoin: round; }
.air { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 3 13; animation: dash16 0.9s linear infinite; }
.air.air-m { animation: none; }
@keyframes dash16 { to { stroke-dashoffset: -16; } }
.comp { fill: var(--surface); stroke: var(--text-3); stroke-width: 1.5; }
.thin { fill: none; stroke: var(--text-3); stroke-width: 1.2; }
.heat { fill: var(--heat); }
.coil { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linejoin: round; }
.blade { fill: var(--accent); }
.fan { transform-origin: 450px 100px; animation: spin 1.2s linear infinite; }
.fan-z { transform-origin: 190px 100px; }
.fan-z.off { animation-play-state: paused; }
.fan-z.off .blade { fill: var(--text-3); }
.fan-wp { transform-origin: 85px 100px; }
.wp-c { fill: none; stroke: var(--cool); stroke-width: 2; stroke-linejoin: round; }
.wp-h { fill: none; stroke: var(--heat); stroke-width: 2; stroke-linejoin: round; }
.mob { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash12 { to { stroke-dashoffset: -12; } }
@keyframes dash10 { to { stroke-dashoffset: -10; } }
@keyframes dash9 { to { stroke-dashoffset: -9; } }
.sig { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 6; animation: dash10 1.2s linear infinite; }
.sensor { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.sens { font-size: 13px; font-weight: 700; fill: var(--accent-t); }
.ddc { fill: color-mix(in srgb, var(--accent) 11%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; }
.ddc-t { font-size: 15px; font-weight: 700; fill: var(--text); }
@media (max-width: 639.98px) {
  .lbl { font-size: 21px; } .desk { display: none; } .mob { display: inline; }
  .lbl-p { transform: translateX(-14px); } .ddc-t { font-size: 22px; } .sens { font-size: 17px; }
}

/* Trend-Bereich */
.trend { border-top: 1px solid var(--line); padding: 0.7rem 1.1rem 0.9rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.7rem; color: var(--text-3); margin-bottom: 0.45rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.k { width: 0.85rem; height: 3px; border-radius: 2px; display: block; }
.k-soll { background: var(--text-3); } .k-ist { background: var(--accent); } .k-heat { background: var(--heat); } .k-cool { background: var(--cool); } .k-bad { background: var(--bad); }
.trend-svg { width: 100%; height: 5.5rem; }
.grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.l-soll { fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.l-ist { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.l-bad { fill: none; stroke: var(--bad); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.l-rl { fill: none; stroke: var(--cool); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.a-heat { fill: var(--heat); opacity: 0.24; }

/* Phase 1: RLT-Schema & GA-Funktionsliste */
.fl { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.fl th { text-align: left; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); padding: 0.72rem 0.6rem; border-bottom: 1px solid var(--line); }
.fl td { padding: 0.6rem 0.6rem; border-bottom: 1px solid var(--line); transition: background-color 0.15s ease, color 0.15s ease, opacity 0.2s ease; }
.fl th:first-child, .fl td:first-child { padding-left: 1.2rem; }
.fl th:last-child, .fl td:last-child { padding-right: 1.2rem; white-space: nowrap; }
.fl tr:last-child td { border-bottom: 0; }
.fl td:first-child { font-weight: 700; white-space: nowrap; }
.fl tbody tr { cursor: pointer; }
.fl tbody tr:hover td { background: var(--surface-2); }
.fl tbody tr.on td { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.fl tbody tr.on td:first-child { color: var(--accent-t); }
.fl tbody tr.off td { opacity: 0.28; }
.sig-badge { display: inline-block; padding: 0.12rem 0.45rem; border-radius: 0.35rem; font-size: 0.7rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.fl tbody tr.on .sig-badge { background: var(--accent); color: var(--on-accent); }
.dp { cursor: pointer; transition: opacity 0.2s ease; outline: none; }
.dp .hit { fill: transparent; }
.dp .b { fill: var(--surface); stroke: var(--text-3); stroke-width: 2; transition: fill 0.15s ease, stroke 0.15s ease; }
.dp text { font-size: 16px; font-weight: 700; fill: var(--text); transition: fill 0.15s ease; }
.dp.on .b, .dp:focus-visible .b { fill: var(--accent); stroke: var(--accent); }
.dp.on text, .dp:focus-visible text { fill: var(--on-accent); }
.dp.off { opacity: 0.22; }
.link-s { fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 4 5; transition: stroke 0.15s ease, opacity 0.2s ease; }
.link-s.on { stroke: var(--accent); stroke-width: 2.5; animation: dash9 0.9s linear infinite; }
.link-s.off { opacity: 0.22; }
.pen { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-dasharray: var(--L); stroke-dashoffset: 0; }
.js .draw:not(.in) .pen { stroke-dashoffset: var(--L); }
.draw .pen { transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
@media (max-width: 639.98px) { .dp text { font-size: 22px; } }

/* Phase 2: Schnittstellen-Hub */
.nd { cursor: pointer; outline: none; }
.nd rect { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; transition: fill 0.2s ease, stroke 0.2s ease; }
.nd text { font-size: 15px; font-weight: 600; fill: var(--text); transition: fill 0.2s ease; }
.nd.on rect, .nd:focus-visible rect { fill: var(--accent); stroke: var(--accent); }
.nd.on text, .nd:focus-visible text { fill: var(--on-accent); }
.hub rect { fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); stroke: var(--accent); stroke-width: 2; }
.hub text { font-size: 17px; font-weight: 700; fill: var(--text); }
.ln-n { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke 0.2s ease; }
.ln-n.on { stroke: var(--accent); stroke-width: 2.5; }
.pulse-c { fill: var(--accent); }
@media (max-width: 639.98px) { .nd text { font-size: 20px; } .hub text { font-size: 21px; } }

.eyebrow { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-t); }
.big { font-size: 1.3rem; line-height: 1.3; font-weight: 700; color: var(--text); margin-top: -0.35rem; }
.checks, .tests { display: flex; flex-direction: column; }
.checks li, .tests li {
  position: relative; display: flex; align-items: center; gap: 0.7rem;
  padding-block: 0.62rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.checks li:last-child, .tests li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before, .tests li::before {
  content: ""; flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--surface-3); transition: background-color 0.3s ease;
}
.checks li.ok::before, .tests li.ok::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23020617' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.82rem no-repeat;
}
.tests li.run::before { background: var(--accent); animation: pulse 0.7s ease-in-out infinite; }
.tests li .st-lbl { margin-left: auto; font-size: 0.75rem; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.tests li.ok .st-lbl { color: var(--accent-t); font-weight: 600; }
.note { font-size: 0.8125rem; line-height: 1.5; color: var(--text-3); margin-top: auto; }

/* Phase 3: Schaltschrank =ASP01 */
.c-box { fill: var(--surface-2); stroke: var(--text-3); stroke-width: 1.75; }
.c-mod { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; transition: stroke 0.3s ease; }
.c-mod.on { stroke: var(--accent); stroke-width: 2.5; }
.c-mod.ok { stroke: var(--accent); }
.c-term { fill: var(--text-3); transition: fill 0.3s ease; }
.c-term.on { fill: var(--accent); }
.c-led { fill: var(--surface-3); transition: fill 0.2s ease; }
.c-led.on { fill: var(--accent); }
.c-t { font-size: 14px; font-weight: 600; fill: var(--text-2); }
.c-sub { font-size: 11px; font-weight: 500; fill: var(--text-3); }
.c-w { fill: none; stroke: var(--line-2); stroke-width: 2; transition: stroke 0.3s ease; }
.c-w.on { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 6; animation: dash12 0.6s linear infinite; }
.c-w.ok { stroke: var(--accent); }
.c-dev { fill: var(--surface); stroke: var(--text-3); stroke-width: 2; transition: stroke 0.3s ease; }
.c-dev.on, .c-dev.ok { stroke: var(--accent); }
.c-dt { font-size: 15px; font-weight: 600; fill: var(--text); }
.c-ds { font-size: 12px; font-weight: 500; fill: var(--text-3); }
@media (max-width: 639.98px) { .c-t { font-size: 20px; } .c-dt { font-size: 21px; } .c-sub, .c-ds { font-size: 15px; } }
.meter-h { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-3); margin-bottom: 0.35rem; }
.meter-h span:last-child { font-weight: 600; color: var(--text); }
.meter-b { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter-b i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--heat), var(--accent)); transform-origin: 0 50%; transition: transform 0.6s ease; }

/* Authentisches g-prüft App-Fenster in Phase 3 */
.gp-app {
  background: #11161f;
  color: #e2e8f0;
  border: 1px solid var(--line-2);
  border-radius: 0.75rem;
  overflow: hidden;
  font-size: 0.72rem;
}
.gp-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.48rem 0.75rem;
  background: #0c1017;
  border-bottom: 1px solid #1e293b;
  font-size: 0.68rem;
  color: #94a3b8;
}
.gp-brand { display: inline-flex; align-items: center; gap: 0.45rem; color: #f8fafc; font-weight: 700; }
.gp-g {
  width: 1.15rem; height: 1.15rem; border-radius: 0.25rem;
  background: #00e5a3; color: #020617; font-weight: 700;
  display: grid; place-items: center; font-size: 0.75rem; line-height: 1;
}
.gp-crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 315px;
}
@media (max-width: 560px) {
  .gp-body { grid-template-columns: minmax(0, 1fr); }
  .gp-side { display: flex; flex-wrap: wrap; gap: 0.25rem; border-right: 0 !important; border-bottom: 1px solid #1e293b; padding: 0.4rem !important; }
  .gp-side-item { flex: 1 1 auto; text-align: center; padding: 0.3rem 0.45rem !important; }
  .gp-dp-col { display: none !important; }
}
.gp-side {
  background: #161c26;
  border-right: 1px solid #1e293b;
  padding: 0.5rem 0.4rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.gp-side-item {
  width: 100%; text-align: left;
  padding: 0.42rem 0.55rem; border-radius: 0.4rem;
  font-size: 0.68rem; font-weight: 500; color: #94a3b8;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.gp-side-item.on { background: #00e5a3; color: #020617; font-weight: 700; }
.gp-side-item[data-gpview]:hover:not(.on) { background: #1e293b; color: #f8fafc; }

.gp-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  background: #0f141d;
}
@media (max-width: 639.98px) {
  .gp-main { grid-template-columns: minmax(0, 1fr); }
}
.gp-stage { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; }
.gp-stage[hidden] { display: none; }
.gp-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem;
  font-size: 0.65rem; color: #94a3b8;
}
.gp-pill-mint {
  padding: 0.16rem 0.5rem; border-radius: 0.35rem;
  background: #00e5a3; color: #020617; font-weight: 700; font-size: 0.64rem;
}
.gp-chart-box {
  background: #ffffff;
  border-radius: 0.4rem;
  padding: 0.35rem;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}
.gp-chart-svg { width: 100%; height: auto; display: block; }
.gp-dp-col {
  border-left: 1px solid #1e293b;
  background: #131922;
  padding: 0.55rem 0.5rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.gp-dp-head { font-size: 0.68rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.1rem; }
.gp-dp-row {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.6rem; color: #cbd5e1; line-height: 1.25;
}
.gp-chk {
  width: 11px; height: 11px; border-radius: 2px; flex: none;
  background: #00e5a3; color: #020617; font-size: 8px; font-weight: 700;
  display: grid; place-items: center;
}
.gp-sw { width: 9px; height: 9px; border-radius: 2px; flex: none; margin-left: auto; }

/* FDD Befund-Ansicht im g-prüft-Fenster */
.gp-fdd-list { display: flex; flex-direction: column; gap: 0.45rem; }
.gp-fdd-item {
  padding: 0.55rem 0.65rem; border-radius: 0.45rem;
  background: #161d29; border: 1px solid #263143;
  display: flex; flex-direction: column; gap: 0.25rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.gp-fdd-item.active { border-color: #fb923c; background: rgba(251, 146, 60, 0.09); }
.gp-fdd-item.ok { border-color: rgba(0, 229, 163, 0.45); }
.gp-fdd-top { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.gp-fdd-code { font-weight: 700; color: #f8fafc; font-size: 0.68rem; }
.gp-fdd-st {
  font-size: 0.6rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 999px;
  background: rgba(251, 146, 60, 0.2); color: #fb923c;
}
.gp-fdd-item.ok .gp-fdd-st { background: rgba(0, 229, 163, 0.18); color: #00e5a3; }
.gp-fdd-desc { font-size: 0.63rem; color: #94a3b8; line-height: 1.35; }
.gp-fdd-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.45rem 0.6rem; border-radius: 0.4rem;
  background: #161d29; border: 1px solid #263143; font-size: 0.64rem; color: #cbd5e1;
}

.gp-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 0.95rem; border-radius: 0.75rem;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 0.78rem; color: var(--text-2);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.gp-promo:hover { border-color: var(--accent); }
.gp-promo strong { color: var(--text); display: block; font-size: 0.8125rem; }
.gp-promo-go { color: var(--accent-t); font-weight: 700; white-space: nowrap; }

/* Phase 4: Geschlossener Regelkreis + Echtzeit-Trend */
.ga-grid line { stroke: var(--accent); stroke-width: 0.5; opacity: 0.1; }
.ga-pipe { fill: none; stroke: var(--surface-3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ga-pipe-rl { fill: none; stroke: var(--surface-3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ga-flow { fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-dasharray: 8 14; stroke-linecap: round; animation: gaDash 1.6s linear infinite; }
.ga-flow-rev { fill: none; stroke: var(--cool); stroke-width: 2.8; stroke-dasharray: 8 14; stroke-linecap: round; animation: gaDashRev 1.8s linear infinite; }
@keyframes gaDash { to { stroke-dashoffset: -44; } }
@keyframes gaDashRev { to { stroke-dashoffset: 44; } }
.ga-box { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.4; }
.ga-box-hi { fill: color-mix(in srgb, var(--accent) 14%, var(--surface)); stroke: var(--accent); stroke-width: 1.7; }
.ga-node { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.ga-accent-fill { fill: var(--accent); }
.ga-accent-stroke { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ga-muted-stroke { fill: none; stroke: var(--text-3); stroke-width: 1.1; stroke-linecap: round; }
.ga-t-main { fill: var(--text); font-weight: 700; }
.ga-t-accent { fill: var(--accent-t); font-weight: 700; }
.ga-t-sub { fill: var(--text-3); font-weight: 500; }
.ga-t-val { fill: var(--accent-t); font-weight: 700; font-variant-numeric: tabular-nums; }
.loop-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem; padding: 0.75rem 1.15rem; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 35%, var(--surface));
}
.loop-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }

/* Zusammenarbeit (4 Werte + 3 Karten von www.g-regelt.de) */
.values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.value-card {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.15rem;
  border-radius: 0.875rem; border: 1px solid var(--line-2); border-top: 2px solid var(--accent);
  background: var(--surface-card); font-size: 0.9375rem; font-weight: 700; color: var(--text);
  min-width: 0;
}
.value-card svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--accent-t); }
@media (max-width: 639.98px) {
  .value-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 0.95rem;
    font-size: 0.85rem;
  }
}

.audience-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 900px) { .audience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.audience-card {
  display: flex; flex-direction: column; padding: 1.65rem; border-radius: 1rem;
  border: 1px solid var(--line-2); background: var(--surface-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.audience-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.audience-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-t); margin-bottom: 1rem;
}
.audience-icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.audience-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.audience-card p { font-size: 0.875rem; line-height: 1.65; color: var(--text-2); margin-bottom: 1.25rem; flex: 1; }
.card-cta { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--accent-t); min-height: 2.5rem; }
.card-cta svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.card-cta:hover svg { transform: translateX(3px); }

/* Kontakt */
.cta-box { border-radius: 1rem; padding: 2.25rem 1.5rem; border: 1px solid var(--line-2); background: var(--surface-card); text-align: center; }
@media (min-width: 768px) { .cta-box { padding: 3rem 2.5rem; } }
.cta-lead { max-width: 34rem; margin: 0 auto; font-size: 0.95rem; line-height: 1.65; color: var(--text-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2rem; text-align: left; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card { display: block; padding: 1.15rem 1.25rem; border-radius: 0.875rem; border: 1px solid var(--line-2); background: var(--surface); transition: border-color 0.15s ease; }
a.contact-card:hover { border-color: var(--accent); }
.contact-val { display: block; margin-top: 0.3rem; font-size: 0.9375rem; font-weight: 600; color: var(--text); line-height: 1.5; }
a.contact-card:hover .contact-val { color: var(--accent-t); }
.reply-note { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--text-3); }

/* Rechtstexte */
.legal { max-width: 80rem; margin-inline: auto; padding: var(--block) max(var(--gutter), env(safe-area-inset-right)) calc(var(--block) * 1.4) max(var(--gutter), env(safe-area-inset-left)); }
.legal article { max-width: 48rem; }
.legal h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.legal section { border-top: 1px solid var(--line); padding-block: 1.25rem; }
.legal h2 { margin: 0 0 0.5rem; font-size: 1.0625rem; color: var(--accent-t); font-weight: 600; }
.legal p, .legal li, .legal address { color: var(--text-2); font-size: 0.9375rem; line-height: 1.7; font-style: normal; overflow-wrap: anywhere; }
.legal p + p, .legal address + p, .legal p + address { margin-top: 0.65rem; }
.legal ul { margin-top: 0.5rem; list-style: disc; padding-left: 1.25rem; }
.legal a { color: var(--accent-t); text-decoration: underline; text-underline-offset: 2px; }

/* Fußzeile & Cookie-Hinweis */
.foot { border-top: 1px solid var(--line); padding-block: 2.5rem max(2.5rem, env(safe-area-inset-bottom)); font-size: 0.75rem; line-height: 1.65; color: var(--text-3); }
.foot-in { display: flex; flex-direction: column; gap: 1.25rem; justify-content: space-between; }
@media (min-width: 900px) { .foot-in { flex-direction: row; align-items: center; } }
.foot-meta { max-width: 44rem; }
.foot-b { color: var(--text-2); font-weight: 600; margin-bottom: 0.35rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; flex-shrink: 0; }
.foot-nav a, .foot-nav button { padding-block: 0.4rem; transition: color 0.15s ease; }
.foot-nav a:hover, .foot-nav button:hover { color: var(--accent-t); }

.consent {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: var(--surface); color: var(--text); border-top: 1px solid var(--line-2);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  padding: 1rem max(var(--gutter), env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}
.consent[hidden] { display: none; }
.consent-innen { max-width: 80rem; margin: 0 auto; }
.consent h2 { font-size: 1rem; font-weight: 600; }
.consent p { font-size: 0.8125rem; line-height: 1.55; color: var(--text-2); margin-top: 0.3rem; }
.consent a { color: var(--accent-t); text-decoration: underline; }
.consent-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.consent button {
  border: 1px solid var(--accent); color: var(--accent-t); background: transparent;
  border-radius: 0.5rem; padding: 0.5rem 1.1rem; min-height: 2.5rem; font-size: 0.8125rem; font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.consent button:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 639.98px) { .consent button { flex: 1 1 100%; } }

/* Einblenden */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
