/* =========================================================
   Milian Stein – „Ich bin ja da“
   Statische Autorenseite · keine externen Ressourcen
   Farben vom Cover: Koralle, Nachtblau, Creme, Sonnengelb
   ========================================================= */

/* ---------- Schriften (selbst gehostet, SIL Open Font License) ---------- */
@font-face {
  font-family: "Anton";
  src: url("fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/dm-serif-display-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Farben und Maße ---------- */
:root {
  --koralle: #FF6B4A;          /* Flächen */
  --koralle-gross: #E8553A;    /* nur große Schrift / Deko */
  --koralle-text: #B23A1F;     /* kleine Schrift auf Creme (Kontrast 5,5 : 1) */
  --navy: #1D2B45;
  --navy-weich: #3D4A63;       /* Fließtext zweite Ebene (8 : 1 auf Creme) */
  --creme: #FFF4E6;
  --creme-tief: #FBE8D3;
  --gelb: #FFC845;

  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --breite: 1120px;
  --rand: clamp(20px, 5vw, 40px);
  --abstand: clamp(64px, 11vw, 128px);
  --radius: 18px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17 px */
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.auf-navy :focus-visible { outline-color: var(--creme); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.huelle { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.schmal { max-width: 720px; }

.sprung {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--navy); color: var(--creme); padding: 10px 16px; border-radius: 8px;
}
.sprung:focus { top: 12px; }

.kicker {
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--koralle-text); margin: 0 0 14px;
}
.titel-gross {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(2.4rem, 7vw, 3.9rem); line-height: 1;
}
.serif { font-family: var(--serif); }
.einleitung { font-size: clamp(1.125rem, 2.2vw, 1.25rem); line-height: 1.55; }
.leise { color: var(--navy-weich); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Strichzeichnungen auf Weiß: Weiß verschmilzt mit dem Creme-Hintergrund */
.zeichnung { mix-blend-mode: multiply; }

/* ---------- Ornament „Geborgen“ ---------- */
.ornament { width: 96px; margin: 0 auto; color: var(--navy); }
.ornament--trenner { padding: clamp(40px, 7vw, 72px) 0 0; }
.ornament--klein { width: 84px; margin: 0 0 14px; }
.auf-navy .ornament { color: var(--creme); }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid var(--navy); transition: transform .15s ease, background-color .15s ease;
}
.knopf--voll { background: var(--navy); color: var(--creme); }
.knopf--voll:hover { background: #111b2e; transform: translateY(-1px); }
.knopf--rand { background: transparent; color: var(--navy); }
.knopf--rand:hover { background: rgba(29, 43, 69, .08); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kopf + Hero ---------- */
.kopf { padding: 16px 0; border-bottom: 1px solid rgba(29, 43, 69, .1); background: var(--creme); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.marke {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 1.0625rem; letter-spacing: .16em; text-transform: uppercase;
}
.marke svg { width: 32px; height: 32px; }
.navi ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; list-style: none; margin: 0; padding: 0; }
.navi a { display: inline-block; padding: 10px 0; font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.navi a:hover { text-decoration: underline; }
.navi a.navi-knopf {
  padding: 10px 22px; border-radius: 999px; background: var(--navy); color: var(--creme);
}
.navi a.navi-knopf:hover { background: #111b2e; text-decoration: none; }

.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(8px, 2vw, 24px); overflow: hidden; }
.hero .huelle { display: grid; gap: 44px; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 6.4vw, 3.9rem); line-height: 1.08; letter-spacing: -.005em;
  margin-bottom: 22px;
}
.hero h1 .akzent { color: var(--koralle-gross); }
.hero h1 .zeile-h { display: block; }
.hero .einleitung { max-width: 46ch; margin-bottom: 30px; }
.schnellkauf {
  background: #fff; border-radius: var(--radius); padding: 22px 22px 24px; text-align: center;
  box-shadow: 0 1px 0 rgba(29, 43, 69, .06), 0 10px 30px rgba(29, 43, 69, .07); max-width: 520px;
}
.etikett {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
  background: #FDE3DA; color: var(--koralle-text);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li {
  border: 1.5px solid rgba(29, 43, 69, .18); border-radius: 999px; padding: 5px 12px;
  font-size: .875rem; font-weight: 600; background: var(--creme);
}
.schnellkauf .knopf-reihe { justify-content: center; }
@media (max-width: 559px) { .schnellkauf .knopf { width: 100%; } }

.buch { position: relative; width: min(70%, 300px); margin: 0 auto; padding: 28px 0; }
.buch::before {
  content: ""; position: absolute; inset: 0 -14% 0 -14%; border-radius: 50%;
  background: var(--creme-tief); z-index: 0;
}
.buch img {
  position: relative; z-index: 1;
  width: 100%; border-radius: 3px 8px 8px 3px;
  box-shadow: -6px 0 0 rgba(0, 0, 0, .08) inset, 0 24px 48px rgba(29, 43, 69, .3), 0 4px 10px rgba(29, 43, 69, .18);
  transform: rotate(3deg);
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: var(--abstand) 0 0; }
.abschnitt:last-of-type { padding-bottom: var(--abstand); }
.abschnitt--tief { background: var(--creme-tief); padding-bottom: var(--abstand); margin-top: var(--abstand); }
.kopfzeile { margin-bottom: clamp(28px, 5vw, 48px); }
.kopfzeile .titel-gross { max-width: 18ch; }

/* Der Moment */
.moment { display: grid; gap: 32px; align-items: center; }
.moment figure { margin: 0; }
.zitat-paar { font-family: var(--serif); font-size: clamp(1.75rem, 4.6vw, 2.6rem); line-height: 1.2; margin: 0 0 24px; }
.zitat-paar .kind { display: block; color: var(--koralle-gross); }
.zitat-paar .eltern { display: block; color: var(--navy); }

/* Über das Buch */
.liste { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; }
.liste li { position: relative; padding-left: 30px; font-size: 1.0625rem; }
.liste li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 11px; height: 11px; border-radius: 50%;
  background: var(--koralle-gross);
}
.buch-raster { display: grid; gap: 40px; }
.buch-raster h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 18px; }

.teile { list-style: none; margin: clamp(48px, 7vw, 72px) 0 0; padding: 0; display: grid; gap: 20px; counter-reset: teil; }
.teil {
  background: #fff; border-radius: var(--radius); padding: 22px 22px 26px;
  box-shadow: 0 1px 0 rgba(29, 43, 69, .06), 0 10px 30px rgba(29, 43, 69, .06);
  display: flex; flex-direction: column;
}
.teil img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; margin-bottom: 14px; }
.teil .nr { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--koralle-text); margin: 14px 0 4px; }
.teil h4 { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; margin-bottom: 8px; }
.teil p { font-size: .9688rem; color: var(--navy-weich); }
.teil .ornament { margin: 0; width: 84px; }

.notiz { margin-top: clamp(36px, 5vw, 48px); font-size: 1.0625rem; }

/* Sätze aus dem Buch (Nachtblau) */
.auf-navy { background: var(--navy); color: var(--creme); }
.saetze { padding: var(--abstand) 0; margin-top: var(--abstand); }
.saetze .kicker { color: var(--gelb); }
.saetze .titel-gross { color: var(--creme); }
.saetze-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.saetze-liste blockquote {
  margin: 0; padding: 26px 26px 24px; border-radius: var(--radius);
  background: rgba(255, 244, 230, .06); border: 1px solid rgba(255, 244, 230, .16);
}
.saetze-liste p { font-family: var(--serif); font-size: clamp(1.375rem, 3vw, 1.6rem); line-height: 1.3; margin-bottom: 14px; }
.saetze-liste footer { font-size: .875rem; color: #E7DCCD; }
.saetze .fuss { margin-top: 32px; font-size: .9375rem; color: #E7DCCD; }

/* Über mich */
.ich { display: grid; gap: 32px; align-items: start; }
.ich .avatar { width: min(220px, 60vw); aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--creme-tief); box-shadow: 0 0 0 6px #fff, 0 12px 30px rgba(29, 43, 69, .12); }
.ich h2 { margin-bottom: 20px; }
.hinweis {
  margin-top: 24px; padding: 18px 20px; border-left: 4px solid var(--koralle-gross);
  background: var(--creme-tief); border-radius: 0 12px 12px 0; font-size: .9688rem;
}

/* Formate */
.formate { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.format {
  background: var(--creme); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(29, 43, 69, .1);
}
.format .symbol { width: 44px; height: 44px; color: var(--koralle-gross); }
.format h3 { font-family: var(--serif); font-size: 1.5rem; }
.format p { color: var(--navy-weich); font-size: .9688rem; flex: 1; }
.format { align-items: center; text-align: center; }
.format .knopf { align-self: center; margin-top: 6px; }
.datenhinweis { margin-top: 24px; font-size: .9375rem; color: var(--navy); max-width: 70ch; }

/* Kontakt */
.kontakt h2, .ich h2 { margin-bottom: 20px; }
.kontakt { display: grid; gap: 32px; align-items: end; position: relative; }
/* Handy: Drache rechts oben neben der Überschrift, Spaziergang mittig darunter */
.kontakt-drache { position: absolute; right: calc(var(--rand) - 8px); top: -6px; width: 120px; }
.kontakt-spaziergang { width: 190px; margin: 0 auto; }
.kontakt h2 { max-width: 9ch; }
.kontakt-ganz { display: none; margin: 0; }
/* Ab Tablet: ganze Illustration rechts neben dem Text */
@media (min-width: 720px) {
  .kontakt-drache, .kontakt-spaziergang { display: none; }
  .kontakt-ganz { display: block; max-width: 220px; }
  .kontakt h2 { max-width: none; }
}
.kontakt .mail { word-break: break-word; }

/* ---------- Fuß ---------- */
.fuss-bereich { padding: 56px 0 40px; text-align: center; font-size: .9375rem; }
.fuss-bereich .ornament { margin-bottom: 24px; }
.fuss-bereich ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; }
.fuss-bereich a { display: inline-block; padding: 6px 0; }
.fuss-bereich p { color: #E7DCCD; }

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.unterseite main { padding: clamp(40px, 8vw, 80px) 0 var(--abstand); }
.unterseite h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 8vw, 3.6rem); margin-bottom: 28px; }
.unterseite h2 { font-family: var(--serif); font-size: 1.5rem; margin: 40px 0 12px; }
.unterseite h3 { font-weight: 700; font-size: 1.0625rem; margin: 24px 0 8px; }
.unterseite address { font-style: normal; }
.unterseite ul { padding-left: 1.2em; }
.unterseite li { margin-bottom: 6px; }
.unterseite .stand { margin-top: 40px; color: var(--navy-weich); font-size: .9375rem; }
.fehler { text-align: center; }
.fehler .ornament { width: 120px; margin-bottom: 28px; }
.fehler .knopf-reihe { justify-content: center; margin-top: 28px; }

/* Navigation zentriert, sobald sie in eine eigene Zeile rutscht */
@media (max-width: 559px) {
  .kopf .huelle { justify-content: center; }
  .navi ul { justify-content: center; }
}

/* ---------- Ab Tablet ---------- */
@media (min-width: 720px) {
  .moment { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .buch-raster { grid-template-columns: 1fr 1fr; gap: 56px; }
  .teile { grid-template-columns: 1fr 1fr; }
  .saetze-liste { grid-template-columns: repeat(3, 1fr); }
  .ich { grid-template-columns: 220px 1fr; gap: 48px; }
  .formate { grid-template-columns: repeat(3, 1fr); }
  .kontakt { grid-template-columns: 1fr 220px; }
}
@media (min-width: 960px) {
  .hero .huelle { grid-template-columns: 1.7fr .8fr; gap: 48px; }
  .hero h1 .zeile-h { white-space: nowrap; }
  .buch { width: min(100%, 340px); margin: 0 0 0 auto; }
  .teile { grid-template-columns: repeat(4, 1fr); }
}
