/* ═══════════════════════════════════════════════════════════
   André Wiesehoff — One-Pager
   Tokens mirror Portfolio-print.html
   ═══════════════════════════════════════════════════════════ */
/* ─── Self-hosted Fonts (DSGVO: keine Anfragen an Google) ───
   Variable Fonts, latin-Subset (deckt Deutsch inkl. ä ö ü ß ab). */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:        #f5f3ee;
  --bg-card:   #fdfcf8;
  --bg-sunken: #ebe8de;
  --fg:        #1a1d20;
  --fg-2:      #494c52;
  /* WCAG-AA: beide Töne erreichen ≥ 4.5:1 gegen --bg (#f5f3ee) */
  --fg-3:      #64676d;
  --fg-4:      #6b6e74;
  --line:      #ddd9cd;
  --line-2:    #c8c3b3;
  --accent:    #b04a2c;
  --accent-2:  #c66544;
  --accent-soft:#f1ddd2;
  --green:     #4a6b5a;

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --rail:   76px;
  --topbar: 56px;
  --maxw:   1000px;
  --pad:    clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg-card); }

html { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 3px solid var(--bg);
  border-radius: 999px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: transparent; }

/* ─────────────────────────────  LEFT RAIL  ───────────────────────────── */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  z-index: 60;
  padding: 22px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-right: 0.5px solid var(--line);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rail-mark { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.rail-logo { width: 34px; height: auto; display: block; }
.rail-tick { width: 13px; height: 1px; background: var(--line-2); }
.rail-year {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  color: var(--fg-3);
}

/* nav + progress */
.rail-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}
.rail-progress {
  position: absolute;
  top: 0; right: -0.5px;
  width: 1.5px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}
.rail-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 46px);
}
.rail-links a {
  position: relative;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color 0.3s var(--ease);
}
.rail-links a .num {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  transition: color 0.3s var(--ease);
}
.rail-links a:hover { color: var(--fg); }
.rail-links a:hover .num { color: var(--fg-2); }
.rail-links a.is-active { color: var(--accent); }
.rail-links a.is-active .num { color: var(--accent); }
.rail-status {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em;
  color: var(--fg-3); text-transform: uppercase;
}
.pulse {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); animation: statusPing 2.2s ease-out infinite;
}
/* „Live"-Signal: ausstrahlender Ring – wird auch vom Hero-Status genutzt */
@keyframes statusPing { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.8); opacity: 0; } }

/* ─────────────────────────────  TOP BAR  ───────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: var(--rail); right: 0;
  height: var(--topbar);
  z-index: 50;
  background: var(--bg);
  pointer-events: none;
}
.topbar-inner {
  /* +2*pad, damit der Inhalt (nach dem Innen-Padding) exakt mit den Sektionen
     fluchtet – die haben ihr Padding außerhalb der zentrierten .inner-Breite. */
  max-width: calc(var(--maxw) + 2 * var(--pad));
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 0.5px solid var(--line);
}
.topbar-inner > * { pointer-events: auto; }
.topbar-left { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); flex: 0 0 auto; white-space: nowrap; }
.topbar .brand .brand-sep { color: var(--fg-3); }
.topbar .brand .brand-label { color: var(--fg); }
.topbar .right { display: inline-flex; align-items: center; gap: 16px; min-width: 0; }
.topbar .cur {
  color: var(--fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s var(--ease);
}
.topbar .cur::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}
/* Kompakte Abschnittsnummer (nur Mobile, siehe Media Query unten) */
.topbar .cur-mini { display: none; }

.dl-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  border: 0.5px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.dl-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-card); }
/* Primärer „magnetischer" CTA – immer einen Klick entfernt */
.contact-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--accent); border: 0.5px solid var(--accent); color: var(--bg-card);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.contact-btn .cb-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.contact-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px color-mix(in oklab, var(--accent) 75%, transparent);
}
.ico-dl { display: inline-block; width: 10px; height: 10px; position: relative; }
.ico-dl::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 8px; background: currentColor; transform: translateX(-50%); }
.ico-dl::after  { content: ""; position: absolute; left: 50%; top: 3px; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateX(-50%) rotate(45deg); }

/* ─────────────────────────────  STAGE / SECTIONS  ───────────────────────────── */
.stage { padding-left: var(--rail); }

