/* ==========================================================================
   MANUEL MIDLIFE — Autorenseite
   Selbst gehostete Schriften, keine externen Requests, keine Cookies.
   ========================================================================== */

@font-face {
  font-family: 'Anton';
  src: url('/assets/fonts/anton-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/assets/fonts/literata-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/assets/fonts/literata-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/assets/fonts/literata-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/assets/fonts/literata-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plexmono-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben — helle, strahlende Reiseplakat-Palette: sonniges Gelb, frisches
     Koralle, Türkis. Bewusst kein dunkles Dämmerungs-Thema mehr. */
  --bg:        #FFF6E7;   /* warmes, helles Creme — Basis */
  --bg-panel:  #FFFFFF;   /* Weiß für Kopfzeile/Kontrastflächen */
  --card:      #FFFFFF;   /* Kartenhintergrund */
  --card-tint: #FFFBF2;   /* minimal getönte Karten-Variante */
  --text:      #2E2013;   /* warmes Dunkelbraun statt Schwarz — Haupttext */
  --sun:       #FFB627;   /* strahlendes Sonnengelb — Hauptakzent */
  --coral:     #FF6B4A;   /* frisches Koralle-Orange — CTA / Stempelfarbe */
  --coral-dim: #E8532F;
  --teal:      #1FB6A6;   /* frisches Türkis — Zweitakzent */
  --line:      rgba(46, 32, 19, 0.12);

  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Literata', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url('/assets/img/collage-bg.jpg');
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- Hintergrund-Collage aus Buchcovern ---------- */
/* Hintergrundbild selbst wird von der generierten collage-bg.css direkt
   auf body gesetzt (siehe build.py) — hier nur die Zusatz-Klasse: */
.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;
}

/* Kachel hinter Fließtext, der sonst direkt auf der Cover-Collage läge —
   sorgt für genug Kontrast, damit der Text überall gut lesbar bleibt. */
.text-tile {
  background: var(--card-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 34px;
  box-shadow: 0 6px 24px rgba(46, 32, 19, 0.10);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text);
}
.brand span { color: var(--coral); }
.site-header nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  opacity: 0.65;
  margin-left: 24px;
}
.site-header nav a:hover { opacity: 1; color: var(--coral); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 85% -10%, rgba(255,182,39,0.30), transparent 55%),
    radial-gradient(ellipse at -5% 110%, rgba(31,182,166,0.20), transparent 50%);
}
.hero .wrap {
  display: block;
}
.hero-text {
  max-width: 720px;
}
.hero .eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12.5px;
  color: var(--coral);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0.5px;
  margin: 0 0 22px;
  color: var(--text);
}
.hero .claim {
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 2.4vw, 26px);
  max-width: 640px;
  color: var(--text);
  opacity: 0.85;
  margin: 0 0 28px;
}
.hero .bio {
  max-width: 620px;
  font-size: 16px;
  opacity: 0.75;
  margin: 0;
}

/* ---------- Stempel / Chaos-Pegel — Signaturelement ---------- */
.author-strip { padding-top: 40px; }
.desk-photo {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 3px;
  filter: saturate(1.05);
}

/* ---------- Reihen-Übersicht ---------- */
.section {
  padding: 72px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  margin: 0;
  color: var(--text);
}
.section-head .count {
  font-family: var(--mono);
  font-size: 13px;
  opacity: 0.55;
  text-decoration: none;
}
a.count:hover { opacity: 1; color: var(--coral); }

.reihen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.reihe-card {
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 28px 26px 24px;
  text-decoration: none;
  display: block;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 12px rgba(46,32,19,0.08);
  border: 1px solid var(--line);
}
.reihe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(46,32,19,0.16);
}
.reihe-card .mini-covers {
  display: flex;
  margin-bottom: 16px;
}
.reihe-card .mini-covers img {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(46,32,19,0.2);
  border: 2px solid var(--card);
  margin-right: -16px;
}
.reihe-card .mini-covers img:nth-child(1) { transform: rotate(-6deg); z-index: 3; }
.reihe-card .mini-covers img:nth-child(2) { transform: rotate(2deg) translateY(-4px); z-index: 2; }
.reihe-card .mini-covers img:nth-child(3) { transform: rotate(8deg); z-index: 1; margin-right: 0; }

.reihe-card .titel {
  font-family: var(--display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.05;
  margin: 0 0 10px;
}
.reihe-card .tagline {
  font-style: italic;
  font-size: 14.5px;
  opacity: 0.7;
  margin: 0 0 14px;
}
.reihe-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
}
.reihe-card .meta .go { color: var(--coral); font-weight: 700; opacity: 1; }

/* ---------- Reihen-Detailseite ---------- */
.reihe-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.reihe-hero .back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  text-decoration: none;
  color: var(--coral);
  opacity: 0.9;
  margin-bottom: 22px;
}
.reihe-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.0;
  margin: 0 0 14px;
  color: var(--text);
}
.reihe-hero .tagline {
  font-style: italic;
  font-size: 19px;
  opacity: 0.8;
  max-width: 640px;
  margin: 0 0 14px;
}
.reihe-hero .beschreibung {
  max-width: 640px;
  opacity: 0.75;
  margin: 0;
}

