/* Neonwerkstatt Ilvers — Beispiel-Website, Stil nach MXL-006 (Mika UX Library) */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Pixel";
  src: url("fonts/geist-pixel-triangle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --canvas: #020202;
  --hairline: #1e1e1d;
  --hairline-strong: #2e2d2b;
  --muted: #c8c4b9;
  --quiet: #8f8b82;
  --ink: #efe6d8;
  --status: #4dff00;
  --action: #ffa1f7;
  --stage: #1a213f;
  --glass: #34332f;
  --glass-hi: #4b4944;

  --s-2: 2px; --s-4: 4px; --s-8: 8px; --s-10: 10px; --s-16: 16px; --s-20: 20px;
  --s-24: 24px; --s-32: 32px; --s-58: 58px; --s-80: 80px;

  --text: 13px;
  --track: -0.4px;
  --profile-w: 575px;
  --radius-frame: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html { background: var(--canvas); -webkit-text-size-adjust: 100%; scrollbar-color: var(--hairline-strong) var(--canvas); scrollbar-width: thin; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--muted);
  font-family: "Geist", system-ui, sans-serif;
  font-size: var(--text);
  font-weight: 500;
  letter-spacing: var(--track);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--canvas); }

b, strong { color: var(--ink); font-weight: 600; }

a { color: var(--ink); text-decoration-color: var(--hairline-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

p { margin: 0 0 var(--s-16); }

.visually-hidden {
  position: absolute !important; 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: var(--s-16); top: var(--s-16); z-index: 10;
  padding: var(--s-10) var(--s-16); min-height: 44px; display: inline-flex; align-items: center;
  background: var(--ink); color: var(--canvas); border-radius: 1000px; font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Grundgerüst: feste Profilspalte links, Arbeiten rechts */

.shell { min-height: 100vh; }

.profile {
  display: flex; flex-direction: column;
  padding: var(--s-32) var(--s-20) 0;
}

.profile-top { max-width: 34em; }

.name { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 var(--s-2); letter-spacing: -0.3px; line-height: 1.3; }
.name a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; margin-block: -12px; }
.role { color: var(--quiet); margin-bottom: var(--s-24); }
.intro { max-width: 34em; }

.status {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-16);
  border-block: 1px solid var(--hairline);
  padding-block: var(--s-16);
  margin-top: var(--s-24);
}
.status-text { margin: 0; display: flex; align-items: center; gap: var(--s-10); color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status); flex: none; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--s-20);
  border-radius: 1000px; border: 0;
  background: var(--action); color: var(--canvas);
  font: 600 13px/1 "Geist", system-ui, sans-serif; letter-spacing: -0.2px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.pill:hover { background: #ffc4fa; }
.pill:active { transform: translateY(1px); }
.pill:focus-visible { outline-color: var(--action); }

.site-nav { padding-block: var(--s-16) var(--s-24); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: var(--s-20); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: -0.2px;
  color: var(--quiet); text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); }
.demo-mark { margin: var(--s-8) 0 0; color: var(--quiet); font-size: 12px; }

main { display: block; padding: 0 var(--s-16); min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-16);
  min-height: 56px; margin-bottom: var(--s-24);
  background: var(--canvas); border-bottom: 1px solid var(--hairline);
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: -0.2px;
}
.topbar p { margin: 0; }
.topbar-place { color: var(--quiet); }
.clock { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock-state { color: var(--quiet); margin-left: var(--s-8); }

/* ---------- Arbeiten */

.works { display: grid; gap: var(--s-58); padding-bottom: var(--s-80); }

.work { margin: 0; }
.frame {
  border-radius: var(--radius-frame);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--stage);
  line-height: 0;
}
.sign { display: block; width: 100%; height: auto; }
.sign text { font-family: "Geist", system-ui, sans-serif; }

/* Röhrenschichten: kaltes Glas, Schein, Körper, heißer Kern */
.sign use { stroke-linecap: round; stroke-linejoin: round; }
.sign .glass { color: var(--glass); --pw: 7px; --tw: 3px; }
.sign .glass-hi { color: var(--glass-hi); --pw: 2px; --tw: 0px; }
.sign .glow { --pw: 16px; --tw: 9px; filter: blur(9px); opacity: .9; }
.sign .body { --pw: 7px; --tw: 3px; }
.sign .core { --pw: 2.4px; --tw: 0px; }

