/* =============================================================
   SPECTRAL WORLD . stylesheet
   Pure-white editorial surface, spectrum used as a quiet signature.
   ============================================================= */

@import url('/static/fonts/fonts.css');

:root {
  /* ink + surfaces — pure white, deep near-black */
  --ink:          #0d0d0e;
  --ink-soft:     #1d1d1f;
  --ink-muted:    #5e5e63;
  --ink-faint:    #9a9aa0;
  --ink-ghost:    #cfcfd3;
  --bg:           #ffffff;
  --bg-elev:      #f6f6f4;
  --bg-deep:      #ededea;
  --border:       #e4e4e0;
  --border-2:     #c6c6c2;

  /* a single deep accent (focus, CTA borders) */
  --accent:       #8c3b13;

  /* the visible spectrum — deep, saturated, never pastel */
  --spec-1: #b31418;
  --spec-2: #c2521a;
  --spec-3: #a67a0e;
  --spec-4: #1f7a2a;
  --spec-5: #115db0;
  --spec-6: #241f95;
  --spec-7: #55158f;

  /* type */
  --f-display: "Fraunces", "EB Garamond", "Times New Roman", serif;
  --f-body:    "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --gutter:     clamp(20px, 4.5vw, 56px);
  --max:        1360px;
  --max-narrow: 720px;

  /* fluid sizing */
  --h0:   clamp(46px, 8.5vw, 120px);
  --h1:   clamp(40px, 6.5vw, 92px);
  --h2:   clamp(30px, 4.2vw, 56px);
  --h3:   clamp(22px, 2.4vw, 32px);
  --meta: 11px;
  --body: 16px;
  --lede: clamp(18px, 1.7vw, 21px);

  --leading-display: 1.02;
  --leading-body:    1.6;
  --track-mono:      0.12em;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
html { min-height: 100%; }
/* body: flex column so footer sits at viewport bottom when content is
   short, but flows naturally below long content (no sticky). */
body {
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: var(--body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* deliberately no paper grain — pure white, no texture */

/* deliberately no ambient glow — clean paper, no haze */

::selection { background: var(--spec-2); color: var(--bg); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  border-radius: 2px;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
main:focus { outline: none; }

a { color: inherit; text-decoration: none; }

/* Fachbegriffe mit Tooltip-Erklärung bekommen im Fließtext eine
   dezente Punkt-Unterlinierung, damit Leser die Hover-Erklärung
   finden. In Überschriften und Accordion-Summaries stört die Linie
   die Typografie, deshalb dort abgeschaltet. */
abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: help;
}
summary abbr[title],
h1 abbr[title], h2 abbr[title], h3 abbr[title], h4 abbr[title] {
  text-decoration: none;
  cursor: inherit;
  font: inherit;
  color: inherit;
}
button { border: none; background: transparent; color: inherit; font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* =============================================================
   HEADER
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}
.wordmark-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}
/* Wortmarke in drei Teilen, alle in Fraunces:
     Spectral . italic, 300
     World    . aufrecht, 400
     GmbH     . aufrecht, 300
   Gleiche Schriftfamilie hält das Logo visuell als Einheit, die drei
   Gewichte/Stile trennen die Bestandteile. */
.wordmark-name {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark-spectral { font-style: italic; font-weight: 300; margin-right: 0.08em; }
.wordmark-world    { font-style: normal; font-weight: 400; }
.wordmark-gmbh     { font-style: normal; font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--spec-1), var(--spec-3), var(--spec-5), var(--spec-7));
}

/* Investor relations: pulled out of the main nav (declutters mobile) and
   shown as a distinct accent button in the header, because investors always
   count and the link must stay prominent. */
.header-cta {
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 6px 12px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.header-cta:hover,
.header-cta[aria-current="page"] { background: var(--accent); color: var(--bg); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}
.lang-switch a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}
.lang-switch a:hover { color: var(--ink-muted); }
.lang-switch a[aria-current="true"] { color: var(--ink); }
.lang-switch a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--spec-1), var(--spec-3), var(--spec-5), var(--spec-7));
}
.lang-switch span { color: var(--ink-ghost); }

/* Mobile: 6 Nav-Items plus Sprachumschalter passen mit Wordmark nicht
   in eine Zeile. Stattdessen zwei Zeilen: oben Wordmark links und
   Switcher rechts, darunter die Nav-Links über die volle Breite mit
   space-between. */
@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px var(--gutter);
  }
  .wordmark-name { font-size: 15px; }
  .lang-switch { font-size: 10px; gap: 4px; }
  .header-cta { margin-left: auto; font-size: 10px; padding: 5px 10px; }
  .nav-links {
    order: 2;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .nav-links a { font-size: 10px; white-space: nowrap; }
}
@media (max-width: 480px) {
  .site-header { padding: 10px var(--gutter); }
  .nav-links { gap: 4px; }
  .nav-links a { font-size: 9px; }
  .header-cta { font-size: 9px; padding: 4px 8px; }
  .wordmark-name { font-size: 14px; }
}

/* =============================================================
   LAYOUT UTILITIES
   ============================================================= */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--max-narrow); }

