/* ============================================================================
   zimmermannniklas.de — v4 „ANDRUCK"
   Petrol, Kalk und Chromgelb. Konzept, Palette und Regeln: DESIGN.md
   Regel: Chromgelb (--chrom) traegt NIE Text oder Bedeutung auf Kalk (--kalk) —
   Kontrast 1,49 : 1. Als Flaeche nur innerhalb eines Petrolrahmens: die Fuellung
   der Zeitachse sitzt in einem 3-px-Petrolrand und beruehrt das Papier nie.
   ========================================================================= */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── Token ────────────────────────────────────────────────────────────── */
:root {
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;

  /* Druckfarben */
  --tief: #0b3138;
  --tiefer: #062126;
  --kalk: #f1efe6;
  --chrom: #efc02a;
  --tief-soft: #3e5a60;
  --kalk-soft: #9fb3b7;
  --tief-link: #0e5a66;

  /* Flächenbezogene Rollen, je Sektion überschrieben */
  --plane: var(--kalk);
  --fg: var(--tief);
  --fg-soft: var(--tief-soft);
  --rule: rgba(11, 49, 56, 0.28);
  --focus: var(--tief-link);

  /* Snake-Overlay. --board-* liest js/site.js aus, --overlay-* nutzt nur das CSS. */
  --overlay-scrim: rgba(6, 33, 38, 0.86);
  --overlay-surface: #062126;
  --board-head: #f1efe6;
  /* 55 % Chrom über Tiefer, exakt gemischt — keine fünfte Farbe.
     Kopf 3,85:1 zum Körper, Körper 3,77:1 zum Brett. */
  --board-body: #867828;
  --board-target: #efc02a;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.043 0 0 0 0 0.192 0 0 0 0 0.22 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");

  --gutter: clamp(20px, 5vw, 76px);
  --measure: 62ch;
  --band: clamp(64px, 9vw, 132px);

  /* Typoskala */
  --t-d1: clamp(2.8rem, 13.6vw, 13rem);
  --t-d2: clamp(2.5rem, 5.6vw, 5.5rem);
  --t-d3: clamp(1.625rem, 3vw, 2.875rem);
  --t-d4: clamp(1.375rem, 1.9vw, 2rem);
  --t-lead: clamp(1.1875rem, 1.7vw, 1.6875rem);
  --t-body: clamp(1.0625rem, 0.9vw, 1.1875rem);
  --t-meta: clamp(0.875rem, 0.8vw, 1rem);

  --ease: cubic-bezier(0.2, 0.8, 0.25, 1);
}

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

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

body {
  margin: 0;
  background: var(--kalk);
  color: var(--tief);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--chrom);
  color: var(--tief);
}

/* Auf der Chromflaeche waere Chrom-auf-Chrom unsichtbar */
.plane--chrom ::selection {
  background: var(--tief);
  color: var(--kalk);
}

/* Skip-Link: Im Fokus wird er zu einer eigenen Chromleiste GANZ OBEN IM FLUSS.
   Er schiebt den Kopf nach unten, statt ueber etwas zu liegen — deshalb verdeckt
   er auf keiner Seite Wortmarke, Navigation oder Brotkrumen, egal welche Flaeche
   darunter beginnt. Chrom gegen den Petrolkopf darunter 8,10 : 1, Petrolschrift
   8,10 : 1, Fokusring innen in Petrol 8,10 : 1. */
.skip-link {
  --focus: var(--tief);
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 14px var(--gutter);
  background: var(--chrom);
  color: var(--tief);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: static;
  display: block;
  left: auto;
  outline: 3px solid var(--tief);
  outline-offset: -7px;
}

main:focus {
  outline: none;
}

