@import url("../fonts/fonts.css");

/* Farben als registrierte Eigenschaften, damit der Wechsel zwischen den Abschnitten weich überblendet */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #0b0d0c; }
@property --bg-2 { syntax: "<color>"; inherits: true; initial-value: #121513; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #262b28; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #edece6; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #a3a49c; }
@property --dim { syntax: "<color>"; inherits: true; initial-value: #6e716b; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #c9ff3b; }
@property --fill { syntax: "<color>"; inherits: true; initial-value: #c9ff3b; }
@property --fill-ink { syntax: "<color>"; inherits: true; initial-value: #0b0d0c; }

:root {
  --bg: #0b0d0c; --bg-2: #121513; --line: #262b28; --ink: #edece6; --muted: #a3a49c; --dim: #6e716b;
  --accent: #c9ff3b; --fill: #c9ff3b; --fill-ink: #0b0d0c;
  --lime: #c9ff3b;
  --warn: #ff5a36;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
body[data-theme="paper"] {
  --bg: #f3eee4; --bg-2: #ebe4d6; --line: #d9d0bf; --ink: #17150f; --muted: #575247; --dim: #8d8677;
  --accent: #3f6a00; --fill: #c9ff3b; --fill-ink: #17150f;
}
body[data-theme="signal"] {
  --bg: #c9ff3b; --bg-2: #bdf22e; --line: rgba(11, 13, 12, .22); --ink: #0b0d0c; --muted: #2f3a12; --dim: #4b5a1c;
  --accent: #0b0d0c; --fill: #0b0d0c; --fill-ink: #c9ff3b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: --bg .9s, --bg-2 .9s, --line .9s, --ink .9s, --muted .9s, --dim .9s, --accent .9s, --fill .9s, --fill-ink .9s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--lime); color: #0b0d0c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lime); color: #0b0d0c; padding: 10px 14px; text-decoration: none; }
.skip:focus { left: 8px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav ul a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; background: none; border: 0; color: var(--muted); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.nav-right { display: flex; align-items: center; gap: 28px; }

/* ---------- Hero / HUD ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
#topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 55%, transparent 0 30%, rgba(11,13,12,.85) 75%, #0b0d0c 100%); }
.hud { position: absolute; inset: 84px var(--gutter) 28px; pointer-events: none; color: var(--muted); }
.hud .c { position: absolute; width: 28px; height: 28px; border: 1.5px solid var(--ink); opacity: .7; }
.hud .c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud .c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud .c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud .c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud .t { position: absolute; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.hud .t.tl { top: 8px; left: 44px; }
.hud .t.tr { top: 8px; right: 44px; }
.hud .t.bl { bottom: 8px; left: 44px; }
.hud .t.br { bottom: 8px; right: 44px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.cross { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); opacity: .35; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--ink); }
.cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.cross::after { top: 50%; left: 0; right: 0; height: 1px; }

.hero-inner { text-align: center; padding: 120px var(--gutter) 90px; max-width: 1200px; }
.hero h1 { font-size: clamp(56px, 13.5vw, 210px); line-height: .86; letter-spacing: -.045em; font-weight: 700; margin: 0; }
.hero h1 span { display: block; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero .lead { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.35; max-width: 32ch; margin: 32px auto 0; }
.hero .roles { margin-top: 28px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.hero .roles span::before { content: "◆"; color: var(--accent); margin-right: 8px; font-size: 9px; vertical-align: 2px; }
.scroll-cue { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); animation: drop 2s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Höhenmesser ---------- */
.alt {
  position: fixed; right: var(--gutter); bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 12px; color: var(--muted);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s;
}
.alt.on { opacity: 1; transform: none; }
.alt b { color: var(--accent); font-weight: 500; min-width: 6ch; text-align: right; }
.alt .bar { width: 4px; height: 26px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.alt .bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent); height: 100%; }

/* ---------- Abschnitte ---------- */
section { position: relative; scroll-margin-top: 72px; }
.sec { padding: clamp(96px, 14vw, 180px) 0; }
.eyebrow { color: var(--accent); display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(40px, 7vw, 104px); line-height: .95; letter-spacing: -.035em; font-weight: 650; margin: 0 0 28px; }
.h2 em { font-style: normal; color: var(--muted); }

/* Statement */
.statement p { font-size: clamp(30px, 4.6vw, 66px); line-height: 1.08; letter-spacing: -.025em; font-weight: 500; margin: 0; max-width: 22ch; }
.statement p .w { color: var(--dim); transition: color .5s; }
.statement p .w.lit { color: var(--ink); }
.statement p .hl.lit { color: var(--accent); }
.statement .meta { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.statement .meta div { background: var(--bg); padding: 24px; }
.statement .meta strong { display: block; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.statement .meta span { color: var(--muted); display: block; margin-top: 10px; }

/* Augen / Autofokus: gepinnt, von breit auf Augenschlitz */
.focus { position: relative; height: 280vh; }
.focus-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.focus-frame { position: absolute; inset: 0; will-change: clip-path; }
.focus-media { position: absolute; will-change: transform; }
.focus-media img { display: block; width: 100%; height: 100%; }
.af { position: absolute; inset: 0; width: 100%; height: 100%; }
.afbox { transform: translate(var(--x), var(--y)) scale(2.6); transform-box: view-box; opacity: 0; transition: transform .9s var(--ease), opacity .3s; }
.afbox path { fill: none; stroke: #edece6; vector-effect: non-scaling-stroke; stroke-width: 2px; transition: stroke .25s .85s; }
.focus.lock .afbox { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; }
.focus.lock .afbox path { stroke: var(--lime); }
.af-label { position: absolute; left: var(--gutter); top: 0; color: #edece6; display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .3s 1s; }
.af-label i { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; }
.focus.lock .af-label { opacity: 1; }
.focus-cap { position: absolute; left: 0; right: 0; bottom: clamp(32px, 9vh, 96px); opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s; }
.focus.lock .focus-cap { opacity: 1; transform: none; }
.focus-line { font-size: clamp(36px, 6vw, 92px); line-height: .98; letter-spacing: -.035em; font-weight: 650; margin: 0; }
.focus-line em { font-style: normal; color: var(--muted); }

/* Projektkarten */
.proj { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 440px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; margin-top: 64px; }
.proj .txt { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.idx { color: var(--dim); }
.proj h3 { font-size: clamp(32px, 4.2vw, 58px); line-height: .98; letter-spacing: -.03em; margin: 0; font-weight: 650; }
.role { color: var(--accent); }
.proj p { margin: 0; color: var(--muted); max-width: 46ch; }
.proj ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.proj li { display: flex; gap: 12px; font-size: 16px; }
.proj li::before { content: "→"; color: var(--dim); font-family: var(--mono); }
.go { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; text-decoration: none; border: 1px solid var(--ink); padding: 12px 18px; border-radius: 999px; transition: background-color .25s, color .25s; }
.go:hover { background: var(--ink); color: var(--bg); }
.proj .vis { position: relative; border-left: 1px solid var(--line); overflow: hidden; min-height: 280px; }
.proj .vis svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.proj .tag { position: absolute; left: 18px; bottom: 16px; color: var(--muted); }
.vis-tmp { background: #0f1210; }
.vis-tmp .dot { fill: #3b403c; transition: fill .6s; }
.vis-tmp .dot.on { fill: var(--lime); }

/* ---------- Webdesign-er: gepinnte Szene ---------- */
.wd { height: 360vh; }
.wd-stick { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.wd-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: 64px; }
.wd-txt { display: flex; flex-direction: column; gap: 14px; }
.wd-word { font-size: clamp(56px, 8.4vw, 132px); line-height: .84; letter-spacing: -.05em; font-weight: 700; margin: 6px 0 0; }
.wd-word span { display: block; }
.wd-word .er { color: #e64a24; }
.wd-for { font-size: clamp(20px, 2vw, 26px); margin: 4px 0 6px; }
.wd-for b { font-weight: 650; display: inline-block; transition: color .4s; }
.wd-for b.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { transform: translateY(.6em); opacity: 0; } to { transform: none; opacity: 1; } }
.wd-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.wd-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .4s; }
.wd-steps li.on { opacity: 1; }
.wd-steps li .mono { padding-top: 4px; color: var(--dim); }
.wd-steps li.on .mono { color: #e64a24; }
.wd-steps strong { display: block; font-weight: 600; font-size: 19px; }
.wd-steps li span:not(.mono) { color: var(--muted); font-size: 15.5px; display: block; }
.wd-btn { align-self: flex-start; margin-top: 10px; background: #16130f; color: #f6f3ed; }

.browser { --c: #e64a24; position: relative; background: #fff; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(40, 30, 10, .35), 0 0 0 1px rgba(0,0,0,.08); overflow: hidden; aspect-ratio: 4 / 3.15; }
.b-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #ece7dd; }
.b-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #d4cbbb; }
.b-url { margin-left: 14px; flex: 1; background: #fff; border-radius: 999px; padding: 6px 14px; color: #6b655c; text-transform: none; letter-spacing: .02em; display: flex; gap: 6px; align-items: center; overflow: hidden; white-space: nowrap; }
.b-url .lock { display: none; font-size: 10px; }
.browser[data-step="3"] .b-url .lock { display: inline; }
.b-page { position: relative; height: calc(100% - 46px - 10px); padding: 5% 6%; color: #16130f; }
.b-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7%; }
.b-logo { width: 18%; height: 14px; border-radius: 3px; }
.b-links { display: flex; gap: 10px; width: 30%; }
.b-links i { flex: 1; height: 8px; border-radius: 4px; }
.b-hero { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 7%; height: 46%; }
.b-h1 { font-weight: 700; font-size: clamp(18px, 2.6vw, 38px); line-height: 1; letter-spacing: -.03em; align-self: end; }
.b-sub { height: 8px; width: 80%; margin-top: 14px; border-radius: 4px; }
.b-cta { width: 42%; height: 26px; border-radius: 999px; margin-top: 16px; }
.b-img { grid-column: 2; grid-row: 1 / 4; border-radius: 10px; position: relative; overflow: hidden; }
.b-img svg { position: absolute; inset: 18% 12%; width: 76%; height: 64%; fill: none; stroke: rgba(255,255,255,.85); stroke-width: 2.4; opacity: 0; transition: opacity .5s; }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; margin-top: 7%; height: 22%; }
.b-cards i { border-radius: 8px; }
.b-bars { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 10px; }
.b-bars i { flex: 1; }
.sketch { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sketch path { fill: none; stroke: #8a8172; stroke-width: 1.6; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; transition: opacity .5s; }

/* Zustände der Szene */
.b-logo, .b-links i, .b-sub, .b-cta, .b-img, .b-cards i { background: transparent; transition: background-color .6s, opacity .6s, transform .6s var(--ease); }
.b-h1 { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease), color .5s; }
.browser[data-step="1"] .b-logo, .browser[data-step="1"] .b-links i, .browser[data-step="1"] .b-sub, .browser[data-step="1"] .b-cta, .browser[data-step="1"] .b-img, .browser[data-step="1"] .b-cards i { background: #e7e2d8; }
.browser[data-step="1"] .b-h1 { opacity: .35; transform: none; }
.browser[data-step="2"] .b-logo, .browser[data-step="3"] .b-logo { background: #16130f; }
.browser[data-step="2"] .b-links i, .browser[data-step="3"] .b-links i { background: #d9d2c4; }
.browser[data-step="2"] .b-sub, .browser[data-step="3"] .b-sub { background: #cfc7b7; }
.browser[data-step="2"] .b-cta, .browser[data-step="3"] .b-cta { background: var(--c); }
.browser[data-step="2"] .b-img, .browser[data-step="3"] .b-img { background: var(--c); }
.browser[data-step="2"] .b-img svg, .browser[data-step="3"] .b-img svg { opacity: 1; }
.browser[data-step="2"] .b-cards i, .browser[data-step="3"] .b-cards i { background: #f1ece2; box-shadow: inset 0 0 0 1px #e2dbcd; }
.browser[data-step="2"] .b-h1, .browser[data-step="3"] .b-h1 { opacity: 1; transform: none; }
.browser:not([data-step="0"]) .sketch path { opacity: 0; }
.stamp { position: absolute; padding: 8px 14px; border: 2px solid; border-radius: 6px; font-size: 13px; font-weight: 500; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
.stamp:not(.live) { right: 8%; top: 32%; color: #e64a24; }
.stamp.live { left: 8%; bottom: 14%; color: #1a9e7f; background: #fff; font-size: 18px; transform: rotate(-4deg) scale(1.6); }
.browser[data-step="1"] .stamp:not(.live) { opacity: 1; transform: rotate(-8deg) scale(1); }
.browser[data-step="3"] .stamp.live { opacity: 1; transform: rotate(-4deg) scale(1); }

/* ---------- Ruben Baumann Services ---------- */
#rbs { padding-top: clamp(48px, 8vw, 100px); }
.proj.rbs { margin-top: 0; }
.vis-rbs { background: #17150f; display: flex; align-items: center; }
.ticker { position: absolute; inset: 0; overflow: hidden; mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.ticker-in { display: flex; flex-direction: column; padding: 0 clamp(20px, 3vw, 40px); animation: tick 26s linear infinite; }
.ticker-in span { font-size: clamp(30px, 3.6vw, 52px); font-weight: 650; letter-spacing: -.03em; line-height: 1.12; color: #3a362c; transition: color .3s; }
.ticker-in span:nth-child(3n+1) { color: #f6f3ed; }
.ticker-in span:nth-child(4n+2) { color: var(--lime); }
@keyframes tick { to { transform: translateY(-50%); } }
.services { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.services li { background: var(--bg); padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 8px; align-content: start; transition: background-color .3s; }
.services li:hover { background: var(--bg-2); }
.services .mono { color: var(--accent); }
.services h4 { margin: 0; font-size: 22px; letter-spacing: -.01em; font-weight: 600; }
.services p { margin: 0; color: var(--muted); font-size: 16px; }
.svc-note { color: var(--dim); margin-top: 18px; }

/* Werdegang */
.cv-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; background: var(--fill); color: var(--fill-ink); padding: 14px 22px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.path { position: relative; margin-top: 72px; }
.path ol { list-style: none; margin: 0; padding: 0; }
.path .rail { position: absolute; left: 180px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.path .rail i { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--accent); }
.wp { display: grid; grid-template-columns: 180px 1fr; padding: 0 0 52px; position: relative; }
.wp:last-child { padding-bottom: 0; }
.wp time { color: var(--muted); padding-top: 6px; padding-right: 24px; }
.wp .body { padding-left: 44px; position: relative; }
.wp .body::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border: 1.5px solid var(--dim); background: var(--bg); transform: rotate(45deg); transition: background-color .4s, border-color .4s; }
.wp.lit .body::before { border-color: var(--accent); background: var(--accent); }
.wp h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.015em; margin: 0; font-weight: 600; }
.wp .where { color: var(--muted); margin-top: 4px; }
.wp p { color: var(--muted); margin: 10px 0 0; max-width: 60ch; font-size: 17px; }
.wp .kind { display: inline-block; margin-bottom: 8px; color: var(--dim); }

/* Skills */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 64px; }
.langs { display: grid; gap: 22px; align-content: start; }
.langs div { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; }
.langs strong { font-size: 24px; font-weight: 550; }
.langs .lvl { color: var(--muted); }
.langs .meter { grid-column: 1 / -1; height: 3px; background: var(--line); position: relative; }
.langs .meter i { position: absolute; inset: 0 auto 0 0; background: var(--ink); width: 0; transition: width 1.2s var(--ease); }
.langs.in .meter i { width: var(--w); }
.groups { display: grid; gap: 34px; }
.groups h3 { margin: 0 0 12px; font-size: 22px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; }

/* Kontakt */
.contact { padding-bottom: 72px; }
.contact .big { font-size: clamp(54px, 12vw, 190px); line-height: .88; letter-spacing: -.05em; font-weight: 700; margin: 0; }
.contact .big a { text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 92% / 0 .08em; transition: background-size .5s var(--ease); }
.contact .big a:hover { background-size: 100% .08em; }
.channels { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.channels a { padding: 26px 20px 26px 0; text-decoration: none; display: grid; gap: 6px; border-bottom: 1px solid var(--line); }
.channels .mono { color: var(--dim); }
.channels strong { font-weight: 500; font-size: 18px; overflow-wrap: anywhere; }
.channels a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 90px; color: var(--dim); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
footer .built a { margin-left: 0; color: var(--ink); }
footer a { color: var(--muted); text-decoration: none; margin-left: 20px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--ink); }

/* Porträt */
.portrait { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait figure { margin: 0; position: relative; }
.portrait figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.portrait figure::before, .portrait figure::after { content: ""; position: absolute; width: 26px; height: 26px; border: 1.5px solid var(--accent); }
.portrait figure::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.portrait figure::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.portrait figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.portrait .txt p { color: var(--muted); font-size: 20px; max-width: 52ch; }
.portrait .txt p:first-of-type { color: var(--ink); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.35; }

/* Einblenden */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* Rechtsseiten */
.legal { padding: 150px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -.04em; line-height: .95; margin: 0 0 40px; }
.legal h2 { font-size: 24px; margin: 44px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal address { font-style: normal; color: var(--ink); }

@media (max-width: 960px) {
  .nav ul { display: none; }
  .proj { grid-template-columns: 1fr; }
  .proj .vis { border-left: 0; border-top: 1px solid var(--line); min-height: 260px; }
  .skills, .portrait { grid-template-columns: 1fr; }
  .portrait figure { max-width: 460px; }
  .statement .meta { grid-template-columns: 1fr 1fr; }
  .channels { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .wd { height: 320vh; }
  .wd-grid { grid-template-columns: 1fr; gap: 18px; padding-top: 70px; }
  .wd-word { font-size: clamp(46px, 13vw, 90px); }
  .wd-steps li { display: none; padding: 8px 0; }
  .wd-steps li.on { display: grid; }
  .browser { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hud .t.tr, .hud .t.br { display: none; }
  .hud { inset: 76px 16px 20px; }
  .path .rail { left: 5px; }
  .wp { grid-template-columns: 1fr; }
  .wp time { padding: 0 0 6px 32px; }
  .wp .body { padding-left: 32px; }
  .wp .body::before { left: 0; top: -22px; }
  .channels, .services { grid-template-columns: 1fr; }
  .hero .roles { flex-direction: column; gap: 6px; }
  .alt { right: 16px; bottom: 14px; }
  footer a { margin: 0 16px 0 0; }
  .wd-txt { gap: 8px; }
  .wd-btn { padding: 11px 18px; }
  .wd-for { margin: 0; }
}
@media (max-height: 760px) and (min-width: 961px) {
  .wd-steps li span:not(.mono) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .statement p .w { color: var(--ink); }
  .wd { height: auto; }
  .wd-stick { position: static; height: auto; padding: 96px 0; }
  .wd-steps li { opacity: 1; display: grid; }
  .focus { height: auto; }
  .focus-stick { position: relative; height: 100vh; height: 100svh; }
}
@media print {
  .nav, .alt, .hud, #topo, .scroll-cue { display: none !important; }
}