.section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--topbar) + 56px) var(--pad) 72px;
  border-bottom: 0.5px solid var(--line);
}
.section.section-flow { justify-content: flex-start; }   /* dense sections: top-aligned */
.inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* section header (kicker row + title) */
.s-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-2);
  margin-bottom: 22px;
}
.s-meta .digit { color: var(--accent); }
.s-meta > span { white-space: nowrap; }
.s-meta .bar { width: 28px; height: 1px; background: var(--line-2); }
.s-meta .aside { margin-left: auto; color: var(--fg-3); }
.s-title {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04; letter-spacing: -0.03em;
  color: var(--fg); max-width: 20ch; text-wrap: balance;
}
.s-title .accent, .accent { color: var(--accent); }
.s-lead {
  margin-top: 16px; max-width: 60ch;
  font-size: clamp(14px, 1.4vw, 16px); line-height: 1.55; color: var(--fg-2);
}

/* ─────────────────────────────  HERO  ───────────────────────────── */
.hero { justify-content: space-between; padding-top: calc(var(--topbar) + 36px); }
.hero-dot { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.hero-dot.da { top: 40%; right: 8%; width: 12px; height: 12px; background: var(--accent); }
.hero-dot.db { top: 33%; right: 5%; width: 6px; height: 6px; background: var(--accent-soft); border: 0.5px solid var(--accent); }
.hero-dot.dc { top: 47%; right: 12.5%; width: 8px; height: 8px; background: transparent; border: 0.5px solid var(--accent); }
.hero > .inner { position: relative; z-index: 1; }
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 9px;
  border: 0.5px solid var(--line-2);
  background: var(--bg-card);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
}
.hero-coords {
  margin-left: auto;
  text-align: right;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3); line-height: 1.7;
  white-space: nowrap;
}
.hero-coords .strong { color: var(--fg); }

.hero-center { display: grid; gap: 0; }
.hero-status {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 20px; padding: 6px 14px 6px 11px;
  border: 0.5px solid color-mix(in oklab, var(--green) 45%, var(--line-2));
  border-radius: 999px;
  background: color-mix(in oklab, var(--green) 9%, transparent);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-2);
}
.hero-status .dot {
  position: relative; flex: none; width: 8px; height: 8px;
  border-radius: 50%; background: var(--green);
}
.hero-status .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); animation: statusPing 2.2s ease-out infinite;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.hero-name {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(52px, 11vw, 132px);
  line-height: 0.88; letter-spacing: -0.045em; color: var(--fg);
}
.hero-name .period { color: var(--accent); }

.hero-bottom {
  display: grid; grid-template-columns: 1.5fr 1fr;
  column-gap: clamp(28px, 6vw, 72px); align-items: end;
}
.hero-claim {
  font-size: clamp(17px, 1.9vw, 24px); line-height: 1.3;
  letter-spacing: -0.018em; color: var(--fg); font-weight: 400;
  max-width: 26ch; text-wrap: balance;
}
.hero-claim .accent { font-weight: 500; }
.hero-tagline {
  margin-top: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3);
}
.hero-tagline .accent { color: var(--accent); }
.hero-meta {
  display: grid; gap: 10px;
  border-top: 0.5px solid var(--line-2); padding-top: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--fg); line-height: 1.45;
}
.hero-meta .k { display: block; color: var(--fg-3); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 3px; }
.hero-meta a:hover { color: var(--accent); }
.hero-scroll {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--fg-3); margin-top: 22px;
}
.hero-scroll .line { width: 1px; height: 26px; background: var(--line-2); position: relative; overflow: hidden; }
.hero-scroll .line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(-100%); animation: scrolltick 2.4s ease-in-out infinite; }
@keyframes scrolltick { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ─────────────────────────────  ABOUT  ───────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; margin-top: 32px; }
.about-lead {
  font-size: clamp(18px, 1.8vw, 23px); line-height: 1.32; letter-spacing: -0.018em;
  color: var(--fg); margin-bottom: 18px; max-width: 24ch; text-wrap: balance;
}
.about-lead .accent { font-weight: 500; }
.about-prose { display: grid; gap: 14px; max-width: 56ch; }
.about-prose p { font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.about-prose .body-strong { color: var(--fg); }
.about-signoff {
  margin-top: 16px; padding-top: 12px; border-top: 0.5px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--fg-3);
}
.about-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.portrait {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  background: var(--bg-sunken);
  border: 0.5px solid var(--line-2); overflow: hidden;
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .55s ease;
  will-change: transform;
}
/* während die Maus trackt: Kippung folgt sofort, beim Verlassen sanft zurück */
.portrait.is-live { transition: transform .08s linear, box-shadow .55s ease; }
.portrait:hover { box-shadow: 0 22px 48px -26px rgba(20,22,24,.6); }
.portrait-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 24%;
  display: block;
  filter: saturate(.8) contrast(1.05);
  transform: scale(1.001);
  transition: filter .6s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.portrait:hover .portrait-img { filter: saturate(1.06) contrast(1.04); transform: scale(1.05); }
