/* ============================================================
   TecHN — IT-Beratung & KI-Prozessautomatisierung
   Design system: deep navy canvas, neon-green accent.
   Type: Space Grotesk (display) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   Spacing: strict 8px grid.
   ============================================================ */

:root {
  /* ---- Color ---- */
  --bg:         #060a16;   /* deep navy-black canvas */
  --bg-grad:    #080e1f;
  --panel:      #0a1226;   /* section panel */
  --surface:    #0e1730;   /* card */
  --surface-2:  #121d3a;   /* raised card */
  --line:       rgba(128, 162, 222, 0.13);
  --line-soft:  rgba(128, 162, 222, 0.08);

  --text:       #e9eefb;   /* off-white, low chroma */
  --text-dim:   #97a4c4;   /* muted blue-gray */
  --text-faint: #5d6b8c;

  --accent:     oklch(0.85 0.19 158);   /* neon green */
  --accent-2:   oklch(0.74 0.17 162);   /* deeper green */
  --accent-ink: #04140d;                 /* text on accent */
  --accent-glow: oklch(0.85 0.19 158 / 0.32);
  --accent-faint: oklch(0.85 0.19 158 / 0.10);

  --warn:       oklch(0.78 0.13 60);     /* muted amber for pain points */

  /* ---- Spacing (8px grid) ---- */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  /* ---- Radius ---- */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 24px 60px -28px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 0 1px var(--accent-faint), 0 18px 60px -20px var(--accent-glow);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(54,240,160,0.07), transparent 60%),
    radial-gradient(900px 600px at 10% 4%, rgba(60,110,200,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-grad), var(--bg) 22%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-glow); color: var(--text); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--text); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

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

/* ---- Mono kicker / eyebrow ---- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-weight: 500;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 1px var(--accent-glow);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 16.5px; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: rgba(6,10,22,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); font-family: var(--font-mono); font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 20px -6px var(--accent-glow);
}
.brand b { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: var(--s3); }
.nav-links a { font-size: 15px; color: var(--text-dim); transition: color .18s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: var(--s2); }
.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: var(--s7); padding-bottom: var(--s6); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s6); align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  margin-top: var(--s3);
  text-wrap: balance;
}
.hero h1 .em { color: var(--accent); }
.hero-sub {
  margin-top: var(--s3);
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-dim);
  max-width: 36ch;
  text-wrap: pretty;
}
.hero-cta { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s5); flex-wrap: wrap; }

/* Trust badges */
.trust { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line-soft); }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(255,255,255,0.012);
}
.badge svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* Hero abstract graphic — agentic AI node network */
.hero-art { position: relative; aspect-ratio: 1 / 1.02; }
.node-net { width: 100%; height: 100%; display: block; overflow: visible; }
.node-net .edge { stroke: var(--line); stroke-width: 1; }
.node-net .edge.live { stroke: var(--accent); stroke-width: 1.5; }
.node-net .node { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; }
.node-net .node.core { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 14px var(--accent-glow)); }
.node-net .node.on { fill: var(--surface-2); stroke: var(--accent); stroke-width: 1.5; }
.pulse { fill: var(--accent); }
.node-net .node.core { animation: corePulse 3.4s ease-in-out infinite; }
@keyframes corePulse {
  0%, 100% { filter: drop-shadow(0 0 10px var(--accent-glow)); }
  50%      { filter: drop-shadow(0 0 24px var(--accent-glow)); }
}
.ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.18; }
.ring.r2 { opacity: 0.10; }
.art-tag {
  position: absolute; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--text-dim); background: rgba(10,18,38,0.85); border: 1px solid var(--line);
  padding: 7px 11px; border-radius: var(--r-pill); backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.art-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { position: relative; }
.section-pad { padding-block: var(--s7); }
.panel-bg { background: linear-gradient(180deg, var(--panel), transparent); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sec-head { max-width: 62ch; margin-bottom: var(--s5); }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: var(--s2); }
.sec-head p { color: var(--text-dim); margin-top: var(--s2); font-size: 18px; text-wrap: pretty; }

