/* ============================================================
   Bücher von Hazdret Zuka — Autoren-Hub auf iamleti.com
   Szene: Schaufenster bei Nacht. Der Raum tritt zurück,
   die Cover tragen die gesamte Farbe.
   ============================================================ */

:root {
  /* Marke, übernommen von iamleti.com */
  --bg:        #0e141d;
  --bg-deep:   #0b111a;
  --surface:   #212c3d;
  --text:      #eef2f7;
  --muted:     #a9b6c7;   /* 7.8:1 auf --bg */
  --accent:    #30bfe5;
  --accent-hot:#6ed6f5;
  --idot:      #e0492b;
  --on-accent: #06141c;
  --line:      #ffffff1a;

  --mass: clamp(1rem, 0.6rem + 2vw, 2rem);
  --rand: clamp(1.25rem, 5vw, 4.5rem);
  --breite: 78rem;

  --z-kopf: 100;

  --kurve: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;              /* helle Schrift auf dunkel braucht Luft */
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hot); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--on-accent);
  padding: .6rem 1rem; border-radius: 6px; z-index: calc(var(--z-kopf) + 1);
}
.skip:focus { left: var(--rand); top: .75rem; }

/* ---------------------------------------------------- Kopf */

.kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--rand);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: var(--z-kopf);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.marke {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.marke .i { color: var(--idot); }
.kopf nav { display: flex; gap: 1.4rem; font-size: .95rem; }
.kopf nav a { color: var(--muted); text-decoration: none; }
.kopf nav a:hover { color: var(--text); }

/* ---------------------------------------------------- Bug (Startseite) */

.bug {
  max-width: var(--breite); margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--rand) clamp(2rem, 5vw, 3.5rem);
}
.bug h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.028em;         /* Boden ist -0.04em */
  margin: 0 0 1.1rem;
  text-wrap: balance;
}
.lead {
  max-width: min(46ch, 100%);                  /* innerhalb 65–75ch inkl. Schriftgrad */
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  margin: 0;
  text-wrap: pretty;
}

/* ---------------------------------------------------- Reihe + Regal */

.reihe {
  max-width: var(--breite); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--rand);
  border-top: 1px solid var(--line);
}
.reihe-kopf { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.reihe-kopf h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 .4rem;
  text-wrap: balance;
}
.reihe-kopf p { color: var(--muted); margin: 0; max-width: min(58ch, 100%); text-wrap: pretty; }

/* Das Regal: Bücher stehen auf einer Linie, unterschiedlich breit. */
.regal {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.buch {
  display: flex; flex-direction: column; gap: .7rem;
  text-decoration: none; color: var(--text);
  max-width: min(15rem, 42vw);
  min-width: 0;
}
.buch img {
  height: clamp(11rem, 19vw, 15.5rem);
  width: auto;
  border-radius: 3px;               /* Papier, nicht Karte */
  /* Eine Eigenschaft: Auflicht-Schatten + feine Kante. Die Kante ist noetig,
     damit dunkle Cover (die Tech-Buecher) vor dunklem Grund nicht verschwinden. */
  box-shadow: 0 6px 16px #00000066, inset 0 0 0 1px #ffffff1f;
  transition: transform .45s var(--kurve), box-shadow .45s var(--kurve);
}
.buch:hover img, .buch:focus-visible img {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px #00000080, inset 0 0 0 1px #ffffff33;
}
.buch-titel {
  font-size: .92rem; line-height: 1.4; color: var(--muted);
  transition: color .25s var(--kurve);
}
.buch:hover .buch-titel { color: var(--text); }

/* ---------------------------------------------------- Buchseite */

.detail {
  max-width: var(--breite); margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--rand) clamp(2.5rem, 6vw, 4rem);
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; }
  .detail-bild { max-width: 15rem; }
}
.detail-bild img {
  border-radius: 4px;
  box-shadow: 0 14px 32px #0000008c, inset 0 0 0 1px #ffffff1f;
}
.rueck { margin: 0 0 1.2rem; font-size: .92rem; }
.rueck a { color: var(--muted); text-decoration: none; }
.rueck a:hover { color: var(--accent); }
.rueck a::before { content: "← "; }

.detail h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.08; letter-spacing: -0.024em;
  margin: 0 0 .35rem; text-wrap: balance;
}
.unter {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--accent);
  margin: 0 0 1.6rem;
}
.text { max-width: min(64ch, 100%); margin: 0 0 1.6rem; text-wrap: pretty; }

.punkte { margin: 0 0 2rem; padding: 0; list-style: none; max-width: min(60ch, 100%); }
.punkte li {
  position: relative; padding-left: 1.6rem; margin-bottom: .6rem;
  color: var(--muted);
}
.punkte li::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--idot);
}

.aktion { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.knopf, .knopf-still {
  display: inline-block; padding: .85rem 1.5rem;
  border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: transform .3s var(--kurve), background-color .3s var(--kurve);
}
.knopf { background: var(--accent); color: var(--on-accent); }
.knopf:hover { background: var(--accent-hot); color: var(--on-accent); transform: translateY(-2px); }
.knopf-still { border: 1px solid var(--line); color: var(--text); }
.knopf-still:hover { border-color: var(--accent); color: var(--accent); }

.ausgaben { font-size: .95rem; color: var(--muted); }
.ausgaben span { margin-right: .3rem; }

/* ---------------------------------------------------- Fuss */

.fuss {
  max-width: var(--breite); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--rand) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .95rem;
}
.fuss p { margin: 0 0 .4rem; }
.fuss .klein { font-size: .88rem; }
.fuss a { color: var(--muted); }
.fuss a:hover { color: var(--accent); }

/* ---------------------------------------------------- Bewegung
   Auftritt beim Laden. Läuft zuverlässig (kein Scroll-Trigger),
   und bei reduzierter Bewegung bleibt alles sofort sichtbar. */

@media (prefers-reduced-motion: no-preference) {
  .bug h1, .bug .lead, .detail-bild, .detail-text {
    animation: auf .7s var(--kurve) both;
  }
  .bug .lead      { animation-delay: .08s; }
  .detail-text    { animation-delay: .06s; }
  .regal .buch    { animation: auf .6s var(--kurve) both; }
  .regal .buch:nth-child(1) { animation-delay: .02s; }
  .regal .buch:nth-child(2) { animation-delay: .06s; }
  .regal .buch:nth-child(3) { animation-delay: .10s; }
  .regal .buch:nth-child(4) { animation-delay: .14s; }
  .regal .buch:nth-child(n+5) { animation-delay: .18s; }
}

@keyframes auf {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Verweis auf die Amazon-Autorenseite unter dem Einleitungstext */
.autorzeile { margin-top: 1.1rem; }
.autorzeile a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  padding-bottom: 2px;
  transition: border-color .25s var(--kurve);
}
.autorzeile a:hover { border-bottom-color: var(--accent); }