/* Terrakotta/Grün-Duotone-Hauch – löst sich beim Hover in volle Farbe auf */
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(150deg, rgba(176,74,44,.24), rgba(74,107,90,.14) 72%);
  mix-blend-mode: soft-light; opacity: .85;
  transition: opacity .6s ease;
}
.portrait:hover::before { opacity: .12; }
/* dezente Abdunklung oben/unten, damit Rahmen-Ecken und Beschriftung lesbar bleiben */
.portrait::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,22,24,.32) 0%, transparent 22%),
    linear-gradient(0deg, rgba(20,22,24,.45) 0%, transparent 30%);
}
/* FX-Schicht: feine Scanlines + Filmkorn, dazu Lauflicht und Maus-Sheen */
.portrait-fx {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
  background-image:
    repeating-linear-gradient(0deg, rgba(10,12,14,.10) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: auto, 180px 180px;
  mix-blend-mode: overlay; opacity: .32;
  transition: opacity .6s ease;
}
.portrait:hover .portrait-fx { opacity: .5; }
.portrait-fx::before {
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.18) 48%, rgba(176,74,44,.12) 52%, transparent);
  animation: portraitScan 6.5s linear infinite;
}
.portrait:hover .portrait-fx::before { animation-duration: 2.6s; }
@keyframes portraitScan { 0% { transform: translateY(0); } 100% { transform: translateY(360%); } }
.portrait-fx::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.24), rgba(255,255,255,0) 46%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s ease;
}
.portrait:hover .portrait-fx::after { opacity: 1; }
.pc { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.pc::before, .pc::after, .pc > i::before, .pc > i::after { content: ""; position: absolute; width: 11px; height: 11px; border: 0 solid rgba(255,255,255,.9); }
.pc::before { top: 9px; left: 9px;  border-top-width: 1px; border-left-width: 1px; }
.pc::after  { top: 9px; right: 9px; border-top-width: 1px; border-right-width: 1px; }
.pc > i::before { bottom: 9px; left: 9px;  border-bottom-width: 1px; border-left-width: 1px; }
.pc > i::after  { bottom: 9px; right: 9px; border-bottom-width: 1px; border-right-width: 1px; }
.portrait-overlay {
  position: absolute; z-index: 5; inset: auto 0 0 0; padding: 12px; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,.92);
}
.portrait-overlay .num { font-size: 8.5px; color: rgba(255,255,255,.62); }
@media (prefers-reduced-motion: reduce) {
  .portrait { transform: none; transition: none; }
  .portrait-img { transition: none; }
  .portrait-fx::before { animation: none; display: none; }
}
.portrait-overlay .col { display: grid; gap: 3px; }
.portrait-overlay .col.right { text-align: right; }
.facts { display: grid; border-top: 0.5px solid var(--line); }
.facts li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 9px 0; border-bottom: 0.5px solid var(--line); align-items: baseline; }
.facts .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.facts .v { font-size: 13px; color: var(--fg); line-height: 1.4; }