/* ── Flächen und Raster ───────────────────────────────────────────────── */
.wrap {
  width: min(100%, 1620px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.plane {
  background: var(--plane);
  color: var(--fg);
}

.plane--chrom {
  --plane: var(--chrom);
  --fg: var(--tief);
  --fg-soft: var(--tief);
  --rule: rgba(11, 49, 56, 0.34);
  --focus: var(--tief);
}

.plane--kalk {
  --plane: var(--kalk);
  --fg: var(--tief);
  --fg-soft: var(--tief-soft);
  --rule: rgba(11, 49, 56, 0.28);
  --focus: var(--tief-link);
  /* Feine Körnung: eine Kachel, damit Kalk nach Papier aussieht, nicht nach Farbfläche */
  background-image: var(--grain);
  background-size: 180px 180px;
}

.plane--tief {
  --plane: var(--tief);
  --fg: var(--kalk);
  --fg-soft: var(--kalk-soft);
  --rule: rgba(241, 239, 230, 0.26);
  --focus: var(--chrom);
}

.plane--tiefer {
  --plane: var(--tiefer);
  --fg: var(--kalk);
  --fg-soft: var(--kalk-soft);
  --rule: rgba(241, 239, 230, 0.22);
  --focus: var(--chrom);
}

.band {
  padding-block: var(--band);
}

.band__head {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-d2);
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: clamp(36px, 4vw, 64px);
}

.band__head::after {
  content: "";
  display: block;
  width: 88px;
  height: 10px;
  margin-top: clamp(20px, 2vw, 30px);
  background: var(--tief-link);
}

.plane--tief .band__head::after,
.plane--tiefer .band__head::after {
  background: var(--chrom);
}

.plane--chrom .band__head::after {
  background: var(--tief);
}

.prose p + p {
  margin-top: 1.05em;
}

.prose a,
.note a,
.legal a,
.crumbs a,
.site-foot p a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 1px;
  transition: background-size 0.25s var(--ease), color 0.25s var(--ease);
}

.prose a:hover,
.note a:hover,
.legal a:hover,
.crumbs a:hover {
  color: var(--tief-link);
  background-size: 100% 6px;
}

.plane--tief .prose a:hover,
.plane--tief .note a:hover,
.plane--tief .legal a:hover,
.plane--tiefer .prose a:hover,
.plane--tiefer .note a:hover,
.site-foot p a:hover {
  color: var(--chrom);
}

.plane--chrom .prose a:hover,
.plane--chrom .note a:hover {
  color: var(--tief);
  background-size: 100% 8px;
}

.note {
  font-size: var(--t-meta);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 44ch;
}

/* ── Kopf ─────────────────────────────────────────────────────────────── */
.site-head {
  position: relative;
  z-index: 3;
  padding-block: clamp(14px, 1.6vw, 26px);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--fg);
  -webkit-user-select: none;
  user-select: none;
}

.plane--tief .mark:hover,
.plane--tiefer .mark:hover {
  color: var(--chrom);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.8vw, 34px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-meta);
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 12px);
  background-size: 0 2px;
  transition: background-size 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-size: 100% 2px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────
   Name und Porträt liegen in GETRENNTEN Rasterzeilen. Ihre Rechtecke können
   sich auf keiner Breite schneiden — das ist die Vorgabe aus der Abnahme. */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__head {
  container-type: inline-size;
  padding-top: clamp(18px, 2.2vw, 38px);
  padding-bottom: clamp(20px, 2.2vw, 34px);
  border-bottom: 3px solid var(--fg);
}

.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.045em;
}

.hero__line {
  display: block;
  font-size: var(--t-d1);
}

/* Der Name haengt an der Containerbreite, nicht an der Fensterbreite:
   so fuellt er jede Breite gleich weit aus und stoesst nirgends an. */
@supports (font-size: 1cqi) {
  .hero__line {
    font-size: min(15.2cqi, 14.2rem);
  }
}

.hero__line--zwei {
  padding-left: 0.055em;
}

.hero__role {
  display: block;
  margin-top: 0.3em;
  font-size: var(--t-d3);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 26ch;
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 3.6vw, 72px);
  align-items: start;
  padding-top: clamp(24px, 2.6vw, 40px);
  padding-bottom: var(--band);
}

.hero__lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--t-lead);
  line-height: 1.32;
  letter-spacing: -0.012em;
  max-width: 30ch;
}

.hero__prose {
  margin-top: clamp(22px, 2.4vw, 36px);
  max-width: 54ch;
}

.hero__figure {
  position: relative;
  margin: 0;
  /* Die Quelle ist 480 px breit — mehr als 1,1x wird nicht hochskaliert. */
  max-width: 528px;
  margin-left: auto;
}

