/* ═══════════════════════════════════════════════════════════════
   CP ROBOTIK — Design System "Precision Engineering"
   Handgeschriebenes CSS, kein Framework.
   Schriften: Space Grotesk (Display) · Inter (Text) · JetBrains Mono (Technik)
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-var.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-var-ext.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-var.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-var-ext.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --bg0: #06090f;          /* tiefste Fläche */
  --bg1: #0a0f18;          /* Seitengrund */
  --bg2: #0e1522;          /* Karten */
  --bg3: #131c2e;          /* Karten hover / erhöht */
  --line:  rgba(146, 176, 220, 0.10);
  --line2: rgba(146, 176, 220, 0.20);
  --txt:  #e9eef6;
  --txt2: #a3b2c9;
  --txt3: #66768f;
  --blue: #3498db;
  --blue-hi: #5db4f0;
  --blue-dim: rgba(52, 152, 219, 0.12);
  --run: #2ee08a;          /* HMI RUN-Grün */
  --run-dim: rgba(46, 224, 138, 0.12);
  --amber: #ffb454;
  --red: #ff6b6b;
  --light-bg: #eef1f6;     /* helle Sektion */
  --light-card: #ffffff;
  --light-txt: #101724;
  --light-txt2: #4a5871;
  --light-line: rgba(16, 30, 60, 0.12);

  --font-d: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --maxw: 1200px;
  --rad: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset / Basis ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg1);
  color: var(--txt2);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(52, 152, 219, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 4px; }

/* Blueprint-Raster über der ganzen Seite (sehr dezent) */
.grid-bg::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(146, 176, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 176, 220, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.25) 100%);
}
main, header.site-header, footer { position: relative; z-index: 1; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Grid-Blowout verhindern: Kinder dürfen schrumpfen */
.hero .wrap > *, .exp-grid > *, .person-grid > *, .cards-3 > *, .proj-grid > * { min-width: 0; }

/* ── Typo-Utilities ────────────────────────────────────────── */
.mono { font-family: var(--font-m); }

h1, h2, h3 { font-family: var(--font-d); color: var(--txt); letter-spacing: -0.02em; }

.kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-m);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 18px;
  white-space: nowrap;
}
.kicker::after { content: ''; height: 1px; flex: 0 1 180px; background: linear-gradient(90deg, var(--line2), transparent); }

.section-head { margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  font-weight: 700; line-height: 1.12;
}
.section-head .sub { margin-top: 14px; max-width: 620px; color: var(--txt2); font-size: 1.05rem; }

section { padding: 104px 0; position: relative; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-d); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  position: relative;
}
.btn .arr { font-family: var(--font-m); font-weight: 500; transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, #3fa2e6, #2176ae);
  color: #fff;
  box-shadow: 0 6px 24px rgba(52, 152, 219, 0.32), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(52, 152, 219, 0.45), inset 0 1px 0 rgba(255,255,255,0.18); }

.btn-ghost {
  border-color: var(--line2); color: var(--txt);
  background: rgba(146, 176, 220, 0.03);
}
.btn-ghost:hover { border-color: rgba(146, 176, 220, 0.45); background: rgba(146, 176, 220, 0.07); transform: translateY(-2px); }

