/* ══════════════════════════════════════════════════════════════
   Die Wahrheit Atmet Leise — Asetra Sonaris
   Farben direkt aus der veröffentlichten Umschlagdatei abgegriffen.
   Schriften selbst gehostet: keine Anfrage verlässt diese Seite.
   ══════════════════════════════════════════════════════════════ */

/* ── Schriften ─────────────────────────────────────────────── */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 500;
  font-display: swap; src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 500;
  font-display: swap; src: url('../fonts/cormorant-garamond.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400 500;
  font-display: swap; src: url('../fonts/eb-garamond-italic.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 500;
  font-display: swap; src: url('../fonts/eb-garamond.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500;
  font-display: swap; src: url('../fonts/jost.woff2') format('woff2'); }

/* ── Marken-Token ──────────────────────────────────────────── */
:root {
  --papier:      #FEF6E6;
  --papier-warm: #FDF2E0;
  --sonnenkern:  #FFF7D9;
  --gold-hell:   #FFE7BD;
  --gold:        #C79E5F;
  --rose-hell:   #FDDBD2;
  --rose:        #E9AFA0;
  --mint:        #CFE4D6;
  --himmel:      #C3D4EE;
  --flieder:     #DCD6E5;
  --tinte:       #3A2E24;
  --tinte-mittel:#55452F;
  --tinte-weich: #6B5A48;
  --tinte-zart:  #A08048;

  --titel: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --text:  'EB Garamond', Georgia, 'Times New Roman', serif;
  --aus:   'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --rand: clamp(1.5rem, 5vw, 4.5rem);
  --breite: 78rem;
  --lese: 40rem;
}

/* ── Grundlagen ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font-family: var(--text); font-size: clamp(1.0625rem, .3vw + 1rem, 1.1875rem);
  line-height: 1.78; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #8A5A3C; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--tinte); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 300; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.huelle { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.mitte  { text-align: center; }

/* Auszeichnungszeile über jedem Abschnitt */
.marke {
  font-family: var(--aus); font-size: .72rem; font-weight: 400;
  letter-spacing: .4em; text-transform: uppercase; color: var(--tinte-zart);
}

/* Zierlinie mit Strahlenzeichen */
.zier { display: flex; align-items: center; justify-content: center; gap: 1.125rem; }
.zier::before, .zier::after { content: ''; height: 1px; width: clamp(3rem, 12vw, 9.25rem); }
.zier::before { background: linear-gradient(90deg, rgba(199,158,95,0), var(--gold)); }
.zier::after  { background: linear-gradient(90deg, var(--gold), rgba(199,158,95,0)); }

/* ── Sprungmarke für Tastatur ──────────────────────────────── */
.sprung {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--tinte); color: var(--papier-warm); padding: .75rem 1.25rem;
  font-family: var(--aus); font-size: .8rem; letter-spacing: .1em;
}
.sprung:focus { left: 1rem; top: 1rem; }

/* ══ KOPF ══════════════════════════════════════════════════ */
.kopf {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 2.125rem var(--rand) 0;
}
.kopf__name {
  font-family: var(--aus); font-size: .8rem; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase; color: var(--tinte-weich);
}
.kopf__nav { display: flex; gap: clamp(1.25rem, 3vw, 2.375rem); }
.kopf__nav a {
  font-family: var(--aus); font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tinte-weich);
}
@media (max-width: 46rem) { .kopf__nav { display: none; } }

