/* Schriften: lokal ausgeliefert, keine Verbindung zu Google */
@font-face { font-family: "Bodoni Moda"; src: url("schriften/bodoni-moda.woff") format("woff"); font-style: normal; font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("schriften/bodoni-moda-italic.woff") format("woff"); font-style: italic; font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("schriften/newsreader.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("schriften/newsreader-italic.woff") format("woff"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("schriften/hanken-grotesk.woff") format("woff"); font-style: normal; font-weight: 500 600; font-display: swap; }

/* Grundlage */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: a magazine issue in four spreads — ultramarine cover band with the name set huge,
   the book on off-white overlapping the band, a narrow biography column, a dark navy colophon for contact.
   Single deliberate light look (blue on off-white), not theme-switched. */
:root {
  --ultramarin: #1f2f9c;
  --kobalt: #2a46c4;
  --nacht: #0d1640;
  --violett: #2a1250;
  --papier: #f3f1ec;
  --grau: #68635a;
  --tinte: #1b1d26;
  --hell: #eef0fa;
  --linie: rgba(27, 29, 38, .14);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --label: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

html { background: var(--papier); }
body {
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--kobalt); color: var(--hell); }

.inner {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.label {
  font-family: var(--label);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* 1 — Einstieg */
.einstieg {
  background: var(--nacht) linear-gradient(165deg, var(--ultramarin) 0%, #1c1a66 45%, var(--violett) 100%); color: var(--hell); }
  color: var(--hell);
}
.einstieg .inner { padding-block: 1.5rem 9rem; }
.kopf {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 1rem;
  color: rgba(238, 240, 250, .72);
}
.kopf nav { display: flex; gap: 1.5rem; }
.kopf nav a { text-decoration: none; }
.kopf nav a:hover { color: var(--hell); text-decoration: underline; }

.name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.2rem, 16vw, 12.5rem);
  line-height: .86;
  letter-spacing: -.02em;
  margin: clamp(4rem, 12vw, 8rem) 0 0;
}
.name em { font-style: italic; display: block; padding-left: .55em; }
.satz {
  font-family: var(--text);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  max-width: 26rem;
  margin: 2.5rem 0 0 auto;
  color: rgba(238, 240, 250, .86);
}

/* 2 — Werk */
.werk .inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: 0 clamp(5rem, 10vw, 8rem);
}
.cover {
  position: relative;
  margin: -6rem 0 0;
  align-self: start;
}
.cover img {
  display: block; width: 100%; height: auto; max-width: 100%;
  box-shadow: 0 2px 4px rgba(13, 22, 64, .18), 0 30px 60px -24px rgba(13, 22, 64, .55);
}
.cover figcaption { margin-top: .9rem; color: var(--grau); }

.werk-text { padding-top: clamp(1rem, 4vw, 3.5rem); min-width: 0; }
.werk-text .label { color: var(--kobalt); }
.titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: .9rem 0 .5rem;
  text-wrap: balance;
}
.untertitel { font-style: italic; color: var(--grau); margin: 0 0 2rem; }
.beschreibung { max-width: 30rem; margin: 0 0 2.25rem; }

.zitat {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.3;
  color: var(--ultramarin);
  margin: 0 0 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--kobalt);
  max-width: 28rem;
}

.daten {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  margin: 0 0 1.75rem; padding: 1rem 0 0;
  border-top: 1px solid var(--linie);
  color: var(--grau);
  font-variant-numeric: tabular-nums;
}
.werk-text .daten { color: var(--grau); }
.daten span b { font-weight: 600; color: var(--tinte); }
.links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.links a { color: var(--kobalt); font-family: var(--label); font-weight: 500; font-size: .95rem; }
.links a:hover { color: var(--ultramarin); }

/* 3 — Person */
.person { border-top: 1px solid var(--linie); }
.person .inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 9vw, 7rem);
}
.person h2 {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  color: var(--ultramarin);
  margin: 0;
}
.person .label { color: var(--grau); display: block; margin-bottom: 1rem; }
.bio { max-width: 32rem; margin: 0; font-size: 1.2rem; line-height: 1.65; min-width: 0; }
.bio::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 4.1em;
  line-height: .78;
  padding: .06em .1em 0 0;
  color: var(--kobalt);
}

.wenger { font-style: italic; font-size: 1rem; line-height: 1.5; max-width: 22rem; margin-top: 1.25rem !important; }
.wenger .label { display: block; font-style: normal; margin-top: .5rem; }
.zitat p { margin: 0; }
.zitat cite { display: block; font-style: normal; color: var(--grau); margin-top: .7rem; }
.portrait { margin: 0; max-width: 24rem; align-self: start; }
.portrait img { display: block; width: 100%; height: auto;  }
.person-text { min-width: 0; }
.person-text h2 { margin-bottom: 1.75rem; text-wrap: balance; }
.dank { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--ultramarin); margin: 1.75rem 0 0; }
@media (max-width: 760px) { .portrait { max-width: 100%; } }