/* ── LED-Punkte ────────────────────────────────────────────── */
.led { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.led-run  { background: var(--run);  box-shadow: 0 0 8px rgba(46, 224, 138, 0.9); animation: pulse 2.2s ease-in-out infinite; }
.led-blue { background: var(--blue-hi); box-shadow: 0 0 8px rgba(93, 180, 240, 0.9); animation: blink 1.4s steps(2, start) infinite; }
.led-idle { background: var(--txt3); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.25; } 100% { opacity: 1; } }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 10, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo-chip { background: #fff; border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; box-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.logo-chip img { height: 30px; width: auto; max-width: 132px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--font-m); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--txt2); transition: color 0.2s; position: relative; padding: 4px 0;
}
.nav-link::before { content: '/'; color: var(--blue); margin-right: 6px; opacity: 0; transition: opacity 0.2s; }
.nav-link:hover { color: #fff; }
.nav-link:hover::before { opacity: 1; }
.nav .btn { padding: 10px 20px; font-size: 0.9rem; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 118px 0 80px;
  position: relative;
  background: radial-gradient(1200px 700px at 78% 18%, rgba(52, 152, 219, 0.13), transparent 60%), var(--bg0);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  will-change: transform;
  background-image: url('../cprhero.webp');
  background-size: cover; background-position: center right;
  opacity: 0.14;
  mask-image: linear-gradient(105deg, transparent 30%, #000 75%);
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 75%);
}
.hero::after { /* Boden-Fade */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg1));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-m); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--run);
  border: 1px solid rgba(46, 224, 138, 0.28);
  background: var(--run-dim);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.3rem);
  font-weight: 700; line-height: 1.03; letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--blue-hi);
  text-shadow: 0 0 40px rgba(52, 152, 219, 0.4);
}
.hero-sub { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--txt); font-weight: 400; margin-bottom: 12px; font-family: var(--font-d); }
.hero-copy { font-size: 1rem; color: var(--txt2); max-width: 540px; margin-bottom: 26px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  font-family: var(--font-m); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--blue-hi);
  border: 1px solid rgba(52, 152, 219, 0.3);
  background: var(--blue-dim);
  padding: 7px 14px; border-radius: 6px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero: SPS-Panel */
.panel-stage { position: relative; }
.panel-traces { position: absolute; inset: -40px -30px; width: calc(100% + 60px); height: calc(100% + 80px); pointer-events: none; overflow: visible; }
.panel-traces path { fill: none; stroke-width: 1.5; stroke-dasharray: 6 10; animation: trace 30s linear infinite; }
.panel-traces .t-blue  { stroke: rgba(93, 180, 240, 0.35); }
.panel-traces .t-green { stroke: rgba(46, 224, 138, 0.30); animation-direction: reverse; }
@keyframes trace { to { stroke-dashoffset: -640; } }

.sps-panel {
  position: relative;
  background: linear-gradient(160deg, #0d1420, #090e17);
  border: 1px solid var(--line2);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(52, 152, 219, 0.07), 0 0 60px rgba(52, 152, 219, 0.08);
  overflow: hidden;
}
.sps-panel::before, .sps-panel::after { /* technische Eckmarken */
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: rgba(93, 180, 240, 0.6); border-style: solid;
}
.sps-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 12px 0 0 0; }
.sps-panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 12px 0; }

.panel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(146, 176, 220, 0.04);
}
.panel-bar .dots { display: flex; gap: 6px; }
.panel-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--txt3); opacity: 0.45; }
.panel-bar .dots span:first-child { background: var(--red); opacity: 0.7; }
.panel-bar .dots span:nth-child(2) { background: var(--amber); opacity: 0.7; }
.panel-bar .dots span:nth-child(3) { background: var(--run); opacity: 0.7; }
.panel-title { font-family: var(--font-m); font-size: 0.74rem; color: var(--txt3); letter-spacing: 0.05em; margin-left: 4px; }
.panel-title b { color: var(--txt2); font-weight: 500; }

.panel-code {
  padding: 20px 22px;
  font-family: var(--font-m); font-size: 0.8rem; line-height: 1.75;
  color: var(--txt2);
  white-space: pre; overflow-x: auto;
}
.panel-code .ln { display: block; opacity: 0; transform: translateY(6px); animation: lineIn 0.5s var(--ease) forwards; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.panel-code .c-kw  { color: #6cb8f5; font-weight: 600; }
.panel-code .c-var { color: #e9eef6; }
.panel-code .c-fn  { color: #58d6b4; }
.panel-code .c-cm  { color: #5a6b85; font-style: italic; }
.panel-code .c-num { color: #ffb454; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--blue-hi); vertical-align: -2px; animation: blink 1.1s steps(2, start) infinite; }

.panel-status {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(146, 176, 220, 0.03);
  font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--txt3);
}
.panel-status .item { display: inline-flex; align-items: center; gap: 8px; }
.panel-status b { color: var(--txt2); font-weight: 500; }
.panel-status .val-run { color: var(--run); font-weight: 600; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-m); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(163, 178, 201, 0.4); z-index: 2;
}
.scroll-hint .line { width: 1px; height: 34px; background: linear-gradient(180deg, var(--blue-hi), transparent); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 61% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ── HMI-Statusleiste ──────────────────────────────────────── */
.status-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg0);
  padding: 0;
}
.status-strip .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 30px; padding-top: 16px; padding-bottom: 16px;
}
.status-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--txt3);
}
.status-item b { color: var(--txt2); font-weight: 500; }
.status-item .ok { color: var(--run); font-weight: 600; }