/* ══ HERO — das atmende Lichtfeld ══════════════════════════ */
.hero {
  position: relative; overflow: hidden; background: var(--papier-warm);
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  min-height: clamp(38rem, 92svh, 56rem);
  padding: 7.5rem var(--rand) clamp(4rem, 9vw, 7rem);
}
.hero__licht { position: absolute; inset: -14%; pointer-events: none; }
.hero__licht span { position: absolute; inset: 0; display: block; }
.hero__licht span:nth-child(1) { background: radial-gradient(46% 40% at 30% 22%, var(--gold-hell) 0%, rgba(255,231,189,0) 68%); animation: atem-a 19s ease-in-out infinite; }
.hero__licht span:nth-child(2) { background: radial-gradient(42% 38% at 74% 30%, var(--rose-hell) 0%, rgba(253,219,210,0) 66%); animation: atem-b 23s ease-in-out infinite; }
.hero__licht span:nth-child(3) { background: radial-gradient(40% 44% at 84% 74%, var(--flieder) 0%, rgba(220,214,229,0) 64%); animation: atem-a 27s ease-in-out infinite; }
.hero__licht span:nth-child(4) { background: radial-gradient(44% 38% at 14% 78%, var(--mint) 0%, rgba(207,228,214,0) 62%); animation: atem-b 25s ease-in-out infinite; }
.hero__licht span:nth-child(5) { background: radial-gradient(40% 36% at 8% 20%, var(--himmel) 0%, rgba(195,212,238,0) 60%); animation: atem-a 31s ease-in-out infinite; }
.hero__kern {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 46% at 50% 46%, rgba(255,247,217,.95) 0%, rgba(255,247,217,0) 70%);
}
.hero__korn {
  position: absolute; inset: 0; pointer-events: none; opacity: .2; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.4'/></svg>");
}
@keyframes atem-a { 0%,100% { transform: scale(1) translate3d(0,0,0);      opacity: .92; }
                    50%     { transform: scale(1.09) translate3d(0,-14px,0); opacity: 1;   } }
@keyframes atem-b { 0%,100% { transform: scale(1.06) translate3d(0,0,0);    opacity: .8;  }
                    50%     { transform: scale(1) translate3d(18px,10px,0); opacity: .95; } }

.funke { position: absolute; border-radius: 50%; background: #fff; animation: glimmer 7s ease-in-out infinite; }
@keyframes glimmer { 0%,100% { opacity: .25; } 50% { opacity: .75; } }

.hero__inhalt { position: relative; display: grid; justify-items: center; gap: 0;
  width: min(100%, 46rem); }
.hero__titel {
  margin-top: 1.875rem; font-family: var(--titel); font-style: italic; font-weight: 300;
  font-size: clamp(2.75rem, 8.5vw, 6.5rem); line-height: 1.04; letter-spacing: .012em;
  color: #33281F;
}
.hero__satz { margin-top: 2.375rem; max-width: min(100%, 41rem); font-size: clamp(1.125rem, 1.1vw + .9rem, 1.4375rem); line-height: 1.72; color: #4A3C2E; }
.hero__aktionen { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.625rem; margin-top: 2.75rem; }

/* ── Schaltflächen ─────────────────────────────────────────── */
.knopf {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1.0625rem 2.25rem; border-radius: 999px; min-height: 44px;
  background: var(--tinte); color: var(--papier-warm);
  font-family: var(--aus); font-size: .875rem; letter-spacing: .13em; text-transform: uppercase;
  transition: background .28s ease, transform .28s ease, box-shadow .28s ease;
}
.knopf:hover { background: #23190F; color: var(--papier-warm); transform: translateY(-2px);
  box-shadow: 0 16px 34px -18px rgba(58,46,36,.7); }
.knopf svg { flex: none; }
.knopf--hell { background: transparent; color: var(--tinte-weich); border: 1px solid rgba(107,90,72,.4); }
.knopf--hell:hover { background: rgba(107,90,72,.07); color: var(--tinte); }

.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--aus); font-size: .875rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--tinte-weich); border-bottom: 1px solid rgba(107,90,72,.35);
}