.hero__figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--chrom);
}

.hero__figure img {
  position: relative;
  width: 100%;
  aspect-ratio: 480 / 600;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.04) contrast(1.03);
}

/* ── Was ich mache ────────────────────────────────────────────────────── */
.topics {
  border-top: 3px solid var(--tief);
}

.topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 56px);
  padding-block: clamp(30px, 3.6vw, 56px);
  border-bottom: 2px solid var(--rule);
}

.topic:last-child {
  border-bottom: 3px solid var(--tief);
}

.topic h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-d3);
  line-height: 0.98;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.topic p {
  padding-top: 0.5em;
  max-width: var(--measure);
  color: var(--fg-soft);
}

/* ── Projekte ─────────────────────────────────────────────────────────── */
.projects {
  border-top: 3px solid var(--rule);
}

.project {
  position: relative;
  border-bottom: 2px solid var(--rule);
}

.project__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 64px);
  align-items: center;
  padding-block: clamp(32px, 4vw, 68px);
}

/* Die Reihen wechseln die Seite, damit die Liste einen Takt bekommt */
.project:nth-child(even) .project__shot {
  order: 2;
}

.project__shot {
  position: relative;
  margin: 0;
}

/* Die Chromplatte liegt hinter dem BILD, nicht hinter der Kennzeichnung —
   sonst stuende Chromschrift auf Chromflaeche. */
.project__frame {
  position: relative;
  display: block;
}

.project__frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--chrom);
  transition: transform 0.4s var(--ease);
}

.project__shot img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  background: var(--kalk);
  transition: transform 0.4s var(--ease);
}

.project__tag {
  position: relative;
  margin-top: 28px;
  font-size: var(--t-meta);
  font-weight: 600;
  color: var(--chrom);
}

.project__client {
  font-size: clamp(0.9375rem, 0.95vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--chrom);
  margin-bottom: 0.7em;
}

.project__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-d3);
  line-height: 0.98;
  letter-spacing: -0.032em;
  margin-bottom: 0.45em;
}

.project__title a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 4px;
  transition: background-size 0.35s var(--ease);
}

.project__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project__text {
  max-width: var(--measure);
  color: var(--fg-soft);
}

.project:hover .project__title a,
.project:focus-within .project__title a {
  background-size: 100% 4px;
}

.project:hover .project__shot img,
.project:focus-within .project__shot img {
  transform: translate(-8px, -8px);
}

.project:hover .project__frame::before,
.project:focus-within .project__frame::before {
  transform: translate(6px, 6px);
}

.projects__note {
  margin-top: clamp(28px, 3vw, 44px);
  max-width: 62ch;
}

/* Plakette am Zeiger */
.projects-wrap {
  position: relative;
}

.badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  margin: -59px 0 0 -59px;
  pointer-events: none;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
  transition: transform 0.08s linear;
}

.badge__i {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--chrom);
  color: var(--tief);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.badge.is-on .badge__i {
  opacity: 1;
  transform: scale(1);
}

/* ── Kennzahlen ───────────────────────────────────────────────────────── */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 48px);
  margin-bottom: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(32px, 3.6vw, 56px);
  border-bottom: 3px solid var(--rule);
}

.kennzahl__wert {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 3.5rem);
  line-height: 0.92;
  letter-spacing: -0.038em;
  margin-bottom: 0.3em;
}

.kennzahl__was {
  display: block;
  font-size: var(--t-meta);
  line-height: 1.45;
  color: var(--fg-soft);
  max-width: 22ch;
}

/* ── Werdegang ────────────────────────────────────────────────────────── */
.cv__track {
  position: relative;
}

.cv__axis {
  position: relative;
  height: 16px;
  background: var(--tief);
  /* Petrolrahmen: die Chromfuellung sitzt innen und beruehrt das Papier nie */
  border: 3px solid var(--tief);
  margin-bottom: 0;
}

.cv__fill {
  position: absolute;
  inset: 0;
  background: var(--chrom);
  transform-origin: left center;
}

.cv__stops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 40px);
}

.cv__stop {
  position: relative;
  padding-top: 34px;
}