/* ── Zahlen / Fakten ──────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; margin-top: 64px; }
.fact { background: var(--bg2); padding: 28px 26px; position: relative; }
.fact .num { font-family: var(--font-d); font-size: 2rem; font-weight: 700; color: var(--txt); letter-spacing: -0.02em; }
.fact .num em { color: var(--blue-hi); font-style: normal; }
.fact .lbl { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt3); margin-top: 6px; }

/* ── Karten (Leistungen) ───────────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(170deg, var(--bg3), var(--bg2) 55%);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 34px 30px;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card::before, .card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 0 solid var(--blue-hi); opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-radius: var(--rad) 0 0 0; }
.card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 var(--rad) 0; }
.card:hover { transform: translateY(-5px); border-color: rgba(52, 152, 219, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(52, 152, 219, 0.1); }
.card:hover::before, .card:hover::after { opacity: 1; }

.card .tag {
  font-family: var(--font-m); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em;
  color: var(--blue-hi); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.card .tag::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.card .icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--blue-dim); border: 1px solid rgba(52, 152, 219, 0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--blue-hi);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.card p { font-size: 0.94rem; margin-bottom: 20px; }
.card ul { list-style: none; }
.card li {
  font-size: 0.86rem; padding: 7px 0 7px 22px; position: relative;
  border-top: 1px dashed var(--line);
  color: var(--txt2);
}
.card li::before {
  content: '▸'; position: absolute; left: 2px; color: var(--blue);
  font-family: var(--font-m); font-size: 0.8rem;
}

/* ── Expertise ─────────────────────────────────────────────── */
.expertise { background: var(--bg0); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exp-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: start; }
.exp-lead { font-size: 1.12rem; color: var(--txt2); margin-bottom: 36px; }
.exp-lead strong { color: var(--txt); font-weight: 600; }

.usp { border-left: 2px solid rgba(52, 152, 219, 0.5); padding: 2px 0 2px 20px; margin-bottom: 26px; transition: border-color 0.3s; }
.usp:hover { border-color: var(--run); }
.usp .t { font-family: var(--font-d); font-weight: 600; color: var(--txt); margin-bottom: 4px; display: flex; align-items: baseline; gap: 10px; }
.usp .t .idx { font-family: var(--font-m); font-size: 0.7rem; color: var(--txt3); font-weight: 400; }
.usp p { font-size: 0.9rem; }

.tech-panel {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden;
}
.tech-panel .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt3);
}
.tech-rows { display: grid; }
.tech-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center;
  padding: 15px 22px; border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.tech-row:last-child { border-bottom: 0; }
.tech-row:hover { background: rgba(52, 152, 219, 0.05); }
.tech-row .addr { font-family: var(--font-m); font-size: 0.7rem; color: var(--blue-hi); letter-spacing: 0.06em; }
.tech-row .name { font-family: var(--font-d); font-weight: 600; font-size: 0.95rem; color: var(--txt); }
.tech-row .name small { display: block; font-family: var(--font-b); font-weight: 400; font-size: 0.76rem; color: var(--txt3); margin-top: 1px; }
.tech-row .state { font-family: var(--font-m); font-size: 0.68rem; color: var(--run); display: inline-flex; align-items: center; gap: 7px; letter-spacing: 0.08em; }

.quote {
  margin-top: 26px; padding: 22px 24px;
  background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 var(--rad) var(--rad) 0;
}
.quote p { font-style: italic; font-size: 0.92rem; color: var(--txt2); }
.quote .who { margin-top: 12px; font-family: var(--font-m); font-size: 0.72rem; font-style: normal; letter-spacing: 0.08em; color: var(--txt3); text-transform: uppercase; }