/* ══ Abschnitte ════════════════════════════════════════════ */
.block { padding: clamp(4.5rem, 10vw, 8.25rem) 0; }
.block--warm { background: linear-gradient(180deg, var(--papier) 0%, #FDF0DC 50%, var(--papier) 100%); }

/* Die drei Fragen */
.fragen { display: grid; justify-items: center; gap: 2.125rem; }
.fragen__liste {
  display: grid; gap: 1.375rem; font-family: var(--titel); font-style: italic;
  font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.125rem); line-height: 1.28; color: var(--tinte);
}
.fragen__nach { max-width: min(100%, 38rem); font-size: clamp(1.0625rem, .6vw + .9rem, 1.25rem);
  font-style: italic; color: var(--tinte-weich); }

/* Über das Buch */
.buch {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center; padding: clamp(2.75rem, 6vw, 5.25rem);
  border-radius: 4px;
  background: linear-gradient(146deg, #FDF0DC 0%, #FBE8E0 52%, #F3EDE2 100%);
  box-shadow: 0 30px 70px -46px rgba(90,66,40,.5);
}
.buch__text { display: grid; gap: 1.625rem; }
.buch__satz { font-family: var(--titel); font-weight: 300; font-size: clamp(1.75rem, 2.4vw, 2.375rem);
  line-height: 1.36; color: #33281F; }
.buch__strich { width: 4rem; height: 1px; background: var(--gold); }
.buch__bild { display: flex; justify-content: center; }
.buch__bild img { width: min(100%, 19.75rem); border-radius: 2px;
  box-shadow: 0 34px 60px -26px rgba(84,60,34,.52), 0 4px 10px rgba(84,60,34,.12); }
@media (max-width: 52rem) { .buch { grid-template-columns: 1fr; } .buch__bild { order: -1; } }

/* Entstehung — Stich neben Text */
.entstehung { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.entstehung__text { display: grid; gap: 1.5rem; max-width: var(--lese); }
@media (max-width: 52rem) { .entstehung { grid-template-columns: 1fr; text-align: center; }
  .entstehung__text { justify-self: center; } }

/* runder Stich mit Bildunterschrift — das Element aus Richtung B */
.stich { display: grid; justify-items: center; gap: 1.375rem; }
.stich img { width: min(100%, 22rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  filter: sepia(.32) contrast(1.06);
  box-shadow: 0 26px 52px -30px rgba(46,36,25,.7); }
.stich figcaption { font-style: italic; letter-spacing: .04em; color: #7A5230;
  text-align: center; max-width: min(100%, 22rem); }
.stich--klein img { width: min(100%, 15rem); }

/* Das Gebet */
.gebet { display: grid; justify-items: center; gap: 2.75rem; }
.gebet__worte {
  display: grid; gap: 1.5rem; max-width: min(100%, 38rem); text-align: center;
  font-family: var(--titel); font-weight: 300; font-style: italic;
  font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.56; color: #3B3020;
}
.gebet__worte b { font-weight: 500; font-style: normal; letter-spacing: .06em; }

/* Leseprobe — als Zitat abgesetzt */
.probe { display: grid; justify-items: center; gap: 2rem; }
.probe__blatt {
  position: relative; max-width: min(100%, 44rem); padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.75rem, 5vw, 4rem);
  background: #FFFCF4; border: 1px solid rgba(199,158,95,.42); border-radius: 3px;
  box-shadow: 0 24px 56px -40px rgba(90,66,40,.55);
}
.probe__blatt::before {
  content: '„'; position: absolute; top: -.15em; left: -.32em;
  font-family: var(--titel); font-size: 7rem; line-height: 1; color: rgba(199,158,95,.34);
}
.probe__blatt p + p { margin-top: 1.25rem; }
.probe__quelle { font-family: var(--aus); font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--tinte-zart); }

/* Die Kapitel */
.kapitel { display: grid; gap: clamp(2.5rem, 5vw, 3.75rem); }
.kapitel__raster {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
}
.kap { display: grid; align-content: start; justify-items: center; gap: .9rem; text-align: center; }
.kap img { width: 100%; max-width: min(100%, 9.5rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  filter: sepia(.3) contrast(1.05); box-shadow: 0 14px 28px -18px rgba(46,36,25,.6);
  transition: transform .4s ease, box-shadow .4s ease; }
.kap:hover img { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 34px -18px rgba(46,36,25,.7); }
.kap__zahl { font-family: var(--aus); font-size: .7rem; letter-spacing: .26em; color: var(--tinte-zart); }
.kap__titel { font-family: var(--titel); font-size: 1.3125rem; line-height: 1.34; color: var(--tinte);
  min-height: calc(2 * 1.34em); display: flex; align-items: start; justify-content: center; }
.kapitel__schluss { display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-style: italic; color: var(--tinte-weich); }

/* Auf dem Telefon zwei Zeichen nebeneinander statt vierzehn Zeilen untereinander */
@media (max-width: 34rem) {
  .kapitel__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .kap img { max-width: 7.25rem; }
  .kap__titel { font-size: 1.125rem; min-height: calc(3 * 1.34em); }
}

/* Über die Autorin */
.autorin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.autorin__text { display: grid; gap: 1.5rem; max-width: var(--lese); }
.autorin__ruf { font-family: var(--titel); font-style: italic; font-weight: 300;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.34; color: #33281F; }
@media (max-width: 52rem) { .autorin { grid-template-columns: 1fr; text-align: center; }
  .autorin__text { justify-self: center; } }

/* Bestellen */
.bestellen { display: grid; justify-items: center; gap: 2rem; text-align: center; }
.bestellen__daten { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem;
  font-family: var(--aus); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tinte-weich); }
.bestellen__daten span { display: inline-flex; align-items: center; gap: 1.25rem; }
.bestellen__daten span:not(:last-child)::after { content: ''; width: 4px; height: 4px;
  border-radius: 50%; background: var(--gold); }

/* Kontakt */
.kontakt { display: grid; justify-items: center; gap: 1.75rem; text-align: center; }
.kontakt__adresse { font-family: var(--titel); font-size: clamp(1.5rem, 3vw, 2.125rem);
  color: var(--tinte); border-bottom: 1px solid rgba(199,158,95,.6); padding-bottom: .25rem; }

/* ══ FUSS ══════════════════════════════════════════════════ */
.fuss { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: #F6E9D3; border-top: 1px solid rgba(199,158,95,.42); }
.fuss__reihe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem 2rem; }
.fuss__titel { font-family: var(--titel); font-style: italic; font-size: 1.5rem; color: var(--tinte); }
.fuss__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.fuss__nav a, .fuss__fein { font-family: var(--aus); font-size: .8rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--tinte-weich); }
.fuss__fein { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(199,158,95,.34);
  font-size: .78rem; letter-spacing: .06em; text-transform: none; line-height: 1.7; }

/* ══ Blowout-Schutz ════════════════════════════════════════
   Einspaltige Raster bekommen sonst eine max-content-Spur und
   werden breiter als ihr Platz — auf dem Telefon sichtbar als
   abgeschnittener Text. minmax(0,1fr) erlaubt das Schrumpfen. */
.hero__inhalt, .fragen, .fragen__liste, .buch__text, .entstehung__text,
.stich, .gebet, .gebet__worte, .probe, .kapitel, .kap, .autorin__text,
.bestellen, .kontakt, .rechtstext {
  grid-template-columns: minmax(0, 1fr);
}

/* ══ Einblenden beim Scrollen ══════════════════════════════ */
/* Inhalt ist standardmaessig sichtbar. Erst wenn das Skript nachweislich
   einblenden kann, setzt es .js-auf auf <html> — schlaegt es fehl, bleibt
   die Seite lesbar statt leer. */
.js-auf .auf { opacity: 0; transform: translateY(22px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js-auf .auf.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-auf .auf { opacity: 1; transform: none; } }

/* ══ Unterseiten (Impressum / Datenschutz) ═════════════════ */
.rechtstext { max-width: var(--lese); display: grid; gap: 1.25rem; }
.rechtstext h2 { font-family: var(--titel); font-size: 1.75rem; margin-top: 1.75rem; }
.rechtstext h1 { font-family: var(--titel); font-style: italic; font-size: clamp(2.25rem, 5vw, 3.25rem); }
.platzhalter { padding: 1.25rem 1.5rem; border-left: 2px solid var(--gold);
  background: #FFFCF4; font-family: var(--aus); font-size: .9rem; letter-spacing: .02em;
  line-height: 1.7; color: var(--tinte-mittel); }

/* ══ Druck ═════════════════════════════════════════════════ */
@media print {
  .kopf, .hero__licht, .hero__korn, .funke, .knopf, .fuss__nav { display: none !important; }
  body { background: #fff; color: #000; }
  .auf { opacity: 1; transform: none; }
}