/* ============================================================
   Persona Gate Cards (role-based: "Für [Rolle]")
   ============================================================ */
.persona-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-items: stretch; }
.pcard {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5); color: inherit; font-family: var(--font-body);
  transition: transform .22s ease, border-color .22s ease, box-shadow .25s ease, background .25s ease;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.pcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 100% 0%, var(--accent-faint), transparent 62%);
  opacity: 0; transition: opacity .3s ease;
}
.pcard:hover { transform: translateY(-4px); border-color: rgba(128,162,222,0.28); }
.pcard:hover::after { opacity: 1; }
.pcard.active { border-color: var(--accent); background: var(--surface-2); box-shadow: var(--shadow-glow); }
.pcard.active::after { opacity: 1; }

.pcard-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); margin-bottom: var(--s2); text-wrap: balance; }
.pcard-lead { color: var(--text-dim); font-size: 16px; line-height: 1.55; margin-bottom: var(--s4); text-wrap: pretty; }

.pcard-outcomes { list-style: none; padding: 0; margin: 0 0 var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.pcard-outcomes li { display: flex; gap: 14px; align-items: flex-start; }
.pcard-outcomes .o-ic { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; display: grid; place-items: center; }
.pcard-outcomes .o-ic svg { width: 20px; height: 20px; }
.pcard-outcomes b { display: block; font-weight: 600; color: var(--text); font-size: 16px; line-height: 1.35; }
.pcard-outcomes .o-sub { display: block; color: var(--text-dim); font-size: 14.5px; line-height: 1.5; margin-top: 4px; }

/* Persona-card CTA — pill button, matches site language */
.pcard-cta.cta-btn {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--line);
  padding: 13px 22px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, gap .2s ease, transform .2s ease;
}
.pcard-cta.cta-btn svg { width: 17px; height: 17px; }
.pcard:hover .pcard-cta.cta-btn { gap: 14px; }
.pcard.active .pcard-cta.cta-btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.pcard .pick-state {
  position: absolute; top: var(--s3); right: var(--s3);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 5px 11px; border-radius: var(--r-pill);
  display: none;
}
.pcard.active .pick-state { display: inline-block; }

/* ============================================================
   Deep dive (dynamic, swaps per persona)
   ============================================================ */
.deepdive { transition: opacity .35s ease; }
.deepdive.swapping { opacity: 0; }
.dd-banner {
  display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
  padding: var(--s4); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); margin-bottom: var(--s5);
}
.dd-banner .who { flex: 1 1 auto; min-width: 240px; }
.dd-banner .who .track-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.dd-banner .who h3 { font-size: 24px; margin-top: var(--s1); }
.dd-banner .who p { color: var(--text-dim); font-size: 15px; margin-top: var(--s1); }
.dd-quote { font-family: var(--font-display); font-style: italic; color: var(--text-dim); font-size: 15px; max-width: 34ch; border-left: 2px solid var(--line); padding-left: var(--s2); }

