/* ==========================================================================
   Britta Roth — Und dann fortzugehen
   Palette lifted from the source PowerPoint. No external requests (no CDN
   fonts, no trackers) so the site stays GDPR-clean and works offline.
   ========================================================================== */

:root {
  --paper:      #F7F4EE;
  --paper-warm: #F1ECE3;
  --ink:        #2D2D2D;
  --ink-soft:   #5E5B57;
  --rule:       #E5DED4;
  --red:        #C62A24;
  --red-deep:   #A62220;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
           "Times New Roman", serif;
  --sans:  "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;         /* comfortable reading width */
  --page:    72rem;         /* outer container */
  --gap:     clamp(1.5rem, 4vw, 3rem);
}

*, *::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(--serif);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gap); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

/* ---------- Header / nav ------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head__inner {
  max-width: var(--page); margin-inline: auto; padding: .85rem var(--gap);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--red); }

.nav { display: flex; gap: .3rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block;
  font-family: var(--sans); font-size: .82rem; letter-spacing: .03em;
  color: var(--ink-soft); text-decoration: none;
  padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.nav a:hover { color: var(--ink); background: var(--paper-warm); }
.nav a[aria-current="page"] {
  color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent);
  background: color-mix(in srgb, var(--red) 6%, transparent);
}

/* ---------- Typography -------------------------------------------------- */

h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 600; }

.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  margin: 0 0 .9rem;
}
.eyebrow--quiet { color: var(--ink-soft); }

.display {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .95;
  color: var(--red);
  font-size: clamp(2.4rem, 1.2rem + 6vw, 5rem);
}
.page-title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }

/* Opening words of a headline, coloured but at full headline size — for
   sentences that the source deck split across two text boxes. Not to be
   confused with .eyebrow, which labels a section rather than starting it. */
.page-title .lead-in { color: var(--red); }

.lede {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  font-style: italic; color: var(--ink-soft); line-height: 1.5;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15em; }
.prose > :last-child { margin-bottom: 0; }

.caption {
  font-family: var(--sans); font-size: .76rem; line-height: 1.5;
  color: var(--ink-soft); margin: .6rem 0 0;
}

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Sections ---------------------------------------------------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--paper-warm); border-block: 1px solid var(--rule); }

/* ---------- Start: hero ------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); }
}
.hero__cover img {
  width: 100%;
  /* Single-column (narrow/tablet) the cover would otherwise fill the whole
     column and dwarf the title, so cap it there and let the grid size it once
     the two-column layout kicks in. */
  max-width: 19rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.10), 0 18px 40px -12px rgba(0,0,0,.35);
}
@media (min-width: 56rem) {
  .hero__cover img { max-width: none; }
}
.hero__author {
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 1rem;
}
.hero__title { margin: 0 0 1.2rem; }
.hero__title .line { display: block; }

/* ---------- Pull quote -------------------------------------------------- */

.pullquote {
  max-width: 44rem; margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.28; font-style: italic; color: var(--ink);
}

/* ---------- Buy strip --------------------------------------------------- */

.buybox {
  display: grid; gap: 1.5rem 2.5rem; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .buybox { grid-template-columns: auto 1fr; } }
.buybox img { width: 8.5rem; box-shadow: 0 12px 28px -10px rgba(0,0,0,.4); }
.meta {
  font-family: var(--sans); font-size: .85rem; line-height: 1.85;
  color: var(--ink-soft); margin: 0; list-style: none; padding: 0;
}
.meta b { color: var(--ink); font-weight: 600; }
.price {
  font-family: var(--sans); font-weight: 700; font-size: 1.5rem;
  color: var(--red); letter-spacing: -.01em;
}

/* ---------- Part sections (Teil I-III) ---------------------------------- */

.part { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--rule); }
.part__head { max-width: 48rem; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.part__title {
  font-family: var(--sans); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.2rem); line-height: .98;
  color: var(--ink); margin: 0 0 .5rem;
}
.part__sub { font-style: italic; color: var(--red); font-size: 1.15rem; margin: 0; }

.part__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr;
              align-items: start; }
@media (min-width: 60rem) { .part__grid { grid-template-columns: 1.05fr 1fr; } }

/* Die Kapitelliste soll auf der Höhe der Bildmitte sitzen, nicht oben bündig.
   Da die linke Spalte aus Kopf + Bild + Text besteht und Kopf und Text das Bild
   etwa gleich stark überragen, trifft ein Zentrieren der rechten Spalte die
   Bildmitte fast genau - nachgemessen im Layout-Test. */
.part .part__grid > div:last-child { align-self: center; }

.part__figure { margin: 0; }
.part__figure img { box-shadow: 0 14px 34px -14px rgba(0,0,0,.45); }

.chapters { margin: 0; padding: 0; list-style: none; counter-reset: ch; }
.chapters li {
  font-size: .97rem; line-height: 1.35;
  padding: .2rem 0 .2rem 2.4rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  counter-increment: ch;
}
.chapters li::before {
  content: counter(ch, decimal-leading-zero);
  position: absolute; left: 0; top: .34rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  color: var(--red); letter-spacing: .06em;
}
.chapters li:last-child { border-bottom: 0; }
.chapters .tag {
  display: inline-block; margin-left: .5rem; vertical-align: .08em;
  font-family: var(--sans); font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); background: var(--red);
  padding: .12rem .45rem; border-radius: 3px; text-decoration: none;
}
a.tag:hover { background: var(--red-deep); }

/* ---------- Poem -------------------------------------------------------- */

