/* =========================================================
   LJ Webdesign – Stylesheet
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-alt: #0e0e0e;
  --surface: #131313;
  --surface-2: #1a1a1a;
  --soft: #1a1a1a;
  --ink: #f5f3ee;
  --ink-2: #d4d1ca;
  --muted: #8c8983;
  --line: #232323;
  --line-2: #323232;
  --edge: inset 0 1px 0 rgba(255, 255, 255, .05);   /* feine Lichtkante oben */
  --accent: #ff8f5e;            /* lässt sich im Terminal mit «farbe …» ändern */
  --on-accent: #0a0a0a;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --green: #3ddc84;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --hand: "Caveat", "Segoe Print", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;

  interpolate-size: allow-keywords;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  /* feine Körnung */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
p { margin: 0; }
.hl { color: var(--accent); transition: color .5s; }
.mono { font-family: var(--mono); }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; color: var(--on-accent); }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font: 600 16px/1 var(--font);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #fff; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost .mono { color: var(--accent); }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, .72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.logo:hover { color: var(--ink); }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font: 700 15px var(--mono); letter-spacing: -0.04em;
  transition: transform .5s var(--ease), background-color .5s;
}
.logo:hover .logo-mark { transform: rotate(-90deg); }
.logo-text { font-size: 19px; letter-spacing: -0.03em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { position: relative; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .25s; }
.nav-links a:not(.btn)::before {
  content: "/"; position: absolute; left: -10px; color: var(--accent); opacity: 0; transform: translateX(-4px);
  transition: opacity .25s, transform .25s var(--ease); font-family: var(--mono);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::before { opacity: 1; transform: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s, top .3s;
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Startbereich ---------- */
.hero { position: relative; min-height: min(calc(100svh - 76px), 940px); display: flex; flex-direction: column; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(60% 50% at 75% 0%, rgba(255, 143, 94, .07), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.6) 35%, transparent 70%),
              linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.hero-inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 72px 0 56px; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }

.status {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(11,11,12,.6);
  font: 500 13px var(--mono); color: var(--ink-2);
  animation: rise .8s var(--ease) both;
}
.dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, .18), 0 0 12px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, .04), 0 0 12px var(--green); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.hero h1 {
  margin-top: 28px; max-width: 980px;
  font-size: clamp(48px, 8.4vw, 120px); line-height: .98; letter-spacing: -0.04em; font-weight: 550;
}
.hero h1 .scramble { display: block; }
.scramble .glyph { color: var(--accent); font-family: var(--mono); font-weight: 500; opacity: .8; }

.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; margin-top: 44px; }
.lead { max-width: 470px; font-size: 19px; color: var(--muted); animation: rise .9s var(--ease) .5s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .9s var(--ease) .65s both; }
.hero-hint {
  position: absolute; right: 0; top: 96px;
  font: 500 12.5px var(--mono); color: var(--muted);
  animation: rise .9s var(--ease) 1s both;
}

/* Laufband */
.ticker { position: relative; z-index: 1; padding: 20px 0; border-block: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; animation: ticker 40s linear infinite; }
.ticker li { display: flex; align-items: center; white-space: nowrap; font: 500 15px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.ticker li::after { content: "/"; margin: 0 30px; color: var(--accent); }
.ticker:hover ul { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Abschnitte ---------- */
.section { padding: 128px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: 60px; }
.section-head h2, .about-copy h2, .contact-copy h2, .tech-copy h2 { font-size: clamp(36px, 5vw, 62px); font-weight: 600; }
.section-head p:not(.kicker) { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 560px; }
.kicker { margin-bottom: 20px; font: 500 13px var(--mono); color: var(--muted); letter-spacing: .02em; }
.kicker::before { content: "// "; color: var(--accent); }

/* Leistungen als Liste */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.15fr) 40px; gap: 24px; align-items: center;
  padding: 32px 22px; border-bottom: 1px solid var(--line);
  transition: color .4s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--surface); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s var(--ease);
}
.service:hover { color: var(--ink); }
.service:hover::before { transform: scaleY(1); }
.s-num { font: 500 14px var(--mono); color: var(--accent); transition: color .4s; }
.service h3 { font-size: clamp(24px, 3vw, 38px); font-weight: 550; transition: transform .35s var(--ease); }
.service:hover h3 { transform: translateX(10px); }
.service p { color: var(--muted); font-size: 16.5px; transition: color .4s; }
.s-arrow { font-size: 26px; justify-self: end; transition: transform .5s var(--ease); }
.service:hover .s-arrow { color: var(--accent); }
.service:hover p { color: var(--ink-2); }
.service:hover .s-arrow { transform: rotate(-45deg); }