.dd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-bottom: var(--s4); align-items: stretch; }
.dd-cols > * { min-width: 0; }
.col-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); height: 100%; display: flex; flex-direction: column; }
.col-card h4 { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--s3); overflow-wrap: anywhere; }
.col-card h4 svg { flex: none; width: 15px; height: 15px; margin-top: 0; }
.col-card.pain h4 { color: var(--warn); }
.col-card.gain h4 { color: var(--accent); }
.col-card.gain { border-color: rgba(54,240,160,0.22); background: linear-gradient(180deg, rgba(54,240,160,0.04), var(--surface)); }
.feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.feat-list li { display: flex; gap: 13px; font-size: 15.5px; color: var(--text); line-height: 1.45; }
.feat-list li .ic { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; margin-top: 1px; }
.pain .ic { background: oklch(0.78 0.13 60 / 0.14); color: var(--warn); }
.gain .ic { background: var(--accent-faint); color: var(--accent); }
.feat-list li .ic svg { width: 13px; height: 13px; }
.feat-list li b { font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.feat-list li span.sub { color: var(--text-dim); font-weight: 400; overflow-wrap: break-word; hyphens: auto; }

/* Timeline */
.timeline-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); margin-bottom: var(--s4); }
.timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.timeline-head h4 { font-size: 20px; }
.timeline-head .wks { font-family: var(--font-mono); color: var(--accent); font-size: 14px; letter-spacing: 0.04em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); position: relative; align-items: stretch; }
.steps::before { content: ""; position: absolute; left: 7%; right: 7%; top: 13px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0.4; }
.step { position: relative; padding-top: var(--s4); display: flex; flex-direction: column; }
.step .pin { position: absolute; top: 5px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.step.done .pin { background: var(--accent); }
.step .ph { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.step h5 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 4px 0 6px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ============================================================
   Lead capture form + success
   ============================================================ */
.form-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5); box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.form-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.form-head { margin-bottom: var(--s4); }
.form-head .kicker { margin-bottom: var(--s2); }
.form-head h3 { font-size: clamp(22px, 2.4vw, 30px); overflow-wrap: anywhere; hyphens: auto; }
.form-head p { color: var(--text-dim); margin-top: var(--s2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.form-grid > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15.5px; color: var(--text);
  background: rgba(6,10,22,0.6); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 15px; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-faint); background: rgba(6,10,22,0.85); }
.field.err input, .field.err select { border-color: oklch(0.7 0.18 25); box-shadow: 0 0 0 3px oklch(0.7 0.18 25 / 0.15); }
.field .msg { font-size: 12.5px; color: oklch(0.78 0.16 25); min-height: 0; }
.field.err .msg { min-height: auto; }
.field select { appearance: none; -webkit-appearance: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2397a4c4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-foot { margin-top: var(--s4); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.form-note { font-size: 12.5px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.form-note svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* Success state */
.success { display: none; text-align: center; padding: var(--s6) var(--s4); }
.success.show { display: block; animation: pop .5s cubic-bezier(.2,.8,.2,1); }
.check-ring {
  width: 84px; height: 84px; margin: 0 auto var(--s4); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-faint); border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 10px rgba(54,240,160,0.06);
}
.check-ring svg { width: 40px; height: 40px; color: var(--accent); }
.check-ring svg path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .55s .2s ease forwards; }
.success h3 { font-size: 26px; margin-bottom: var(--s2); }
.success p { color: var(--text-dim); max-width: 42ch; margin: 0 auto var(--s4); font-size: 16.5px; text-wrap: pretty; }
.back-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--accent); cursor: pointer; font-size: 15px; }
.back-link svg { width: 16px; height: 16px; }
.success .recap { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); background: rgba(6,10,22,0.5); border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--r-pill); margin-bottom: var(--s4); }

@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Form layout split */
.lead-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: var(--s4); align-items: start; }
.lead-grid > * { min-width: 0; }
.form-side { min-width: 0; }
.lead-aside h4 { font-size: 22px; margin-bottom: var(--s2); overflow-wrap: anywhere; hyphens: auto; }
.lead-aside p { color: var(--text-dim); margin-bottom: var(--s3); text-wrap: pretty; overflow-wrap: break-word; hyphens: auto; }
.assure { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.assure li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text-dim); }
.assure li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }

/* ============================================================
   Process / proof
   ============================================================ */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); align-items: stretch; }
