/* Warm & menschlich: Papier, Tinte, Rost und Orange aus Familie auf Pfoten, ein ruhiges Petrol
   für die Entwickler-Teile. Fraunces (SOFT-Achse) für Überschriften, Figtree für Text. */

@font-face {
  font-family: 'Fraunces Variable';
  src: url('/fonts/fraunces-latin-full-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces Variable';
  src: url('/fonts/fraunces-latin-soft-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree Variable';
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf5ec;
  --paper-deep: #f4e8d7;
  --card: #fffaf3;
  --ink: #2e241d;
  --ink-quiet: #5c4b3f;
  --line: #e3d5c1;
  --rust: #a64b2a;
  --orange: #e88a4f;
  --orange-light: #f2a675;
  --accent-text: var(--rust);
  --teal: #2c6866;
  --teal-soft: #e2ece8;
  --cta-bg: var(--rust);
  --cta-text: #fbf5ec;
  --cta-hover: var(--ink);
  --ok: #3f7d4a;
  --ok-text: #356b3f;
  --warn: #8a5d00;
  --down: #b3261e;
  --shadow: 0 1px 0 var(--line), 0 22px 44px -32px rgb(46 36 29 / 0.45);
  --grain-opacity: 0.3;

  --font-display: 'Fraunces Variable', 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree Variable', 'Figtree', ui-sans-serif, system-ui, sans-serif;

  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lead: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --wrap: min(100% - 2 * var(--gutter), var(--max));
  --space-section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --radius-sheet: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  --radius: 1.1rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e1510;
    --paper-deep: #271c15;
    --card: #2c2018;
    --ink: #ecdfcf;
    --ink-quiet: #c9b6a3;
    --line: #3e2f25;
    --rust: #e88a4f;
    --orange: #e88a4f;
    --orange-light: #f2a675;
    --accent-text: #f2a675;
    --teal: #8cc2bb;
    --teal-soft: #1d2a27;
    --cta-bg: #e88a4f;
    --cta-text: #1e1510;
    --cta-hover: #f2a675;
    --ok: #7cc48a;
    --ok-text: #8fd09c;
    --warn: #e2b04a;
    --down: #f2786d;
    --shadow: 0 1px 0 var(--line), 0 22px 44px -30px rgb(0 0 0 / 0.7);
    --grain-opacity: 0.1;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Feine Papierkörnung – rein dekorativ, liegt unter allem */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.4 0 0 0 0 0.28 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Überschriften in Fraunces, weich gestellt */
.wordmark,
.hero-title,
.flagship-title,
.entry-title,
.pillar-title,
.work-title,
.workbench-title,
.wb-name,
.about-title,
.detail-title,
.detail-num,
.tagline,
.step-num,
.skill-num,
.kicker-num,
.block-note,
.footer-brand,
.notfound-num,
.notfound-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
}

.label,
.eyebrow,
.kicker,
.project-meta dt {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0;
}
.eyebrow { color: var(--accent-text); }
.eyebrow--tech { color: var(--teal); }

.tagline {
  margin: 0.75rem 0 0;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-quiet);
  font-size: var(--text-lead);
  line-height: 1.3;
  text-wrap: balance;
}

/* ── Kopf ─────────────────────────────────────────────────────────────── */
.masthead {
  width: var(--wrap);
  margin: 0 auto;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
}
.wordmark-paw { width: 1.35rem; height: 1.35rem; fill: var(--orange); transition: transform 400ms var(--ease-out); }
.wordmark:hover .wordmark-paw { transform: rotate(-12deg) scale(1.08); }
.masthead-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 1.4rem; font-size: var(--text-sm); }
.masthead-nav a { text-decoration: none; color: var(--ink-quiet); transition: color var(--fast); }
.masthead-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav-lang { font-weight: 600; color: var(--ink) !important; }