.cv__stop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 26px;
  background: var(--tief);
}

.cv__year {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.35em;
}

.cv__what {
  display: block;
  max-width: 24ch;
  color: var(--tief);
  font-size: clamp(1rem, 1vw, 1.125rem);
  line-height: 1.4;
}

.cv__degree {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-top: clamp(40px, 4.5vw, 72px);
  padding-top: clamp(20px, 2vw, 30px);
  border-top: 2px solid var(--rule);
}

.cv__degree dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-d4);
  letter-spacing: -0.03em;
}

.cv__degree dd {
  margin: 0;
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.25;
}

.cv__note {
  margin-top: clamp(28px, 3vw, 40px);
}

/* ── Kontakt ──────────────────────────────────────────────────────────── */
.contact {
  margin-top: clamp(32px, 4vw, 56px);
  border-top: 2px solid var(--rule);
}

.contact li {
  border-bottom: 2px solid var(--rule);
}

.contact a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px clamp(16px, 3vw, 48px);
  min-height: 56px;
  padding-block: clamp(18px, 2.2vw, 30px);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.contact .label {
  flex: 0 0 auto;
  width: clamp(80px, 8vw, 140px);
  font-size: var(--t-meta);
  font-weight: 600;
  color: var(--chrom);
  transition: color 0.25s var(--ease);
}

.contact .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-d3);
  line-height: 1;
  letter-spacing: -0.035em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 4px;
  transition: background-size 0.32s var(--ease);
  overflow-wrap: anywhere;
}

/* Auf der Chromfläche darf das Label nicht Chrom sein — sonst steht es unsichtbar
   auf dem eigenen Grund. Dort traegt es Petrol, wie der Wert. */
.plane--chrom .contact .label {
  color: var(--tief);
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--chrom);
}

/* Der dunklere Teal-Ton traegt auf Chrom 6,05 : 1 statt 4,58 : 1 */
.plane--chrom .contact a:hover,
.plane--chrom .contact a:focus-visible,
.plane--chrom .contact a:hover .label,
.plane--chrom .contact a:focus-visible .label {
  color: #0a424c;
}

.contact a:hover .value,
.contact a:focus-visible .value {
  background-size: 100% 4px;
}

/* ── Fuß ──────────────────────────────────────────────────────────────── */
.site-foot {
  padding-block: clamp(40px, 5vw, 76px);
  border-top: 2px solid var(--rule);
}

.site-foot__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 40px;
}

.site-foot p {
  max-width: 46ch;
  font-size: var(--t-meta);
  color: var(--fg-soft);
}

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(16px, 2vw, 32px);
}

.site-foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-meta);
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 12px);
  background-size: 0 2px;
  transition: background-size 0.3s var(--ease);
}

.site-foot__links a:hover,
.site-foot__links a:focus-visible {
  background-size: 100% 2px;
}

.site-foot__jump {
  display: none;
}

/* ── Rechtstexte ──────────────────────────────────────────────────────── */
.crumbs {
  padding-top: clamp(20px, 2.4vw, 34px);
  font-size: var(--t-meta);
  color: var(--tief-soft);
}

.crumbs .sep {
  display: inline-block;
  padding-inline: 8px;
}

.legal-head {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-d2);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: clamp(28px, 3vw, 48px);
}

.legal {
  max-width: var(--measure);
}

.legal h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-d4);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: clamp(38px, 4vw, 56px);
  margin-bottom: 0.5em;
  padding-top: 20px;
}

.legal h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 8px;
  /* Auf Kalk traegt Chrom nicht (1,49:1) — hier steht das Teal. */
  background: var(--tief-link);
}

.legal p + p {
  margin-top: 1em;
}

.legal ul {
  margin-block: 0.8em 1.1em;
  display: grid;
  gap: 8px;
}

.legal ul + p,
.legal address + p {
  margin-top: 1em;
}

.legal li {
  position: relative;
  padding-left: 22px;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 3px;
  background: var(--tief-link);
}

.addr {
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}

.linkrows {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 0.6em;
}

/* ── Overlay-Modul ────────────────────────────────────────────────────── */
.game {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
}

.game__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-scrim);
}