/* ─────────────────────────────  PROJECTS  ───────────────────────────── */
.projects { display: grid; border-top: 0.5px solid var(--line); margin-top: 28px; }
.project {
  position: relative;
  display: grid;
  grid-template-columns: 52px 168px 1fr;
  gap: clamp(14px, 2.2vw, 36px);
  padding: 16px 14px 16px 18px;
  margin: 0 -14px 0 -18px;
  border-bottom: 0.5px solid var(--line);
  align-items: start;
  transition: background-color 0.3s var(--ease);
}
.project::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: center;
  transition: transform 0.35s var(--ease);
}
@media (hover: hover) {
  .project:hover { background-color: var(--bg-card); }
  .project:hover::before { transform: scaleY(1); }
}
.project .p-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.project .p-when { display: grid; gap: 3px; }
.project .p-when .date { font-family: var(--mono); font-size: 11px; color: var(--fg); letter-spacing: 0.01em; line-height: 1.35; }
.project .p-when .company { font-family: var(--mono); font-size: 9.5px; color: var(--fg-3); letter-spacing: 0.02em; line-height: 1.4; }
.project .p-main { display: grid; gap: 7px; }
.project .p-title { font-family: var(--sans); font-size: 16px; line-height: 1.25; letter-spacing: -0.018em; color: var(--fg); font-weight: 500; text-wrap: balance; }
.project .p-title .accent { color: var(--accent); }
.project .p-desc { font-size: 13px; line-height: 1.55; color: var(--fg-2); max-width: 72ch; }
.project .p-now { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.project .p-now::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ─────────────────────────────  STACK  ───────────────────────────── */
.stack { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 0.5px solid var(--line); margin-top: 28px; }
.stack-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px 26px 16px 0; border-bottom: 0.5px solid var(--line); align-items: start; }
.stack-row:nth-child(2n) { padding-right: 0; padding-left: 26px; border-left: 0.5px solid var(--line); }
.stack-cat { display: grid; gap: 4px; }
.stack-cat .num { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.stack-cat .name { font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: -0.01em; line-height: 1.2; }
.stack-items { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.tag { font-family: var(--mono); font-size: 11px; padding: 4px 8px; background: var(--bg-card); border: 0.5px solid var(--line); color: var(--fg); border-radius: 3px; white-space: nowrap; }
.tag.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag.accent { background: var(--accent-soft); color: color-mix(in oklab, var(--accent) 74%, #000); border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.tag.green { background: color-mix(in oklab, var(--green) 10%, var(--bg)); color: var(--green); border-color: color-mix(in oklab, var(--green) 28%, transparent); }
.tag.muted { background: transparent; color: var(--fg-3); border: 0.5px dashed color-mix(in oklab, var(--fg-3) 35%, var(--line)); font-style: italic; letter-spacing: 0.02em; }

/* ─────────────────────────────  SEEKING  ───────────────────────────── */
.seek-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 32px; }
.seek-statement { display: grid; gap: 16px; max-width: 38ch; }
.seek-statement .big { font-size: clamp(20px, 2vw, 27px); line-height: 1.24; letter-spacing: -0.02em; color: var(--fg); font-weight: 500; text-wrap: balance; }
.seek-statement .big .accent { color: var(--accent); }
.seek-statement p { font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.seek-statement p .accent { color: var(--fg); font-weight: 500; }
.criteria-head { display: flex; align-items: center; gap: 14px; padding-bottom: 11px; border-bottom: 0.5px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg); }
.criteria-head .count { margin-left: auto; color: var(--fg-3); }
.criteria { display: grid; }
.criteria li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 13px 0; border-bottom: 0.5px solid var(--line); align-items: baseline; }
.criteria li:last-child { border-bottom: 0; }
.criteria .cnum { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: 0.1em; }
.criteria .ctitle { font-size: 14px; font-weight: 500; color: var(--fg); line-height: 1.32; letter-spacing: -0.006em; margin-bottom: 3px; }
.criteria .cdesc { font-size: 12.5px; color: var(--fg-2); line-height: 1.5; }

/* ─────────────────────────────  CONTACT  ───────────────────────────── */
.contact { justify-content: center; }
.contact-title { font-family: var(--sans); font-size: clamp(34px, 5vw, 64px); line-height: 1.0; letter-spacing: -0.032em; color: var(--fg); font-weight: 500; max-width: 16ch; margin-bottom: 40px; text-wrap: balance; }
.contact-title .accent { color: var(--accent); }
.contact-keywords { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); line-height: 1.7; margin: -16px 0 36px; max-width: 60ch; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); padding-top: 28px; border-top: 0.5px solid var(--line); align-items: start; }
.contact-primary { display: grid; gap: 11px; }
.contact-primary .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); }
.contact-primary .email { font-family: var(--sans); font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.022em; color: var(--fg); line-height: 1.05; font-weight: 400; transition: color 0.2s; word-break: break-word; }
.contact-primary .email { display: inline-flex; align-items: baseline; gap: 0.3em; width: fit-content; }
.contact-primary .email::after {
  content: "↗"; font-size: 0.6em; color: var(--accent);
  transition: transform 0.25s ease; transform: translate(0, 0);
}
.contact-primary .email:hover { color: var(--accent); }
.contact-primary .email:hover::after { transform: translate(3px, -3px); }
@media (prefers-reduced-motion: reduce) {
  .pulse::after, .hero-status .dot::after { animation: none; }
  .contact-btn, .contact-primary .email::after { transition: none; }
}
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 6px 11px; background: transparent; cursor: pointer;
  border: 0.5px solid var(--line-2); color: var(--fg-2);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.11em; text-transform: uppercase;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.copy-btn .copy-ico { width: 14px; height: 14px; flex: none; }