/* ── Projekteinblicke ──────────────────────────────────────── */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 26px 26px 22px;
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.proj::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.proj:hover { transform: translateY(-4px); border-color: rgba(52, 152, 219, 0.4); }
.proj:hover::after { opacity: 1; }
.proj .meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.proj .id { font-family: var(--font-m); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--txt3); }
.proj .branch {
  font-family: var(--font-m); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-hi); background: var(--blue-dim); border: 1px solid rgba(52, 152, 219, 0.25);
  padding: 4px 10px; border-radius: 100px;
}
.proj h3 { font-size: 1.06rem; font-weight: 600; margin-bottom: 8px; }
.proj p { font-size: 0.86rem; margin-bottom: 16px; }
.proj .tech { display: flex; flex-wrap: wrap; gap: 7px; }
.proj .tech span {
  font-family: var(--font-m); font-size: 0.66rem; color: var(--txt3);
  border: 1px dashed var(--line2); padding: 3px 9px; border-radius: 5px;
}
.proj-note { margin-top: 28px; font-size: 0.8rem; color: var(--txt3); font-style: italic; }

/* Echte TIA-Screenshots (gerahmt wie Tool-Fenster) */
.shots { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; margin-bottom: 56px; align-items: start; }
.shot {
  margin: 0;
  background: linear-gradient(160deg, #0d1420, #090e17);
  border: 1px solid var(--line2); border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.shot:hover { transform: translateY(-4px); border-color: rgba(52, 152, 219, 0.45); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(52, 152, 219, 0.1); }
.shot-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  background: rgba(146, 176, 220, 0.04);
}
.shot-bar .dots { display: flex; gap: 6px; }
.shot-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--txt3); opacity: 0.45; }
.shot-bar .dots span:first-child { background: var(--red); opacity: 0.7; }
.shot-bar .dots span:nth-child(2) { background: var(--amber); opacity: 0.7; }
.shot-bar .dots span:nth-child(3) { background: var(--run); opacity: 0.7; }
.shot-title { font-family: var(--font-m); font-size: 0.72rem; color: var(--txt3); letter-spacing: 0.05em; }
.shot-title b { color: var(--txt2); font-weight: 500; }
.shot img { width: 100%; height: auto; }
.shot figcaption {
  padding: 12px 16px;
  font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--txt3); border-top: 1px solid var(--line);
}

/* ── Helle Sektion: Ansprechpartner ───────────────────────── */
.person { background: var(--light-bg); color: var(--light-txt2); }
.person .kicker { color: #2176ae; }
.person .kicker::after { background: linear-gradient(90deg, var(--light-line), transparent); }
.person h2, .person h3 { color: var(--light-txt); }
.person-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }

.portrait { position: relative; max-width: 440px; }
.portrait img {
  border-radius: var(--rad);
  aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  width: 100%;
  box-shadow: 0 30px 70px rgba(16, 30, 60, 0.25);
  position: relative; z-index: 1;
}
.portrait::before { /* Offset-Rahmen */
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid rgba(33, 118, 174, 0.5); border-radius: var(--rad);
  z-index: 0;
}
.portrait .badge {
  position: absolute; z-index: 2; left: 22px; bottom: 22px;
  background: rgba(10, 15, 24, 0.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(146, 176, 220, 0.25); border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--run);
  display: flex; align-items: center; gap: 9px;
}

.person .role { font-family: var(--font-m); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #2176ae; margin: 6px 0 24px; }
.person .intro { font-size: 1.05rem; margin-bottom: 30px; }
.person .intro strong { color: var(--light-txt); }

.checks { list-style: none; margin-bottom: 32px; }
.checks li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 11px 0; border-top: 1px solid var(--light-line);
  font-size: 0.94rem;
}
.checks li:last-child { border-bottom: 1px solid var(--light-line); }
.checks .ok {
  font-family: var(--font-m); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  color: #0c7a4d; background: rgba(46, 224, 138, 0.16); border: 1px solid rgba(12, 122, 77, 0.3);
  padding: 3px 8px; border-radius: 5px; margin-top: 2px; flex-shrink: 0;
}
.person blockquote {
  border-left: 3px solid #2176ae; padding: 4px 0 4px 20px; margin-bottom: 34px;
  font-style: italic; font-size: 0.95rem; color: var(--light-txt2);
}