.game__panel {
  position: relative;
  width: min(100%, 460px);
  /* 100 % der bereits gepolsterten Rasterflaeche - nicht der ganzen Hoehe,
     sonst ragt das Panel bei mittleren Fensterhoehen oben heraus. */
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 3vw, 28px);
  background: var(--overlay-surface);
  color: var(--kalk);
  border: 3px solid var(--chrom);
}

.game__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.game__title {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--kalk);
}

/* Passerversatz: zweite Platte daneben. Der Text kommt aus --titel,
   das js/site.js setzt — eine Quelle, nicht zwei. */
.game__title::before {
  content: var(--titel, "Schlange");
  position: absolute;
  left: 3px;
  top: 2px;
  color: var(--chrom);
  z-index: -1;
}

.game__score {
  margin: 0;
  font-size: var(--t-meta);
  color: var(--kalk-soft);
}

.game__score b {
  color: var(--chrom);
  font-weight: 600;
}

.game__board {
  display: block;
  width: 100%;
  /* Das Brett haengt auch an der Fensterhoehe, damit Titel und Knoepfe Platz behalten */
  max-width: min(100%, 52vh);
  margin-inline: auto;
  height: auto;
  aspect-ratio: 1;
  background: var(--overlay-surface);
  border: 2px solid rgba(237, 231, 218, 0.28);
  touch-action: none;
}

.game__status {
  margin: 14px 0 0;
  font-size: var(--t-meta);
  line-height: 1.45;
  color: var(--kalk-soft);
  min-height: 3em;
}

.game__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.btn {
  min-height: 46px;
  padding: 10px 20px;
  border: 2px solid var(--chrom);
  background: transparent;
  color: var(--chrom);
  font-family: var(--font-body);
  font-size: var(--t-meta);
  font-weight: 600;
  cursor: pointer;
  /* KEINE Farb-Kreuzblende: waehrend einer Ueberblendung von "Chrom auf Dunkel"
     nach "Petrol auf Chrom" faellt der Kontrast zwangslaeufig unter 4,5:1.
     Die Farben springen, bewegt wird nur der Knopf. */
  transition: transform 0.18s var(--ease);
}

.btn--quiet {
  background: transparent;
  color: var(--chrom);
}

.btn--primary {
  background: var(--chrom);
  color: var(--tief);
}

.btn:hover,
.btn--quiet:hover {
  background: var(--chrom);
  border-color: var(--chrom);
  color: var(--tief);
  transform: translateY(-1px);
}

.game :focus-visible {
  outline: 3px solid var(--kalk);
  outline-offset: 2px;
}

/* Sehr flache Fenster (Querformat): Brett schrumpfen, damit Titel und beide
   Knoepfe ohne Scrollen im Panel stehen. */
@media (max-height: 620px) {
  .game__panel {
    padding: 14px;
  }
  .game__bar {
    margin-bottom: 10px;
  }
  .game__board {
    max-width: min(100%, 42vh);
  }
  .game__status {
    min-height: 0;
    margin-top: 10px;
  }
  .game__title {
    font-size: 1.5rem;
  }
}

@media (max-height: 460px) {
  .game {
    padding: 8px;
  }
  .game__panel {
    padding: 10px;
  }
  .game__board {
    max-width: min(100%, 34vh);
  }
  .game__status {
    margin-top: 8px;
    font-size: 0.8125rem;
  }
  .game__actions {
    gap: 8px;
  }
  .btn {
    min-height: 42px;
    padding: 8px 14px;
  }
}

/* ── Bewegung ─────────────────────────────────────────────────────────────
   Einlauf und Scroll-Inszenierung sind rein additiv. Beide haengen an Klassen,
   die erst js/site.js setzt (.anim bzw. .js): ohne JavaScript, ohne Scroll-
   Zeitachsen und bei reduzierter Bewegung steht jeder Inhalt sofort da. */
.anim .in {
  opacity: 0;
  transform: translateY(18px);
}

.anim .in--img {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
}

.anim .is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.52s var(--ease), transform 0.52s var(--ease);
  transition-delay: var(--d, 0ms);
}

@keyframes cv-fill-x {
  to {
    transform: scaleX(1);
  }
}

@keyframes cv-fill-y {
  to {
    transform: scaleY(1);
  }
}

