/* Evrion Studio. Startseite als Studio-Portfolio: Hero mit Aussage und Live-Kennzahlen, Projekte als Karten
   (Tripwire groß), Betrieb mit Live-Karte, Studio, Support. Dark-first, Bernstein als einziger Akzent.
   Kopfzeile, Live-Karte, Formular, Status-, Rechts- und Fehlerseite teilen sich diese Datei. */
@font-face { font-family: "Anybody"; src: url("fonts/anybody.woff2") format("woff2"); font-weight: 300 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #0b0f1c;
  --raised: #121829;
  --line: #222a40;
  --ink: #e6e9f4;
  --muted: #8790ab;
  --accent: #f2b45c;
  --ok: #5fd39a;
  --warn: #ff7a59;
  --off: #ff5d6c;
  --trace: 242, 180, 92;
  --display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.16, .84, .12, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #eef0f6; --raised: #ffffff; --line: #d5d9e6; --ink: #0f1424;
    --muted: #59627e; --accent: #a35f00; --ok: #17804f; --warn: #c2410c; --off: #c4314b; --trace: 163, 95, 0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
/* Nur für Vorlese-Programme, Suchmaschinen und Kopieren sichtbar */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1180px; margin: 0 auto; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Kopfzeile ---------- */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.nav-mark { position: relative; font-family: var(--display); font-weight: 860; font-stretch: 78%; font-size: 30px; line-height: 1; letter-spacing: .03em; text-decoration: none; padding-bottom: 7px; }
/* Bernstein-Linie unter dem Logo, läuft nach rechts aus und zeichnet sich beim Laden einmal */
.nav-mark::after { content: ""; position: absolute; left: 0; bottom: 0; width: 140%; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(var(--trace), 0)); transform-origin: left; animation: mark-draw 1.1s .2s var(--ease) both; pointer-events: none; }
@keyframes mark-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.status-pill:hover { color: var(--ink); }
.status-pill.warn { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { position: relative; padding-block: 6px; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(var(--trace), 0)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover::after, .nav-links a.on::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.on, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav .lang, .status-pill { position: relative; }
.nav .lang::before, .status-pill::before { content: ""; position: absolute; left: -12px; top: 50%; width: 1px; height: 18px; background: var(--line); transform: translateY(-50%); }
.lang { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 3px; padding: 4px 8px; transition: color .2s, border-color .2s; }
.lang:hover { color: var(--ink); border-color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); text-decoration: none; background: none; border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; cursor: pointer; transition: color .2s, border-color .2s; }
.chip:hover { color: var(--ink); }
.chip[data-live="1"] { color: var(--ink); border-color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.chip[data-live="1"] .dot, .dot.ok { background: var(--ok); animation: pulse 2.4s ease-out infinite; }
.dot.warn { background: var(--warn); }
/* Twitch-Knopf: nur sichtbar, wenn ein Stream läuft */
.chip.tw { gap: 7px; height: 30px; padding: 0 10px; }
.chip.tw svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.chip.tw .dot { background: var(--off); }
.chip.tw #twitch-text { font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.chip.tw[data-live="1"] { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.chip.tw[data-live="1"] #twitch-text { color: var(--ok); }
.chip.tw:hover { border-color: var(--accent); }
/* Störungs-Hinweis unter der Kopfzeile */
.incident { position: sticky; top: 66px; z-index: 4; display: block; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--accent); color: #10131d; font-weight: 600; font-size: 14px; text-align: center; text-decoration: none; }
.incident:hover { text-decoration: underline; }

/* ---------- Knöpfe ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; font: 600 15px var(--body); text-decoration: none; color: var(--ink); background: none; border-radius: 4px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s, transform .2s, color .2s; }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.small { padding: 9px 15px; font-size: 14px; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(72px, 13vh, 150px) 88px; }
/* ruhiger Bernstein-Schein oben rechts, läuft ins Dunkle aus */
.hero::before { content: ""; position: absolute; inset: -66px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 88% 0%, rgba(var(--trace), .13), transparent 65%); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; animation: rise 1s .1s var(--ease) both; }
.eyebrow .label:first-child { color: var(--accent); }
.sep { width: 28px; height: 1px; background: var(--line); }
.hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; column-gap: 72px; align-items: end; }
.headline { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-size: clamp(54px, 8vw, 118px); line-height: .96; letter-spacing: -.012em; margin: 28px 0 0; max-width: 13ch; text-wrap: balance; animation: rise 1.1s .2s var(--ease) both; }
.headline em { font-style: normal; color: var(--accent); }
.thesis { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--muted); max-width: 46ch; margin: 30px 0 0; text-wrap: pretty; animation: rise 1.1s .35s var(--ease) both; }
.hero .cta { animation: rise 1.1s .5s var(--ease) both; }
/* Live-Kennzahlen: rechts neben der Aussage als Spalte, auf schmalen Bildschirmen darunter als Raster */
.kpis { display: flex; flex-direction: column; margin: 0 0 6px; border-left: 1px solid var(--line); animation: rise 1.1s .65s var(--ease) both; }
.kpis div { display: flex; flex-direction: column-reverse; gap: 8px; padding: 20px 0 20px 28px; border-bottom: 1px solid var(--line); }
.kpis div:last-child { border-bottom: 0; padding-bottom: 4px; }
.kpis div:first-child { padding-top: 4px; }
.kpis dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.kpis dd { margin: 0; font-family: var(--display); font-weight: 760; font-stretch: 72%; font-size: clamp(36px, 3.6vw, 50px); line-height: 1; font-variant-numeric: tabular-nums; }
.kpis div:first-child dd { color: var(--accent); }