main { display: block; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(2.5rem, 1rem + 6vw, 6.5rem) 0 clamp(3.5rem, 2rem + 6vw, 7rem);
}
.hero-text { grid-column: 1 / span 7; }
.hero-title {
  margin: 1.1rem 0 0;
  font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero-title em { font-style: italic; font-weight: 480; color: var(--accent-text); }
.hero-intro {
  margin: 1.75rem 0 0;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--ink-quiet);
  max-width: 44ch;
  text-wrap: pretty;
}
.hero-projects { margin-top: 2.75rem; }
.hero-projects ul {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-projects li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem 0.5rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: border-color var(--fast), transform var(--fast) var(--ease-out);
}
.hero-projects li:hover { border-color: var(--orange-light); transform: translateY(-2px); }
.hero-projects a { display: inline-flex; align-items: baseline; gap: 0.5rem; text-decoration: none; padding-left: 0.5rem; }
.hp-name { font-weight: 650; }
.hp-kicker { font-size: var(--text-xs); color: var(--ink-quiet); }
.hero-projects .status-text { display: none; }

.hero-art { grid-column: 9 / -1; display: flex; justify-content: center; }
.hero-mark { width: 100%; max-width: 360px; height: auto; overflow: visible; }
.mark-bg { fill: var(--paper-deep); }
.mark-ring {
  fill: none;
  stroke: var(--orange-light);
  stroke-width: 2.5;
  stroke-dasharray: 1 11;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: turn 120s linear infinite;
}
.mark-brace { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.mark-pad { fill: var(--rust); }
.mark-toe { fill: var(--orange); }
.mark-dot { fill: var(--orange-light); }
.mark-dot--tech { fill: var(--teal); }
@keyframes turn { to { transform: rotate(360deg); } }

/* ── Hauptprojekt ─────────────────────────────────────────────────────── */
.flagship {
  margin: 0 clamp(0px, 1.5vw, 24px);
  background: var(--paper-deep);
  border-radius: var(--radius-sheet);
  padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem);
  scroll-margin-top: 1rem;
}
.flagship-inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.flagship-head { grid-column: 1 / span 8; grid-row: 1; }
.kicker { display: flex; align-items: baseline; gap: 0.7rem; }
.kicker-num { font-size: 1rem; font-style: italic; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--accent-text); }
.flagship-title {
  margin: 1rem 0 0;
  font-size: clamp(2.75rem, 1rem + 6.6vw, 6.75rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.flagship .tagline { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem); max-width: 30ch; }
.flagship-meta { grid-column: 9 / -1; grid-row: 1 / span 2; align-self: start; margin-top: 2.25rem; }
.flagship-lead {
  grid-column: 1 / span 8;
  grid-row: 2;
  margin: 0;
  font-size: var(--text-lead);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
}
.flagship .promise { grid-column: 1 / -1; }
.pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
  align-items: start;
}
.pillar { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.pillar-title { margin: 0 0 0.85rem; font-size: clamp(1.45rem, 1.2rem + 0.7vw, 1.8rem); font-weight: 580; line-height: 1.15; }
.pillar--card {
  border-top: none;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.75rem;
  box-shadow: var(--shadow);
  margin-top: -0.75rem;
}
.flagship-links { grid-column: 1 / -1; }

/* Leitsätze */
.promise {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
}
.promise li { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; }
.promise-paw { width: 1.1rem; height: 1.1rem; flex: none; fill: var(--orange); }
.promise li:first-child { color: var(--accent-text); }

/* Inhaltsblöcke: lead, tags, steps, points, note */
.block-lead { margin: 0 0 1.1rem; color: var(--ink-quiet); text-wrap: pretty; }
.points { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.55rem; }
.points li { position: relative; padding-left: 1.35rem; }
.points li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
}
.points:last-child,
.steps:last-child,
.tags:last-child,
.block-lead:last-child { margin-bottom: 0; }
.steps { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.85rem; counter-reset: none; }
.steps li { display: grid; grid-template-columns: 2.1rem 1fr; gap: 0.8rem; align-items: start; position: relative; }
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 2.2rem;
  bottom: -0.75rem;
  width: 1px;
  background: var(--line);
}
.step-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-light);
  color: #2e241d;
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1;
}
.step-text { padding-top: 0.25rem; }
.tags { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: var(--text-sm);
  font-weight: 550;
}
.block-note {
  margin: 1.1rem 0 0;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--accent-text);
}
.note-paw { width: 1.15rem; height: 1.15rem; flex: none; fill: var(--orange); margin-top: 0.2rem; }

