/* ==========================================================================
   stefanbommeli.com Design System
   Hell / Weiss mit Akzent Orange

   Performance-Hinweis: Es werden bewusst keine filter: blur() Flächen und
   kein backdrop-filter animiert. Grosse weichgezeichnete Ebenen müssen bei
   jedem Scroll-Frame neu gerastert werden und das war die Ursache für das
   Stocken. Die Farbstimmung entsteht jetzt über statische radial-gradients,
   die der Compositor einmal zeichnet und danach nur noch verschiebt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Flächen */
  --bg:          #ffffff;
  --bg-2:        #faf9f7;
  --bg-3:        #f5f2ed;
  --surface:     #ffffff;

  /* Linien */
  --line:        rgba(20, 22, 28, .11);
  --line-strong: rgba(20, 22, 28, .22);
  --line-soft:   rgba(20, 22, 28, .06);

  /* Schrift */
  --ink:         #14161c;  /* 18.1:1 */
  --ink-2:       #3d4351;  /*  9.9:1 */
  --ink-3:       #5a6070;  /*  6.3:1 */
  --ink-4:       #7c8292;  /*  3.8:1 nur dekorativ */

  /* Akzente */
  --orange:      #ff6b00;  /* Grafik, Verläufe, Kanten */
  --orange-mid:  #f97316;
  --orange-ink:  #bf4008;  /*  5.3:1 Orange als Text */
  --orange-deep: #a63700;
  --yellow:      #ffc53d;
  --yellow-mid:  #ffb020;

  /* Verläufe: Gelb zu Orange */
  --grad:        linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
  --grad-soft:   linear-gradient(135deg, rgba(255, 197, 61, .16), rgba(255, 107, 0, .16));

  /* Schatten */
  --sh-sm:       0 1px 2px rgba(20, 22, 28, .05);
  --sh:          0 4px 16px -6px rgba(20, 22, 28, .12);
  --sh-lg:       0 18px 44px -22px rgba(20, 22, 28, .26);
  --sh-orange:   0 8px 24px -10px rgba(255, 107, 0, .45);

  /* Typo */
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono",
               "Cascadia Mono", Menlo, Consolas, monospace;

  --fs-hero:   clamp(2.5rem, 6.8vw, 5.2rem);
  --fs-h2:     clamp(1.85rem, 3.6vw, 3rem);
  --fs-h3:     clamp(1.12rem, 1.6vw, 1.4rem);
  --fs-lead:   clamp(1.05rem, 1.45vw, 1.28rem);
  --fs-body:   1rem;
  --fs-sm:     .875rem;
  --fs-xs:     .75rem;

  /* Layout */
  --wrap:      1200px;
  --wrap-slim: 740px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 18px;
  --r-xl: 26px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease:     cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 600;
  text-wrap: balance;
}

::selection { background: rgba(255, 107, 0, .22); color: var(--ink); }

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

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--slim { max-width: var(--wrap-slim); }

.section { position: relative; padding-block: var(--section-y); }
.section + .section { padding-top: 0; }
.section--tint {
  background: var(--bg-2);
  border-block: 1px solid var(--line-soft);
  padding-block: var(--section-y);
}
.section--tint + .section { padding-top: var(--section-y); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--orange-ink);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   4. Typo-Helfer
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-ink);
  font-weight: 500;
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 62ch;
}

.muted { color: var(--ink-3); }

.mono {
  font-family: var(--font-mono);
  font-size: .8em;
}

/* Betonte Wörter im Titel: kräftiges Orange, das auf Weiss lesbar bleibt.
   Ein Gelb-Orange-Verlauf direkt in der Schrift wäre auf weissem Grund
   nicht mehr kontraststark genug, darum steht der Verlauf darunter. */
.accent {
  color: var(--orange-ink);
  position: relative;
  white-space: nowrap;
}
.accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .1em;
  border-radius: .05em;
  background: var(--grad);
  opacity: .55;
}

/* --------------------------------------------------------------------------
   5. Hintergrund
   Statische Verläufe, kein filter, keine Animation. Bewusst günstig.
   -------------------------------------------------------------------------- */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 65% at 60% 12%, #000 10%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 60% 12%, #000 10%, transparent 76%);
}

.bg-glow { position: absolute; border-radius: 50%; }
.bg-glow--a {
  width: 60vw; height: 60vw; min-width: 460px; min-height: 460px;
  top: -22vw; right: -14vw;
  background: radial-gradient(closest-side, rgba(255, 176, 32, .20), rgba(255, 176, 32, 0) 72%);
}
.bg-glow--b {
  width: 50vw; height: 50vw; min-width: 380px; min-height: 380px;
  top: 34vh; left: -18vw;
  background: radial-gradient(closest-side, rgba(255, 107, 0, .12), rgba(255, 107, 0, 0) 72%);
}