/* ── Konfigurator ─────────────────────────────────────────── */
.config { background: var(--bg1); }
.config .wrap { max-width: 860px; }
.config .section-head { text-align: center; }
.config .kicker { justify-content: center; }
.config .kicker::before { content: ''; height: 1px; flex: 0 1 180px; background: linear-gradient(270deg, var(--line2), transparent); }
.config .sub { margin-left: auto; margin-right: auto; }

.progress-wrap { margin-bottom: 38px; }
.progress-meta { display: flex; justify-content: space-between; font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt3); margin-bottom: 10px; }
.progress-track { height: 3px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
#progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--run)); transition: width 0.5s var(--ease); border-radius: 2px; }
.progress-steps { display: flex; justify-content: space-between; margin-top: 16px; }
.pstep { display: flex; align-items: center; gap: 10px; }
.pstep .dot {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-m); font-size: 0.72rem; font-weight: 600;
  background: var(--bg3); border: 1px solid var(--line2); color: var(--txt3);
  transition: all 0.3s;
}
.pstep.on .dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 18px rgba(52, 152, 219, 0.5); }
.pstep.done .dot { background: rgba(46, 224, 138, 0.15); border-color: rgba(46, 224, 138, 0.5); color: var(--run); }
.pstep .plbl { font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt3); }
.pstep.on .plbl { color: var(--blue-hi); }
.pstep.done .plbl { color: var(--run); }

.form-shell {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 38px;
  position: relative;
}
.form-shell::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.5), transparent);
}
.step { display: none; }
.step.active { display: block; animation: stepIn 0.45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.step h3 { font-size: 1.15rem; margin-bottom: 24px; }

.tiles-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tiles-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile {
  text-align: left; width: 100%;
  background: rgba(52, 152, 219, 0.04);
  border: 1px solid var(--line2); border-radius: var(--rad);
  padding: 18px; cursor: pointer;
  font-family: inherit; color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
}
.tile:hover { border-color: rgba(52, 152, 219, 0.55); background: rgba(52, 152, 219, 0.09); transform: translateY(-2px); }
.tile.selected { border-color: var(--blue); background: rgba(52, 152, 219, 0.14); box-shadow: 0 0 0 1px var(--blue), 0 0 24px rgba(52, 152, 219, 0.15); }
.tile .t-head { display: flex; align-items: flex-start; gap: 14px; }
.tile .t-icon {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: var(--blue-dim); color: var(--blue-hi);
  display: flex; align-items: center; justify-content: center;
}
.tile .t-icon svg { width: 19px; height: 19px; }
.tile .t-t { font-family: var(--font-d); font-weight: 600; color: var(--txt); font-size: 0.98rem; }
.tile .t-d { font-size: 0.8rem; color: var(--txt2); margin-top: 3px; }
.tile .tile-check {
  position: absolute; top: 12px; right: 12px;
  width: 18px; height: 18px; color: var(--run);
  opacity: 0; transform: scale(0.5); transition: all 0.25s var(--ease);
}
.tile.selected .tile-check { opacity: 1; transform: scale(1); }
.tile-c { text-align: center; padding: 16px 12px; }
.tile-c .t-t { font-size: 0.9rem; }
.tile-c .t-d { font-size: 0.72rem; font-family: var(--font-m); color: var(--txt3); }

.f-label { display: block; font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt3); margin-bottom: 8px; }
.f-label .req { color: var(--blue-hi); }
.form-input {
  width: 100%;
  background: rgba(7, 10, 16, 0.6);
  border: 1px solid var(--line2); border-radius: 8px;
  color: var(--txt); font-family: var(--font-b); font-size: 0.95rem;
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.18); }
.form-input::placeholder { color: var(--txt3); }
textarea.form-input { resize: none; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.f-block { margin-bottom: 16px; }

.privacy-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.85rem; color: var(--txt2); margin-top: 6px; }
.privacy-check input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.privacy-check a { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 2px; }

.form-nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px; }
.form-nav .spacer { flex: 1; }
.form-error { color: var(--red); font-size: 0.85rem; margin-top: 14px; }
.hidden { display: none; }

