/* ============ Schriften (lokal, keine externen Server): Frames-System im Hero, Inter und Instrument Serif im Brief ============ */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Signature";
  src: url("fonts/signature.woff2") format("woff2");
  font-display: block;
}

/* ============ Tokens ============ */
:root {
  /* Frames-Designsystem: Schwarz und Weiß, Lila als einziger Akzent */
  --night: #0a0a0a;          /* --ink der Frames-Seite */
  --night-2: #121212;
  --night-3: #1a1a1a;
  --line-dark: rgba(255, 255, 255, .12);
  --line-dark-strong: rgba(255, 255, 255, .18);
  --fog: #ffffff;
  --fog-dim: rgba(255, 255, 255, .68);   /* --on-dark-mid */

  /* Brief (eigene Gestaltung, nicht Frames) */
  --paper: #fcfbf8;
  --ink: #121212;
  --ink-dim: #8c8a85;
  --line-light: rgba(18, 18, 18, .08);

  --lilac: #cab3d6;
  --lilac-soft: #e9e4f1;

  --bg: var(--night);
  --fg: var(--fog);
  --muted: rgba(255, 255, 255, .6);       /* --on-dark-low */

  /* Hero: Frames-Schriften */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ui: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Brief */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1);
  --gutter: max(20px, env(safe-area-inset-left));
}

html.is-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-dim);
}

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

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 30vh;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
::selection { background: var(--fg); color: var(--bg); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 8px;
}

/* ============ Hero: alles in der ersten Bildschirmlänge ============ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  /* Kein eigener Hintergrund: so blendet der Übergang zu Weiß auch hier nahtlos mit */
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

/* Warmes Licht hinter dem Porträt */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 4%;
  width: 120vmin;
  height: 120vmin;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(214, 150, 104, .14), rgba(214, 150, 104, .04) 55%, transparent);
  opacity: calc(1 - var(--tone, 0));
  pointer-events: none;
}

.hero-photo {
  position: relative;
  display: block;
  opacity: calc(1 - var(--tone, 0));
  height: clamp(220px, calc(100svh - 410px), 58svh);
  flex: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent);
  mask-image: linear-gradient(to bottom, #000 58%, transparent);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.hero-grain {
  position: absolute;
  inset: -50%;
  z-index: 2;
  opacity: calc(.07 * (1 - var(--tone, 0)));
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-bar {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 0;
  color: var(--fog);
}

.hero-meta {
  font-feature-settings: normal;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(10, 10, 10, .4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog-dim);
  font-variant-numeric: tabular-nums;
}
.hero-meta .sep { opacity: .5; }
.hero-meta time { color: var(--fog); }

.pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #43d17a;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(3.2); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  font-family: var(--ui);
  font-size: 16px;
  font-feature-settings: normal;
  width: min(100% - 2 * var(--gutter), 520px);
  margin: -64px auto 0;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fog);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .35;
}
.eyebrow span { color: var(--fog-dim); }

.name {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 13.4vw, 84px);
  line-height: .9;
  letter-spacing: -.055em;
  color: var(--fog);
}
.name-line { display: block; }
/* wie .giant em auf frames-digital.de: Lila auf Schwarz */
.name em { font-style: normal; color: var(--lilac); }

.roles {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fog-dim);
}
.roles strong { font-weight: 600; color: var(--fog); }

/* Schnellaktionen */
.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform .4s var(--ease-spring), background-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.action svg { width: 19px; height: 19px; flex: none; }
.action:hover { transform: translateY(-2px); }
.action:active { transform: scale(.97); transition-duration: .1s; }

/* Links */
.links {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 58px;
  padding: 0 14px 0 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  text-decoration: none;
  color: var(--fog);
  transition: background-color .25s, border-color .25s, transform .4s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.link:hover { border-color: var(--line-dark-strong); background-color: rgba(255, 255, 255, .04); }
.links li:first-child { grid-column: 1 / -1; }
.links li:first-child .link-sub { display: block; }
.link:active { transform: scale(.98); transition-duration: .1s; }

.link-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--night-3);
  border: 1px solid var(--line-dark);
  transition: transform .5s var(--ease-spring);
}
.link-icon svg { width: 19px; height: 19px; }
.link:hover .link-icon { transform: rotate(-6deg) scale(1.05); }