.spec-rule {
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg,
    var(--spec-1) 0%, var(--spec-2) 18%, var(--spec-3) 34%,
    var(--spec-4) 50%, var(--spec-5) 66%, var(--spec-6) 84%, var(--spec-7) 100%);
  opacity: 0.8;
  border: 0;
}
.spec-rule--short { width: 96px; }

/* =============================================================
   TYPOGRAPHY
   ============================================================= */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: var(--leading-display);
  letter-spacing: -0.022em;
  color: var(--ink);
  font-variation-settings: "opsz" 120;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}
p { color: var(--ink-soft); }

.lede {
  font-size: var(--lede);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--spec-3), var(--spec-5));
}

/* =============================================================
   HOME — hero + slab
   ============================================================= */

.hero {
  position: relative;
  padding: clamp(48px, 9vh, 120px) 0 clamp(60px, 12vh, 160px);
  overflow: hidden;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr clamp(140px, 22vw, 320px);
  gap: clamp(32px, 7vw, 100px);
  align-items: end;
  min-height: min(72vh, 760px);
}
.hero__eyebrow { margin-bottom: 32px; }
.hero__title {
  font-size: var(--h0);
  letter-spacing: -0.035em;
  line-height: 0.94;
}
.hero__title .line { display: block; }
.hero__title em { color: var(--ink-soft); }
.hero__lede {
  margin-top: 36px;
  max-width: 52ch;
  font-size: var(--lede);
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.5;
}
.hero__meta {
  margin-top: 72px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.hero__meta dt {
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.hero__meta dd {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 300;
}
.hero__meta dd em { font-style: italic; color: var(--ink-soft); }

/* the vertical spectrum slab */
.hero__slab {
  position: relative;
  height: min(72vh, 760px);
  min-height: 380px;
  overflow: hidden;
}
.hero__slab-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--spec-1) 0%,
    var(--spec-2) 16%,
    var(--spec-3) 32%,
    var(--spec-4) 48%,
    var(--spec-5) 64%,
    var(--spec-6) 80%,
    var(--spec-7) 100%);
  filter: saturate(1.05);
}
.hero__slab-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%),
    linear-gradient(90deg, color-mix(in oklab, var(--bg) 55%, transparent) 0%, transparent 24%, transparent 76%, color-mix(in oklab, var(--bg) 55%, transparent) 100%);
}
.hero__slab-grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero__slab-caption {
  position: absolute;
  bottom: 18px;
  right: 14px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__slab-tick {
  position: absolute;
  top: 18px;
  left: 14px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: grid;
  gap: 6px;
}

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; min-height: 0; align-items: start; }
  .hero__slab { height: 56vw; min-height: 280px; }
  .hero__meta { margin-top: 48px; gap: 40px; }
}

/* =============================================================
   HOME — vision block
   ============================================================= */

.vision {
  padding: clamp(80px, 14vh, 160px) 0;
  border-top: 1px solid var(--border);
}
.vision__eyebrow {
  display: block;
  margin-bottom: 40px;
}
.vision__headline {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 56px;
  max-width: 24ch;
}
.vision__headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}
.vision__body p {
  font-size: var(--lede);
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 400;
  max-width: 58ch;
}
.vision__body p + p {
  margin-top: 24px;
}
.vision__body p em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}

/* =============================================================
   HOME — principles
   ============================================================= */

.principles {
  padding: clamp(72px, 13vh, 160px) 0;
  border-top: 1px solid var(--border);
}
.principles__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 56px;
  margin-bottom: 72px;
  align-items: end;
}
.principles__header h2 {
  font-size: var(--h2);
  max-width: 11ch;
}
.principles__header p {
  max-width: 52ch;
  font-size: var(--lede);
  color: var(--ink-soft);
}
.principles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.principle {
  background: var(--bg);
  padding: 40px 28px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  margin-right: -1px;
  margin-bottom: -1px;
  position: relative;
}
.principle__idx {
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  color: var(--ink-faint);
  margin-bottom: 40px;
}
.principle h3 {
  font-size: 26px;
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.principle h3 em { font-style: italic; color: var(--ink); }
.principle p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .principles__header { grid-template-columns: 1fr; gap: 24px; }
  .principles__grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .principles__grid { grid-template-columns: 1fr; }
  .principle { min-height: 200px; padding: 32px 24px; }
}

/* =============================================================
   HOME — pillar rows (teasers for Core / Work)
   ============================================================= */

.pillars {
  padding: clamp(72px, 13vh, 160px) 0;
  border-top: 1px solid var(--border);
}
.pillars__rows {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillar {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 2fr) 40px;
  gap: 32px;
  padding: 36px 12px;
  background: var(--bg);
  align-items: baseline;
  transition: background 0.35s ease;
}
.pillar:hover { background: var(--bg-elev); }
.pillar__idx {
  font-family: var(--f-mono);
  font-size: var(--meta);
  color: var(--ink-faint);
  letter-spacing: var(--track-mono);
}
.pillar__name {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.pillar__name em { font-style: italic; color: var(--ink-soft); }
.pillar__desc {
  max-width: 48ch;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
}
.pillar__arrow {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--ink-faint);
  text-align: right;
  transition: transform 0.35s ease, color 0.35s ease;
}
.pillar:hover .pillar__arrow {
  color: var(--ink);
  transform: translateX(10px);
}
@media (max-width: 820px) {
  .pillar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 8px 18px;
    padding: 26px 0;
    align-items: start;
  }
  .pillar__idx    { grid-column: 1 / -1; grid-row: 1; margin-bottom: 2px; }
  .pillar__name   { grid-column: 1;      grid-row: 2; font-size: clamp(28px, 7.5vw, 40px); }
  .pillar__arrow  { grid-column: 2;      grid-row: 2; align-self: center; text-align: right; }
  .pillar__desc   { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
}