.sign .lit { opacity: 1; }
.js .work[data-state="off"] .lit { opacity: 0; }
.js .work[data-state="igniting"] .lit { animation: ignite 1100ms linear both; }

@keyframes ignite {
  0% { opacity: 0; }
  6% { opacity: .75; }
  9% { opacity: .05; }
  16% { opacity: .9; }
  19% { opacity: .2; }
  30% { opacity: .55; }
  34% { opacity: 1; }
  40% { opacity: .65; }
  48%, 100% { opacity: 1; }
}

.work figcaption {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: var(--s-16); row-gap: var(--s-2);
  padding: var(--s-16) var(--s-4) 0;
}
.work-title { margin: 0; grid-column: 1; }
.work-title b { margin-right: var(--s-8); }
.work-data { margin: 0; grid-column: 1; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: -0.2px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.switch {
  grid-column: 2; grid-row: 1 / span 2;
  min-height: 44px; min-width: 44px; padding: 0 var(--s-16);
  border-radius: 1000px; border: 1px solid var(--hairline-strong); background: transparent;
  color: var(--muted); font: 500 12px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.2px;
  cursor: pointer; transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.switch:hover { border-color: var(--muted); color: var(--ink); }
.switch { display: none; }
.js .switch { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Finale: Drahtgitter, Pixel-Hand, Leistungen */

.finale {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--hairline);
  padding: var(--s-80) 0 140px;
  isolation: isolate;
}
.grid-floor {
  position: absolute; inset: auto -60% 0 -60%; height: 90%; z-index: -1;
  border-top: 1px solid #6a6458;
  background-image:
    linear-gradient(to right, #5e594f 1px, transparent 1px),
    linear-gradient(to bottom, #5e594f 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(52deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, #000 60%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, #000 60%);
}
.finale-inner { position: relative; }
.finale-title {
  font-family: "Geist Pixel", "Geist Mono", monospace; font-weight: 400;
  font-size: clamp(28px, 4.2vw, 52px); line-height: 1.1; letter-spacing: 0;
  color: var(--ink); max-width: 14em; margin: 0 0 var(--s-32);
  text-wrap: balance;
}
.finale-cta { display: flex; align-items: center; gap: var(--s-16); margin-bottom: var(--s-32); }
.hand { width: 88px; height: auto; color: var(--action); flex: none; }
.pill-big { min-height: 52px; padding: 0 var(--s-24); font-size: 15px; }
.services, .finale-note { text-shadow: 0 0 6px #020202, 0 0 2px #020202; }
.services { list-style: none; margin: 0 0 var(--s-32); padding: 0; color: var(--action); font-size: 15px; }
.services li { display: flex; gap: var(--s-10); align-items: baseline; padding-block: var(--s-4); }
.services li::before { content: ""; width: 6px; height: 6px; background: var(--action); flex: none; transform: translateY(-2px); }
.finale-note { max-width: 34em; }

@media (prefers-reduced-motion: no-preference) {
  .hand { animation: nudge 1.6s steps(2, jump-none) infinite; }
}
@keyframes nudge { from { transform: translateX(0); } to { transform: translateX(6px); } }

/* ---------- Fußzeile */

.site-foot { border-top: 1px solid var(--hairline); padding: var(--s-24) 0 var(--s-32); color: var(--quiet); font-size: 12px; }
.site-foot p { margin: 0 0 var(--s-8); }
.foot-links { display: flex; flex-wrap: wrap; column-gap: var(--s-20); align-items: center; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* ---------- Unterseiten */

.page { padding-bottom: var(--s-58); max-width: 760px; }
.page-title, .section-label {
  font-size: 30px; font-weight: 300; color: var(--quiet); letter-spacing: -0.8px; line-height: 1.15;
  margin: 0 0 var(--s-16);
}
.page-title { color: var(--ink); margin-top: var(--s-16); }
.section-label { margin-top: var(--s-58); }
.lead { font-size: 15px; color: var(--muted); max-width: 36em; margin-bottom: var(--s-32); }
.block { max-width: 40em; }
.block > p { max-width: 36em; }
.hint { color: var(--quiet); font-size: 12px; }
.demo-note { color: var(--ink); border: 1px solid var(--hairline-strong); border-radius: 12px; padding: var(--s-10) var(--s-16); display: inline-block; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.2em 1fr; column-gap: var(--s-16);
  padding-block: var(--s-20); border-bottom: 1px solid var(--hairline);
}
.steps li::before {
  content: counter(step); grid-row: 1 / span 3;
  font-family: "Geist Mono", ui-monospace, monospace; color: var(--quiet); font-size: 13px; padding-top: 2px;
}
.steps h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 var(--s-4); letter-spacing: -0.3px; }
.steps p { margin: 0; max-width: 36em; }
.steps .step-meta { margin-top: var(--s-8); font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: var(--quiet); }

.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: var(--s-10) var(--s-16) var(--s-10) 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.table thead th { color: var(--quiet); font-weight: 500; font-size: 12px; }
.table tbody th { font-weight: 500; color: var(--muted); }
.table .num { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; white-space: nowrap; color: var(--ink); }

.people { list-style: none; margin: 0; padding: 0; }
.people li { padding-block: var(--s-10); border-bottom: 1px solid var(--hairline); }
.people b { display: block; }

.symptoms { margin: 0; }
.symptoms div { padding-block: var(--s-16); border-bottom: 1px solid var(--hairline); }
.symptoms dt { color: var(--ink); font-weight: 600; margin-bottom: var(--s-4); }
.symptoms dd { margin: 0; }
.work-inline { margin-block: var(--s-8) var(--s-24); }

.two { display: grid; gap: var(--s-24); margin-bottom: var(--s-24); }
address { font-style: normal; line-height: 1.7; overflow-wrap: anywhere; }

/* ---------- Formulare (Schriftprobe, Anfrage) */

.field { margin: 0 0 var(--s-24); padding: 0; border: 0; min-width: 0; }
.field > label, legend { display: block; color: var(--ink); font-weight: 600; margin-bottom: var(--s-8); padding: 0; }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 44px; padding: var(--s-10) var(--s-16);
  background: #0b0b0b; color: var(--ink); caret-color: var(--action);
  border: 1px solid var(--hairline-strong); border-radius: 12px;
  font: 500 15px/1.4 "Geist", system-ui, sans-serif; letter-spacing: -0.3px;
}
textarea { resize: vertical; }
input:hover, textarea:hover { border-color: #45433f; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[aria-invalid="true"] { border-color: #ff8a7a; }
.error { color: #ff9d8f; font-size: 12px; margin: var(--s-8) 0 0; }
.hint { margin: var(--s-8) 0 0; }

.choices { display: grid; gap: var(--s-8); }
.choices-row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.choices-swatch { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-body {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-8);
  min-height: 44px; height: 100%; padding: var(--s-10) var(--s-16);
  border: 1px solid var(--hairline-strong); border-radius: 12px; color: var(--muted);
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.choice-body small { flex-basis: 100%; color: var(--quiet); font-size: 12px; }
.choice:hover .choice-body { border-color: #45433f; }
.choice input:checked + .choice-body { border-color: var(--ink); color: var(--ink); background: #0d0d0c; }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }

.probe-work { margin-bottom: var(--s-32); }
.probe-caption { grid-template-columns: 1fr auto; }
.probe-result { border-top: 1px solid var(--hairline); }
.probe-result .section-label { margin-top: var(--s-32); }
.figures { margin: 0 0 var(--s-16); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--hairline); }
.figures div { padding: var(--s-16) var(--s-16) var(--s-16) 0; border-bottom: 1px solid var(--hairline); }
.figures dt { color: var(--quiet); font-size: 12px; }
.figures dd { margin: var(--s-4) 0 0; font-family: "Geist Mono", ui-monospace, monospace; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: -0.3px; }
.figure-price dd { font-size: 17px; }

.form { max-width: 36em; }
.form-status { color: var(--ink); min-height: 1.5em; }

/* ---------- Ab 960 px: geteilter Bildschirm */

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: minmax(340px, var(--profile-w)) minmax(0, 1fr); }
  .profile {
    position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
    border-right: 1px solid var(--hairline);
    padding: var(--s-32) var(--s-32) 0;
    justify-content: space-between;
  }
  .status { margin-top: 0; }
  main { padding: 0 44px; }
  .two { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 959.98px) {
  body { font-size: 15px; }
  .profile { border-bottom: 1px solid var(--hairline); }
  .topbar-place { display: none; }
  .topbar { justify-content: flex-end; }
  .work figcaption { grid-template-columns: 1fr; }
  .switch { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--s-8); }
  .status { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .finale-cta { flex-wrap: wrap; }
  .hand { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .work[data-state="igniting"] .lit { animation: none; opacity: 1; }
}

.probe-result .hint { margin-bottom: var(--s-16); }