/* ── Links und Buttons ────────────────────────────────────────────────── */
.links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.6rem; align-items: center; }
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 650;
  text-decoration: none;
  transition: background-color var(--fast), color var(--fast), transform var(--fast) var(--ease-out);
}
.link-arrow { display: inline-block; transition: transform var(--fast) var(--ease-out); }
.link:hover .link-arrow { transform: translate(2px, -2px); }
.link--primary,
.cta {
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px -16px var(--rust);
}
.link--primary:hover,
.cta:hover { background: var(--cta-hover); color: var(--paper); }
.link--primary:active,
.cta:active { transform: scale(0.97); }
.link--code { border-bottom: 2px solid var(--teal); padding: 0.2rem 0; }
.link--code:hover { color: var(--teal); }
.link--more { color: var(--ink-quiet); font-size: var(--text-sm); }
.link--more:hover { color: var(--accent-text); }
.link--more:hover .link-arrow { transform: translateX(3px); }

.title-link {
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 0.07em no-repeat;
  transition: background-size 320ms var(--ease-out);
}
.title-link:hover { background-size: 100% 0.07em; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 1rem 1.7rem;
  font-size: 1.1rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color var(--fast), color var(--fast), transform var(--fast) var(--ease-out);
}
.cta:hover .link-arrow { transform: translate(2px, -2px); }
.cta--disabled,
.cta--disabled:hover {
  background: transparent;
  color: var(--ink-quiet);
  border: 1.5px dashed var(--ink-quiet);
  box-shadow: none;
  cursor: not-allowed;
  font-size: var(--text-sm);
}

/* ── Meta: Stand, Status, Stack, Aktivität ───────────────────────────── */
.project-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1rem;
  align-content: start;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  font-size: var(--text-sm);
}
.project-meta dd { margin: 0.3rem 0 0; }
.meta-wide { grid-column: 1 / -1; }
.num { font-variant-numeric: tabular-nums; }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.stack li { border: 1px solid var(--line); padding: 0.1rem 0.55rem; border-radius: 0.45rem; font-size: var(--text-xs); }

.stage { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 650; }
.stage::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }
.stage--live { color: var(--ok-text); }
.stage--beta { color: var(--warn); }
.stage--preview { color: var(--accent-text); }
.stage--preview::before { background: transparent; border: 1.5px solid currentColor; }
.entry--tech .stage--preview,
.about--tech .stage--preview { color: var(--teal); }

.status { display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap; }
.status-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line); position: relative; flex: none; }
.status[data-state='up'] .status-dot { background: var(--ok); }
.status[data-state='down'] .status-dot { background: var(--down); }
.status[data-state='up'] .status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: 0.5; }
  to { transform: scale(2.4); opacity: 0; }
}

/* Sparkline: eine Serie, Akzentfarbe, keine Legende (der Titel benennt sie) */
.spark { display: block; max-width: 100%; height: auto; margin-top: 0.4rem; overflow: visible; }
.spark-bar { fill: var(--orange); }
.spark-zero { fill: var(--line); }
.spark-hit { fill: transparent; }
.spark-week:hover .spark-bar { fill: var(--rust); }
.spark-week:hover .spark-zero { fill: var(--ink-quiet); }
.entry--tech .spark-bar,
.about--tech .spark-bar { fill: var(--teal); }