.pillars__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 56px;
  gap: 24px;
}
.pillars__header h2 { font-size: var(--h2); max-width: 18ch; }
.pillars__header .eyebrow { align-self: end; }

/* =============================================================
   BLOG
   ============================================================= */

.blog-head {
  padding: clamp(80px, 12vh, 140px) 0 clamp(48px, 7vh, 80px);
}
.blog-head__eyebrow { display: block; margin-bottom: 24px; }
.blog-head__title {
  font-family: var(--f-display);
  font-size: var(--h1);
  font-weight: 400;
  letter-spacing: -0.032em;
  line-height: var(--leading-display);
  margin-bottom: 24px;
}
.blog-head__title em { font-style: italic; font-weight: 300; }
.blog-head__lede {
  color: var(--ink-soft);
  font-size: var(--lede);
  max-width: 48ch;
  line-height: 1.5;
}
.blog-head__empty {
  padding: 40px 0 120px;
  color: var(--ink-faint);
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(80px, 10vh, 140px);
  border-top: 1px solid var(--border);
}
.blog-list__item {
  border-bottom: 1px solid var(--border);
}
.blog-list__item a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 28px;
  row-gap: 6px;
  padding: 28px 0;
  color: inherit;
  transition: color 0.2s ease;
}
.blog-list__item a:hover { color: var(--spec-5); }
.blog-list__date {
  grid-column: 1;
  grid-row: 1 / span 3;
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  color: var(--ink-faint);
  padding-top: 6px;
}
.blog-list__kind {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 4px;
}
.blog-list__title {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2px;
}
.blog-list__desc {
  grid-column: 2;
  grid-row: 3;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* Filter-Chips über der Liste */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}
.blog-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--bg);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.blog-filters__chip:hover { color: var(--ink); border-color: var(--ink); }
.blog-filters__chip.is-active {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}
.blog-filters__count {
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.blog-filters__chip:hover .blog-filters__count { color: var(--ink-muted); }
.blog-filters__chip.is-active .blog-filters__count { color: var(--ink-ghost); }

/* Pagination unter der Liste */
.blog-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 28px 0 clamp(60px, 8vh, 120px);
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}
.blog-pagination__prev { justify-self: start; }
.blog-pagination__pos  { justify-self: center; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.blog-pagination__next { justify-self: end; }
.blog-pagination a {
  color: var(--ink);
  transition: color .2s ease;
}
.blog-pagination a:hover { color: var(--spec-5); }
.blog-pagination .is-disabled {
  color: var(--ink-ghost);
  pointer-events: none;
}
@media (max-width: 520px) {
  .blog-pagination {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 8px;
  }
  .blog-pagination__prev, .blog-pagination__next, .blog-pagination__pos {
    justify-self: center;
  }
}

.post {
  padding: clamp(60px, 10vh, 120px) 0 clamp(48px, 8vh, 96px);
}
.post__head { margin-bottom: 48px; }
.post__eyebrow { display: block; margin-bottom: 24px; }
.post__title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.08;
  max-width: 28ch;
  color: var(--ink);
}
.post__body {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 72ch;
}
.post__body p { margin-bottom: 1em; }
.post__body p + p { margin-top: 0; }
.post__body em { font-style: italic; color: var(--ink-soft); }
.post__body strong { font-weight: 600; color: var(--ink); }
.post__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--border-2);
  transition: border-color 0.2s ease;
}
.post__body a:hover { border-bottom-color: var(--spec-3); }

.post__body h2 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 56px 0 18px;
  color: var(--ink);
}
.post__body h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: var(--ink);
}
.post__body h2 + h3 { margin-top: 20px; }

.post__body ul {
  padding-left: 22px;
  margin: 0 0 1em;
}
.post__body li {
  margin-bottom: 4px;
  line-height: 1.6;
}

.post__body blockquote {
  border-left: 2px solid var(--spec-3);
  padding: 4px 0 4px 16px;
  margin: 20px 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.post__body blockquote p { margin-bottom: 0.5em; }
.post__body blockquote p:last-child {
  margin-top: 14px;
  margin-bottom: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.5;
}

.post__body code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--ink);
}
.post__body pre {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.55;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 20px 0;
  white-space: pre;
  max-width: 100%;
}
.post__body pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