#form-success { display: none; text-align: center; padding: 40px 0 28px; }
#form-success .ok-ring {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--run-dim); border: 1px solid rgba(46, 224, 138, 0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--run);
  box-shadow: 0 0 40px rgba(46, 224, 138, 0.25);
}
#form-success .ok-ring svg { width: 32px; height: 32px; }
#form-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
#form-success .mono-line { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--run); text-transform: uppercase; margin-top: 18px; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { background: var(--bg0); border-top: 1px solid var(--line); }
.faq .wrap { max-width: 860px; }
.faq-item {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--rad);
  margin-bottom: 12px; overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(52, 152, 219, 0.4); }
.faq-btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  color: var(--txt); font-family: var(--font-d); font-weight: 600; font-size: 1rem;
}
.faq-btn .qid { font-family: var(--font-m); font-size: 0.68rem; color: var(--txt3); letter-spacing: 0.1em; flex-shrink: 0; }
.faq-btn .q { flex: 1; }
.faq-btn .ind {
  font-family: var(--font-m); font-size: 1.1rem; font-weight: 400; color: var(--blue-hi);
  transition: transform 0.35s var(--ease); flex-shrink: 0;
}
.faq-item.open .ind { transform: rotate(45deg); }
.faq-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-body > div { overflow: hidden; }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-body p { padding: 0 24px 22px 64px; font-size: 0.92rem; color: var(--txt2); }
.faq-body strong { color: var(--txt); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--bg0); border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.f-brand { font-family: var(--font-m); font-size: 0.76rem; color: var(--txt3); letter-spacing: 0.04em; display: flex; align-items: center; gap: 10px; }
.f-links { display: flex; gap: 26px; font-family: var(--font-m); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.f-links a { color: var(--txt3); transition: color 0.2s; }
.f-links a:hover { color: var(--txt); }

/* ── Rechtsseiten (Impressum / Datenschutz) ────────────────── */
.legal-main { max-width: 820px; margin: 0 auto; padding: 140px 24px 90px; position: relative; z-index: 1; }
.legal-main h1 {
  font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.legal-main section { padding: 0; margin-bottom: 38px; }
.legal-main h2 {
  font-family: var(--font-d); font-size: 1.12rem; font-weight: 600; color: var(--txt);
  padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.legal-main p, .legal-main address { color: var(--txt2); font-size: 0.95rem; line-height: 1.75; font-style: normal; }
.legal-main p + p { margin-top: 14px; }
.legal-main a { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal-main a:hover { color: #8ecdf7; }
.legal-main ul { list-style: none; margin: 14px 0; }
.legal-main li { color: var(--txt2); font-size: 0.95rem; padding: 4px 0 4px 22px; position: relative; }
.legal-main li::before { content: '▸'; position: absolute; left: 2px; color: var(--blue); font-family: var(--font-m); font-size: 0.85rem; }
.legal-main hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.legal-stand { font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt3); }
.back-link {
  font-family: var(--font-m); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--txt2); transition: color 0.2s;
}
.back-link:hover { color: #fff; }

/* ── Scroll-Reveal ─────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .panel-stage { max-width: 620px; }
  .exp-grid, .person-grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 380px; }
  .cards-3, .proj-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  section { padding: 76px 0; }
  .wrap { padding: 0 18px; }
  .cards-3, .proj-grid, .tiles-2 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .tiles-3 { grid-template-columns: 1fr 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .form-shell { padding: 24px 18px; }
  .hero { padding-top: 116px; }
  .hero-cta .btn { width: 100%; }
  .pstep .plbl { display: none; }
  .faq-body p { padding-left: 24px; }
  .panel-code { font-size: 0.68rem; padding: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 16px; }
  .fact .num { font-size: 1.5rem; }
  .status-strip .wrap { justify-content: flex-start; }
  .scroll-hint { display: none; }
  .kicker::after { flex-basis: 60px; }
  .nav { gap: 14px; }
  .nav-link { display: none; }
  .tech-row { grid-template-columns: 56px 1fr auto; gap: 10px; padding: 13px 16px; }
  .tech-row .name { font-size: 0.88rem; }
  .tech-row .name small { font-size: 0.7rem; }
}
@media (max-width: 420px) {
  h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }
}
@media (max-width: 360px) {
  .tiles-3 { grid-template-columns: 1fr; }
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .rv { opacity: 1; transform: none; }
  .panel-code .ln { opacity: 1; transform: none; }
}