.copy-btn.is-copied { color: var(--green); border-color: var(--green); background: transparent; }
@media (prefers-reduced-motion: reduce) { .copy-btn { transition: none; } }
.contact-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.dl-btn-lg { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border: 0.5px solid var(--fg); background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; border-radius: 999px; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.dl-btn-lg:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-card); }
.dl-btn-lg .ico-dl { width: 13px; height: 13px; }
.dl-btn-lg .ico-dl::before { height: 10px; }
.dl-btn-lg .ico-dl::after { top: 4px; width: 8px; height: 8px; }
.dl-side { font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-3); }
.contact-secondary { display: grid; }
.contact-secondary > * { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 12px 0; border-bottom: 0.5px solid var(--line); align-items: baseline; }
.contact-secondary > *:first-child { border-top: 0.5px solid var(--line); }
.contact-secondary .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-3); }
.contact-secondary .v { font-family: var(--mono); font-size: 12.5px; color: var(--fg); letter-spacing: 0.01em; transition: color 0.15s; }
a.contact-link .v { display: inline-flex; align-items: center; gap: 9px; }
a.contact-link .ci { width: 14px; height: 14px; flex: none; color: var(--fg-3); transition: color 0.15s, transform 0.2s ease; }
a.contact-link:hover .v { color: var(--accent); }
a.contact-link:hover .ci { color: var(--accent); transform: translateY(-1px); }

.foot { margin-top: 48px; padding-top: 18px; border-top: 0.5px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-3); }
.foot a:hover, .foot button:hover { color: var(--accent); }
.foot-links { display: inline-flex; gap: 18px; align-items: center; }
.foot-links button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }

/* ─────────────────────────────  MOBILE NAV (bottom)  ───────────────────────────── */
.mobnav { display: none; }

/* ─────────────────────────────  MODAL  ───────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 4vh 18px; background: color-mix(in oklab, var(--fg) 52%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s ease; }
.modal.is-open { display: flex; opacity: 1; }
.modal-card { background: var(--bg); border: 0.5px solid var(--line-2); width: min(700px, 100%); max-height: 92svh; overflow-y: auto; padding: 36px clamp(24px, 5vw, 52px) 30px; position: relative; box-shadow: 0 30px 80px -20px rgba(0,0,0,.35); transform: translateY(12px); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.3s ease; }
.modal.is-open .modal-card { transform: translateY(0); opacity: 1; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 0.5px solid var(--line); margin-bottom: 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.modal-head .gly { color: var(--accent); margin-right: 9px; }
.modal-close { background: none; border: 0.5px solid var(--line-2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--fg-2); font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s; }
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal h3 { font-family: var(--sans); font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.028em; line-height: 1.05; margin-bottom: 24px; text-wrap: balance; }
.modal h3 .accent { color: var(--accent); }
.imp-grid { display: grid; }
.imp-block { display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding: 12px 0; border-bottom: 0.5px solid var(--line); align-items: baseline; }
.imp-block:first-of-type { border-top: 0.5px solid var(--line); }
.imp-block .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-3); }
.imp-block .v { font-size: 13.5px; line-height: 1.55; color: var(--fg); }
.imp-block .v a:hover { color: var(--accent); }
.imp-prose { margin-top: 24px; display: grid; gap: 16px; }
.imp-prose h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; margin-bottom: 4px; }
.imp-prose p { font-size: 12px; line-height: 1.6; color: var(--fg-2); max-width: 64ch; }

/* ─────────────────────────────  REVEAL  ─────────────────────────────
   Default = fully visible (progressive enhancement). The hidden start
   state only applies once JS confirms it can run (html.anim), so content
   can never get stuck invisible if scripting/animation is unavailable. */