.post__foot {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}
.post__foot a {
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.post__foot a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .blog-head { padding: 48px 0 28px; }
  .blog-head__title { font-size: clamp(36px, 10vw, 52px); }
  .blog-head__lede { font-size: 16px; }
  .blog-list__item a {
    grid-template-columns: 1fr;
    row-gap: 6px;
    padding: 22px 0;
  }
  .blog-list__date { grid-row: 1; padding-top: 0; font-size: 10px; }
  .blog-list__title { grid-row: 2; font-size: 20px; }
  .blog-list__desc { grid-row: 3; font-size: 14.5px; }
  .post { padding: 40px 0 40px; }
  .post__head { margin-bottom: 32px; }
  .post__title { font-size: clamp(32px, 8.5vw, 44px); }
  .post__body { font-size: 16px; line-height: 1.65; }
  .post__body h2 { font-size: 22px; margin: 40px 0 14px; }
  .post__body h3 { font-size: 18px; margin: 28px 0 10px; }
  .post__body pre { font-size: 11.5px; padding: 12px 14px; }
  .post__body code { font-size: 0.85em; }
  .post__foot { margin-top: 48px; }
}

/* =============================================================
   THE CORE — long read
   ============================================================= */

.core-hero {
  padding: clamp(80px, 14vh, 160px) 0 40px;
  position: relative;
}
.core-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 16vw, 220px);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.core-hero__eyebrow { margin-bottom: 32px; display: block; }
.core-hero__title {
  font-size: var(--h1);
  max-width: 14ch;
  letter-spacing: -0.032em;
}
.core-hero__title em { font-style: italic; color: var(--ink-soft); }

.core-iris {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.core-iris__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--spec-1), var(--spec-2), var(--spec-3),
    var(--spec-4), var(--spec-5), var(--spec-6),
    var(--spec-7), var(--spec-1));
  animation: iris-spin 90s linear infinite;
}
.core-iris__inner {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg);
}
.core-iris__core {
  position: absolute;
  top: 50%; left: 50%;
  width: 14%; height: 14%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--ink);
}
@keyframes iris-spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .core-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .core-iris { width: 140px; }
}

.core-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px var(--gutter) clamp(80px, 12vh, 160px);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.6;
  letter-spacing: -0.003em;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 32, "SOFT" 30;
}
.core-body p + p { margin-top: 1.3em; }
.core-body em { font-style: italic; color: var(--ink); }
.core-body > p:first-child::first-letter {
  font-family: var(--f-display);
  font-size: 5.4em;
  float: left;
  line-height: 0.85;
  padding: 0.05em 0.12em 0 0;
  font-weight: 400;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}

.pull-quote {
  margin: 64px 0 60px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.pull-quote::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 72px;
  background: linear-gradient(90deg, var(--spec-1), var(--spec-5));
}
.pull-quote p {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 2.9vw, 34px);
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.018em;
}
.pull-quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-faint);
  font-style: normal;
}
.pull-quote cite strong {
  color: var(--ink-muted);
  font-weight: 500;
}

/* Signed variant: portrait + personal attribution */
.pull-quote--signed {
  display: grid;
  grid-template-columns: clamp(150px, 30%, 200px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.pull-quote--signed p {
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 0;
}
.pull-quote__body { min-width: 0; }
.pull-quote__portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
@media (max-width: 720px) {
  .pull-quote--signed { grid-template-columns: 1fr; gap: 24px; }
  .pull-quote__portrait { max-width: 200px; }
}

/* =============================================================
   SECTION HEAD (used by Work)
   ============================================================= */

.section-head {
  padding: clamp(72px, 13vh, 140px) 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  border-bottom: 1px solid var(--border);
}
.section-head__eyebrow { margin-bottom: 28px; display: block; }
.section-head__title { font-size: var(--h1); max-width: 16ch; letter-spacing: -0.032em; }
.section-head__lede  { color: var(--ink-soft); font-size: var(--lede); max-width: 52ch; line-height: 1.5; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 28px; padding-top: 80px; }
}

/* =============================================================
   WORK — services
   ============================================================= */

.services { padding: 16px 0 0; }
.service {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.service__idx {
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  color: var(--ink-faint);
}
.service__name {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.05;
}
.service__name em { font-style: italic; color: var(--ink-soft); }
.service__desc {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  max-width: 52ch;
}
@media (max-width: 820px) {
  .service { grid-template-columns: 60px minmax(0, 1fr); gap: 24px; padding: 40px 0; }
  .service__desc { grid-column: 1 / -1; }
}

.invite {
  padding: clamp(72px, 13vh, 140px) 0 clamp(40px, 6vh, 80px);
}
.work__portfolio-link {
  padding: 28px 0 8px;
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
}
.work__portfolio-link a {
  color: var(--ink);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.work__portfolio-link a:hover {
  color: var(--spec-6);
  border-bottom-color: var(--spec-6);
}
.invite h2 {
  font-size: var(--h2);
  max-width: 22ch;
  margin-bottom: 28px;
  letter-spacing: -0.028em;
}
.invite p {
  font-size: var(--lede);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 40px;
  line-height: 1.5;
}
.invite a.email {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--ink);
  letter-spacing: -0.02em;
  padding-bottom: 2px;
  background-image: linear-gradient(90deg, var(--spec-1), var(--spec-3), var(--spec-5), var(--spec-7));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 0.35s ease;
}
.invite a.email:hover { background-size: 100% 2px; }

/* =============================================================
   CONTACT
   ============================================================= */

.contact {
  padding: clamp(72px, 13vh, 140px) 0 clamp(60px, 10vh, 120px);
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 200px);
}
@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; gap: 56px; min-height: 0; }
}