.lesung {
  margin-top: 3rem;
  background: var(--ultramarin); color: var(--hell);
  padding: 1.6rem 1.75rem 1.4rem;
  display: grid; gap: .5rem;
  max-width: 30rem;
}
.lesung p { margin: 0; }
.lesung .label { color: rgba(238, 240, 250, .8); }
.lesung-datum { margin: 0; font-weight: 400; font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.15; }
.lesung a { color: var(--hell); }

.flip-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.flip { display: block; perspective: 1600px; -webkit-perspective: 1600px; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.flip-toggle:focus-visible + .flip { outline: 2px solid var(--kobalt); outline-offset: 6px; }
.flip-inner { position: relative; aspect-ratio: 640 / 938; max-width: 100%; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.flip-toggle:checked + .flip .flip-inner { transform: rotateY(180deg); }
.face.front { transform: rotateY(0deg) translateZ(1px); }
.face.front img { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip-hint .h-back { display: none; }
.flip-toggle:checked ~ .flip-hint .h-front { display: none; }
.flip-toggle:checked ~ .flip-hint .h-back { display: inline; }
.face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 2px 4px rgba(13, 22, 64, .18), 0 30px 60px -24px rgba(13, 22, 64, .55); }
.face.front img { width: 100%; height: 100%; object-fit: cover; box-shadow: none; }
.face.back {
  transform: rotateY(180deg) translateZ(1px);
  background: var(--ultramarin); color: var(--hell);
  padding: clamp(1.1rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: .9em;
  font-size: clamp(.82rem, 1.45vw, 1.15rem); line-height: 1.5;
  overflow: auto;
}
.face.back p { margin: 0; }
.face.back .label { color: rgba(238, 240, 250, .8); font-size: .72rem; }
.face.back .isbn { margin-top: auto; }
.flip-hint { color: var(--grau); margin: .9rem 0 0; }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }

/* 4 — Kontakt */
.kontakt { background: var(--nacht) linear-gradient(165deg, var(--ultramarin) 0%, #1c1a66 45%, var(--violett) 100%); color: var(--hell); }
.kontakt .inner { padding-block: clamp(4.5rem, 9vw, 7rem) 2rem; }
.kontakt .label { color: rgba(238, 240, 250, .78); }
.mail {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 6.2vw, 4.4rem);
  line-height: 1.1;
  margin: 1.25rem 0 1.5rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(238, 240, 250, .35);
  transition: border-color .25s;
}
.mail:hover { border-bottom-color: var(--hell); }
.kontakt .mail { margin-bottom: 4.5rem; }
.fuss {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 240, 250, .16);
  color: rgba(238, 240, 250, .78);
}
.fuss a { color: rgba(238, 240, 250, .85); }

/* Motion: the cover settles onto the page once, from a visible resting state */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes settle { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .einstieg .inner { padding-block: 1.25rem 7.5rem; }
  .kopf nav { gap: 1rem; }
  .name em { padding-left: .35em; }
  .satz { margin-left: 0; }
  .werk .inner, .person .inner { grid-template-columns: 1fr; }
  .cover { margin-top: -5rem; max-width: 15.5rem; }
  .werk-text { padding-top: 0; }
  .person .inner { gap: 1.5rem; }
}
@media (max-width: 400px) {
  .kopf .label:first-child { display: none; }
}

.kontakt h2.label { margin: 0; }

.lesung a.karte { text-decoration: underline; text-decoration-color: rgba(238, 240, 250, .45); }
.lesung a.karte:hover { text-decoration-color: var(--hell); }

/* Impressum und Datenschutz */
.rechtliches { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1rem; }
.rechtliches details { flex: 1 1 100%; }
.rechtliches summary { cursor: pointer; color: rgba(238, 240, 250, .78); list-style: none; display: inline-block; padding: .35rem 0; }
.rechtliches summary::-webkit-details-marker { display: none; }
.rechtliches summary::after { content: " +"; }
.rechtliches details[open] summary::after { content: " –"; }
.rechtliches summary:hover { color: var(--hell); }
.rechtliches summary:focus-visible { outline: 2px solid var(--hell); outline-offset: 3px; }
.recht-text { max-width: 40rem; padding: .5rem 0 1.25rem; font-size: .95rem; line-height: 1.6; color: rgba(238, 240, 250, .86); }
.recht-text p { margin: 0 0 .9rem; }
.recht-text b { color: var(--hell); font-weight: 600; }