/* --------------------------------------------------------------------------
   6. Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .93);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand__mark {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  color: #2b1400;
  background: var(--grad);
  box-shadow: var(--sh-orange);
}
.brand__name { font-size: .98rem; }
.brand__role {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: .2rem; }

.nav__link {
  position: relative;
  padding: .55rem .8rem;
  font-size: .9rem;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--bg-3); }
.nav__link.is-active { color: var(--ink); font-weight: 550; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav__cta { margin-left: .5rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  place-items: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .28s var(--ease-out), opacity .2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -5.5px; }
.nav-toggle__bars::after  { position: absolute; top:  5.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: var(--r);
  font-size: .92rem;
  font-weight: 550;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--bg);
  transition: transform .22s var(--ease-out), box-shadow .28s var(--ease),
              border-color .22s var(--ease), background .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  border-color: transparent;
  color: #2b1400;
  font-weight: 650;
  box-shadow: var(--sh-orange);
}
.btn--primary:hover { box-shadow: 0 12px 30px -10px rgba(255, 107, 0, .6); }

.btn--ghost:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 0, .06);
}

.btn--sm { padding: .55rem 1rem; font-size: .85rem; }

.btn__arrow { transition: transform .28s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--orange-ink);
  font-size: .92rem;
  font-weight: 550;
  transition: gap .24s var(--ease-out);
}
.link-arrow:hover { gap: .8rem; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 8rem 4rem;
  overflow: hidden;
}

.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
#pipeline-canvas { width: 100%; height: 100%; }

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 620;
  letter-spacing: -.04em;
  max-width: 20ch;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
.hero__title .line > span { display: block; }

.hero__lead {
  margin-top: 1.7rem;
  max-width: 56ch;
  font-size: var(--fs-lead);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.4rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  margin-top: 3.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__meta li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--grad);
  flex: none;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.scroll-hint__rail {
  width: 2px; height: 40px;
  border-radius: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-hint__rail::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 2px; height: 14px;
  border-radius: 2px;
  background: var(--grad);
  animation: railDrop 2.2s var(--ease) infinite;
}
@keyframes railDrop {
  0%   { transform: translateY(-14px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   9. Sektionsköpfe
   -------------------------------------------------------------------------- */
.sec-head { margin-bottom: clamp(2.4rem, 5vw, 4.2rem); }
.sec-head__title { font-size: var(--fs-h2); max-width: 24ch; }
.sec-head__lead { margin-top: 1.1rem; }
.sec-head--split {
  display: grid;
  gap: 1.4rem 3rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: 1.05fr .95fr; align-items: end; }
  .sec-head--split .sec-head__lead { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   10. Karten
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  box-shadow: var(--sh-sm);
  transition: border-color .3s var(--ease), transform .35s var(--ease-out),
              box-shadow .35s var(--ease);
}
.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, .35);
  box-shadow: var(--sh);
}

.grid {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
}

.service { display: grid; gap: .85rem; align-content: start; }
.service__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  color: var(--orange-ink);
  font-weight: 600;
}
.service__title { font-size: var(--fs-h3); }
.service__text { color: var(--ink-2); font-size: .95rem; }
.service__list {
  display: grid;
  gap: .5rem;
  margin-top: .2rem;
  font-size: .875rem;
  color: var(--ink-3);
}
.service__list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: .6rem;
  align-items: start;
}
.service__list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: .58em;
  border-radius: 2px;
  background: var(--orange);
}

/* --------------------------------------------------------------------------
   11. Profil
   -------------------------------------------------------------------------- */