.poem { columns: 1; column-gap: 3.5rem; max-width: 58rem; }
@media (min-width: 52rem) { .poem { columns: 2; } }
.poem .stanza { break-inside: avoid; margin: 0 0 1.8rem; }
.poem p { margin: 0; font-size: 1.02rem; line-height: 1.85; }
.poem .src {
  font-family: var(--sans); font-size: .76rem; color: var(--ink-soft);
  margin-top: .8rem;
}

/* ---------- Excerpt cards ---------------------------------------------- */

.cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.card h3 { font-size: 1.2rem; }
.card__part {
  font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Über mich --------------------------------------------------- */

.about__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .about__grid { grid-template-columns: 20rem 1fr; } }
.portrait img { filter: grayscale(1) contrast(1.04); box-shadow: 0 14px 34px -14px rgba(0,0,0,.45); }

.mother-quote {
  margin: 2rem 0; padding: 1.4rem 0 1.4rem 1.6rem;
  border-left: 3px solid var(--red);
  font-style: italic; font-size: 1.15rem; line-height: 1.5;
}

/* ---------- Chapter list variant: selection, not a full run ------------- */

/* Teil III is an excerpt of the chapter list, so numbering it 01…21 would
   imply chapter numbers it doesn't have. This variant drops the counters. */
.chapters--auswahl li { padding-left: 1.1rem; }
.chapters--auswahl li::before {
  content: "·"; color: var(--red); font-size: 1rem; top: .1rem;
}
.part-note {
  font-family: var(--sans); font-size: .78rem; color: var(--ink-soft);
  margin: .9rem 0 0;
}

/* ---------- Klappentext (back-cover copy) ------------------------------- */

.blurb { max-width: 40rem; }
.blurb p { margin: 0 0 1.15em; }
.blurb p:first-child::first-letter {
  float: left; font-size: 3.4em; line-height: .84;
  padding: .06em .12em 0 0; color: var(--red); font-weight: 600;
}
.blurb em { font-style: italic; }

/* ---------- Shop / external links -------------------------------------- */

.linkrow { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0;
           padding: 0; list-style: none; }
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: .84rem; font-weight: 600;
  letter-spacing: .02em; text-decoration: none;
  padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--red); color: var(--red); background: transparent;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--red); color: var(--paper); }
.btn--solid { background: var(--red); color: var(--paper); }
.btn--solid:hover { background: var(--red-deep); border-color: var(--red-deep);
                    color: var(--paper); }
.btn--quiet { border-color: var(--rule); color: var(--ink-soft); }
.btn--quiet:hover { background: var(--paper-warm); color: var(--ink);
                    border-color: var(--ink-soft); }

/* ---------- Leseprobe: long-form excerpts ------------------------------- */

.excerpt { max-width: 36rem; }
.excerpt p { margin: 0 0 1.1em; }
.excerpt p:last-child { margin-bottom: 0; }
.excerpt__head { max-width: 44rem; margin-bottom: 1.6rem; }
.excerpt__note {
  font-family: var(--sans); font-size: .82rem;
  color: var(--ink-soft); margin: 0 0 1.6rem;
}
/* The three excerpt images differ in orientation (the India Gate shot is
   portrait), so bound them by height — capping the width instead would make the
   portrait one tower over the text it introduces. */
.excerpt__figure { margin: 0 0 2.4rem; }
.excerpt__figure img {
  max-height: 24rem; width: auto; max-width: 100%;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.45);
}
/* The author marks cut passages with an ellipsis on its own line. */
.cut {
  margin: 1.8rem 0; text-align: center; color: var(--red);
  letter-spacing: .5em; font-size: 1.1rem; line-height: 1;
}
/* Leseprobe 2 is a letter home. The author asked for no italics anywhere in the
   excerpts, so the salutation carries the distinction on its own. */
.letter .salutation { margin-bottom: 1.4em; }

.jumpnav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2rem 0 0;
           padding: 0; list-style: none;
           font-family: var(--sans); font-size: .84rem; }

/* ---------- Teilen ------------------------------------------------------ */

/* Bewusst reine Links statt Social-Media-Bausteinen: so bleibt die Seite ohne
   JavaScript, ohne Cookies und ohne Einbettungen - Daten gehen erst raus, wenn
   jemand wirklich klickt. */
.share {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-top: 1.6rem;
}
.share__icon { display: inline-flex; flex: none; }
.share__icon svg {
  width: 1.35rem; height: 1.35rem;
  stroke: var(--red); fill: none;
}
.share .linkrow { margin: 0; }

/* ---------- Contact ----------------------------------------------------- */

.contact-mail {
  font-family: var(--sans); font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem);
  font-weight: 600; color: var(--red); text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--red) 30%, transparent);
}
.contact-mail:hover { border-bottom-color: var(--red); }

/* ---------- Placeholder notice (development only) ---------------------- */

.todo {
  font-family: var(--sans); font-size: .84rem; line-height: 1.6;
  border: 1px dashed var(--red);
  background: color-mix(in srgb, var(--red) 5%, transparent);
  color: var(--ink); padding: 1rem 1.2rem; margin: 0 0 2rem;
  max-width: var(--measure);
}
.todo b { color: var(--red-deep); }

/* ---------- Footer ------------------------------------------------------ */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--paper-warm);
  padding-block: 2.5rem;
  font-family: var(--sans); font-size: .8rem; color: var(--ink-soft);
}
.site-foot__inner {
  max-width: var(--page); margin-inline: auto; padding-inline: var(--gap);
  display: flex; gap: 1rem 2rem; justify-content: space-between; flex-wrap: wrap;
}
.site-foot a { color: var(--ink-soft); }
.site-foot__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-head, .site-foot, .todo { display: none; }
  body { background: #fff; }
}