.reveal { opacity: 1; transform: none; }
html.anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.anim .reveal.in { opacity: 1; transform: none; }
html.anim .reveal.d1 { transition-delay: 0.07s; }
html.anim .reveal.d2 { transition-delay: 0.14s; }
html.anim .reveal.d3 { transition-delay: 0.21s; }
@media (prefers-reduced-motion: reduce) {
  html.anim .reveal { opacity: 1; transform: none; transition: none; }
  .mobnav-progress { transition: none; }
}

/* ═══════════════════════════  RESPONSIVE  ═══════════════════════════ */
@media (max-width: 1080px) {
  .stack { grid-template-columns: 1fr; }
  .stack-row:nth-child(2n) { padding-left: 0; border-left: 0; }
  .stack-row { padding-right: 0; }
}

@media (max-width: 860px) {
  :root { --rail: 0px; --topbar: 52px; }
  .rail { display: none; }
  .stage { padding-left: 0; padding-bottom: 76px; }   /* room for bottom nav */
  .topbar { left: 0; }
  .topbar .meta-left .sep, .topbar .meta-left .role { display: none; }
  /* Links vor dem Brand nur die kompakte Abschnittsnummer (00-05) statt des vollen Labels.
     Genau EIN Akzent-Punkt (beim Indikator), dann ein dezenter Trennstrich. */
  .topbar .cur { display: none; }
  .topbar .cur-mini {
    display: inline-flex;
    align-items: center;
    color: var(--fg-2);
    padding-right: 11px;
    border-right: 1px solid var(--line-2);
  }
  .topbar .cur-mini::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    margin-right: 8px;
  }

  /* Gleichmäßiger vertikaler Rhythmus; full-bleed Section-Trenner raus,
     damit alle verbleibenden Linien gleich (am Inhalt) eingerückt sind. */
  .section { min-height: auto; padding: calc(var(--topbar) + 28px) var(--pad) 32px; justify-content: flex-start; border-bottom: none; }

  /* Hero: oben ausgerichtet, kompakter Rhythmus statt gestreckter Leerräume */
  .hero { min-height: auto; justify-content: flex-start; padding-bottom: 36px; }
  .hero-dot { display: none; }
  .hero-top { flex-direction: column; gap: 12px; }
  .hero-coords { text-align: left; margin-left: 0; }
  .hero-center { margin-top: clamp(16px, 4vh, 36px); }
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; margin-top: clamp(18px, 4vh, 38px); }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-side { order: -1; }
  .portrait { max-width: 300px; margin-inline: auto; }

  .seek-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }

  /* projects reflow — no fixed columns */
  .project { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; margin: 0; }
  .project::before { left: -2px; }
  .project .p-num { padding-top: 0; }
  .project .p-when { grid-auto-flow: column; justify-content: start; gap: 12px; align-items: baseline; }
  .project .p-when .date, .project .p-when .company { font-size: 10px; }

  /* MOBILE BOTTOM NAV */
  .mobnav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 60;
    height: 60px;
    padding: 0 8px;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
    background: color-mix(in oklab, var(--bg) 90%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 0.5px solid var(--line-2);
  }
  .mobnav a {
    flex: 1;
    min-width: 0;
    height: 46px;
    display: grid;
    place-items: center;
    gap: 3px;
    border-radius: 10px;
    text-align: center;
  }
  .mobnav a .mn-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-2); transition: color 0.2s; }
  .mobnav a .mn-lbl { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-4); transition: color 0.2s; line-height: 1; }
  .mobnav a.is-active { background: var(--bg-card); }
  .mobnav a.is-active .mn-num { color: var(--accent); }
  .mobnav a.is-active .mn-lbl { color: var(--fg-2); }

  /* Issue 2: #about — tighter internal spacing */
  #about .s-meta { margin-bottom: 14px; }
  #about .about-grid { margin-top: 20px; gap: 20px; }

  /* Issue 3b: project p-when — stack date + company vertically for readability */
  .project .p-when { grid-auto-flow: row; gap: 3px; justify-content: start; align-items: start; }

  /* Issue 4: #stack — tighter internal spacing */
  #stack .s-meta { margin-bottom: 14px; }
  #stack .s-lead { margin-top: 10px; }
  #stack .stack { margin-top: 16px; }

  /* Issue 6: contact-secondary — remove duplicate top border (design-only on desktop) */
  .contact-secondary > *:first-child { border-top: none; }

  /* Issue 7: footer — allow wrapping before column-flip at 480px */
  .foot { flex-wrap: wrap; gap: 12px 18px; }

  /* ── Task 1: consistent section-header rhythm ── */
  .s-meta { margin-bottom: 14px; }
  .s-lead { margin-top: 10px; }
  #projects .projects { margin-top: 16px; }
  .contact-title { margin-bottom: 24px; }
  .contact-keywords { margin-top: -8px; margin-bottom: 20px; }
  .contact-cta { margin-top: 20px; }

  /* ── hero-meta — compact horizontal strip, moved below the scroll hint ── */
  .hero-meta {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    max-width: none;
    padding-top: 14px;
    border-top: 0.5px solid var(--line-2);
  }
  .hero-meta > div { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
  .hero-meta .k { display: inline; margin-bottom: 0; flex-shrink: 0; white-space: nowrap; }

  /* ── Task 3: mobnav scroll-progress bar ── */
  .mobnav-progress {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
    transition: transform 0.08s linear;
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(44px, 15vw, 80px); }
  .facts li { grid-template-columns: 70px 1fr; }
  .contact-secondary > * { grid-template-columns: 90px 1fr; }
  .foot { flex-direction: column; gap: 10px; align-items: flex-start; }
  .imp-block { grid-template-columns: 1fr; gap: 4px; }

  /* Issue 5: stack-row — narrower label column so tags have room to wrap */
  .stack-row { grid-template-columns: 100px 1fr; }
}