.baende-list {
  display: grid;
  gap: 18px;
  padding: 48px 0 72px;
}
.band-card {
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(46,32,19,0.06);
}
.band-card .cover {
  width: 130px;
  height: 174px;
  background: var(--bg);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.band-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.band-card .cover .cover-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(46,32,19,0.6);
  border-radius: 2px;
  padding: 3px 4px;
}
.band-card .cover .bs-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 42px;
  height: auto;
  filter: drop-shadow(0 2px 5px rgba(46,32,19,0.4));
  pointer-events: none;
}
.band-card .info .ort {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin: 0 0 6px;
}
.band-card .info h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  margin: 0 0 4px;
  line-height: 1.08;
}
.band-card .info .untertitel {
  font-style: italic;
  font-size: 14px;
  opacity: 0.65;
  margin: 0 0 10px;
}
.band-card .info .beschreibung {
  font-size: 15px;
  opacity: 0.8;
  margin: 0 0 10px;
  max-width: 56ch;
}
.band-card .info .seiten {
  font-family: var(--mono);
  font-size: 11.5px;
  opacity: 0.5;
}
.band-card .action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.buy-btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #fff;
  background: var(--coral);
  padding: 11px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255,107,74,0.35);
}
.buy-btn:hover { background: var(--coral-dim); }
.buy-soon {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  opacity: 0.4;
}

@media (max-width: 640px) {
  .band-card { grid-template-columns: 90px 1fr; }
  .band-card .cover { width: 90px; height: 120px; }
  .band-card .action { grid-column: 1 / -1; flex-direction: row; justify-content: center; margin-top: 6px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.site-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.site-footer .footer-tile {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  text-decoration: none;
  color: var(--text);
  opacity: 0.6;
  margin-right: 20px;
}
.site-footer nav a:hover { opacity: 1; color: var(--coral); }
.site-footer .imprint-note {
  font-family: var(--mono);
  font-size: 11.5px;
  opacity: 0.45;
}

.hero .more-link {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--coral);
  border-bottom: 1px solid var(--coral);
  padding-bottom: 2px;
}
.hero .more-link:hover { color: var(--coral-dim); border-color: var(--coral-dim); }

/* ---------- Bernds Überlebenstipps ---------- */
.tipps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.tipps-wrap { padding: 8px 0 80px; }
.tipp-card {
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 22px 24px;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(46,32,19,0.06);
}
.tipp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 22px;
  width: 34px; height: 6px;
  background: var(--sun);
  border-radius: 0 0 3px 3px;
}
.tipp-card .tipp-datum {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  opacity: 0.9;
  margin: 6px 0 8px;
}
.tipp-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 8px;
  line-height: 1.1;
}
.tipp-card p:not(.tipp-datum) {
  font-size: 15px;
  opacity: 0.8;
  margin: 0;
}
.tipps-leer {
  opacity: 0.65;
  font-style: italic;
}

/* ---------- Buch der Woche ---------- */
.woche-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 6px 24px rgba(46, 32, 19, 0.08);
  align-items: center;
  min-height: 120px;
}
.woche-cover {
  position: relative;
  display: block;
  justify-self: center;
}
.woche-cover img:first-child {
  width: 200px;
  height: 268px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(46,32,19,0.25);
}
.woche-cover .bs-badge-lg {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 84px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(46,32,19,0.4));
  transform: rotate(8deg);
  pointer-events: none;
}
.woche-info .woche-reihe {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin: 0 0 8px;
}
.woche-info h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 6px;
  line-height: 1.05;
}
.woche-info .untertitel {
  font-style: italic;
  font-size: 15px;
  opacity: 0.7;
  margin: 0 0 12px;
}
.woche-info .beschreibung {
  font-size: 16px;
  opacity: 0.85;
  margin: 0 0 20px;
  max-width: 60ch;
}
@media (max-width: 640px) {
  .woche-card { grid-template-columns: 1fr; text-align: center; }
  .woche-info .beschreibung { max-width: none; }
}

/* ---------- Über-Seite ---------- */
.bio-page {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  padding: 8px 0 80px;
  align-items: start;
}
.bio-photo {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(46,32,19,0.22);
  position: sticky;
  top: 96px;
}
.bio-text p {
  margin: 0 0 20px;
  opacity: 0.85;
  font-size: 16.5px;
}
.bio-text .vorspann {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  color: var(--coral);
  opacity: 1;
  margin: 36px 0 18px;
}
.kompetenzen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.kompetenz {
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(46,32,19,0.06);
}
.kompetenz h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 16.5px;
  margin: 0 0 6px;
  color: var(--teal);
}
.kompetenz p {
  font-size: 13.5px;
  margin: 0;
  opacity: 0.78;
}
@media (max-width: 720px) {
  .bio-page { grid-template-columns: 1fr; }
  .bio-photo { max-width: 220px; position: static; }
  .kompetenzen-grid { grid-template-columns: 1fr; }
}

/* ---------- Rechtstexte ---------- */
.legal {
  margin: 48px 0 80px;
  max-width: 74ch;
}
.legal h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  color: var(--text);
  margin-bottom: 24px;
}
.legal h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  color: var(--coral);
  margin-top: 36px;
}
.legal p, .legal li { opacity: 0.8; font-size: 15.5px; }