.proof { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); height: 100%; display: flex; flex-direction: column; }
.proof .n { font-family: var(--font-display); font-size: 34px; color: var(--accent); letter-spacing: -0.02em; }
.proof .t { font-weight: 600; margin-top: var(--s1); }
.proof .d { color: var(--text-dim); font-size: 14.5px; margin-top: 6px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s5); align-items: stretch; }
.value { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,0.012); height: 100%; display: flex; flex-direction: column; }
.value .vn { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.value h4 { font-size: 19px; margin: var(--s1) 0 8px; }
.value p { color: var(--text-dim); font-size: 14.5px; }

/* ============================================================
   CTA band + Footer
   ============================================================ */
.cta-band { text-align: center; }

/* ============================================================
   FAQ (GEO / answer-engine section)
   ============================================================ */
.faq-layout { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: var(--s6); align-items: start; }
.faq-intro { position: sticky; top: 104px; }
.faq-intro h2 { font-size: clamp(28px, 3.4vw, 42px); margin: var(--s2) 0 var(--s2); }
.faq-intro p { color: var(--text-dim); font-size: 17px; margin-bottom: var(--s4); text-wrap: pretty; }
.faq-list { display: flex; flex-direction: column; gap: var(--s2); }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .22s ease, background .22s ease; }
.faq-item[open] { border-color: rgba(54,240,160,0.28); background: var(--surface-2); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-ic { position: relative; flex: none; width: 22px; height: 22px; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.faq-ic::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.faq-ic::after { left: 10px; top: 3px; width: 2px; height: 16px; }
.faq-item[open] .faq-ic::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 var(--s4) var(--s4); }
.faq-a p { color: var(--text-dim); font-size: 16px; line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.faq-a b { color: var(--text); font-weight: 600; }

/* ============================================================
   Tweaks panel (vanilla — host edit-mode protocol)
   ============================================================ */
#tweaks-root { position: fixed; z-index: 2147483000; top: 20px; right: 20px; width: 320px; display: none; font-family: var(--font-body); }
#tweaks-root.open { display: block; }
.tw-panel {
  background: rgba(10,18,38,0.92); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,0.8), 0 0 0 1px rgba(54,240,160,0.06);
  color: var(--text); overflow: hidden; max-height: calc(100vh - 40px); display: flex; flex-direction: column;
}
.tw-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px 13px 16px; border-bottom: 1px solid var(--line); cursor: grab; user-select: none; }
.tw-head.drag { cursor: grabbing; }
.tw-head .tt { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.tw-head .tt::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.tw-close { width: 28px; height: 28px; border: none; border-radius: 8px; background: rgba(255,255,255,0.04); color: var(--text-dim); cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center; transition: background .15s, color .15s; }
.tw-close:hover { background: rgba(255,255,255,0.09); color: var(--text); }
.tw-body { padding: 6px 16px 18px; overflow-y: auto; }
.tw-sec { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin: 18px 0 11px; }
.tw-row { margin-bottom: 14px; }
.tw-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.tw-label .v { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); }

/* swatches */
.tw-swatches { display: flex; gap: 10px; }
.tw-sw { width: 34px; height: 34px; border-radius: 9px; cursor: pointer; border: 2px solid transparent; position: relative; transition: transform .15s; }
.tw-sw:hover { transform: scale(1.08); }
.tw-sw.sel { border-color: var(--text); box-shadow: 0 0 0 2px rgba(0,0,0,0.4); }
.tw-sw.sel::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #04140d; font-size: 14px; font-weight: 700; }

/* segmented */
.tw-seg { display: flex; gap: 4px; background: rgba(6,10,22,0.6); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.tw-seg button { flex: 1; border: none; background: transparent; color: var(--text-dim); font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 9px 8px; border-radius: 7px; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.tw-seg button.sel { background: var(--accent); color: var(--accent-ink); }
.tw-seg button:not(.sel):hover { color: var(--text); }

/* toggle */
.tw-toggle { display: flex; align-items: center; justify-content: space-between; }
.tw-switch { width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.tw-switch.on { background: var(--accent); }
.tw-switch .knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tw-switch.on .knob { transform: translateX(20px); }

/* motion off */
html.motion-off .pulse { display: none; }
html.motion-off .node-net .node.core { animation: none; }
html.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.motion-off * { scroll-behavior: auto; }

@media (max-width: 820px) {
  .faq-layout { grid-template-columns: 1fr; gap: var(--s4); }
  .faq-intro { position: static; }
  #tweaks-root { right: 12px; left: 12px; width: auto; }
}
.cta-band .box { background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s7) var(--s4); position: relative; overflow: hidden; }
.cta-band .box::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 280px at 50% 0%, var(--accent-faint), transparent 60%); pointer-events: none; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 20ch; margin: var(--s2) auto var(--s3); text-wrap: balance; }
.cta-band p { color: var(--text-dim); max-width: 50ch; margin: 0 auto var(--s5); font-size: 18px; }