.contact__eyebrow { margin-bottom: 28px; display: block; }
.contact__title {
  font-size: var(--h1);
  letter-spacing: -0.032em;
  max-width: 12ch;
  margin-bottom: 36px;
}
.contact__lede {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: var(--lede);
  margin-bottom: 48px;
  line-height: 1.5;
}
.contact__email-label {
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  display: block;
}
.contact__email {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(26px, 4vw, 48px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.022em;
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--border-2);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.contact__email:hover {
  border-bottom-color: var(--spec-3);
}
.contact__note {
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact__note a {
  color: var(--ink);
  border-bottom: 1px solid var(--border-2);
  transition: border-color 0.2s ease;
}
.contact__note a:hover { border-bottom-color: var(--spec-3); }

.contact-form {
  display: grid;
  gap: 22px;
  padding: 34px 30px 28px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  position: relative;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  height: 1px;
  width: 72px;
  background: linear-gradient(90deg, var(--spec-1), var(--spec-5));
}
.contact-form__legend {
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.005em;
  outline: none;
  transition: border-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; } }

/* Investor-Login: Authenticator-Code-Feld mit sechs einzelnen Ziffer-
   Inputs, Auto-Advance per JS, plus 30-s-Countdown-Ring. Der Ring ist
   rein dekorativ (aria-hidden) und synchronisiert per JS zur Wall-
   Clock. Drain von voll zu leer, Reset bei :00 und :30. */
.code-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.code-digits {
  display: flex;
  gap: 8px;
  flex: 1;
}
.code-digit {
  flex: 1;
  min-width: 0;
  max-width: 44px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 18px;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--border-2);
  background: transparent;
  color: var(--ink);
  transition: border-bottom-color 0.2s ease;
}
.code-digit:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.code-timer {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.code-timer circle { fill: none; stroke-width: 2.5; }
.code-timer__track { stroke: var(--border-2); }
.code-timer__fill {
  stroke: var(--spec-5);
  stroke-linecap: round;
}

/* Contact-Form: Kontext-Dropdown. Sieht aus wie die anderen Inputs,
   nur mit kleinem Chevron rechts. */
.field--select select {
  display: block;
  width: 100%;
  padding: 12px 34px 12px 0;
  border: none;
  border-bottom: 1px solid var(--border-2);
  background: transparent;
  font-family: var(--f-body);
  font-size: var(--body);
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235e5e63' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  cursor: pointer;
  transition: border-bottom-color 0.2s ease;
}
.field--select select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  align-self: start;
  justify-self: start;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn:disabled:hover .arrow { transform: translateX(0); }
.btn .arrow { transform: translateX(0); transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.form-status {
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  min-height: 1.4em;
  text-align: right;
}
.form-status.ok  { color: var(--spec-4); }
.form-status.err { color: var(--spec-1); }

/* =============================================================
   PORTFOLIO & ORPHAN PAGES (not in main nav)
   ============================================================= */

.portfolio {
  padding: clamp(72px, 13vh, 140px) 0 clamp(80px, 12vh, 140px);
  max-width: 720px;
  margin: 0 auto;
}
.portfolio__eyebrow { display: block; margin-bottom: 32px; }
.portfolio__title {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  line-height: 1.05;
}
.portfolio__title em { font-style: italic; font-weight: 300; color: var(--ink-soft); }
.portfolio__lede {
  font-size: var(--lede);
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 56px;
  max-width: 56ch;
}
.portfolio__body h2 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 48px 0 14px;
  color: var(--ink);
}
.portfolio__body h2 em { font-style: italic; color: var(--ink-soft); }
.portfolio__body h3 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  color: var(--ink);
}
/* H2 direkt gefolgt von H3 (Stack mit Frontend/Backend, Was wir tun mit
   3D/VR/AR): enger setzen, damit nicht doppelt Luft steht. */
.portfolio__body h2 + h3 { margin-top: 20px; }
.portfolio__body p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.portfolio__body ul {
  padding-left: 18px;
  margin-bottom: 14px;
}
.portfolio__body li {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 6px;
}
.portfolio__body strong {
  color: var(--ink);
  font-weight: 500;
}
.portfolio__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 36px;
  border-top: 1px solid var(--border);
}
.portfolio__list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 28px;
  align-items: baseline;
}
.portfolio__list a {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  border-bottom: 0;
  transition: color 0.2s ease;
}
.portfolio__list a:hover { color: var(--accent); border-bottom: 0; }
.portfolio__list li span {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .portfolio__list li { grid-template-columns: 1fr; gap: 6px; }
}
.portfolio__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--border-2);
  transition: border-color 0.2s ease;
}
.portfolio__body a:hover { border-bottom-color: var(--spec-3); }
.portfolio__foot {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.portfolio__foot a { color: var(--ink-muted); transition: color 0.2s ease; }
.portfolio__foot a:hover { color: var(--ink); }
.portfolio__foot--single { justify-content: flex-start; }
.portfolio__pgp {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.5;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 20px 22px;
  overflow-x: auto;
  color: var(--ink);
  margin: 24px 0;
  white-space: pre;
}

/* =============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================================= */

.legal {
  padding: clamp(72px, 13vh, 140px) 0 clamp(80px, 12vh, 160px);
  max-width: 720px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 8px;
  letter-spacing: -0.028em;
}
.legal h1 em { font-style: italic; color: var(--ink-soft); }
.legal h2 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  margin: 44px 0 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.68;
  margin-bottom: 12px;
}
.legal ul { padding-left: 18px; margin-bottom: 12px; }
.legal a {
  color: var(--ink);
  border-bottom: 1px solid var(--border-2);
  transition: border-color 0.2s;
}
.legal a:hover { border-bottom-color: var(--spec-3); }
.legal .note {
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 8px 0 32px;
  display: block;
}
.legal .placeholder {
  color: var(--ink-faint);
  font-style: italic;
}