@keyframes einzug {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media screen {
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.js .cv__fill {
      transform: scaleX(0);
      animation: cv-fill-x linear both;
      animation-timeline: view();
      animation-range: entry 24% cover 52%;
    }

    /* Sektionen kommen mit leichtem Versatz herein. Die Animation selbst laeuft
       in CSS, gilt aber nur mit html.js — ohne JavaScript bleibt alles sichtbar. */
    html.js .band__head,
    html.js .kennzahlen,
    html.js .topic,
    html.js .project,
    html.js .cv,
    html.js .contact,
    html.js .projects__note,
    html.js .cv__note {
      animation: einzug linear both;
      animation-timeline: view();
      animation-range: entry 4% entry 62%;
    }
  }
}
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .cv__fill {
    transform: none !important;
  }
}

/* ── Breakpoints ──────────────────────────────────────────────────────── */
@media (min-width: 1200px) {
  .hero__role {
    max-width: none;
  }
}

@media (max-width: 1199px) {
  .hero__body {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
  .project__inner {
    gap: clamp(18px, 2.4vw, 40px);
  }
}

@media (max-width: 860px) {
  .hero__body {
    grid-template-columns: 1fr;
    row-gap: clamp(24px, 4vw, 40px);
  }
  .hero__figure {
    order: -1;
    /* Deckel bleibt: 528 px sind 1,1x der 480-px-Quelle */
    margin-right: 18px;
    margin-left: 0;
  }
  .hero__figure::before {
    inset: 14px -14px -14px 14px;
  }
  .hero__figure img {
    aspect-ratio: 5 / 4;
    object-position: 50% 24%;
  }
  .hero__lead,
  .hero__prose {
    max-width: none;
  }
  .kennzahlen {
    grid-template-columns: 1fr;
    gap: clamp(18px, 4vw, 28px);
  }
  .kennzahl__was {
    max-width: 40ch;
  }
  .topic {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .project__inner {
    grid-template-columns: 1fr;
    gap: clamp(18px, 4vw, 28px);
  }
  /* Auf dem Handy steht das Bild ueber dem Eintrag — bei jeder Reihe */
  .project__shot,
  .project:nth-child(even) .project__shot {
    order: -1;
    margin-right: 14px;
  }
  .project__frame::before {
    inset: 10px -14px -10px 10px;
  }
}

/* Die Zeitachse kippt schon bei 900 px: darunter wird die Spalte fuer
   "Januar 2022" bei 28 px Schriftgroesse zu eng. */
@media (max-width: 900px) {
  .cv__axis {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 14px;
    height: auto;
  }
  .cv__fill {
    transform-origin: center top;
  }
  .cv__stops {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 38px;
  }
  .cv__stop {
    padding-top: 0;
    padding-block: clamp(20px, 4vw, 30px);
  }
  .cv__stop::before {
    top: calc(clamp(20px, 4vw, 30px) + 0.42em);
    left: -38px;
    width: 26px;
    height: 3px;
  }
  .cv__what {
    max-width: 40ch;
  }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      html.js .cv__fill {
        transform: scaleY(0);
        animation-name: cv-fill-y;
      }
    }
  }
}

@media (max-width: 640px) {
  .site-head__inner .site-nav {
    display: none;
  }
  .site-foot__jump {
    display: block;
    width: 100%;
  }
  .hero__role {
    max-width: 20ch;
  }
  .contact a {
    gap: 2px;
  }
  .contact .label {
    width: 100%;
  }
  .cv__degree {
    display: block;
  }
  .cv__degree dd {
    margin-top: 6px;
  }
}

/* Rueckfallkurve fuer Browser ohne Container-Einheiten */
@media (max-width: 380px) {
  :root {
    --t-d1: clamp(2.6rem, 12.4vw, 13rem);
  }
  .hero__figure {
    margin-right: 12px;
  }
  .hero__figure::before {
    inset: 10px -10px -10px 10px;
  }
}

/* ── Druck ────────────────────────────────────────────────────────────────
   Auf Papier gibt es keine Druckfarben-Flaechen: alles wird Tinte auf Weiss.
   Wichtig, weil Browser Hintergrundgrafiken standardmaessig NICHT drucken —
   helle Schrift auf einer nicht gedruckten Flaeche waere sonst unsichtbar. */
