/* ==========================================================================
   Patrick Reiter — Landingpage
   Marke aus Visitenkarte und Folien (nicht verändern, nur ergänzen).
   ========================================================================== */
:root {
  --navy: #1F3864;
  --ink: #222A35;
  --slate: #56657F;
  --hair: #C9D1E0;
  --navy-soft: #C9D4E8;
  --m-blue: #7F97C2;
  --gold: #B88A2C;
  --paper: #fff;
  --deep: #13233F;          /* ergänzt: Schattenton des Hintergrunds */
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5.2vw, 72px);
  --maxw: 1180px;
  --inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --ease: cubic-bezier(.2, .7, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--navy); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Rückfall ohne WebGL: Schatten oben links, geordnete Linien darunter */
  background-color: var(--navy);
  background-image:
    radial-gradient(110% 60% at 0% 0%, var(--deep) 0%, rgba(19, 35, 63, 0) 72%),
    repeating-linear-gradient(180deg, rgba(201, 212, 232, 0) 0 21px, rgba(201, 212, 232, .09) 21px 22px);
  background-repeat: no-repeat;
  background-size: 100% 100vh, 100% 100vh;
}
p, h1, h2, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
.nw { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* --- Hintergrund ---------------------------------------------------------- */
.field {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.field.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .field { transition: none; } }

/* --- Hero (Rückseite der Karte: Navy, weisse Schrift) ---------------------- */
.hero {
  position: relative;
  z-index: 1;
  /* 56 px kürzer: Papierkante und Navy-Ecke ragen ins erste Bild („es geht weiter“) */
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  display: flex;
  flex-direction: column;
  padding:
    max(20px, env(safe-area-inset-top))
    var(--inline)
    max(28px, env(safe-area-inset-bottom));
  color: #fff;
}
.hero__bar { display: flex; align-items: center; justify-content: space-between; }

/* Pause/Play für den Hintergrund (WCAG 2.2.2); bei reduzierter Bewegung verborgen */
.motion {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(201, 212, 232, .4);
  border-radius: 0;
  background: rgba(19, 35, 63, .35);
  color: #fff;
  cursor: pointer;
  transition: border-color .2s ease;
}
.motion:hover { border-color: #fff; }
.motion[hidden] { display: none; }
.motion .ic { width: 16px; height: 16px; }
.motion .ic--play, .motion[aria-pressed="true"] .ic--pause { display: none; }
.motion[aria-pressed="true"] .ic--play { display: block; }
.hero__body { margin-top: auto; padding-top: 40px; max-width: 36rem; }

.mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 212, 232, .55);
  overflow: hidden;
}
.mark__mono { font-size: 16px; font-weight: 500; letter-spacing: .06em; color: #fff; }
.mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.has-portrait .mark { width: 72px; height: 72px; border: 0; }

.greet {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--navy-soft);
}
.greet::before { content: ""; flex: none; width: 24px; height: 2px; background: var(--gold); }
.greet[hidden] { display: none; }

.name {
  font-size: clamp(2.6rem, 1.15rem + 6.2vw, 5.6rem);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.022em;
  color: #fff;
  margin-bottom: 14px;
}
.role {
  font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem);
  line-height: 1.25;
  font-weight: 500;
  color: #fff;
}
.topics {
  margin-top: 6px;
  font-size: clamp(.95rem, .9rem + .3vw, 1.15rem);
  line-height: 1.4;
  color: var(--navy-soft);
}
/* der kurze Strich der Visitenkarte */
.topics::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 22px 0 20px;
  background: var(--navy-soft);
}
.lead {
  font-size: clamp(1.15rem, 1rem + .75vw, 1.55rem);
  line-height: 1.38;
  color: #fff;
  max-width: 27em;
  text-wrap: balance;
}