/* =============================================================
   FOOTER
   ============================================================= */

/* =============================================================
   GLOBAL CTA
   Erscheint im base.html vor dem Footer auf jeder Seite.
   Asymmetrisches 2-Spalten-Grid: links Eyebrow/Heading/Subline,
   rechts der Button. Spektrum-Haarlinie als Akzent oben (analog
   zur Footer-Linie). Auf Mobile vertikal gestapelt.
   ============================================================= */

.site-cta {
  position: relative;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: clamp(64px, 9vh, 120px) var(--gutter);
  flex-shrink: 0;
}
.site-cta::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--gutter);
  height: 1px;
  width: clamp(80px, 18vw, 220px);
  background: linear-gradient(90deg, var(--spec-1), var(--spec-3), var(--spec-5), var(--spec-7));
}
.site-cta__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.site-cta__col--text { max-width: 56ch; }
.site-cta__eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.site-cta__heading {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.024em;
  margin: 0 0 14px;
  color: var(--ink);
}
.site-cta__sub {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
}
.site-cta__col--action {
  align-self: end;
  padding-bottom: 4px;
}
.site-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.site-cta__button:hover { background: var(--ink); color: var(--bg); }
.site-cta__arrow { transition: transform 0.25s ease; }
.site-cta__button:hover .site-cta__arrow { transform: translateX(5px); }

@media (max-width: 760px) {
  .site-cta { padding: 56px var(--gutter); }
  .site-cta__inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .site-cta__col--action { padding-bottom: 0; }
}

.site-footer {
  position: relative;
  padding: 44px var(--gutter) 36px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--gutter);
  height: 1px;
  width: clamp(80px, 18vw, 220px);
  background: linear-gradient(90deg, var(--spec-1), var(--spec-3), var(--spec-5), var(--spec-7));
}
.footer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer-row__middle {
  justify-self: center;
  color: var(--ink-faint);
  font-style: normal;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .footer-row { grid-template-columns: 1fr; gap: 10px; }
  .footer-row__middle { justify-self: start; }
}

/* =============================================================
   REVEAL ON SCROLL
   ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(56px);
  transition:
    opacity 1.1s cubic-bezier(.19,.68,.21,1.01),
    transform 1.2s cubic-bezier(.19,.68,.21,1.01);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Figures and portraits: fade + scale-up for a gentler, volumetric entrance */
.reveal--scale {
  transform: translateY(40px) scale(0.92);
}

/* List items and side-cards: slide in from the left */
.reveal--slide {
  transform: translateX(-60px);
}

/* Oversized headings: slower, more stately reveal with a bigger travel */
.reveal--big {
  transform: translateY(80px);
  transition:
    opacity 1.4s cubic-bezier(.19,.68,.21,1.01),
    transform 1.4s cubic-bezier(.19,.68,.21,1.01);
}

/* =============================================================
   MOBILE TUNING (phones, portrait)
   ============================================================= */