/* ---------- Spielwiese ---------- */
.playground { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px; align-items: stretch; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.tl { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win-bar .tl:nth-child(1) { background: #ff5f57; }
.win-bar .tl:nth-child(2) { background: #febc2e; }
.win-bar .tl:nth-child(3) { background: #28c840; }
.win-title { margin-left: 12px; font: 500 12.5px var(--mono); color: var(--muted); }

/* Terminal */
.terminal {
  display: flex; flex-direction: column; min-height: 470px;
  border-radius: var(--radius); background: #070708; border: 1px solid var(--line);
  font: 400 14px/1.7 var(--mono); color: var(--ink-2);
  box-shadow: var(--edge), var(--shadow-lg);
}
.term-out { flex: 1; height: 320px; padding: 18px 20px 4px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.term-out p { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-out .cmd { color: var(--ink); }
.term-out .cmd::before { content: "❯ "; color: var(--accent); }
.term-out .ok { color: var(--accent); }
.term-out .dim { color: var(--muted); }
.term-out .err { color: #ff6b6b; }
.term-out a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.term-line { display: flex; align-items: center; gap: 10px; padding: 10px 20px 14px; }
.term-prompt { color: var(--accent); white-space: nowrap; }
#term-input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; color: var(--ink); caret-color: var(--accent);
}
#term-input::placeholder { color: #4a4a50; }
.term-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.term-chips button {
  padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  font: 500 12.5px var(--mono); color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s;
}
.term-chips button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Live-Editor */
.editor {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  box-shadow: var(--edge), var(--shadow-lg);
}
.editor-hint { margin-left: auto; font-family: var(--hand); font-size: 22px; line-height: 1; color: var(--accent); transform: rotate(-3deg); }
.editor-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.code {
  margin: 0; padding: 18px 0; overflow: auto;
  font: 400 12.5px/1.85 var(--mono); color: var(--ink-2);
  counter-reset: ln; tab-size: 2;
}
.code .ln { display: block; padding-right: 14px; white-space: pre; border-left: 2px solid transparent; }
.code .ln::before {
  counter-increment: ln; content: counter(ln);
  display: inline-block; width: 2.4em; margin-right: 12px; text-align: right; color: #4a4a50;
}
.code .ln.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { from { background: var(--accent-soft); border-left-color: var(--accent); } }
.t-sel { color: #ffcb6b; }
.t-prop { color: #82aaff; }
.t-val { color: var(--accent); }
.t-str { color: #c3e88d; }
.t-fn { color: #89ddff; }
.t-pun { color: #6b6b72; }
.t-swatch {
  display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px;
  background: var(--c); vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}
.caret { display: inline-block; width: 7px; height: 1.15em; margin-left: 1px; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.preview {
  --p-accent: #e8552a; --p-radius: 14px; --p-font: var(--font);
  padding: 18px 20px 22px; background: #fffaf3; color: #2b241d;
  font-family: var(--p-font);
}
.preview > * { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.preview.built > * { opacity: 1; transform: none; }
.preview.built > :nth-child(2) { transition-delay: .08s; }
.preview.built > :nth-child(3) { transition-delay: .16s; }
.preview.built > :nth-child(4) { transition-delay: .24s; }
.preview.built > :nth-child(5) { transition-delay: .32s; }
.pv-nav { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.pv-nav i { font-style: normal; font-size: 11.5px; color: #8a7b6b; margin-left: 12px; }
.pv-img {
  aspect-ratio: 16 / 10; margin-top: 14px; border-radius: var(--p-radius);
  transition: border-radius .4s var(--ease);
  background:
    radial-gradient(circle at 62% 52%, #3a2213 0 9%, #8a5a34 9% 10.5%, #fbf6ef 10.5% 14.5%, #e6d8c6 14.5% 15.2%, #f4ebdf 15.2% 21%, rgba(0,0,0,.12) 21% 22.5%, transparent 23%),
    radial-gradient(circle at 22% 78%, #c58a55 0 7%, #e9c9a0 7% 8.5%, transparent 9%),
    radial-gradient(ellipse at 15% 10%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(140deg, #d9a877, #b0703c 55%, #7a4526);
}
.preview h4 { margin-top: 16px; font-size: 23px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
.preview p { margin-top: 8px; font-size: 12.5px; color: #7a6a5a; line-height: 1.5; }
.pv-btn {
  display: inline-block; margin-top: 14px; padding: 10px 16px;
  background: var(--p-accent); color: #fff; border-radius: var(--p-radius);
  font-size: 12.5px; font-weight: 600;
  transition: background-color .4s var(--ease), border-radius .4s var(--ease);
}

.editor-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  padding: 14px 18px; background: var(--surface-2); border-top: 1px solid var(--line);
}
.ctrl { display: flex; align-items: center; gap: 10px; }
.ctrl-label { font: 500 12px var(--mono); color: var(--muted); }
.swatches { display: flex; gap: 7px; }
.swatches button {
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--accent); }
#radius { width: 100px; accent-color: var(--accent); cursor: pointer; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.seg button {
  padding: 6px 11px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font: 500 12.5px var(--font);
  transition: background-color .25s, color .25s;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Unter der Haube ---------- */
.panel {
  position: relative; overflow: hidden;
  padding: 80px 72px; border-radius: 36px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--edge);
}
.panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(110deg, transparent 40%, #000);
  mask-image: linear-gradient(110deg, transparent 40%, #000);
  opacity: .7;
}
.tech-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.tech-copy > p:not(.kicker) { margin-top: 20px; color: var(--muted); font-size: 17.5px; max-width: 520px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.tech-tags li { padding: 6px 13px; border-radius: 8px; border: 1px solid var(--line-2); font: 500 12.5px var(--mono); color: var(--ink-2); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  padding: 22px; border-radius: 18px;
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease);
  box-shadow: var(--edge);
}
.stat:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 500 12px var(--mono); color: var(--muted); }
.stat strong { display: block; font: 500 clamp(28px, 3.2vw, 38px)/1.05 var(--mono); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-live strong { color: var(--accent); }
.stat small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Ablauf ---------- */
.journey { position: relative; --p: 0; }
.journey-line { position: absolute; left: 10px; right: 10px; top: 10px; height: 2px; background: var(--line); border-radius: 2px; }
.journey-fill { position: absolute; inset: 0; background: var(--accent); border-radius: 2px; transform-origin: left; transform: scaleX(var(--p)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; padding-top: 48px; opacity: .35; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step-dot {
  position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.step.is-active .step-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.step-time { font: 500 12.5px var(--mono); color: var(--accent); }
.step h3 { margin-top: 10px; font-size: 25px; font-weight: 550; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* ---------- Preise ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.rates { display: grid; gap: 14px; }
.rate { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--edge);
}
.rate-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.rate h3 { font-size: 26px; }
.rate-top p:not(.rate-price) { margin-top: 6px; max-width: 340px; font-size: 15.5px; color: var(--muted); }
.rate-price { font: 500 40px/1 var(--mono); letter-spacing: -0.05em; white-space: nowrap; }
.rate-price span { font: 500 15px var(--mono); color: var(--muted); letter-spacing: 0; margin-right: 2px; }
.rate-scale { margin-top: 26px; }
.scale-bar { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--line-2), var(--accent)); }
.scale-labels { display: flex; justify-content: space-between; margin-top: 8px; font: 500 12.5px var(--mono); color: var(--muted); }

.rate-cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  margin-top: 26px; padding: 18px; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.rate-cta strong { display: block; font-size: 16.5px; }
.rate-cta p { margin-top: 2px; font-size: 14.5px; color: var(--ink-2); }
.rate-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); }
.rate-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--on-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.included { padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--edge);
}
.included h3 { font-size: 17px; }
.included ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.included li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.included li::before { content: "✓"; flex: none; font: 700 13px var(--mono); color: var(--accent); }

.care {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 28px; border-radius: var(--radius); border: 1.5px dashed var(--line-2);
}
.care h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.opt-tag { padding: 3px 9px; border-radius: 6px; background: var(--surface-2); font: 500 11.5px var(--mono); color: var(--muted); letter-spacing: 0; }
.care p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Preisrechner */
.calc {
  position: sticky; top: 100px;
  padding: 30px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--edge), var(--shadow-lg);
}
.calc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calc-head h3 { font-size: 24px; }
.calc-pill { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line-2); font: 500 12px var(--mono); color: var(--muted); }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.calc-row strong { display: block; font-size: 16px; font-weight: 600; }
.calc-row small { display: block; font: 500 12px var(--mono); color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.stepper button {
  width: 34px; height: 34px; border-radius: 9px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink); font: 500 20px/1 var(--mono);
  transition: background-color .2s, color .2s;
}
.stepper button:hover { background: var(--ink); color: var(--bg); }
.stepper button:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
.stepper output { min-width: 30px; text-align: center; font: 700 17px var(--mono); }

.calc-extras { border: 0; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.calc-extras legend { padding: 0; margin-bottom: 10px; font: 500 12px var(--mono); color: var(--muted); }
.calc-extras legend::before { content: "// "; color: var(--accent); }
.extra {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; margin-inline: -12px; border-radius: 10px; cursor: pointer;
  font-size: 15px; transition: background-color .2s;
}
.extra:hover { background: var(--surface-2); }
.extra small { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.extra input {
  appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer;
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2);
  transition: background-color .2s, border-color .2s;
}
.extra input:checked {
  border-color: transparent;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.calc-total { margin: 20px 0 16px; padding: 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.calc-total small { display: block; font: 500 12px var(--mono); color: var(--muted); }
.calc-total strong { display: block; margin: 6px 0 2px; font: 500 30px/1.15 var(--mono); letter-spacing: -0.05em; color: var(--accent); }
.calc-total span { font-size: 13.5px; color: var(--muted); }
.calc-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.price-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 96px; align-items: center; }
.about-photo { position: relative; max-width: 420px; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--surface);
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.5px);
  background-size: 18px 18px;
  border: 1px solid var(--line);
  transform: rotate(-2.5deg);
  transition: transform .6s var(--ease);
}
.about-photo:hover .portrait { transform: rotate(0); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait span { font: 600 140px/1 var(--font); letter-spacing: -0.06em; color: var(--accent); }
.portrait-code { position: absolute; left: 18px; bottom: 16px; font: 500 12px var(--mono); color: var(--muted); }
.photo-note {
  margin: 22px 0 0 40px; max-width: 260px;
  font-family: var(--hand); font-size: 25px; line-height: 1.1; color: var(--accent);
  transform: rotate(-3deg);
}
.photo-note::before { content: "↑ "; }

.about-copy > p:not(.kicker) { margin-top: 20px; color: var(--muted); font-size: 18px; max-width: 560px; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.values li { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); font: 500 13.5px var(--mono); color: var(--ink-2); }
.values li::before { content: "✓ "; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 56px 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
  transition: color .25s;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; border-radius: 2px;
  background: var(--accent); transition: transform .4s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 40px 26px 0; color: var(--muted); font-size: 16.5px; }

/* ---------- Kontakt ---------- */
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start;
  padding: 64px; border-radius: 36px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--edge);
}
.contact-copy > p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 16px; min-width: 0; }
.contact-list li > div { min-width: 0; }
.ci { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); }
.ci svg { width: 20px; height: 20px; stroke: var(--accent); stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font: 500 12px var(--mono); color: var(--muted); }
.contact-list a, .contact-list span { font-weight: 600; color: var(--ink); font-size: 16.5px; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }

.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font: 500 12.5px var(--mono); color: var(--muted); }
.opt { color: #5f5e59; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg);
  font: 400 16px/1.4 var(--font); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8e88' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, .12); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.check.invalid span { color: #ff6b6b; }
.form-status { font-size: 15px; text-align: center; min-height: 1px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff6b6b; }

/* ---------- Footer ---------- */
.site-footer { background: #070708; color: var(--muted); padding: 110px 0 32px; border-top: 1px solid var(--line); }
.footer-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.footer-big { max-width: 820px; font-size: clamp(40px, 6.4vw, 86px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; color: var(--ink); }
.footer-big span { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 48px; }
.footer-claim { margin-top: 14px; font-size: 15px; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer nav a { color: var(--ink-2); font-size: 15px; }
.site-footer nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px;
}
.footer-code { font: 500 12.5px var(--mono); color: #5f5e59; }
.to-top { color: var(--ink-2); }
.to-top:hover { color: var(--accent); }

/* ---------- Rechtliche Seiten ---------- */
.legal-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.045em; font-weight: 600; hyphens: manual; }
.legal-meta { margin-top: 14px; font: 500 13px var(--mono); color: var(--muted); }
.back-link {
  display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 28px;
  font: 500 13.5px var(--mono); color: var(--muted);
}
.back-link svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.back-link:hover { color: var(--accent); }
.back-link:hover svg { transform: translateX(-3px); }

.legal-section { padding: 64px 0 112px; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; }
.legal { max-width: 760px; }
.legal-intro { font-size: 19px; color: var(--ink-2); padding-bottom: 8px; }
.legal h2 { display: flex; align-items: center; gap: 12px; margin: 48px 0 14px; font-size: 25px; scroll-margin-top: 100px; }
.legal h2:first-child { margin-top: 0; }
.legal .num {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); font: 500 13px var(--mono); letter-spacing: 0;
}
.legal p, .legal li { color: var(--muted); font-size: 16.5px; }
.legal p + p { margin-top: 14px; }
.legal p strong, .legal li strong { color: var(--ink-2); }
.legal ul { margin: 12px 0 14px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: "–"; position: absolute; left: 2px; color: var(--accent); }
.legal a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-card { padding: 22px 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.legal-card p { color: var(--ink-2); line-height: 1.75; }

/* Platzhalter – vor der Veröffentlichung ersetzen */
.ph {
  padding: 1px 6px; border-radius: 5px;
  background: #4a3b0c; color: #ffd866; font-weight: 500;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

.legal-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.legal-aside-card, .legal-toc { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.legal-aside-card strong, .legal-toc strong { display: block; font-size: 15px; margin-bottom: 6px; }
.legal-aside-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.legal-toc { display: grid; gap: 2px; }
.legal-toc a { padding: 6px 10px; margin-inline: -10px; border-radius: 8px; font-size: 14.5px; color: var(--muted); }
.legal-toc a:hover { background: var(--surface-2); color: var(--ink); }
.legal-aside-nav { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.legal-aside-nav a { flex: 1; text-align: center; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.legal-aside-nav a:hover { color: var(--ink); }
.legal-aside-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .playground, .tech-grid, .pricing, .about, .faq-wrap, .contact-card { grid-template-columns: 1fr; gap: 48px; }
  .playground { gap: 20px; }
  .panel { padding: 64px 44px; }
  .calc { position: static; }
  .faq-wrap .section-head { position: static; }
  .about-photo { margin-inline: auto; }
  .contact-card { padding: 48px; }
  .hero-hint { display: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 48px; }
  .legal-aside { position: static; order: -1; }
  .legal-toc { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--ease), visibility .45s;
  }
  .nav-links.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-links a:not(.btn) { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--ink-2); }
  .nav-links a:not(.btn)::before { display: none; }
  .nav-cta { margin-top: 16px; padding: 16px 20px; font-size: 16px; }

  .service { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 14px; padding: 24px 12px; }
  .service p { grid-column: 2; }
  .s-arrow { display: none; }

  .journey-line { left: 10px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .journey-fill { transform-origin: top; transform: scaleY(var(--p)); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step { padding: 0 0 0 52px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: 68px; }
  .hero { min-height: auto; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,.55) 60%, rgba(11,11,12,.4)); }
  .hero-inner { padding: 48px 0 44px; }
  .hero h1 { margin-top: 22px; }
  .hero-bottom { margin-top: 30px; }
  .lead { font-size: 17px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .terminal { min-height: 420px; font-size: 13px; }
  .term-out { height: 280px; padding: 14px 14px 4px; }
  .term-line { padding: 8px 14px 12px; }
  .term-chips { padding: 12px 14px 14px; }
  .editor-hint { display: none; }
  .editor-body { grid-template-columns: 1fr; }
  .code { font-size: 11.5px; padding: 14px 0; }
  .panel { padding: 44px 20px; border-radius: 26px; }
  .stats { gap: 10px; }
  .stat { padding: 16px; }
  .rate { padding: 22px; }
  .rate-top { flex-direction: column; gap: 14px; }
  .rate-price { font-size: 34px; }
  .rate-cta { grid-template-columns: auto minmax(0, 1fr); }
  .rate-cta .btn { grid-column: 1 / -1; }
  .included ul { grid-template-columns: 1fr 1fr; }
  .care { flex-direction: column; align-items: flex-start; padding: 20px; }
  .calc { padding: 22px 18px; border-radius: 22px; }
  .extra { grid-template-columns: auto minmax(0, 1fr); margin-inline: -6px; padding: 10px 6px; }
  .extra small { grid-column: 2; margin-top: -8px; }
  .about { gap: 40px; }
  .photo-note { margin-left: 16px; font-size: 22px; }
  .contact-card { padding: 26px 20px; border-radius: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer { padding-top: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

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