/* --- Knöpfe --------------------------------------------------------------- */
.actions { display: grid; gap: 10px; margin-top: 28px; max-width: 26rem; }
.actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ic { width: 18px; height: 18px; flex: none; }
.btn--primary { background: #fff; color: var(--navy); }
.btn--primary:hover { background: var(--navy-soft); }
.btn--ghost { color: #fff; border-color: rgba(201, 212, 232, .6); background: rgba(19, 35, 63, .4); }
.btn--ghost:hover { border-color: #fff; background: rgba(19, 35, 63, .7); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--deep); }
.btn--line { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn--line:hover { background: var(--navy); color: #fff; }

/* --- Papier (Vorderseite der Karte: weiss, Navy-Ecke) ---------------------- */
.paper {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: 96px var(--inline) 40px;
}
.paper::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 52px;
  height: 52px;
  border-left: 12px solid var(--navy);
  border-top: 12px solid var(--navy);
}
.block { display: grid; gap: 14px; padding: 40px 0; border-top: 1px solid var(--hair); }
.block:first-child { border-top: 0; padding-top: 4px; }
.label { font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--slate); }
.statement {
  font-size: clamp(2rem, 1.25rem + 3.3vw, 4rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 18px;
  max-width: 14em;
  text-wrap: balance;
}
.text { font-size: 17px; line-height: 1.55; color: var(--ink); max-width: 36em; text-wrap: pretty; }
.more {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.more:hover { text-decoration-thickness: 2px; }

.focus { display: grid; margin-top: 22px; }
.focus li { padding: 13px 0; border-top: 1px solid var(--hair); font-size: 17px; line-height: 1.4; }

.talks li { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--hair); }
.talks li:first-child { border-top: 0; padding-top: 0; }
.talk__date { font-size: 15px; color: var(--slate); font-variant-numeric: tabular-nums; }
.talk__event { font-size: 19px; line-height: 1.3; font-weight: 500; color: var(--navy); }
.talk__part { font-size: 16px; line-height: 1.45; max-width: 36em; }
.talk__kind { color: var(--slate); }

.actions--paper { display: flex; flex-wrap: wrap; max-width: none; margin-top: 4px; }
.actions--paper .btn { flex: 1 1 14rem; }
.mail { margin-top: 20px; }
.mail a { color: var(--navy); font-weight: 500; text-underline-offset: 4px; }

/* --- Fusszeile ------------------------------------------------------------ */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 28px var(--inline) max(32px, env(safe-area-inset-bottom));
  background: var(--navy);
  color: var(--navy-soft);
  font-size: 14px;
  line-height: 1.5;
}
.foot a { color: #fff; text-underline-offset: 3px; }

/* --- Grössere Bildschirme -------------------------------------------------- */
@media (min-width: 640px) {
  .focus { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .talks li { grid-template-columns: 8.5rem 1fr; column-gap: 24px; }
  .talk__date { grid-row: span 3; padding-top: 3px; }
  .actions--paper .btn { flex: 0 0 auto; padding: 0 26px; }
}
@media (min-width: 900px) {
  .block { grid-template-columns: 3fr 9fr; column-gap: 32px; padding: 56px 0; }
  .block:first-child { padding-top: 16px; }
  .label { padding-top: 6px; }
  .foot { grid-template-columns: 3fr 9fr; column-gap: 32px; }
  .paper { padding-top: 136px; }
  .paper::before { top: 40px; width: 72px; height: 72px; border-width: 16px; }
}
@media (min-width: 900px) and (orientation: landscape) {
  /* gleiche linke Kante wie die Inhaltsspalte der Abschnitte (3fr/9fr, Abstand 32 px) */
  .hero__body { margin: auto 0 auto calc((100% - 32px) * 3 / 12 + 32px); padding-top: 0; max-width: 44rem; }
  .actions { display: flex; flex-wrap: wrap; max-width: none; }
  .actions__row { display: flex; gap: 10px; }
  .actions .btn { padding: 0 22px; }
  .mark { width: 52px; height: 52px; }
}

/* --- Ladechoreografie: ein Ablauf, synchron mit dem Hintergrund ------------ */
@media (prefers-reduced-motion: no-preference) {
  /* Inhalt vor Inszenierung: alles steht nach 0,75 s, der Hintergrund läuft erst danach ein */
  .hero__bar, .name, .greet, .role, .topics, .lead, .actions {
    animation: rise .5s var(--ease) both;
  }
  .greet { animation-delay: .04s; }
  .role { animation-delay: .08s; }
  .topics { animation-delay: .12s; }
  .lead { animation-delay: .18s; }
  .actions { animation-delay: .24s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* --- Datenschutzseite ------------------------------------------------------ */
.legal-page { background: var(--paper); background-image: none; }
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--inline) 16px;
  background: var(--navy);
  color: #fff;
}
.legal-top a { color: #fff; font-size: 15px; text-underline-offset: 4px; }
.legal {
  position: relative;
  padding: 56px var(--inline) 64px;
  background: var(--paper);
}
.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 28px;
}
.legal p { font-size: 17px; line-height: 1.6; max-width: 38em; margin-bottom: 16px; }
.legal b { font-weight: 500; color: var(--navy); }
.legal a { color: var(--navy); text-underline-offset: 3px; }
