/* ==========================================================================
   medikations-managerin.de – Stylesheet
   Look: "Fachjournal" – warm paper, ink navy, cobalt accent, Manrope display.
   No external requests: all fonts are self-hosted (see /assets/fonts).
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f2eee6;
  --paper-2: #ebe6db;
  --card: #fbf9f4;
  --ink: #131821;
  --ink-2: #3a414d;
  --muted: #5e6470;
  --rule: #cfc7b7;
  --rule-2: #b9b09e;
  --card-rule: #d9d2c3;
  --accent: #2340b8;
  --accent-light: #9fb1f5;
  --signal: #9e3512;
  --signal-bg: #f6e3da;
  --navy: #0f1c33;
  --navy-2: #0b1528;
  --navy-card: #162642;
  --navy-rule: #2e4064;
  --on-navy: #ede8dd;
  --on-navy-2: #c9ced8;
  --on-navy-muted: #a9b1c2;

  --serif: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 7vw, 120px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 6px;
  --shadow: 0 30px 50px -35px rgba(19, 24, 33, 0.4);
  --shadow-strong: 0 50px 80px -40px rgba(19, 24, 33, 0.55);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* 3D scenes may extend past the viewport – clip horizontally, keep vertical shadows */
main { overflow-x: clip; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }

.serif { font-family: var(--serif); font-weight: 800; }
.mono { font-family: var(--mono); }
em { font-style: italic; }
/* accent words inside headlines: light weight instead of italic */
:is(.display, .h2, .h3, .statement__quote, .legal__title) em { font-style: normal; font-weight: 300; }
.accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}
.skip-link:focus { top: 16px; color: var(--paper); }

.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker__no { color: var(--accent); }
.kicker > span { white-space: nowrap; }
.kicker__line { flex-shrink: 0; }
.kicker__line { width: 40px; height: 1px; background: currentColor; }