/* ═══════════════════════════  LEGAL PAGES (Impressum / Datenschutz)  ═══════════════════════════ */
.legal-page { min-height: 100svh; display: flex; flex-direction: column; }
.legal-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad); height: var(--topbar);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
}
.legal-bar .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.legal-bar .brand .bdot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal-bar a.back { color: var(--fg-2); transition: color 0.2s; }
.legal-bar a.back:hover { color: var(--accent); }
.legal-wrap { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--pad) 64px; }
.legal-wrap .kicker {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.legal-wrap .kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.legal-wrap h1 {
  font-family: var(--sans); font-weight: 500; font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.05; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 36px; text-wrap: balance;
}
.legal-wrap h1 .accent { color: var(--accent); }
.legal-wrap section { margin-bottom: 26px; }
.legal-wrap h2 {
  font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: -0.015em;
  color: var(--fg); margin-bottom: 8px;
}
.legal-wrap p, .legal-wrap li { font-size: 14px; line-height: 1.65; color: var(--fg-2); }
.legal-wrap p { margin-bottom: 10px; }
.legal-wrap strong { color: var(--fg); font-weight: 500; }
.legal-wrap a { color: var(--accent); transition: color 0.2s; }
.legal-wrap a:hover { color: var(--accent-2); text-decoration: underline; }
.legal-wrap address { font-style: normal; color: var(--fg); line-height: 1.7; }
.legal-wrap ul { display: grid; gap: 5px; margin: 10px 0; padding-left: 18px; list-style: disc; }
.legal-wrap ul li::marker { color: var(--accent); }
.legal-lead { font-size: clamp(15px, 1.6vw, 17px) !important; color: var(--fg) !important; max-width: 60ch; margin-bottom: 28px; }
.legal-note {
  background: var(--accent-soft); border: 0.5px dashed color-mix(in oklab, var(--accent) 45%, transparent);
  border-radius: 6px; padding: 12px 14px; color: var(--fg) !important; font-size: 13px !important;
}
.legal-foot {
  margin-top: 40px; padding-top: 18px; border-top: 0.5px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-3);
}
.legal-foot a { color: var(--fg-3); }
.legal-foot a:hover { color: var(--accent); text-decoration: none; }
