/* =========================================================
   Broad Economy — Bücher
   Eigenständige Gestaltung, bewusst anders als der Rest
   der Seite: Apple-Ruhe (viel Weißraum, große Typo, weiche
   Radien, ein einziger Aktionston) auf Rams'scher Strenge
   (nur das Nötige, klare Ordnung, ehrliche Materialien).
   Diese Datei steht für sich — styles.css wird hier nicht
   geladen, damit sich nichts gegenseitig überschreibt.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  /* Flächen */
  --bg:      #F5F5F7;   /* ruhiger Seitengrund */
  --card:    #FFFFFF;   /* Kachel — hebt sich hell ab */
  --ink:     #1D1D1F;
  --ink-2:   #6E6E73;   /* Nebentext */
  --line:    rgba(0, 0, 0, .10);
  --accent:  #0071E3;   /* einziger Aktionston */
  --accent-h:#0077ED;

  /* Maße */
  --max:     980px;
  --gutter:  clamp(20px, 5vw, 40px);
  --bar-h:   52px;
  --radius:  22px;

  /* Bewegung */
  --ease: cubic-bezier(.22, .68, .18, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #000000;
    --card:    #1C1C1E;
    --ink:     #F5F5F7;
    --ink-2:   #A1A1A6;
    --line:    rgba(255, 255, 255, .14);
    --accent:  #2997FF;
    --accent-h:#4AA9FF;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter',
               'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection { background: var(--accent); color: #fff; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-size: 13px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------
   Kopfleiste — schmal, milchig, immer sichtbar
   Links die Rücktaste zur Startseite, rechts der Seitenname.
   --------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: -10px;
  padding: 7px 12px 7px 10px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.back:hover { background: var(--card); color: var(--accent); }
.back__chevron {
  font-size: 16px;
  line-height: 1;
  transition: transform .3s var(--ease);
}
.back:hover .back__chevron { transform: translateX(-3px); }

.topbar__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------
   Auftakt
   --------------------------------------------------------- */

.hero {
  padding-block: clamp(64px, 13vw, 132px) clamp(40px, 7vw, 72px);
  text-align: center;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.9rem, 8.5vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero__sub {
  margin: clamp(18px, 3vw, 26px) auto 0;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.015em;
}

/* ---------------------------------------------------------
   Bücher — Kacheln, untereinander
   Links das Cover, rechts Titel, Preis, Beschreibung, Taste.
   --------------------------------------------------------- */

.books {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  padding-bottom: clamp(56px, 9vw, 104px);
}

.book {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4.4vw, 52px);
  background: var(--card);
  border-radius: var(--radius);
}

@media (min-width: 720px) {
  .book { grid-template-columns: minmax(160px, 216px) 1fr; }
}

/* Cover */

.book__cover {
  justify-self: center;
  width: 100%;
  max-width: 216px;
}
/* Die Cover sind gerenderte Mockups und bringen Schatten und
   hellen Grund schon mit. Deshalb liegt hier nichts darüber:
   kein Rahmen, kein Radius, kein zweiter Schatten. */
.book__cover img {
  width: 100%;
  height: auto;
  transition: transform .55s var(--ease);
}
.book:hover .book__cover img { transform: translateY(-6px) scale(1.015); }

/* Platzhalter, solange ein Cover noch fehlt */
.book__cover--empty {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ink-2);
}

/* Text */

.book__meta {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.book__title {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.book__price {
  margin: 12px 0 0;
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.book__text {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.book__text + .book__text { margin-top: 12px; }

.book__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 30px);
}

/* ---------------------------------------------------------
   Tasten
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 980px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-h); }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--quiet:hover { border-color: var(--ink-2); color: var(--accent); }

/* ---------------------------------------------------------
   Fußzeile — Rückweg und Pflichtangaben
   --------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 7vw, 76px);
  text-align: center;
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: clamp(28px, 4vw, 40px);
}
.footer__links a {
  font-size: 13px;
  color: var(--ink-2);
  transition: color .3s var(--ease);
}
.footer__links a:hover { color: var(--accent); }

.footer__note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------
   Bewegung — dezent, und abschaltbar
   --------------------------------------------------------- */

.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .8s var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .15s; }
.d3 { animation-delay: .27s; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise, .reveal { opacity: 1; transform: none; }
}