.profile { display: grid; gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
@media (min-width: 900px) {
  .profile { grid-template-columns: 310px minmax(0, 1fr); }
}

.portrait {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  aspect-ratio: 1;
  box-shadow: var(--sh);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__tag {
  position: absolute;
  z-index: 2;
  left: .85rem; bottom: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .75rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.portrait__tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.prose-block { display: grid; gap: 1.05rem; max-width: 66ch; }
.prose-block p { color: var(--ink-2); }
.prose-block strong { color: var(--ink); font-weight: 600; }

.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 2.4rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat { background: var(--bg); padding: 1.25rem 1.35rem; }
.stat__num {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--ink);
}
.stat__num::after {
  content: "";
  display: block;
  width: 28px; height: 3px;
  border-radius: 2px;
  margin-top: .55rem;
  background: var(--grad);
}
.stat__label {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   12. Stack
   -------------------------------------------------------------------------- */
.stack-groups {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.stack-group__label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.stack-group__label b {
  color: var(--orange-ink);
  font-weight: 600;
  margin-left: auto;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: .38rem .72rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: .82rem;
  color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease),
              background .2s var(--ease), transform .2s var(--ease-out);
}
.chip:hover {
  border-color: var(--orange);
  color: var(--ink);
  background: rgba(255, 107, 0, .08);
  transform: translateY(-2px);
}
.chip--lead {
  border-color: rgba(255, 107, 0, .45);
  background: rgba(255, 176, 32, .14);
  color: var(--ink);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   13. Stationen
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; }

.timeline__rail {
  position: absolute;
  left: 7px; top: .6rem; bottom: .6rem;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.timeline__rail::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  width: 2px;
  border-radius: 2px;
  height: var(--rail, 0%);
  background: var(--grad);
}
@media (min-width: 760px) { .timeline__rail { left: 143px; } }

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: clamp(1.25rem, 2.4vw, 1.85rem);
  border-bottom: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 0; }
@media (min-width: 760px) {
  .tl-item { grid-template-columns: 128px 34px minmax(0, 1fr); }
}

.tl-item__date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  padding-top: .3rem;
  grid-column: 2;
  order: 3;
}
@media (min-width: 760px) {
  .tl-item__date { grid-column: 1; order: 0; text-align: right; padding-right: .25rem; }
}

.tl-item__dot {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  margin-top: .5rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 1;
}
@media (min-width: 760px) { .tl-item__dot { grid-column: 2; } }
.tl-item__dot::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
}
.tl-item.is-current .tl-item__dot { border-color: var(--orange); }
.tl-item.is-current .tl-item__dot::after { background: var(--orange); }

.tl-item__body { grid-column: 2; }
@media (min-width: 760px) { .tl-item__body { grid-column: 3; } }

.tl-item__role { font-size: var(--fs-h3); font-weight: 600; }
.tl-item__points {
  display: grid;
  gap: .45rem;
  margin-top: .8rem;
  font-size: .9rem;
  color: var(--ink-2);
}
.tl-item__points li { display: grid; grid-template-columns: 12px 1fr; gap: .55rem; }
.tl-item__points li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: .62em;
  border-radius: 1px;
  background: var(--orange);
}

/* --------------------------------------------------------------------------
   14. Beitragskarten
   -------------------------------------------------------------------------- */
.posts {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-sm);
  transition: border-color .3s var(--ease), transform .35s var(--ease-out),
              box-shadow .35s var(--ease);
}
.post-card:hover {
  border-color: rgba(255, 107, 0, .35);
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.03); }

.post-card__body {
  display: grid;
  gap: .65rem;
  align-content: start;
  padding: 1.3rem 1.4rem 1.45rem;
  flex: 1;
}
.post-card__meta {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.post-card__meta span + span::before { content: "·"; margin-right: .6rem; color: var(--ink-4); }
.post-card__title { font-size: var(--fs-h3); }
.post-card__title a { transition: color .2s var(--ease); }
.post-card:hover .post-card__title a { color: var(--orange-ink); }
.post-card__excerpt { font-size: .92rem; color: var(--ink-2); }
.post-card__foot { margin-top: auto; padding-top: .5rem; }

/* --------------------------------------------------------------------------
   15. Kontakt
   -------------------------------------------------------------------------- */
.contact {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 110% at 100% 0%, rgba(255, 197, 61, .22), transparent 62%),
    radial-gradient(ellipse 60% 100% at 0% 100%, rgba(255, 107, 0, .10), transparent 64%),
    var(--bg-2);
  box-shadow: var(--sh-sm);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.contact__title { font-size: var(--fs-h2); max-width: 22ch; }
.contact__lead { margin-top: 1.1rem; }

.contact-list {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.contact-item {
  display: grid;
  gap: .3rem;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, .82);
  transition: background .25s var(--ease);
}
a.contact-item:hover { background: #fff; }
.contact-item__label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-item__value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
  word-break: break-word;
}
a.contact-item:hover .contact-item__value { color: var(--orange-ink); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--line);
  padding-block: 2.4rem 3rem;
  background: var(--bg-2);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--orange-ink); }

/* --------------------------------------------------------------------------
   17. Artikel
   -------------------------------------------------------------------------- */
.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 110;
}
.read-progress__bar {
  height: 100%;
  width: 0;
  background: var(--grad);
}