.display {
  font-family: var(--serif);
  font-size: clamp(42px, 5.6vw, 80px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 580px; }
.lede strong { font-weight: 600; color: var(--ink); }
.body-2 strong { font-weight: 600; color: var(--ink); }
.contact-card__role strong { font-weight: 600; color: var(--paper); }
.body-2 { color: var(--ink-2); }
.small { font-size: 14px; color: var(--muted); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex-shrink: 0; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { color: #fff; background: #1b3396; }
.btn--ink { background: var(--ink); color: var(--paper); min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn--ink:hover { color: var(--paper); }
.btn--light { background: var(--on-navy); color: var(--navy); }
.btn--light:hover { color: var(--navy); background: #fff; }

.link-u { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: var(--ink); }
.brand__word { font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.brand__word b { font-weight: 800; }
.brand__word span { font-weight: 300; color: var(--accent); }
.brand svg { flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav a[aria-current="page"] { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* mobile menu: <details>, works without JavaScript */
.menu { display: none; }
.menu > summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span { width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.2s; }
.menu[open] > summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu[open] > summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 32px;
  background: var(--navy);
  color: var(--on-navy);
}
.menu__panel a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #2a3a58;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.menu__panel a span { font-family: var(--mono); font-size: 11px; color: var(--accent-light); }
.menu__panel a:hover,
.menu__panel a[aria-current="page"] { color: var(--accent-light); }
.menu__panel .btn { margin-top: 24px; font-family: var(--sans); font-size: 16px; border: 0; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); border-top: 1px solid var(--rule); }
.section--alt { background: var(--paper-2); }
.section--flush { border-top: 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head__title { display: flex; flex-direction: column; gap: 22px; }
.section-head p { max-width: 360px; font-size: 16px; color: var(--ink-2); }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* ---------- Hero (home) ---------- */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-block: 72px 110px; min-height: 760px; }
.hero__copy { display: flex; flex-direction: column; gap: 34px; padding-top: 24px; position: relative; z-index: 2; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 3D stack – rotation driven by --rx/--ry (set in main.js) */
.stack { position: relative; perspective: 1800px; perspective-origin: 50% 40%; min-height: 620px; }
.stack__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -18deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.plan {
  position: absolute;
  left: 40px;
  top: 20px;
  width: 460px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-radius: var(--radius);
  box-shadow: 0 50px 80px -40px rgba(19, 24, 33, 0.35);
}
.plan__head { display: flex; justify-content: space-between; align-items: baseline; }
.plan__title { font-family: var(--serif); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.plan__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.plan__row { display: grid; grid-template-columns: 1.6fr 0.8fr 1fr; padding: 12px 0; border-bottom: 1px solid #e3ddd0; font-size: 15px; }
.plan__row--head { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted); padding: 0 0 10px; border-bottom: 1px solid var(--ink); }
.plan__row--flag { background: var(--signal-bg); margin-inline: -8px; padding-inline: 8px; }
.plan__row--flag > span:first-child { color: var(--signal); font-weight: 500; }
.plan__row .mono { font-size: 14px; }

.finding {
  position: absolute;
  left: 250px;
  top: 300px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 60px 90px -30px rgba(19, 24, 33, 0.55);
  transform: translateZ(110px);
}
.finding__kicker { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: #f0a07f; }
.finding__dot { width: 8px; height: 8px; border-radius: 50%; background: #e0693a; }
.finding__title { font-family: var(--serif); font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.finding p { font-size: 14px; line-height: 1.55; color: var(--on-navy-2); }
.finding__action { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid #333b4a; font-size: 13px; }

.tag3d {
  position: absolute;
  left: 0;
  top: 190px;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transform: translateZ(70px);
  box-shadow: 0 24px 40px -20px rgba(19, 24, 33, 0.5);
}

.pill { position: absolute; left: 470px; top: 40px; width: 120px; height: 120px; transform-style: preserve-3d; animation: pill-float 7s ease-in-out infinite; }
.pill__layer { position: absolute; inset: 0; border-radius: 50%; }
.pill__layer--1 { background: #d8d2c4; transform: translateZ(-14px); }
.pill__layer--2 { background: #e4dfd3; transform: translateZ(-7px); }
.pill__layer--3 {
  background: #fdfcf9;
  box-shadow: inset 0 -10px 18px rgba(19, 24, 33, 0.1), inset 0 8px 14px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pill__layer--3::after { content: ""; width: 86px; height: 3px; background: var(--rule); border-radius: 2px; }
@keyframes pill-float {
  0%, 100% { transform: translateZ(140px) rotateX(58deg) rotateZ(-24deg) translateY(0); }
  50% { transform: translateZ(140px) rotateX(58deg) rotateZ(-24deg) translateY(-14px); }
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding-block: 96px 110px; }
.page-hero__copy { grid-column: span 7; display: flex; flex-direction: column; gap: 32px; }
.page-hero__visual { grid-column: 8 / span 5; position: relative; }
.page-hero--text .page-hero__copy { grid-column: span 10; }

/* ---------- Statement ---------- */
.statement__label { grid-column: span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.statement__body { grid-column: span 9; display: flex; flex-direction: column; gap: 56px; }
.statement__quote { font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; color: var(--ink-2); }

/* ---------- Format cards ---------- */
.fan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fan-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 440px;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fan-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fan-card__no { font-family: var(--serif); font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.fan-card__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-align: right; }
.fan-card__title { font-family: var(--serif); font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.fan-card p { font-size: 15px; color: var(--ink-2); }
.fan-card__more { margin-top: auto; font-size: 14px; }
.fan-card.fan-card--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fan-card--dark p { color: var(--on-navy-2); }
.fan-card--dark .fan-card__meta { color: var(--on-navy-muted); }
.fan-card--dark .fan-card__no { color: var(--accent-light); }
.fan-card--dark .fan-card__more { color: var(--paper); }

/* ---------- Chips ---------- */
.chips-row { display: flex; align-items: center; gap: 28px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li { padding: 9px 16px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 14px; line-height: 1.3; }

/* ---------- Audience columns ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.col-rule { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; border-top: 2px solid var(--ink); }
.col-rule .h3 { font-size: 28px; line-height: 1.1; }
.col-rule p { font-size: 16px; color: var(--ink-2); }

/* ---------- Portrait (3D) ---------- */
.portrait { perspective: 1400px; }
.portrait__scene { position: relative; width: min(440px, 100%); aspect-ratio: 440 / 600; transform-style: preserve-3d; transform: rotateY(12deg) rotateX(3deg); }
.portrait--flip .portrait__scene { transform: rotateY(-12deg) rotateX(3deg); margin-inline: auto; }
.portrait__plate { position: absolute; inset: 0; background: var(--accent); border-radius: 4px; transform: translate3d(-36px, 40px, -90px); }
.portrait--flip .portrait__plate { transform: translate3d(40px, 40px, -90px); }
.portrait__frame { position: absolute; inset: 0; border: 1px solid var(--rule-2); border-radius: 4px; transform: translate3d(60px, -30px, -40px); }
.portrait--flip .portrait__frame { transform: translate3d(-50px, -30px, -40px); }
.portrait__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 4px; box-shadow: var(--shadow-strong); }
.portrait__tag {
  position: absolute;
  right: -40px;
  bottom: 60px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transform: translateZ(60px);
  box-shadow: 0 24px 40px -24px rgba(19, 24, 33, 0.5);
}
.portrait--flip .portrait__tag { right: auto; left: -48px; bottom: 56px; }

.bio { display: flex; flex-direction: column; gap: 32px; }
.bio__name { display: flex; flex-direction: column; gap: 10px; }

.deflist { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.deflist > div { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.deflist dt { font-weight: 500; }
.deflist dd { color: var(--muted); }
.deflist--stack > div { grid-template-columns: 1fr; gap: 4px; }
.deflist--stack dd { font-size: 15px; }

.members { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.members__list { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; font-family: var(--serif); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Books (3D) ---------- */
.books { display: flex; flex-wrap: wrap; gap: 56px; perspective: 1200px; padding: 20px 0 0 20px; align-items: flex-end; }
.book { display: flex; flex-direction: column; gap: 22px; width: 200px; }
.book__obj { position: relative; width: 170px; height: 240px; transform-style: preserve-3d; transform: rotateY(32deg) rotateX(4deg); }
.book__spine { position: absolute; left: -8px; top: 0; width: 16px; height: 100%; background: #b85600; transform: rotateY(-90deg); }
.book__spine--ma { background: #7a1f2e; }
.book__back { position: absolute; inset: 0; background: var(--card); transform: translateZ(-8px); }
.book__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateZ(8px); border-radius: 0 3px 3px 0; box-shadow: 30px 40px 60px -30px rgba(19, 24, 33, 0.6); }
.book__box { width: 210px; height: auto; margin-left: -12px; filter: drop-shadow(16px 26px 22px rgba(19, 24, 33, 0.3)); }
.book__meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.book__meta strong { font-weight: 500; }
.book__meta span { color: var(--muted); }

/* ---------- Lists: talks & publications ---------- */
.talks { display: flex; flex-direction: column; border-top: 1px solid var(--ink); list-style: none; }
.talks li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.talks__title { display: block; font-size: 17px; font-weight: 500; line-height: 1.4; }
.talks__where { display: block; font-size: 14px; color: var(--muted); }

.pubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; list-style: none; }
.pubs li { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--rule); }
.pubs__src { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--accent); }
.pubs__title { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.pubs__authors { font-size: 13px; color: var(--muted); }

/* ---------- Checklist ---------- */
.checklist { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.checklist li { display: flex; gap: 14px; font-size: 17px; line-height: 1.5; }
.checklist svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Format detail rows (Leistungen) ---------- */
.format { row-gap: 40px; }
.format__no { grid-column: span 4; display: flex; flex-direction: column; gap: 18px; }
.format__numeral { font-family: var(--serif); font-size: 110px; font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; color: var(--accent); }
.format__body { grid-column: 5 / span 5; display: flex; flex-direction: column; gap: 26px; }
.format__body .h2 { font-size: clamp(30px, 3vw, 44px); }
.format__body .lede { max-width: none; }
.format__facts { grid-column: 10 / span 3; padding-top: 8px; }
.facts { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.facts > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { font-size: 16px; line-height: 1.5; }

.topics { display: flex; flex-direction: column; gap: 10px; perspective: 1200px; list-style: none; }
.topics li { display: flex; align-items: baseline; gap: 16px; padding: 16px 20px; background: var(--card); border: 1px solid var(--card-rule); border-radius: var(--radius); transform: rotateX(10deg); font-size: 15px; line-height: 1.45; hyphens: auto; overflow-wrap: break-word; transition: transform 0.4s; }
.topics li:hover { transform: rotateX(0deg) translateZ(20px); }
.topics b { flex-shrink: 0; width: 20px; font-family: var(--serif); font-weight: 800; font-size: 22px; line-height: 1; color: var(--accent); }

/* ---------- 3D visuals on sub pages ---------- */
.deck { position: relative; height: 480px; perspective: 1600px; }
.deck__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(12deg) rotateY(-24deg); }
.deck__card {
  position: absolute;
  width: 260px;
  height: 340px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  box-shadow: var(--shadow);
}
.deck__card:nth-child(1) { left: 0; top: 0; }
.deck__card:nth-child(2) { left: 70px; top: 40px; transform: translateZ(50px); }
.deck__card:nth-child(3) { left: 140px; top: 80px; transform: translateZ(100px); }
.deck__card:nth-child(4) {
  left: 210px;
  top: 120px;
  transform: translateZ(150px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent-light);
  box-shadow: 0 40px 60px -30px rgba(19, 24, 33, 0.6);
}
.deck__card small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--on-navy-muted); }

.sheets { position: relative; height: 440px; perspective: 1600px; }
.sheets__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(50deg) rotateZ(-28deg); transform-origin: 50% 60%; }
.sheets__sheet {
  position: absolute;
  left: 60px;
  top: 40px;
  width: 280px;
  height: 280px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--rule-2);
  box-shadow: 0 30px 40px -20px rgba(19, 24, 33, 0.3);
}
.sheets__sheet:nth-child(2) { transform: translateZ(70px); color: var(--muted); }
.sheets__sheet:nth-child(3) { transform: translateZ(140px); background: var(--accent); border-color: var(--accent); color: #fff; }

.audience { row-gap: 32px; }
.audience__head { grid-column: span 5; display: flex; flex-direction: column; gap: 20px; }
.audience__letter { font-family: var(--serif); font-size: 100px; font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; color: var(--accent); }
.audience__head .h2 { font-size: clamp(30px, 3.2vw, 46px); }
.audience__body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }
.audience__body .label { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }

/* ---------- References ---------- */
.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; perspective: 1400px; list-style: none; }
.refs li { padding: 24px; background: var(--card); border: 1px solid var(--card-rule); border-radius: var(--radius); transform: rotateX(8deg); font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; transition: transform 0.4s; }
.refs li:hover { transform: rotateX(0deg) translateZ(20px); }
.refs li.refs__main { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; background: var(--ink); border-color: var(--ink); color: var(--paper); font-size: 22px; font-weight: 800; }
.refs__main span { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--on-navy-2); }

/* ---------- Contact ---------- */
.contact-card { perspective: 1400px; padding: 30px 0 0 10px; }
.contact-card__scene { position: relative; width: min(460px, 100%); aspect-ratio: 460 / 270; transform-style: preserve-3d; transform: rotateX(18deg) rotateY(-16deg) rotateZ(2deg); }
.contact-card__plate { position: absolute; inset: 0; background: var(--accent); border-radius: 8px; transform: translate3d(26px, 22px, -40px); }
.contact-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 32px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  box-shadow: 0 50px 70px -30px rgba(19, 24, 33, 0.55);
}
.contact-card__name { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.contact-card__role { font-size: 14px; color: var(--on-navy-2); }
.contact-card__quals { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--on-navy-muted); }
.contact-card__mail { margin-top: auto; font-family: var(--mono); font-size: 14px; color: var(--accent-light); }
.contact-card__mail:hover { color: #fff; }

.request {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-self: start;
  padding: 44px;
  border-radius: 8px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.request .btn { align-self: flex-start; }
.request--dark { background: var(--navy-card); border-color: var(--navy-rule); color: var(--on-navy); }
.request--dark .label { color: var(--on-navy-muted); }

/* ---------- Dark sections (CTA, request) ---------- */
.dark { background: var(--navy); color: var(--on-navy); }
.dark .kicker { color: var(--on-navy-muted); }
.dark .kicker__no { color: var(--accent-light); }
.dark .accent { color: var(--accent-light); }
.dark p { color: var(--on-navy-2); }
.dark a:hover { color: #fff; }

.cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px 80px; padding-block: 120px; }
.cta__copy { display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.cta__actions a:not(.btn) { color: var(--on-navy-2); font-size: 15px; }

.anfrage { padding-block: 130px; }
.anfrage__copy { grid-column: span 5; display: flex; flex-direction: column; gap: 30px; }
.anfrage__copy .h2 { font-size: clamp(40px, 4.6vw, 66px); }
.anfrage__mail { display: flex; flex-direction: column; gap: 6px; padding-top: 24px; border-top: 1px solid #2a3a58; }
.anfrage__mail a { font-family: var(--serif); font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; overflow-wrap: anywhere; }
.anfrage__box { grid-column: 7 / span 6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: var(--on-navy-muted); font-size: 14px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-block: 32px; }
.site-footer__brand { font-family: var(--serif); font-size: 18px; letter-spacing: -0.02em; color: var(--on-navy); }
.site-footer__brand b { font-weight: 800; }
.site-footer__brand span { font-weight: 300; color: var(--accent-light); }
.site-footer nav { display: flex; gap: 32px; }
.site-footer a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal__aside { grid-column: span 4; display: flex; flex-direction: column; gap: 28px; align-self: start; }
.legal__aside--wide { grid-column: span 5; }
.legal__main { grid-column: 6 / span 7; }
.legal__main--narrow { grid-column: 7 / span 6; }
.legal__title { font-family: var(--serif); font-size: clamp(36px, 4.2vw, 62px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; hyphens: manual; }
.legal__badge { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--ink); border-radius: var(--radius); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent-light); }

.legal-block { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-top: 1px solid var(--rule); }
.legal-block:last-child { border-bottom: 1px solid var(--rule); }
.legal-block h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.legal-block p { font-size: 16px; }

.ds { display: flex; flex-direction: column; }
.ds__item { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--rule); }
.ds__no { font-family: var(--serif); font-size: 26px; font-weight: 800; line-height: 1; color: var(--accent); }
.ds__body { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.ds__body h2 { font-family: var(--serif); font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.ds__body ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.ds__body strong { color: var(--ink); font-weight: 600; }
.ds__body a { border-bottom: 1px solid currentColor; }

.placeholder { background: var(--signal-bg); color: var(--signal); padding: 1px 6px; border-radius: 3px; }

/* ---------- Page-specific grid placement ---------- */
.home-portrait { grid-column: span 5; }
.home-bio { grid-column: 7 / span 6; }
.home-pub-head { grid-column: span 12; margin-bottom: 0; }
.home-books { grid-column: span 5; padding-top: 48px; }
.home-talks { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 14px; padding-top: 48px; }
.home-talks__more { padding-top: 8px; }

.col-stack { display: flex; flex-direction: column; gap: 22px; }
.plain-list { list-style: none; }
.plain-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }

.ref-head { grid-column: span 5; display: flex; flex-direction: column; gap: 22px; }
.ref-list { grid-column: 7 / span 6; }
.talks-head { grid-column: span 4; display: flex; flex-direction: column; gap: 22px; align-self: start; }
.talks-list { grid-column: 5 / span 8; }
.pub-head { grid-column: span 12; }
.pub-books { grid-column: span 4; }
.pub-books .books { flex-direction: column; align-items: flex-start; gap: 56px; }
.pub-list { grid-column: 5 / span 8; align-content: start; }

.contact { padding-block: 96px 130px; }
.contact__copy { grid-column: span 6; display: flex; flex-direction: column; gap: 32px; }
.contact__box { grid-column: 8 / span 5; }

.section--tight { padding-block: 48px 56px; }
.chips-row--flush { margin-top: 0; padding-top: 0; border-top: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 72px; }
  .stack { min-height: 560px; max-width: 620px; }
  .fan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fan-card { min-height: 380px; }
  .format__no { grid-column: span 12; flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .format__numeral { font-size: 84px; }
  .format__body { grid-column: span 12; }
  .format__facts { grid-column: span 12; }
}

@media (max-width: 960px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .menu { display: block; }
  .site-header { position: relative; }
  .site-header__inner { padding-block: 14px; }
  .brand__word { font-size: 18px; }
  .brand svg { width: 32px; height: 32px; }

  .grid-12 > *,
  .page-hero > * { grid-column: 1 / -1 !important; }
  .page-hero { padding-block: 48px 64px; row-gap: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .statement__body { gap: 32px; margin-top: 24px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; gap: 32px; }
  .chips-row { flex-direction: column; align-items: flex-start; gap: 14px; }

  .bio { margin-top: 48px; }
  .portrait { max-width: 440px; }
  .deflist > div { grid-template-columns: 1fr; gap: 3px; }
  .deflist dd { font-size: 15px; }

  .books { margin-bottom: 48px; }
  .pub-books .books { flex-direction: row; align-items: flex-end; }
  .pubs { grid-template-columns: 1fr; }

  .audience__head, .audience__body { grid-column: 1 / -1; }
  .talks-head, .ref-head { margin-bottom: 32px; }
  .audience__letter { font-size: 72px; }

  .refs { grid-template-columns: 1fr; }
  .refs li.refs__main { grid-column: auto; }

  .cta { flex-direction: column; align-items: flex-start; padding-block: 72px; }
  .cta__actions { align-items: stretch; width: 100%; }
  .cta__actions a:not(.btn) { align-self: center; }

  .anfrage { padding-block: 72px; row-gap: 40px; }
  .request { padding: 28px 22px; }
  .request .btn { align-self: stretch; }

  .legal__aside { margin-bottom: 32px; }
  .ds__item { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .ds__body h2 { font-size: 21px; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .kicker { font-size: 11px; gap: 10px; }
  .kicker__line { width: 24px; }
  .hero { padding-top: 40px; gap: 24px; }
  .hero__actions .btn { width: 100%; padding: 0 20px; }
  .btn { text-align: center; }
  .hero__actions .link-u { align-self: center; }
  .stack { min-height: 400px; }
  .stack__scene { transform: scale(0.62) rotateX(10deg) rotateY(-16deg); transform-origin: 0 0; }
  .plan { left: 10px; }
  .fan { grid-template-columns: 1fr; gap: 16px; }
  .fan-card { min-height: 0; }
  .fan-card__no { font-size: 38px; }
  .fan-card__title { font-size: 22px; }
  .format__numeral { font-size: 68px; }
  .deck { height: 300px; }
  .deck__scene { transform: scale(0.64) rotateX(12deg) rotateY(-24deg); transform-origin: 0 0; }
  .sheets { height: 280px; }
  .sheets__scene { transform: scale(0.68) rotateX(50deg) rotateZ(-28deg); }
  .portrait__tag { right: auto; left: -12px; font-size: 9px; }
  .portrait--flip .portrait__tag { left: -12px; }
  .portrait__plate { transform: translate3d(-20px, 26px, -70px); }
  .portrait--flip .portrait__plate { transform: translate3d(22px, 26px, -70px); }
  .portrait__frame { display: none; }
  .books { gap: 24px; padding-left: 12px; }
  .book { width: 140px; }
  .book__obj { width: 124px; height: 176px; }
  .book__spine { left: -6px; width: 12px; }
  .book__back { transform: translateZ(-6px); }
  .book__cover { transform: translateZ(6px); }
  .book__box { width: 170px; }
  .book__meta { font-size: 13px; }
  .contact-card__scene { aspect-ratio: auto; }
  .contact-card__face { position: relative; inset: auto; min-height: 200px; padding: 24px 22px; }
  .contact-card__mail { margin-top: 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill { animation: none; transform: translateZ(140px) rotateX(58deg) rotateZ(-24deg); }
  .stack__scene, .topics li, .refs li, .btn { transition: none; }
}