/* ---------- Abschnitte ---------- */
section.block { --pad: 104px; position: relative; padding-block: var(--pad); border-top: 1px solid var(--line); }
/* Bernstein-Akzent über der Überschrift; beim ersten Erreichen läuft die Linie einmal über die ganze Breite */
section.block > .wrap { position: relative; }
section.block > .wrap::before { content: ""; position: absolute; left: 0; top: calc(-1 * var(--pad) - 1.5px); width: 72px; height: 2px; background: var(--accent); transform-origin: left; }
section.block::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(var(--trace), .15)); transform-origin: left; transform: scaleX(0); opacity: 0; pointer-events: none; }
section.block.drawn::after { animation: rule-draw 1.6s var(--ease) forwards; }
section.block.drawn > .wrap::before { animation: rule-settle 1.6s var(--ease) both; }
@keyframes rule-draw { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes rule-settle { 0%, 40% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.block-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 44px; }
.block-head h2 { font-family: var(--display); font-weight: 760; font-stretch: 75%; font-size: clamp(40px, 5.5vw, 68px); line-height: 1; margin: 0; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; max-width: 52ch; margin: -14px 0 40px; text-wrap: pretty; }

/* ---------- Projekte ---------- */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 30px 26px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(var(--trace), 0) 80%); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); transform: translateY(-2px); }
.card:hover::before, .card.seen::before { transform: scaleX(1); }
.card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.idx { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.card-top .state { margin-left: auto; }
.state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; }
.card h3 { font-family: var(--display); font-weight: 760; font-stretch: 70%; font-size: clamp(40px, 4.4vw, 58px); line-height: .95; margin: 22px 0 4px; transition: font-stretch .5s var(--ease), color .3s; }
.card:hover h3 { font-stretch: 80%; color: var(--accent); }
.card .one { margin: 0; font-size: clamp(18px, 1.7vw, 20px); line-height: 1.35; text-wrap: balance; }
.card .desc { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 52ch; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.card > .card-foot { border-top: 1px solid var(--line); margin-top: auto; }
.card > .desc { margin-bottom: 26px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.more-link { align-self: flex-start; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.more-link:hover { color: var(--ink); border-color: var(--accent); }
.inline-link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--accent); transition: color .2s; }
.inline-link:hover { color: var(--accent); }
/* Letzte Veröffentlichung pro Projekt, wie „updated 2 days ago“ bei GitHub */
.upd { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.upd::before { content: "↻"; }
.upd b { font-weight: 500; color: var(--ink); }
.upd.new b { color: var(--accent); } .upd.fix b { color: var(--ok); }

/* Tripwire: große Karte über die ganze Breite, rechts Discord und Twitch mit Live-Zahlen */
.featured { grid-column: 1 / -1; padding: 32px 34px; background: linear-gradient(135deg, rgba(var(--trace), .08), transparent 42%), var(--raised); }
.featured h3 { font-size: clamp(48px, 6vw, 80px); }
.featured-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: start; }
.featured-copy { display: flex; flex-direction: column; gap: 14px; }
.featured-copy .tags { margin: 6px 0 4px; }
.platforms { display: grid; gap: 14px; margin-top: 22px; }
.sub { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--ground) 55%, transparent); }
.sub::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(var(--trace), 0) 70%); }
.sub-head { display: flex; align-items: center; gap: 12px; }
.plat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; color: var(--ink); background: rgba(var(--trace), .14); }
.nums { display: flex; gap: 14px; margin: 0; }
.nums > div { flex: 1 1 0; min-width: 0; }
.nums div { display: flex; flex-direction: column; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.nums dt { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.45; color: var(--muted); }
.nums dd { margin: 6px 0 0; font-family: var(--display); font-weight: 760; font-stretch: 78%; font-size: 30px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.sub > .btn, .sub-links { align-self: flex-start; }
.sub-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Betrieb (Live-Karte) ---------- */
.ops { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.ops-copy .lead { margin-bottom: 28px; }
.ops-copy .facts { margin-bottom: 30px; }
.live { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.live-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.live-head strong { font-size: 14px; font-weight: 600; }
.map-box { position: relative; }
#map { display: block; width: 100%; aspect-ratio: 16 / 10; cursor: crosshair; }
.tip { position: absolute; z-index: 2; pointer-events: none; background: var(--ground); border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; font-size: 13px; line-height: 1.4; max-width: 220px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transform: translate(-50%, calc(-100% - 14px)); }
.tip b { display: block; font-weight: 600; }
.tip span { color: var(--muted); }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 64px; gap: 12px; align-items: center; padding: 9px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 0; }
.svc-list li.svc-ext { border-top: 1px dashed var(--line); }
.svc-list li.ping { animation: rowPing 1.2s var(--ease); }
.svc-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-name small { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 400; }
.svc-days { display: flex; gap: 2px; align-items: stretch; height: 16px; }
.svc-days i { width: 3px; border-radius: 1px; background: var(--line); }
.svc-days i.ok { background: var(--ok); opacity: .8; }
.svc-days i.warn { background: var(--warn); }
.svc-val { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.svc-val b { color: var(--ink); font-weight: 500; }
.live-foot { padding: 10px 16px; border-top: 1px solid var(--line); }

/* ---------- Studio ---------- */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principles li { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.principles li:hover { background: var(--raised); }
.principles .num { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent); }
.principles b { font-family: var(--display); font-weight: 700; font-stretch: 78%; font-size: 26px; line-height: 1.1; transition: font-stretch .45s var(--ease); }
.principles li:hover b { font-stretch: 92%; }
.principles li > span:last-child { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.stack { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 18px; margin-top: 36px; }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 3px; padding: 5px 10px; transition: border-color .2s, color .2s; }
.stack li:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Support ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.contact-side p { color: var(--muted); max-width: 40ch; margin: 0 0 26px; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 420px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts li span:first-child { color: var(--muted); }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.facts a:hover { border-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 26px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.step legend { display: flex; align-items: baseline; gap: 10px; padding: 0; margin-bottom: 12px; }
.step legend b { font: 500 11px var(--mono); color: var(--accent); }
/* Schritt 1: Projekt als Karten, gleiche Reihenfolge wie bei den Projekten */
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick input, .reasons input { position: absolute; opacity: 0; pointer-events: none; }
.pick label { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); cursor: pointer; white-space: nowrap; overflow: hidden; transition: border-color .2s, transform .2s var(--ease); }
.pick label b { font-family: var(--display); font-weight: 720; font-stretch: 74%; font-size: 16px; line-height: 1.1; }
.pick label small { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.pick label:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-1px); }
.pick input:checked + label { border-color: var(--accent); box-shadow: inset 0 2px 0 var(--accent); }
.pick input:checked + label small { color: var(--accent); }
/* Schritt 2: Anliegen passend zum Projekt */
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.reasons label { font-size: 14px; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.reasons label:hover { border-color: var(--accent); }
.reasons input:checked + label { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pick input:focus-visible + label, .reasons input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint-note { margin: 0; font-size: 13px; color: var(--muted); padding: 10px 12px; border-left: 2px solid var(--accent); background: rgba(var(--trace), .06); }
/* Schritt 3: Angaben */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.extra { display: contents; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field .opt { text-transform: none; letter-spacing: 0; }
.field input, .field textarea { font: 400 15px var(--body); color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: 11px 13px; transition: border-color .2s; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 46ch; }
.form-status { margin: 0; font-size: 14px; color: var(--accent); min-height: 1.6em; }
.form-status.error { color: var(--warn); }

/* ---------- Fußzeile ---------- */
/* Startseite: Spalten wie bei einer normalen Studio-Seite */
.site-foot { position: relative; z-index: 1; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 64px max(16px, env(safe-area-inset-left, 0px)) 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--raised) 45%, var(--ground)); }
.site-foot > .wrap:first-child { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand .nav-mark { font-size: 26px; }
.foot-brand p { margin: 18px 0 0; max-width: 30ch; color: var(--muted); font-size: 14px; }
.site-foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.site-foot nav .label { margin-bottom: 4px; }
.site-foot nav a, .foot-base a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-foot nav a:hover, .foot-base a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
/* Unterseiten (Status, Rechtstexte): schlichte Zeile */
footer:not(.site-foot) { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer:not(.site-foot) a { text-decoration: none; }
footer:not(.site-foot) a:hover { color: var(--ink); }

/* ---------- Einblenden beim Scrollen (nur mit JavaScript, sonst sofort sichtbar) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Rechtstexte ---------- */
.legal-doc { max-width: 760px; padding-block: 48px 64px; }
.legal-doc h1 { font-family: var(--display); font-weight: 760; font-stretch: 75%; font-size: clamp(36px, 5vw, 52px); line-height: 1; margin: 0 0 10px; }
.legal-doc h2 { font-size: 17px; margin: 30px 0 8px; }
.legal-doc h3 { font-size: 15px; margin: 20px 0 6px; color: var(--ink); }
.legal-doc h2[id] { scroll-margin-top: 80px; }
.legal-doc p, .legal-doc li { color: var(--muted); line-height: 1.7; }
.legal-doc ul { padding-left: 20px; }
.legal-doc a { color: var(--accent); }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-sub { margin: 0; font-family: var(--mono); font-size: 12px; }
.legal-back { display: inline-block; margin-bottom: 28px; color: var(--muted) !important; text-decoration: none; font-size: 14px; }

/* ---------- Übergangsseite (großer Schriftzug) ---------- */
.soon { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 48px; }
.soon .thesis { max-width: 40ch; color: var(--ink); }
.soon .thesis a { color: var(--accent); }
.wordmark { font-family: var(--display); font-weight: 820; font-size: clamp(64px, 11vw, 150px); line-height: .82; letter-spacing: -.01em; margin: 18px 0 0; white-space: nowrap; user-select: none; }
.wordmark span { display: inline-block; font-stretch: 62%; }
.wordmark .studio { display: block; font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: .5em; line-height: 1; margin: 22px 0 0 4px; color: var(--accent); }

/* ---------- Statusseite ---------- */
.status-page { max-width: 880px; padding-block: 56px 72px; }
.status-head { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 760; font-stretch: 75%; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 12px 0 8px; }
.status-head .dot { width: 14px; height: 14px; }
.status-sub { color: var(--muted); margin: 0 0 36px; font-variant-numeric: tabular-nums; }
.status-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); }
.status-list li { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.status-list li:last-child { border-bottom: 0; }
.status-list li.ext { border-top: 1px dashed var(--line); }
.st-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.st-row .dot { align-self: center; }
.st-row b { font-weight: 600; font-size: 17px; }
.st-row small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.st-state { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-bars { display: flex; gap: 3px; height: 30px; }
.st-bars i { flex: 1; border-radius: 2px; background: var(--line); }
.st-bars i.ok { background: var(--ok); opacity: .8; }
.st-bars i.warn { background: var(--warn); }
.status-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.status-legend span { display: inline-flex; align-items: center; gap: 6px; }
.status-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--line); display: inline-block; }
.status-legend i.ok { background: var(--ok); } .status-legend i.warn { background: var(--warn); }
.status-range { margin-left: auto; }
.status-help { color: var(--muted); margin-top: 36px; }
.status-help a { color: var(--accent); }

/* ---------- Fehlerseite ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 64px; }
.notfound .code { font-family: var(--display); font-weight: 820; font-stretch: 62%; font-size: clamp(110px, 22vw, 240px); line-height: .85; color: var(--accent); }
.notfound h1 { font-family: var(--display); font-weight: 760; font-stretch: 75%; font-size: clamp(30px, 4vw, 44px); margin: 0; }
.notfound p { color: var(--muted); margin: 0; max-width: 46ch; }
.notfound .cta { margin-top: 18px; }

/* ---------- Punktraster, das der Maus folgt ---------- */
.matrix { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(var(--trace), .4) 1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, -60%), #000, transparent 72%); mask-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, -60%), #000, transparent 72%); }
main { position: relative; z-index: 1; }

/* ---------- Intro: EVRION fällt Buchstabe für Buchstabe, Linie zieht sich darunter ---------- */
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); background: var(--ground); clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease); }
.intro::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(var(--trace), .16) 1px, transparent 1.5px); background-size: 22px 22px; }
.intro.out { clip-path: inset(0 0 100% 0); }
.intro-drop { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.intro-drop .w { position: relative; display: flex; font-family: var(--display); font-weight: 880; font-stretch: 78%; font-size: clamp(64px, 12vw, 180px); line-height: 1; letter-spacing: .03em; padding-bottom: .1em; }
.intro-drop span { display: inline-block; transform: translateY(-120vh); }
.intro-drop.go span { animation: intro-fall .7s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.intro-drop span:nth-child(2) { animation-delay: .09s; } .intro-drop span:nth-child(3) { animation-delay: .18s; } .intro-drop span:nth-child(4) { animation-delay: .27s; }
.intro-drop span:nth-child(5) { animation-delay: .36s; } .intro-drop span:nth-child(6) { animation-delay: .45s; }
.intro-drop .w::after { content: ""; position: absolute; left: 0; bottom: 0; width: 140%; height: max(2px, .035em); background: linear-gradient(90deg, var(--accent), rgba(var(--trace), 0)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.intro-drop.line .w::after { transform: scaleX(1); }
@keyframes intro-fall { 0% { transform: translateY(-120vh); } 100% { transform: none; } }
html.intro-on { overflow: hidden; }
html.intro-on .hero * { animation-play-state: paused !important; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rowPing { 0% { background: rgba(var(--trace), .14); } 100% { background: transparent; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 960px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .featured-body { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ops, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .hero > .wrap { grid-template-columns: minmax(0, 1fr); }
  .kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; border-left: 0; border-top: 1px solid var(--line); }
  .kpis div, .kpis div:first-child, .kpis div:last-child { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
  .kpis div:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .kpis div:nth-child(n+3) { border-bottom: 0; }
  .site-foot > .wrap:first-child { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .nav .lang { margin-left: auto; }
  .nav .lang::before { display: none; }
  .hero { padding-block: 56px 64px; }
  .eyebrow .sep, .eyebrow .label:last-child { display: none; }
  .kpis { margin-top: 48px; }
  .kpis div:nth-child(2n) { padding-left: 14px; }
  .card, .featured { padding: 22px 20px; }
  .sub { padding: 18px; }
  .nums dd { font-size: 24px; }
  #map { aspect-ratio: 1 / 1; }
  .svc-name small { display: none; }
  .svc-days i:nth-child(-n+16) { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .pick { grid-template-columns: minmax(0, 1fr); }
  section.block { --pad: 72px; }
  .site-foot > .wrap:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) { .status-pill .txt { display: none; } .nav-mark { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