.article-hero { padding-block: clamp(6.5rem, 13vw, 9.5rem) clamp(1.75rem, 4vw, 2.75rem); }
.article-hero__title {
  font-size: clamp(1.95rem, 4.4vw, 3.2rem);
  max-width: 24ch;
  margin-top: 1.2rem;
}
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.article-figure {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-3);
}

.prose {
  max-width: 70ch;
  font-size: 1.055rem;
  line-height: 1.78;
  color: var(--ink-2);
}
.prose > * + * { margin-top: 1.3em; }
.prose h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  color: var(--ink);
  margin-top: 2.5em;
  padding-top: 1.15em;
  border-top: 1px solid var(--line);
  letter-spacing: -.028em;
}
.prose h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  color: var(--ink);
  margin-top: 2em;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--orange-ink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 0, .45);
  text-underline-offset: .2em;
  transition: text-decoration-color .2s var(--ease);
}
.prose a:hover { text-decoration-color: var(--orange-ink); }
.prose ul { display: grid; gap: .55em; margin-top: 1.05em; }
.prose ul li { display: grid; grid-template-columns: 16px 1fr; gap: .7em; }
.prose ul li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: .7em;
  border-radius: 2px;
  background: var(--orange);
}
.prose .callout {
  border-left: 3px solid var(--orange);
  background: rgba(255, 176, 32, .12);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.1rem 1.35rem;
  color: var(--ink);
}

.article-foot {
  max-width: 70ch;
  margin-top: clamp(2.75rem, 5.5vw, 4.5rem);
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.blog-index-hero { padding-block: clamp(6.5rem, 13vw, 9.5rem) 0; }

/* --------------------------------------------------------------------------
   18. Arbeitsweise / Spine
   -------------------------------------------------------------------------- */
.spine { position: relative; }

.spine__svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 900px) {
  .spine__svg { left: 50%; transform: translateX(-50%); width: 140px; }
}

.spine__track { stroke: var(--line); stroke-width: 2; fill: none; }
.spine__path { stroke: url(#spineGrad); stroke-width: 2.5; fill: none; }

.steps { position: relative; z-index: 1; display: grid; gap: clamp(1.25rem, 3vw, 2.4rem); }

.step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0 1.2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); gap: 0; }
  .step__badge { grid-column: 2; justify-self: center; }
  .step__body  { grid-column: 3; padding-left: 1.5rem; }
  .step:nth-child(even) .step__body {
    grid-column: 1;
    grid-row: 1;
    padding-left: 0;
    padding-right: 1.5rem;
    text-align: right;
  }
  .step:nth-child(even) .step__list li { grid-template-columns: 1fr 14px; }
  .step:nth-child(even) .step__list li span { order: 0; }
  .step:nth-child(even) .step__list li::before { order: 1; }
}

.step__badge {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  color: #2b1400;
  background: var(--grad);
  box-shadow: 0 0 0 6px var(--bg), var(--sh-orange);
}

.step__title { font-size: var(--fs-h3); }
.step__text { margin-top: .55rem; color: var(--ink-2); font-size: .95rem; }
.step__list {
  display: grid;
  gap: .38rem;
  margin-top: .8rem;
  font-size: .85rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.step__list li { display: grid; grid-template-columns: 14px 1fr; gap: .5rem; align-items: baseline; }
.step__list li::before { content: "→"; color: var(--orange); }

/* --------------------------------------------------------------------------
   19. Ausgangszustände für die Animationen
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; }
.js [data-stagger] > * { opacity: 0; }
.js .hero__title .line > span { transform: translateY(105%); }

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease), transform .26s var(--ease-out), visibility .26s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link { padding: .8rem .6rem; font-size: 1rem; }
  .nav__link.is-active::after { display: none; }
  .nav__cta { margin: .6rem 0 0; justify-content: center; }
  .brand__role { display: none; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; padding-block: 7rem 4.5rem; }
  .scroll-hint { display: none; }
  .hero__meta { gap: .55rem 1.2rem; }
}

/* --------------------------------------------------------------------------
   21. Reduced motion & Print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .js .hero__title .line > span { transform: none !important; }
  .spine__path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .timeline__rail::after { height: 100% !important; }
  .scroll-hint__rail::after { display: none; }
}

@media print {
  .bg-layers, .site-header, .hero__canvas-wrap, .scroll-hint,
  .read-progress, .spine__svg { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .lead, p { color: #000; }
  .panel, .post-card, .contact { box-shadow: none; border-color: #bbb; }
}