@media print {
  /* Sicherheitsnetz: keine Scroll-Animation darf im Druck etwas verstecken */
  *,
  *::before,
  *::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  @page {
    margin: 16mm;
  }

  html,
  body {
    background: #fff !important;
    color: #0b3138 !important;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .plane,
  .plane--chrom,
  .plane--kalk,
  .plane--tief,
  .plane--tiefer {
    --plane: #fff;
    --fg: #0b3138;
    --fg-soft: #355056;
    --rule: rgba(11, 49, 56, 0.45);
    --focus: #0b3138;
    --chrom: #0b3138;
    background: #fff !important;
    background-image: none !important;
    color: #0b3138 !important;
  }

  .project,
  .project:hover,
  .project:focus-within {
    background: transparent !important;
    color: #0b3138 !important;
  }

  .project__client,
  .project__text,
  .project__tag,
  .kennzahl__wert,
  .kennzahl__was,
  .project__title,
  .project__title a,
  .contact .label,
  .contact .value,
  .contact a,
  .note,
  .site-foot,
  .site-foot p,
  .cv__what,
  .hero__lead,
  .topic p,
  .legal,
  .prose {
    color: #0b3138 !important;
  }

  /* Rein dekorative Platten und Fuellungen haben auf Papier keinen Zweck */
  .hero__figure::before,
  .project__frame::before,
  .cv__fill,
  .cv__axis,
  .badge,
  .game,
  .site-foot__jump,
  .skip-link,
  .site-nav {
    display: none !important;
  }

  .band__head::after,
  .legal h2::before,
  .legal li::before {
    background: #0b3138 !important;
  }

  /* Der Hero ist auf Papier eine einfache Folge, kein Raster mit Leerlauf */
  .hero__head {
    container-type: normal;
    padding-block: 0 4mm;
  }

  .hero__body {
    display: block;
    padding-top: 6mm;
    padding-bottom: 8mm;
  }

  .hero__figure {
    margin-top: 6mm;
  }

  .hero__lead,
  .hero__prose {
    max-width: none;
  }

  .hero__figure img {
    width: 52mm;
    aspect-ratio: 4 / 5;
  }

  .band {
    padding-block: 6mm;
  }

  .projects,
  .topics,
  .kennzahlen {
    border-top-width: 1px;
  }

  .project__inner {
    display: block;
  }

  .project__shot {
    max-width: 96mm;
    margin-bottom: 4mm;
  }

  .site-head {
    padding-block: 0 4mm;
    border-bottom: 1px solid rgba(11, 49, 56, 0.45);
  }

  a {
    text-decoration: underline;
    background-image: none !important;
  }

  .project,
  .topic,
  .cv__stop,
  .contact li {
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  .band__head,
  .legal-head {
    break-after: avoid;
  }

  /* Ueberschriften nie allein am Seitenende. break-after: avoid allein ignoriert
     Blink hier, deshalb der robuste Weg: Die Ueberschrift reserviert per ::after
     60 mm unter sich (negativer Rand zieht den Inhalt wieder hoch) und darf nicht
     geteilt werden. Passen Ueberschrift + 60 mm nicht mehr auf die Seite, wandert
     sie mitsamt dem folgenden Block auf die naechste. */
  .band__head {
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
  }

  .band__head::after {
    display: block;
    width: 0;
    height: 60mm;
    margin-top: 0;
    margin-bottom: -60mm;
    background: none !important;
  }

  /* Der Fuss ist auf Papier knapp und bleibt beim letzten Block. Touch-Ziele
     von 44 px haben auf Papier keinen Zweck. */
  .site-foot {
    border-top: 1px solid rgba(11, 49, 56, 0.45);
    padding-block: 3mm 0;
    break-before: avoid;
    break-inside: avoid;
  }

  .site-foot__grid {
    gap: 1mm 8mm;
  }

  .site-foot p {
    max-width: none;
  }

  .site-foot__links a,
  .contact a {
    min-height: 0;
  }

  .contact a {
    padding-block: 2.5mm;
  }
}