footer { border-top: 1px solid var(--line); padding-block: var(--s6) var(--s5); margin-top: var(--s7); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); }
.foot-grid p { color: var(--text-dim); font-size: 14.5px; margin-top: var(--s2); max-width: 38ch; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s2); }
.foot-col a, .foot-col address { display: block; color: var(--text-dim); font-size: 14.5px; font-style: normal; line-height: 1.9; transition: color .18s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bot { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: 13px; }
.foot-bot .geo { font-family: var(--font-mono); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pulse, .node-net * { animation: none !important; }
}

/* ============================================================
   Responsive — mobile-first switches
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-art { max-width: 380px; margin-inline: auto; }
  .hero-sub { max-width: 52ch; }
  .lead-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .nav-cta .btn-ghost { display: none; }
  .nav-links { gap: var(--s2); }
  .nav-links a { font-size: 14px; }
}
@media (max-width: 820px) {
  :root { --s7: 72px; }
  .wrap { padding-inline: var(--s3); }
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; color: var(--text);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-cta .btn-ghost { display: none; }
  .persona-cards { grid-template-columns: 1fr; }
  .dd-cols { grid-template-columns: 1fr; }
  .proof-grid, .values { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--s4); }
  .steps::before { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .form-card { padding: var(--s4) var(--s3); }
  .hero-cta .btn { width: 100%; }
  .dd-quote { display: none; }
}

/* ============================================================
   Mobile fine-tuning (≤ 640px) — keeps the desktop design intact
   while making every section comfortable on phones.
   ============================================================ */
@media (max-width: 640px) {
  :root { --s5: 36px; --s6: 48px; --s7: 64px; }
  .wrap { padding-inline: 20px; }

  /* Nav: only brand + hamburger on phones */
  .nav-inner { height: 64px; }
  .nav-cta .btn-primary { display: none; }
  .brand { font-size: 18px; }
  .brand .mark { width: 30px; height: 30px; font-size: 14px; }
  html { scroll-padding-top: 72px; }
  .m-menu { inset: 64px 0 auto 0; }

  /* Hero */
  .hero { padding-top: var(--s5); padding-bottom: var(--s5); }
  .hero h1 { font-size: clamp(30px, 9vw, 38px); margin-top: var(--s2); }
  .hero-sub { font-size: 16px; margin-top: var(--s2); max-width: none; }
  .hero-cta { margin-top: var(--s4); gap: 10px; }
  .hero-cta .btn-lg { padding: 15px 22px; font-size: 15px; }
  .hero-cta .btn { width: 100%; }
  .trust { margin-top: var(--s4); padding-top: var(--s3); gap: 8px; }
  .badge { font-size: 11px; padding: 7px 11px; }
  .hero-art { max-width: 280px; width: 100%; }
  .art-tag { font-size: 10.5px; padding: 5px 9px; max-width: calc(100vw - 32px); }

  /* Section heads */
  .section-pad { padding-block: var(--s6); }
  .sec-head { margin-bottom: var(--s4); }
  .sec-head h2 { font-size: clamp(24px, 7.5vw, 32px); }
  .sec-head p { font-size: 16px; }
  .kicker { font-size: 11.5px; letter-spacing: 0.14em; }

  /* Leistung proof grid */
  .proof { padding: var(--s3); }
  .proof .n { font-size: 28px; }

  /* Persona cards — keep richness, tighter padding so content breathes */
  .pcard { padding: 26px 22px; }
  .pcard .pick-state { top: 18px; right: 18px; font-size: 10px; padding: 4px 9px; }
  .pcard-title { font-size: 22px; }
  .pcard-lead { font-size: 15px; margin-bottom: var(--s3); }
  .pcard-outcomes { gap: 18px; margin-bottom: var(--s4); }
  .pcard-outcomes b { font-size: 15.5px; overflow-wrap: break-word; hyphens: auto; }
  .pcard-outcomes .o-sub { font-size: 14px; }
  .pcard-cta.cta-btn { padding: 12px 18px; font-size: 14.5px; width: 100%; justify-content: center; }

  /* Deep-dive */
  .dd-banner { padding: 22px; gap: 14px; margin-bottom: var(--s4); }
  .dd-banner .who h3 { font-size: 21px; }
  .col-card { padding: 24px 20px; }
  .col-card h4 { font-size: 11.5px; letter-spacing: 0.08em; margin-bottom: var(--s2); }
  .feat-list { gap: 14px; }
  .feat-list li { font-size: 14.5px; gap: 11px; }
  .timeline-card { padding: 24px 20px; }
  .step h5 { font-size: 16px; }

  /* Forms */
  .form-card { padding: 28px 22px; }
  .lead-aside h4 { font-size: 19px; overflow-wrap: anywhere; }
  .form-head h3 { font-size: 22px; }
  /* Long button labels must wrap on mobile, not force the card wide */
  .btn { white-space: normal; text-align: center; }
  .form-foot .btn { width: 100%; min-width: 0; }
  .field input, .field select, .field textarea { font-size: 15px; padding: 13px 14px; }
  .form-foot { gap: var(--s2); }

  /* ---- Hard overflow guards (iOS Safari: native selects & long labels) ---- */
  .lead-grid, .form-grid { grid-template-columns: 1fr !important; }
  .lead-grid > *, .form-grid > *, .dd-cols > * { min-width: 0; max-width: 100%; }
  .form-card, .col-card, .dd-banner, .timeline-card, .pcard,
  .form-side, .lead-aside, .field { min-width: 0; max-width: 100%; }
  .field input, .field select, .field textarea { width: 100%; min-width: 0; max-width: 100%; }
  .art-tag { max-width: calc(100vw - 28px); white-space: normal; }
  .success h3 { font-size: 22px; }
  .success p { font-size: 15px; }
  .check-ring { width: 72px; height: 72px; }
  .check-ring svg { width: 32px; height: 32px; }

  /* Values, FAQ */
  .value { padding: 24px 20px; }
  .value h4 { font-size: 17px; }
  .faq-item summary { padding: 18px 20px; font-size: 16px; gap: var(--s2); }
  .faq-item summary span:first-child { line-height: 1.35; }
  .faq-a { padding: 0 20px 18px; }
  .faq-a p { font-size: 15px; }
  .faq-intro h2 br { display: none; }

  /* CTA band */
  .cta-band .box { padding: var(--s5) var(--s3); }
  .cta-band h2 { font-size: clamp(24px, 7.5vw, 32px); }
  .cta-band p { font-size: 16px; margin-bottom: var(--s4); }
  .cta-band .btn-lg { padding: 15px 22px; font-size: 15px; width: 100%; }

  /* Footer */
  footer { padding-block: var(--s4) var(--s4); }
  .foot-bot { font-size: 12px; flex-direction: column; gap: 6px; }
  .foot-bot .geo { font-size: 11px; }

  /* Tweaks: full-width sheet, never clip */
  #tweaks-root { right: 12px; left: 12px; top: 12px; width: auto; }
  .tw-panel { max-height: calc(100vh - 24px); }
  .tw-swatches { gap: 8px; }
  .tw-sw { width: 38px; height: 38px; }
  .tw-seg button { font-size: 12.5px; padding: 9px 6px; }

  /* Belt-and-braces: prevent any accidental horizontal overflow */
  body, html { overflow-x: hidden; }
}

/* Extra-narrow (≤ 360px) — iPhone SE / Galaxy Fold cover */
@media (max-width: 360px) {
  .wrap { padding-inline: 16px; }
  .hero h1 { font-size: 28px; }
  .pcard { padding: 22px 18px; }
  .form-card { padding: 24px 18px; }
}

/* Mobile menu sheet */
.m-menu { display: none; position: fixed; inset: 76px 0 auto 0; z-index: 49; background: rgba(6,10,22,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: var(--s3) var(--s4) var(--s4); }
.m-menu.open { display: block; }
.m-menu a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); }
.m-menu .btn { margin-top: var(--s3); }