@media (max-width: 640px) {
  /* Header compactor */
  .site-header { gap: 10px; padding: 12px var(--gutter); }
  .wordmark { gap: 8px; }
  .wordmark-mark { width: 26px; height: 26px; }
  .wordmark-name { font-size: 15px; letter-spacing: -0.012em; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 9.5px; letter-spacing: 0.08em; }

  /* Section rhythm: cut the oversized vertical padding in half on phones */
  .hero            { padding: 40px 0 64px; }
  .vision,
  .principles,
  .pillars,
  .invite,
  .contact,
  .portfolio,
  .legal,
  .core-hero,
  .services,
  .section-head {
    padding-top: clamp(48px, 8vh, 72px);
    padding-bottom: clamp(48px, 8vh, 72px);
  }
  .section-head { padding-bottom: 40px; }
  .core-body    { padding: 36px var(--gutter) 72px; }

  /* Typography shrink for display sizes */
  .hero__title,
  .hero__title .line        { line-height: 0.96; }
  .hero__lede               { font-size: 17px; }
  .hero__meta               { margin-top: 44px; gap: 28px; }
  .hero__meta dd            { font-size: 20px; }
  .hero__eyebrow            { font-size: 10px; }
  .vision__headline         { max-width: none; margin-bottom: 32px; }
  .vision__eyebrow          { margin-bottom: 28px; }
  .vision__body p + p       { margin-top: 18px; }
  .contact__title           { margin-bottom: 20px; font-size: clamp(30px, 8.5vw, 44px); }
  .contact__lede            { margin-bottom: 28px; font-size: 16px; }
  .contact__email           { font-size: clamp(22px, 6.5vw, 30px); }
  .contact__email-label     { margin-bottom: 8px; }
  .section-head__title      { max-width: none; }
  .portfolio__title         { margin-bottom: 24px; }
  .portfolio__lede          { font-size: 17px; margin-bottom: 40px; }
  .portfolio__body h2       { font-size: 22px; margin: 32px 0 12px; }
  .portfolio__body h3       { font-size: 17px; margin: 28px 0 10px; }
  .portfolio__body h2 + h3  { margin-top: 16px; }
  .portfolio__body p,
  .portfolio__body li       { font-size: 15px; line-height: 1.6; }
  .portfolio__list a        { font-size: 19px; }
  .portfolio__list li       { padding: 16px 0; }
  .portfolio__foot          { margin-top: 56px; padding-top: 22px; }
  .portfolio__pgp           { font-size: 10.5px; padding: 16px 18px; }
  .invite h2                { margin-bottom: 20px; }
  .invite p                 { margin-bottom: 28px; font-size: 17px; }
  .invite a.email           { font-size: 28px; }
  .legal h1                 { font-size: clamp(28px, 8vw, 40px); }
  .legal h2                 { font-size: 19px; margin: 32px 0 12px; }
  .legal p, .legal li       { font-size: 14.5px; }

  /* Pull-quote reads tighter on narrow screens */
  .pull-quote               { margin: 40px 0 36px; padding-top: 20px; }
  .pull-quote p             { font-size: clamp(22px, 6.2vw, 28px); }

  /* Core drop-cap reduced so it doesn't overwhelm the narrow column */
  .core-body                { font-size: 17.5px; line-height: 1.55; }
  .core-body > p:first-child::first-letter { font-size: 4.2em; }
  .core-body p + p          { margin-top: 1.15em; }

  /* Principles cards: lower min-height so pages don't stretch */
  .principle                { min-height: 190px; padding: 30px 22px 24px; }
  .principle__idx           { margin-bottom: 24px; }
  .principle h3             { font-size: 22px; }
  .principles__header       { margin-bottom: 40px; gap: 20px; }

  /* Pillars: tighter internal padding */
  .pillar                   { padding: 22px 4px; gap: 12px; }
  .pillar__name             { font-size: clamp(26px, 8.5vw, 38px); }
  .pillar__desc             { font-size: 14px; }

  /* Hero slab shorter so headline stays above fold on portrait */
  .hero__slab               { height: 62vw; min-height: 220px; max-height: 360px; }
  .hero__slab-tick,
  .hero__slab-caption       { font-size: 8px; }

  /* Services rows get a tighter beat */
  .service                  { padding: 32px 0; gap: 18px; }
  .service__name            { font-size: clamp(24px, 7vw, 36px); }
  .service__desc            { font-size: 15.5px; }

  /* Contact auf Mobil: Top-Padding runter, Form kompakter, gap knapp */
  .contact                  { padding: 40px 0 36px; gap: 32px; min-height: 0; }
  .contact-form             { padding: 22px 18px 18px; gap: 16px; }
  .contact-form__legend     { font-size: 9px; }

  /* Reveal distances dialled back so transitions stay legible */
  .reveal                   { transform: translateY(36px); transition-duration: .9s; }
  .reveal--big              { transform: translateY(48px); transition-duration: 1s; }
  .reveal--scale            { transform: translateY(24px) scale(0.96); }
  .reveal--slide            { transform: translateX(-28px); }

  /* Footer stacks cleanly (rule already exists) but tighten inner rhythm */
  .site-footer              { padding: 32px var(--gutter) 28px; }
}

@media (max-width: 420px) {
  /* Extra-narrow handsets */
  .wordmark-mark            { width: 24px; height: 24px; }
  .wordmark-name            { font-size: 14px; }
  .nav-links                { gap: 9px; }
  .nav-links a              { font-size: 9px; letter-spacing: 0.06em; }
  .hero__title              { font-size: 38px; line-height: 0.98; }
  .hero__meta               { gap: 20px; }
  .hero__meta dd            { font-size: 17px; }
  .hero__slab               { height: 68vw; min-height: 200px; }
  .contact__email           { font-size: 26px; }
  .invite a.email           { font-size: 24px; }
  .principles__header h2    { font-size: 28px; }
  .principle h3             { font-size: 20px; }
  .portfolio__title         { font-size: clamp(30px, 9vw, 40px); }
}

/* =============================================================
   404 — page not found
   ============================================================= */