.link-text { display: grid; min-width: 0; flex: 1; }
.link-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-sub {
  display: none;
  font-size: 13px;
  color: var(--fog-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--fog-dim);
  transition: transform .45s var(--ease-spring), color .25s;
}
.link:hover .link-arrow { transform: translate(2px, -2px); color: var(--fog); }

.hero-foot {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}

.vcard {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog-dim);
  text-decoration: none;
  transition: color .25s, background-color .25s;
}
.vcard svg { width: 14px; height: 14px; }
.vcard:hover { color: var(--fog); background: rgba(255, 255, 255, .05); }
/* Etwas mehr Luft, wenn der Bildschirm hoch genug ist */
@media (min-width: 560px) {
  .link-sub { display: block; }
  .link { height: 64px; }
}

/* Desktop: Porträt links, alles Wichtige rechts */
@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    height: 100vh;
    height: 100svh;
    min-height: 660px;
  }
  .hero::before { left: 30%; top: 50%; translate: -50% -50%; }

  .hero-photo {
    position: absolute;
    inset: 0 auto 0 0;
    width: 56%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 98%), linear-gradient(to bottom, #000 70%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 55%, transparent 98%), linear-gradient(to bottom, #000 70%, transparent);
    mask-composite: intersect;
  }
  .hero-photo img { object-position: 55% 30%; }

  .hero-content {
    grid-column: 2;
    width: auto;
    max-width: 500px;
    margin: 0;
    padding: 72px var(--gutter) 40px 0;
    text-align: left;
  }
  .eyebrow::before { display: none; }
  .name { font-size: clamp(64px, 6.2vw, 104px); margin-top: 20px; }
  .roles { font-size: 16px; margin-top: 18px; }
  .actions { margin-top: 32px; }
  .hero-foot { justify-content: flex-start; margin-left: -14px; margin-top: 16px; }
}

@media (min-width: 960px) and (max-height: 760px) {
  .name { font-size: clamp(56px, 5.4vw, 84px); }
  .actions { margin-top: 24px; }
}