/* ── Weitere Projekte ─────────────────────────────────────────────────── */
.more { width: var(--wrap); margin: 0 auto; padding: var(--space-section) 0 0; }
.more-label { margin-bottom: 1.5rem; }
.more-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 4rem;
  align-items: start;
}
.entry { scroll-margin-top: 1rem; border-top: 2px solid var(--ink); padding-top: 1.75rem; }
.entry:nth-child(odd) { grid-column: 1 / span 7; }
.entry:nth-child(even) { grid-column: 9 / -1; margin-top: clamp(0rem, 6vw, 5rem); }
.entry-title {
  margin: 0.8rem 0 0;
  font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.entry .tagline { font-size: 1.25rem; }
.entry-summary { margin: 1.25rem 0 1.25rem; max-width: 56ch; text-wrap: pretty; }
.entry .points { margin-bottom: 1.6rem; }
.entry .links { margin-bottom: 1.75rem; }
.entry--tech { border-top-color: var(--teal); }
.entry--tech .kicker-num,
.entry--tech .title-link:hover { color: var(--teal); }
.entry--tech .title-link { background-image: linear-gradient(var(--teal), var(--teal)); }
.entry--tech .points li::before { background: var(--teal); }

/* ── Wie ich arbeite ──────────────────────────────────────────────────── */
.work {
  width: var(--wrap);
  margin: 0 auto;
  padding: var(--space-section) 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 3rem;
  scroll-margin-top: 1rem;
}
.work-intro { grid-column: 1 / span 5; }
.work-title { margin: 0.9rem 0 1.5rem; font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.25rem); font-weight: 580; line-height: 1; letter-spacing: -0.02em; }
.work-intro p:not(.eyebrow) { margin: 0 0 1.1rem; max-width: 50ch; color: var(--ink-quiet); text-wrap: pretty; }
.work-intro p:nth-of-type(2) { font-size: var(--text-lead); line-height: 1.5; color: var(--ink); }
.work-detail { grid-column: 7 / -1; padding-top: 0.5rem; }
.skills { margin: 0.9rem 0 0; }
.skill {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) 1fr;
  gap: 0.35rem 1.5rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}
.skill:last-child { border-bottom: 1px solid var(--line); }
.skill dt { display: flex; align-items: baseline; gap: 0.6rem; font-weight: 650; }
.skill-num { font-style: italic; font-weight: 500; color: var(--teal); font-size: 0.95rem; }
.skill dd { margin: 0; }
.skill ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0; }
.skill li:not(:last-child)::after { content: '·'; color: var(--teal); margin: 0 0.55rem; font-weight: 700; }

.pipeline {
  margin-top: 2.5rem;
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.6rem;
}
.pipeline .label { color: var(--teal); }
.pipeline-steps {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}
.pipeline-steps::before {
  content: '';
  position: absolute;
  left: calc(0.425rem - 1px);
  right: 1rem;
  top: 0.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0 60%, transparent 60% 100%) 0 0 / 10px 2px repeat-x;
  opacity: 0.6;
}
.pipeline-steps li { position: relative; padding-top: 1.4rem; font-size: var(--text-sm); font-weight: 600; line-height: 1.35; }
.pipeline-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

/* ── Werkbank ─────────────────────────────────────────────────────────── */
.workbench {
  width: var(--wrap);
  margin: 0 auto;
  padding: 0 0 var(--space-section);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 1.5rem;
}
.workbench-head { grid-column: 1 / span 4; }
.workbench-title { margin: 0; font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); font-weight: 580; line-height: 1.05; }
.workbench-lead { margin: 0.75rem 0 0; color: var(--ink-quiet); max-width: 34ch; }
.workbench-list { grid-column: 5 / -1; list-style: none; margin: 0; padding: 0; }
.workbench-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 3fr) 6fr minmax(7rem, 2fr);
  gap: 0.25rem 1.25rem;
  align-items: baseline;
  padding: 1.05rem 0.25rem;
  border-top: 1px solid var(--line);
}
.workbench-list li:last-child { border-bottom: 1px solid var(--line); }
.wb-name { font-size: 1.2rem; font-weight: 580; }
.wb-text { color: var(--ink-quiet); }
.wb-stack { text-align: right; color: var(--ink-quiet); font-size: var(--text-xs); letter-spacing: 0.04em; }

/* ── Fuß ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 0 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 2rem;
  color: var(--ink-quiet);
  font-size: var(--text-sm);
}
.footer p { margin: 0; }
.footer-brand { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.footer-note { flex: 1 1 22rem; }
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.notfound { width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 10vw, 10rem) 0; display: grid; gap: 1.25rem; justify-items: start; }
.notfound-num { margin: 0; font-style: italic; font-size: 1.4rem; color: var(--accent-text); }
.notfound-title { margin: 0; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 580; line-height: 1.05; }

/* ── Projektseite ─────────────────────────────────────────────────────── */
.about { width: var(--wrap); margin: 0 auto; }
.crumb { padding: 0.5rem 0 1.25rem; font-size: var(--text-sm); }
.crumb a { color: var(--ink-quiet); text-decoration: none; transition: color var(--fast); }
.crumb a:hover { color: var(--accent-text); }