.notfound {
  position: relative;
  padding: clamp(48px, 9vh, 120px) 0 clamp(60px, 12vh, 160px);
}
.notfound__eyebrow { margin-bottom: 32px; }
.notfound__code {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(8rem, 22vw, 16rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 0;
}
.notfound__code em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}
.notfound__headline {
  font-family: var(--f-display);
  font-size: var(--h2);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 400;
  margin: 28px 0 0;
  max-width: 22ch;
}
.notfound__headline em { font-style: italic; color: var(--ink-soft); }
.notfound__lede {
  margin-top: 28px;
  max-width: 56ch;
  font-size: var(--lede);
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.5;
}
.notfound__links {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.notfound__links a {
  font-family: var(--f-mono);
  font-size: var(--meta);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.notfound__links a::after {
  content: "→";
  color: var(--ink-faint);
  transition: transform 0.25s ease, color 0.25s ease;
}
.notfound__links a:hover { color: var(--ink); }
.notfound__links a:hover::after { color: var(--ink); transform: translateX(4px); }
@media (max-width: 36rem) {
  .notfound__links { flex-direction: column; gap: 12px; }
}

/* =============================================================
   PRINT
   Bildschirm-Chrome (Header, Footer, Sprach-Switch, Skip-Link)
   wird im Druck unterdrückt; statt dessen erscheinen Briefkopf
   und Quell-Fußzeile (siehe base.html .print-only). Schriftarten
   und Farbsystem bleiben unverändert.
   ============================================================= */

.print-only { display: none; }

@media print {
  @page { margin: 2cm 1.8cm; }

  html, body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }
  body {
    display: block;
    min-height: 0;
    overflow: visible;
  }
  main { flex: none; }

  .skip-link,
  .site-header,
  .site-footer,
  .site-cta,
  .post__foot { display: none !important; }

  .print-only { display: block; }

  .print-letterhead {
    font-family: var(--f-body);
    font-size: 9pt;
    letter-spacing: 0.04em;
    color: #000;
    border-bottom: 0.5pt solid #888;
    padding-bottom: 6pt;
    margin-bottom: 18pt;
  }
  .print-letterhead .print-letterhead__brand { font-weight: 600; }
  .print-letterhead .print-letterhead__sep { margin: 0 8pt; color: #888; }

  .print-pagefoot {
    font-family: var(--f-mono);
    font-size: 8.5pt;
    color: #444;
    border-top: 0.5pt solid #888;
    padding-top: 6pt;
    margin-top: 24pt;
    word-break: break-all;
  }

  .wrap, .wrap--narrow {
    padding: 0;
    max-width: none;
    width: 100%;
  }

  .post { padding: 0; }
  .post__head { margin-bottom: 18pt; }
  .post__eyebrow {
    font-family: var(--f-mono);
    font-size: 9pt;
    letter-spacing: 0.12em;
    margin-bottom: 10pt;
    color: #000;
  }
  .post__title {
    font-family: var(--f-display);
    font-size: 24pt;
    line-height: 1.18;
    max-width: none;
    margin: 0;
    color: #000;
  }

  .post__body {
    font-size: 11pt;
    line-height: 1.55;
    max-width: none;
    color: #000;
  }
  .post__body p,
  .post__body li { orphans: 3; widows: 3; }
  .post__body h2 {
    font-family: var(--f-display);
    font-size: 14pt;
    margin: 18pt 0 6pt;
    page-break-after: avoid;
    break-after: avoid;
  }
  .post__body h3 {
    font-family: var(--f-display);
    font-size: 12pt;
    margin: 14pt 0 4pt;
    page-break-after: avoid;
    break-after: avoid;
  }
  .post__body a {
    color: #000;
    border-bottom: none;
    text-decoration: underline;
  }
  .post__body code {
    background: transparent;
    border: 0.5pt solid #888;
    padding: 0 3pt;
    font-size: 9.5pt;
  }
  .post__body pre {
    background: transparent;
    border: 0.5pt solid #888;
    padding: 8pt 10pt;
    font-size: 9pt;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .post__body pre code {
    border: none;
    padding: 0;
    font-size: inherit;
  }
  .post__body blockquote {
    border: none;
    margin: 14pt 1.4cm;
    padding: 0;
    color: #000;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .post__body blockquote p {
    font-style: italic;
    font-size: 11pt;
    line-height: 1.5;
    margin: 0 0 4pt;
  }
  .post__body blockquote p:last-child {
    font-family: var(--f-mono);
    font-style: normal;
    font-size: 8.5pt;
    letter-spacing: 0.06em;
    color: #444;
    margin-top: 6pt;
    margin-bottom: 0;
  }
  .post__body img {
    max-width: 100%;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Blog post figures — images with optional caption inside .post__body. */
.post__figure {
  margin: 2.4rem 0;
}
.post__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.post__figure--portrait {
  max-width: 420px;
}
.post__figure figcaption {
  margin-top: .55rem;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink-muted);
}

/* Hero promo call-to-action (Hinterland takeover). A clearly recognisable
   link, since the global <a> reset removes underlines. Remove with the rest
   of the SHOW_HINTERLAND_PROMO markup after the event. */
.hero__promo-cta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: gap .2s ease, color .2s ease, border-color .2s ease;
}
.hero__promo-cta:hover {
  gap: .8em;
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.hero__promo-cta .arrow { transition: transform .2s ease; }
.hero__promo-cta:hover .arrow { transform: translateX(3px); }

/* Events list (templates/{lang}/events.html). Past events are greyed out. */
.event-entry { margin-bottom: 1.6rem; }
.event-entry.is-past { opacity: .5; }
.event-entry__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: .5em;
}
.event-entry__outcome {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: .25rem;
}