/* Auftritt beim Laden */
.js .hero-photo img { animation: photo-in 2.2s var(--ease-out) both; }
.js .hero-bar { animation: fade-in 1.2s .6s var(--ease-out) both; }
@keyframes photo-in {
  from { opacity: 0; transform: scale(1.06); filter: blur(8px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes fade-in { from { opacity: 0; } }

/* ============ Markenfarben beim Hovern ============ */
.action svg { transition: color .3s, transform .5s var(--ease-spring); }
.action:hover svg { transform: rotate(-8deg) scale(1.08); }
.action--phone:hover svg { color: #34c759; }
.action--wa:hover svg { color: #25d366; }
.action--mail:hover svg { color: #0a84ff; }

/* Farbfläche hat exakt die Kachelform (inkl. Rand), kein Clipping nötig, daher keine Farbpixel an den Ecken */
.link-icon { position: relative; isolation: isolate; backface-visibility: hidden; }
.link-icon::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--brand, transparent);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.link-icon svg { transition: color .3s; }
.link:hover .link-icon::before { opacity: 1; }
.link:hover .link-icon { border-color: transparent; }

.link--insta { --brand: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.link--linkedin { --brand: #0a66c2; }
.link--frames { --brand: var(--lilac); }
.link--frames:hover .link-icon svg { color: var(--ink); }

/* ============ Übergang zum Brief ============ */
.letter-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: clamp(110px, 18vh, 180px) 0 clamp(70px, 12vh, 120px);
  font-size: 15px;
  color: var(--muted);
}
.letter-intro span { color: var(--fg); }

/* ============ Brief ============ */
.letter {
  /* Ein festes Raster für den ganzen Brief */
  --section-gap: clamp(96px, 12vw, 136px);
  --head-gap: 24px;
  --quote-gap: clamp(56px, 7vw, 72px);
  position: relative;
  width: min(100% - 2 * var(--gutter), 620px);
  margin: 0 auto;
  padding-bottom: 40px;
}

.letter section + section { margin-top: var(--section-gap); }
.letter section > :last-child { margin-bottom: 0; }

.letter p,
.letter blockquote {
  font-size: clamp(18px, 2.1vw, 20px);
  line-height: 1.62;
  letter-spacing: -.008em;
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

.letter h2 {
  margin: 0 0 var(--head-gap);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -.015em;
}

.letter .opener {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 1.1em;
  text-wrap: balance;
}

.letter blockquote {
  margin: var(--quote-gap) 0 var(--head-gap);
  padding: 0;
}
.letter blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.letter blockquote p::before { content: "„"; }
.letter blockquote p::after { content: "“"; }

.letter a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color .2s;
}
.letter a:hover { text-decoration-color: currentColor; }

/* Lesefokus: nur der aktive Absatz ist voll da */
.js [data-read] {
  color: var(--muted);
  transition: color .5s var(--ease-out);
}
.js [data-read].is-active,
.js [data-read].is-read-all { color: var(--fg); }

/* Stern-Cursor neben dem aktiven Absatz */
.cursor {
  position: absolute;
  top: 0;
  left: -44px;
  width: 12px;
  height: 12px;
  color: var(--fg);
  opacity: 0;
  pointer-events: none;
  transition: transform .7s var(--ease-spring), opacity .4s;
}
.cursor svg { width: 100%; height: 100%; animation: spin 9s linear infinite; }
.cursor.is-on { opacity: 1; }
@keyframes spin { to { rotate: 1turn; } }
@media (max-width: 760px) { .cursor { display: none; } }

/* Unterschrift */
.sign { margin-top: 3.2em; }
.letter .sign p { margin: 0; }
.letter .sign-meta { font-size: 16px; color: var(--muted); }
.sign-meta em {
  font-family: var(--serif);
  font-size: 1.25em;
  letter-spacing: -.01em;
  color: var(--fg);
}

.letter .signature {
  position: relative;
  margin-top: .45em;
  padding-top: .12em;
  font-family: "Signature", cursive;
  font-size: clamp(64px, 11vw, 92px);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--fg);
  rotate: -4deg;
  transform-origin: 0 50%;
  width: max-content;
}
.signature img { max-width: 280px; height: auto; }
.signature.has-img span { display: none; }
.signature:not(.has-img) img { display: none; }
/* Zurücksetzen ohne sichtbaren Rücklauf, Schreiben wie mit dem Stift */
.js .signature { clip-path: inset(-20% 100% -20% 0); }
.js .signature.is-written {
  clip-path: inset(-20% -10% -20% 0);
  transition: clip-path 2.4s cubic-bezier(.55, .1, .35, 1) .35s;
}

/* ============ Footer ============ */
.site-footer {
  width: min(100% - 2 * var(--gutter), 620px);
  margin: 0 auto;
  padding: 80px 0 calc(140px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line-light);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--fg); }

/* ============ Positionsanzeige ============ */
.edge-blur {
  position: fixed;
  inset: auto 0 0;
  height: 120px;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s;
}
.edge-blur span {
  position: absolute;
  inset: 0;
}
.edge-blur span:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); mask: linear-gradient(transparent, #000 25%); -webkit-mask: linear-gradient(transparent, #000 25%); }
.edge-blur span:nth-child(2) { backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px); mask: linear-gradient(transparent 25%, #000 50%); -webkit-mask: linear-gradient(transparent 25%, #000 50%); }
.edge-blur span:nth-child(3) { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); mask: linear-gradient(transparent 50%, #000 75%); -webkit-mask: linear-gradient(transparent 50%, #000 75%); }
.edge-blur span:nth-child(4) { background: linear-gradient(transparent, color-mix(in srgb, var(--paper) 85%, transparent)); }
html.is-light .edge-blur { opacity: 1; }

.dock {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  translate: -50% 0;
  width: max-content;
  max-width: calc(100vw - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(24px) scale(.96);
  pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-spring);
}
.dock.is-on { opacity: 1; transform: none; pointer-events: auto; }

.dock-row { display: flex; align-items: center; gap: 6px; }

.island,
.dock-top,
.dock-menu {
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(0, 0, 0, .06);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 10px 32px -6px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.island {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .4s var(--ease-spring);
}
.island:active { transform: scale(.97); }

.island-label {
  display: block;
  flex: none;
  overflow: hidden;
  white-space: nowrap;
  transition: width .5s var(--ease-spring);
}
.island-text { display: inline-block; transition: opacity .2s, transform .35s var(--ease-out); }
.island-text.is-swapping { opacity: 0; transform: translateY(6px); }

.island-ring { width: 16px; height: 16px; rotate: -90deg; }
.island-ring circle { fill: none; stroke-width: 2; stroke: rgba(0, 0, 0, .1); }
.island-ring .island-ring-bar {
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.dock-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  scale: .6;
  margin-left: -50px;
  pointer-events: none;
  transition: opacity .3s, scale .5s var(--ease-spring), margin .5s var(--ease-spring);
}
.dock-top svg { width: 16px; height: 16px; }
.dock.has-top .dock-top { opacity: 1; scale: 1; margin-left: 0; pointer-events: auto; }

.dock-menu {
  min-width: 248px;
  padding: 8px;
  border-radius: 22px;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: translateY(10px) scale(.94);
  visibility: hidden;
  transition: opacity .25s, transform .45s var(--ease-spring), visibility 0s .45s;
}
.dock.is-open .dock-menu {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .25s, transform .45s var(--ease-spring), visibility 0s;
}
.dock-menu ol { list-style: none; margin: 0; padding: 0; }
.dock-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(18, 18, 18, .55);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.dock-menu a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity .2s;
}
.dock-menu a:hover { background: rgba(0, 0, 0, .045); color: var(--ink); }
.dock-menu a[aria-current="true"] { color: var(--ink); }
.dock-menu a[aria-current="true"]::before { opacity: 1; }

/* ============ Einblenden ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + 150ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ============ Ohne JS: Brief direkt auf Papier ============ */
.no-js .letter-intro,
.no-js .letter,
.no-js .site-footer { background: var(--paper); color: var(--ink); }
.no-js .letter, .no-js .site-footer { width: auto; padding-inline: max(var(--gutter), calc((100% - 620px) / 2)); }
.no-js .dock, .no-js .edge-blur, .no-js .cursor { display: none; }

/* ============ Bewegung reduzieren ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .cursor svg { animation: none; }
}

/* ============ Rechtliche Seiten ============ */
.legal-page { --bg: var(--paper); --fg: var(--ink); --muted: var(--ink-dim); }
.legal {
  width: min(100% - 2 * var(--gutter), 680px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 40px;
}
.legal-top {
  display: flex;
  align-items: center;
  margin-left: -2px;
  margin-bottom: clamp(56px, 10vh, 96px);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.back:hover { color: var(--ink); }
.legal h1 {
  margin: 0 0 .8em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 76px);
  line-height: .95;
  letter-spacing: -.025em;
}
.legal section {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 12px;
  padding: 28px 0;
  border-top: 1px solid var(--line-light);
}
.legal .num {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: .35em;
}
.legal h2 {
  margin: 0 0 .5em;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.legal section p { color: #3a3936; line-height: 1.65; }
.legal section p + p { margin-top: .9em; }
@media (max-width: 520px) {
  .legal section { grid-template-columns: 1fr; }
  .legal .num { padding: 0 0 6px; }
}
