/* ---------------------------------------------------------------------------
   id2alumni – profile page, pixel branding (same kit as the visualization):
   black on white, faint dot grid, square corners, SoLow for display, KMR Melange Grotesk for reading.
   --------------------------------------------------------------------------- */
@font-face { font-family: 'SoLow'; font-weight: 400; font-display: swap; src: url(fonts/solow-regular.woff2) format('woff2'); }
@font-face { font-family: 'KMR Melange Grotesk'; font-weight: 400 500; font-style: normal; font-display: swap; src: url(fonts/kmr-melange-grotesk-regular.woff2) format('woff2'); }
@font-face { font-family: 'KMR Melange Grotesk'; font-weight: 400 500; font-style: italic; font-display: swap; src: url(fonts/kmr-melange-grotesk-italic.woff2) format('woff2'); }
@font-face { font-family: 'KMR Melange Grotesk'; font-weight: 600 800; font-style: normal; font-display: swap; src: url(fonts/kmr-melange-grotesk-bold.woff2) format('woff2'); }

:root {
  --ink: #000; --paper: #fff; --soft: #555; --rule: #d9d9d9; --tint: #efefef; --mark-rgb: 0, 0, 0;
  color-scheme: light;
  --font: 'KMR Melange Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --pixel: 'SoLow', 'KMR Melange Grotesk', ui-monospace, monospace;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --shell: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #fff; --paper: #000; --soft: #b5b5b5; --rule: #3a3a3a; --tint: #1c1c1c; --mark-rgb: 255, 255, 255; color-scheme: dark; }
}
:root[data-theme="dark"] { --ink: #fff; --paper: #000; --soft: #b5b5b5; --rule: #3a3a3a; --tint: #1c1c1c; --mark-rgb: 255, 255, 255; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(16px, 0.4vw + 12px, 22px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

/* top bar */
.top { border-bottom: 2px solid var(--ink); }
.top .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.top__brand { display: flex; align-items: center; gap: .7rem; font-family: var(--pixel); text-transform: uppercase; text-decoration: none; font-size: 1.15rem; line-height: 1; }
.top__brand img { width: 1.6rem; height: 1.6rem; display: block; }
.top__link { font-size: .95rem; }

/* header */
.head { background-image: radial-gradient(circle, rgba(var(--mark-rgb), .2) 0.8px, transparent 1.1px); background-size: 10px 10px; padding-block: clamp(2rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem); }
.eyebrow { margin: 0 0 .8rem; font-family: var(--pixel); text-transform: uppercase; font-size: .95rem; letter-spacing: .02em; }
.name { margin: 0; font-family: var(--pixel); font-weight: 400; text-transform: uppercase; line-height: .95; font-size: clamp(2.2rem, 9.5vw, 7rem); overflow-wrap: anywhere; }
.facts { margin: 1.4rem 0 0; font-size: clamp(1.05rem, .9rem + .6vw, 1.5rem); line-height: 1.3; font-weight: 500; max-width: 40rem; }
.facts span { color: var(--soft); font-weight: 400; }

/* sections */
section { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 2px solid var(--ink); }
.sec-title { display: flex; align-items: baseline; gap: .9rem; margin: 0 0 1.6rem; font-family: var(--pixel); font-weight: 400; text-transform: uppercase; font-size: clamp(1.3rem, 3.2vw, 2rem); line-height: 1; }
.sec-title small { font-size: .55em; color: var(--soft); }

/* photos then / now */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 3vw, 2rem); }
.photo { margin: 0; }
.ph { position: relative; aspect-ratio: 4 / 5; width: 100%; background-color: var(--tint); background-image: radial-gradient(circle, rgba(var(--mark-rgb), .35) 1px, transparent 1.4px); background-size: 10px 10px; box-shadow: inset 0 0 0 2px var(--ink); display: grid; place-items: center; }
.ph b { font-family: var(--pixel); font-weight: 400; text-transform: uppercase; font-size: clamp(.9rem, 2.4vw, 1.4rem); background: var(--paper); padding: .35rem .6rem; box-shadow: 0 0 0 2px var(--ink); }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { margin-top: .6rem; font-family: var(--pixel); text-transform: uppercase; font-size: 1rem; }
.photo figcaption span { display: block; font-family: var(--font); text-transform: none; color: var(--soft); font-size: .9rem; margin-top: .1rem; }

/* survey data */
.data { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(1.5rem, 5vw, 4rem); margin: 0; }
.data > div { padding-block: .85rem; border-top: 1px solid var(--rule); }
.data dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.data dd { margin: .15rem 0 0; font-size: 1.1rem; line-height: 1.35; font-weight: 500; }
.data dd.num { font-family: var(--pixel); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.data .wide { grid-column: 1 / -1; }
.said { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 5vw, 4rem); margin-top: 2.2rem; }
.said blockquote { margin: 0; }
.said p { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.22; letter-spacing: -.01em; }
.said cite { display: block; margin-bottom: .6rem; font-style: normal; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }

/* poster */
.poster { max-width: 34rem; }
.poster .ph { aspect-ratio: 5 / 7; }
.btn { display: inline-block; margin-top: 1rem; padding: .7rem 1.1rem; font-family: var(--pixel); text-transform: uppercase; font-size: 1rem; text-decoration: none; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.btn:hover { background: var(--paper); color: var(--ink); }

/* footer */
.foot { border-top: 2px solid var(--ink); padding-block: 2rem 3rem; font-size: .9rem; color: var(--soft); }
.foot .shell { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.note { margin-top: 2rem; padding: .9rem 1.1rem; box-shadow: inset 0 0 0 2px var(--ink); font-size: .9rem; background: var(--paper); }

@media (max-width: 40rem) {
  .data, .said { grid-template-columns: 1fr; }
}

/* ---- profile v2: one photo (today), text answers only ---- */
.head__grid { display: grid; grid-template-columns: 1fr minmax(9rem, 20rem); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 0 0 2px var(--ink); background: var(--tint); }
.meta { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; font-size: 1rem; }
.meta b { display: inline-block; margin-right: .4rem; font-weight: 400; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.qas { display: grid; gap: 2rem; max-width: 46rem; }
.qa h3 { margin: 0 0 .5rem; font-family: var(--pixel); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; }
.qa p { margin: 0; font-size: clamp(1.05rem, .95rem + .3vw, 1.3rem); line-height: 1.5; }
@media (max-width: 40rem) {
  .head__grid { grid-template-columns: 1fr; }
  .portrait { order: -1; max-width: 12rem; }
}

/* ---- overview: grid of all profiles ---- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: clamp(1.2rem, 3vw, 2.2rem) clamp(1rem, 2.5vw, 1.8rem); }
.card { display: block; text-decoration: none; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 0 0 2px var(--ink); background: var(--tint); }
.card span { display: block; margin-top: .7rem; font-family: var(--pixel); text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; overflow-wrap: anywhere; }
.card:hover span, .card:focus-visible span { text-decoration: underline; text-underline-offset: .22em; }
.card:hover img { box-shadow: 0 0 0 4px var(--ink); }
.lead { margin: 1.4rem 0 0; max-width: 40rem; font-size: clamp(1.05rem, .9rem + .6vw, 1.5rem); line-height: 1.3; font-weight: 500; }

/* ---- Hartmut Esslinger: homage, works, timeline (page built by hand, not by the generator) ---- */
.pull { margin: 0 0 1.8rem; max-width: 46rem; }
.pull p { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.22; letter-spacing: -.01em; }
.pull cite { display: block; margin-top: .6rem; font-style: normal; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.prose { display: grid; gap: 1.15rem; max-width: 46rem; }
.prose p { margin: 0; font-size: clamp(1.05rem, .95rem + .3vw, 1.3rem); line-height: 1.5; }
.signoff { margin-top: 2.2rem; }
.signoff p { margin: 0 0 .5rem; font-family: var(--pixel); text-transform: uppercase; font-size: 1.05rem; }
.signoff img { display: block; width: clamp(9rem, 26vw, 14rem); height: auto; }
.photos--work { display: flex; flex-wrap: wrap; gap: clamp(.8rem, 3vw, 2rem); align-items: flex-start; }
.photos--work .photo { flex: 1 1 0; min-width: 15rem; }   /* flex-grow per figure = its aspect ratio, so both pictures end up the same height */
.photo--work img { box-shadow: 0 0 0 2px var(--ink); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.tl li { border-top: 2px solid var(--ink); padding-top: .75rem; }
.tl b { display: block; margin-bottom: .45rem; font-family: var(--pixel); font-weight: 400; font-size: 1.15rem; line-height: 1.1; }
.tl p { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .signoff img { filter: invert(1); } }
:root[data-theme="dark"] .signoff img { filter: invert(1); }

/* ---- overview: the professor, set apart above the grid ---- */
.featured { margin: 0 0 clamp(2rem, 5vw, 3rem); padding-bottom: clamp(1.6rem, 4vw, 2.4rem); border-bottom: 2px solid var(--ink); }
.featured .card { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.featured .card span { margin-top: 0; font-size: clamp(1.3rem, 4vw, 2.2rem); }
.featured .card span small { display: block; margin-top: .5rem; font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .8rem; line-height: 1.4; color: var(--soft); }

/* ---- Podcast: Spotify-Player, wird erst auf Klick geladen ---- */
[hidden] { display: none !important; }
.cast { max-width: 46rem; }
.cast__box { position: relative; aspect-ratio: 16 / 9; background: #fff; border: 3px solid #000; overflow: hidden; }
.cast__box.is-on { border: 0; background: none; }
.cast__box iframe { width: 100%; height: 100%; border: 0; display: block; }
.cast__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Play-Button aus dem Figma-Entwurf (96 × 96, schwarz, weißes Pixel-Dreieck), mittig auf dem Thumbnail */
.cast__start { position: absolute; left: 50%; top: 50%; width: clamp(3.5rem, 12vw, 6rem); aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; background: #000 url("play.svg") center / 100% 100% no-repeat; image-rendering: pixelated; cursor: pointer; }
.cast__start:hover { transform: translate(-50%, -50%) scale(1.06); }
.cast__start:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.cast__note { margin: .7rem 0 0; font-size: .85rem; line-height: 1.45; color: var(--soft); }


/* Rueck-Link zur Profilliste */
.crumb { margin: 0 auto; padding-block: .8rem; font-size: .95rem; }
.crumb a { text-decoration: none; font-family: var(--pixel); text-transform: uppercase; }
.crumb a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
