/* Über mich page: the Orbit mark turning in the hero window, the name as a portrait, the profile as one sentence, values as
   scenes, the house as doors. Shared tokens and blocks come from ../css/site.css. */

/* ---------- Hero: the mark on a band of colour; tints change as circles out of the core ---------- */
.uu-hero { --hero-fit: 12.6; --hero-fit-m: 6.2; --window-bg: var(--gelb); }
.tint { position: absolute; inset: 0; }
.tint--gelb { background: var(--gelb); }
.tint--rosa { background: var(--rosa); }
.tint--creme { background: var(--creme); }
.tint:not(.tint--gelb) { clip-path: circle(0 at 50% 50%); } /* opened by js, one after the other */
.band { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 20; }
.band ellipse { fill: none; stroke: var(--nacht); stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: 0.22; }
.mark { position: absolute; left: 50%; top: 50%; z-index: 21; width: 118cqh; height: 118cqh; transform: translate(-50%, -50%); overflow: visible; }
.mark__ring { fill: none; stroke: var(--blau); stroke-width: 3.2; }
.mark__core { fill: var(--koralle); }
.mark__big { fill: var(--nacht); }
.mark__small { fill: var(--koralle); }
/* First load: the rings draw themselves like two orbits being traced, then the companions start to travel. */
@keyframes ring-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.js .mark__ring { stroke-dasharray: 1; animation: ring-draw 1.4s var(--ease-move) 200ms both; }
.js .mark__ring + .mark__ring { animation-delay: 320ms; }

/* ---------- 01 Person: the name as a portrait; the profile as one sentence ---------- */
.portrait .section-head { margin-bottom: var(--space-5); }
.portrait__name { font-size: calc(100cqw / 5.95); line-height: 0.86; letter-spacing: -0.035em; white-space: nowrap; margin-bottom: var(--space-7); contain: layout; }
.portrait__first { font-weight: 200; }
.portrait__last { font-weight: 800; font-style: italic; color: var(--accent); }
.portrait__char { display: inline-block; }
.portrait__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.portrait__say { grid-column: 1 / 9; }
.portrait__say .text-link { font-weight: 500; }
.portrait__text { grid-column: 10 / 13; display: grid; gap: var(--space-3); padding-top: 0.6em; color: var(--muted); text-wrap: pretty; }
.portrait__note { margin-top: var(--space-7); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }

/* ---------- 02 Orbit chart: one core, the jobs on two orbits ---------- */
.orbit-chart { position: relative; aspect-ratio: 16 / 9; margin: 0 0 var(--space-6); }
.orbit-chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; } /* the rings fit the viewBox; clipping keeps any stale paint of the turning chart inside its box */
.orbit-chart__ring { fill: none; stroke: var(--fg); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0.7; }
.orbit-chart__core { fill: var(--creme); }
.orbit-chart__core-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; color: var(--blau); font-size: clamp(0.9375rem, 1.55vw, 1.5rem); line-height: 1; letter-spacing: -0.01em; }
.orbit-chart__core-label span:first-child { font-weight: 300; }
.orbit-chart__core-label span:last-child { font-weight: 800; font-style: italic; }
.orbit-chart__labels li { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1rem, 1.55vw, 1.5rem); font-weight: 400; letter-spacing: -0.01em; white-space: nowrap; will-change: transform; }
/* The companion: a dot that sits on the orbit; the label hangs off it on a plate of the surface colour, so no line runs through a word. */
.orbit-chart__labels li::before { content: ""; width: 14px; height: 14px; margin-left: -7px; border-radius: var(--round); background: var(--accent); flex: none; }
.orbit-chart__labels li[data-orbit="0"]::before { background: var(--creme); }
.orbit-chart__labels span { padding: 3px 10px 5px; border-radius: var(--round); background: var(--bg); }
.orbit-chart__labels li.is-left { flex-direction: row-reverse; }
.orbit-chart__labels li.is-left::before { margin: 0 -7px 0 0; }
html:not(.js) .orbit-chart { aspect-ratio: auto; }
html:not(.js) .orbit-chart__svg, html:not(.js) .orbit-chart__core-label { display: none; }
html:not(.js) .orbit-chart__labels { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
html:not(.js) .orbit-chart__labels li { position: static; }
.orbit-words { display: none; }
.orbit-notes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.orbit-note { grid-column: span 6; padding: var(--space-3) var(--space-5) 0 0; border-top: 1px solid var(--accent); font-size: var(--t-l); line-height: 1.38; font-weight: 300; text-wrap: pretty; }

/* ---------- 03 Weg: a sticky year, the stages scroll past ---------- */
.path__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.path__year { grid-column: 1 / 6; align-self: start; position: sticky; top: calc(var(--nav-h) + var(--space-4)); padding-top: var(--space-2); }
.year { position: relative; height: 0.84em; overflow: clip; overflow-clip-margin: 0.04em; font-size: clamp(6rem, 15cqw, 15rem); line-height: 0.84; font-weight: 800; letter-spacing: -0.05em; }
.year__digits { display: block; }
.year__range { margin-top: var(--space-3); font-size: var(--t-l); font-weight: 300; font-style: italic; color: var(--accent); }
.path__list { grid-column: 7 / 13; }
.stage { display: grid; align-content: start; gap: var(--space-2); min-height: 52svh; padding: var(--space-4) 0 var(--space-6); }
.stage:last-child { min-height: 0; }
.stage__when { font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.stage__title { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.06; font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
.stage__text { color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.stage__when::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: var(--round); border: 1.5px solid currentColor; vertical-align: -0.05em; transition: background-color var(--dur-moderate-out) linear; }
.stage.is-active .stage__when::before, html:not(.js) .stage__when::before { background: currentColor; transition: background-color var(--dur-moderate) linear; }
.stage__title { transition: font-weight var(--dur-slow-out) var(--ease-exit); }
.stage.is-active .stage__title { font-weight: 500; transition: font-weight var(--dur-slow) var(--ease-enter); }

/* ---------- 04 Werte: colour plates; the word gains weight, its proof rises below ---------- */
.values { margin-top: var(--space-2); }
.values__dots { display: none; }
.values__plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); container-type: inline-size; }
.value:last-child:nth-child(odd) { grid-column: 1 / -1; }
.value { display: grid; grid-template-rows: auto 1fr auto auto; align-content: start; gap: var(--space-3); min-height: 420px; padding: clamp(32px, 3.4vw, 56px); border-radius: var(--card); background: var(--bg); color: var(--fg); }
.value__count { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; }
.value__count span { color: var(--muted); font-weight: 400; }
.value__word { align-self: end; font-size: clamp(3rem, 1rem + 5vw, 6.5rem); line-height: 0.95; font-weight: 200; letter-spacing: -0.045em; color: var(--muted); }
.value__mark { display: inline-block; }
.value__fact { max-width: 30ch; font-size: clamp(1.5rem, 0.9rem + 1.4vw, 2.5rem); line-height: 1.14; font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
.value__fact em { font-weight: 650; }
.value__source { font-size: var(--t-small); color: var(--muted); }
.js .value:not(.is-live) .value__fact, .js .value:not(.is-live) .value__source { opacity: 0; transform: translateY(0.5em); }
/* A short contained word may animate its weight (house rule): it stands up from thin and pale to firm. */
.value.is-live .value__word, html:not(.js) .value__word { color: var(--fg); font-weight: 560; }
.js .value .value__word { transition: color var(--dur-slow) var(--ease-move), font-weight var(--dur-slow) var(--ease-move); }
.js .value .value__fact, .js .value .value__source { transition: opacity var(--dur-moderate-out) var(--ease-exit), transform var(--dur-slow-out) var(--ease-exit); }
.js .value.is-live .value__fact, .js .value.is-live .value__source { transition: opacity var(--dur-moderate) var(--ease-enter) 260ms, transform var(--dur-slow) var(--ease-enter) 260ms; }

/* Pinned (wide screens with motion, js adds .is-pinned): one plate fills the stage; the next opens as a circle out of its dot. */
.values.is-pinned { display: grid; grid-template-rows: auto 1fr; gap: var(--space-2); height: calc(100svh - var(--nav-h) - var(--space-4)); }
.values.is-pinned .values__dots { display: flex; gap: 10px; align-items: center; height: 20px; }
.values__dot { width: 10px; height: 10px; border-radius: var(--round); box-shadow: inset 0 0 0 1.5px var(--fg); transition: background-color var(--dur-moderate-out) linear; }
.values__dot.is-active { background: var(--fg); transition: background-color var(--dur-moderate) linear; }
.values.is-pinned .values__plates { position: relative; display: block; }
.values.is-pinned .value { position: absolute; inset: 0; visibility: hidden; min-height: 0; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto auto; padding: clamp(40px, 4vw, 72px); }
.values.is-pinned .value > * { grid-column: 1 / -1; }
.values.is-pinned .value.is-shown { visibility: visible; }
.values.is-pinned .value__word { font-size: min(13cqw, 26svh); }
.values.is-pinned .value__fact { grid-column: 1 / 10; max-width: none; font-size: min(3.6cqw, 6.4svh); }
.values.is-pinned .value__source { grid-column: 1 / 10; }

/* ---------- 05 Haus: doors, then the legal facts as one line ---------- */
.house__legal { display: flex; flex-wrap: wrap; align-items: center; row-gap: var(--space-1); margin-top: var(--space-6); font-size: var(--t-body); font-weight: 400; }
.house__legal .say__sep { background: var(--fg); }

/* ---------- Schluss ---------- */
.uu-close { --close-fit: 12; --close-fit-m: 6.2; } /* 12: "Deine Website, unser Job." fuellt 94 % der Breite (gemessen 700 bis 1920 px) */

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .portrait__say, .portrait__text { grid-column: 1 / -1; }
  .portrait__text { margin-top: var(--space-5); max-width: 60ch; }
  .orbit-note { grid-column: 1 / -1; padding-right: 0; margin-bottom: var(--space-4); }
  .path__year { grid-column: 1 / 5; }
  .path__list { grid-column: 5 / 13; }
}

/* ---------- Phone: own composition ---------- */
@media (max-width: 640px) {
  .portrait__name { font-size: calc(100cqw / 3.15); line-height: 0.88; white-space: normal; margin-bottom: var(--space-6); }
  .portrait__first, .portrait__last { display: block; }

  /* Phone: the chart keeps its turning companions; the words gather below as pills (no crowding on 358 px). */
  .orbit-chart { aspect-ratio: 1 / 0.8; margin-bottom: var(--space-4); }
  .orbit-chart__labels span { display: none; }
  .orbit-chart__labels li::before { width: 12px; height: 12px; margin-left: -6px; }
  .orbit-chart__core-label { font-size: 0.75rem; }
  .orbit-words { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-6); }
  .orbit-words span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: var(--round); font-size: 1rem; }
  .orbit-words span::before { content: ""; width: 10px; height: 10px; border-radius: var(--round); background: var(--accent); flex: none; }
  .orbit-words .orbit-words__inner::before { background: var(--creme); }
  .orbit-note { font-size: 1.1875rem; }

  .path__grid { grid-template-columns: 1fr; }
  .path__year { grid-column: 1; z-index: 3; top: var(--nav-h); display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin: 0 calc(-1 * var(--margin)); padding: var(--space-2) var(--margin) var(--space-2); background: var(--bg); border-bottom: 1px solid var(--line); }
  .year { font-size: 4.5rem; }
  .year__range { margin: 0; font-size: 1.125rem; }
  .path__list { grid-column: 1; }
  .stage { min-height: 0; padding: var(--space-4) 0 var(--space-5); }

  /* Values: a pile of index cards; each count stays readable as a tab of the card below the next. */
  .values__plates { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .value { position: sticky; top: calc(var(--nav-h) + 8px + var(--i, 0) * 44px); min-height: 0; gap: var(--space-2); padding: var(--space-3) var(--space-3) var(--space-4); box-shadow: 0 -1px 0 color-mix(in oklab, var(--nacht) 30%, transparent); }
  /* bis 360 px kleiner: "transparent" in 3.25rem machte die Karte bei 320 px 23 px breiter als den Bildschirm (2026-11-01) */
  .value__word { font-size: clamp(2.5rem, 12.5vw, 3.25rem); overflow-wrap: anywhere; }
  .value__fact { font-size: 1.5rem; }

  .house__legal { display: block; font-size: 1rem; line-height: 1.6; }
  .house__legal .say__sep { margin: 0 0.4em; }
}

@media (prefers-reduced-motion: reduce) {
  .js .mark__ring { animation: none; stroke-dasharray: none; }
  .stage__title, .stage__when::before, .values__dot { transition-duration: 0ms; }
  .js .value .value__word s::after, .js .value .value__fact, .js .value .value__source { transition: none; }
}

/* Without JS the big year cannot follow the stages; each stage carries its own dates. */
html:not(.js) .path__year { display: none; }
html:not(.js) .path__list { grid-column: 1 / -1; }