.about-hero {
  background: var(--paper-deep);
  border-radius: var(--radius-sheet);
  padding: clamp(2rem, 1rem + 5vw, 5.5rem) clamp(1.25rem, 0.5rem + 4vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}
.about-title {
  margin: 0.9rem 0 0;
  font-size: clamp(2.6rem, 1rem + 6.6vw, 7rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.about-tagline { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); max-width: 32ch; }
.about-lead { margin: 1.75rem 0 0; font-size: var(--text-lead); line-height: 1.55; max-width: 58ch; text-wrap: pretty; }
.about-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.about-cta:empty { display: none; }
.about-hero .promise { margin-top: 2.5rem; justify-self: stretch; }
.about--tech .kicker { color: var(--teal); }

.details { padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); }
.detail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 1.25rem;
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.detail-head { grid-column: 1 / span 4; }
.detail-num { margin: 0 0 0.4rem; font-style: italic; color: var(--accent-text); font-size: 1.05rem; }
.detail-title { margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 580; line-height: 1.08; }
.detail-body { grid-column: 5 / -1; max-width: 64ch; }
.detail-body .block-lead { font-size: var(--text-lead); line-height: 1.5; color: var(--ink); }
.detail--card .detail-body {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 2vw, 2.25rem);
  box-shadow: var(--shadow);
  max-width: none;
}

.about-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 2.5rem;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 var(--space-section);
  border-top: 2px solid var(--ink);
}
.about-features { grid-column: 1 / span 7; }
.about-features .label,
.about-additions .label { margin-bottom: 1.25rem; }
.about-features .points { font-size: 1.08em; gap: 0.75rem; }
.about-body .project-meta { grid-column: 9 / -1; }

.about-extra {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 2.5rem;
  padding: 0 0 var(--space-section);
}
.about-additions { grid-column: 1 / span 6; }
.credit {
  grid-column: 8 / -1;
  align-self: start;
  background: var(--card);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem 1.4rem;
}
.credit-line { margin: 0.6rem 0 0; font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
.credit-line a { text-decoration: none; border-bottom: 2px solid var(--orange); transition: color var(--fast); }
.credit-line a:hover { color: var(--accent-text); }
.credit-license { font-size: var(--text-sm); font-weight: 400; color: var(--ink-quiet); }
.credit-note { margin: 0.75rem 0 0; color: var(--ink-quiet); font-size: var(--text-sm); max-width: 52ch; }

/* ── Schmal ───────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar--card { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 900px) {
  .hero-text,
  .flagship-head,
  .flagship-meta,
  .flagship-lead,
  .entry:nth-child(odd),
  .entry:nth-child(even),
  .work-intro,
  .work-detail,
  .workbench-head,
  .workbench-list,
  .detail-head,
  .detail-body,
  .about-features,
  .about-body .project-meta,
  .about-additions,
  .credit { grid-column: 1 / -1; }
  .flagship-head,
  .flagship-meta,
  .flagship-lead { grid-row: auto; }
  .flagship-meta { margin-top: 0; order: 10; }
  .hero-art { grid-column: 1 / -1; grid-row: 1; justify-content: flex-start; }
  .hero-mark { max-width: 132px; }
  .hero-title { margin-top: 0.9rem; }
  .entry:nth-child(even) { margin-top: 0; }
  .workbench-list li { grid-template-columns: 1fr; }
  .wb-stack { text-align: left; }
}

@media (max-width: 640px) {
  .nav-anchor { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .skill { grid-template-columns: 1fr; }
  .pipeline-steps { grid-template-columns: 1fr; gap: 0.9rem; }
  .pipeline-steps::before { left: calc(0.425rem - 1px); right: auto; top: 0.4rem; bottom: 0.4rem; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal) 0 60%, transparent 60% 100%) 0 0 / 2px 10px repeat-y; }
  .pipeline-steps li { padding: 0 0 0 1.6rem; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .promise { gap: 0.6rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
