/* ============================================================
   THE ROSE — Stylesheet
   Dunkles & helles Theme · Crimson-Akzent · viel Bewegung
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --accent:       #8a0000;   /* exaktes Rot der Original-Seite */
  --accent-2:     #a30000;   /* etwas heller für Hover */
  --accent-deep:  #800020;   /* Burgunder der Original-Seite */
  --accent-glow:  rgba(138, 0, 0, .55);
  --hl:           #e7cba9;   /* exakte Schriftfarbe der Bestseller-Cover (per JS pro Buch gesetzt) */
  --hl-glow:      rgba(231, 203, 169, .5);

  --bg:      #0a0a0a;
  --bg-2:    #111113;
  --bg-3:    #17171a;
  --card:    #141416;
  --text:    #ededed;
  --text-dim:#9a9a9e;
  --border:  rgba(255,255,255,.08);
  --border-2:rgba(255,255,255,.14);
  --shadow:  0 18px 50px rgba(0,0,0,.55);

  --font-display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1240px;
  --header-h: 78px;
}

[data-theme="light"] {
  --bg:      #f4f1ec;
  --bg-2:    #ffffff;
  --bg-3:    #efeae3;
  --card:    #ffffff;
  --text:    #16140f;
  --text-dim:#6a655c;
  --border:  rgba(0,0,0,.10);
  --border-2:rgba(0,0,0,.16);
  --shadow:  0 18px 50px rgba(60,40,30,.18);
  --accent-glow: rgba(138, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s ease, color .5s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- animated background particles ---------- */
.particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.particles span {
  position: absolute; bottom: -20px; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0; animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) scale(.5); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .5; }
  100% { transform: translateY(-105vh) scale(1.4); opacity: 0; }
}

/* ---------- marquee / Laufband ---------- */
.marquee {
  position: relative; z-index: 30;
  background: var(--accent);
  color: #fff; overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 0 24px var(--accent-glow);
}
.marquee__track {
  display: inline-block; padding: 9px 0;
  font-family: var(--font-display); letter-spacing: .28em; font-weight: 600; font-size: .82rem;
  animation: scroll-left 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { padding: 0 1.4rem; }
.marquee__track span::before { content: "✦"; padding-right: 1.4rem; color: rgba(255,255,255,.7); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Spanish notice bar ---------- */
.es-notice { position: relative; z-index: 29; text-align: center; padding: 11px 18px;
  background: var(--bg-3); color: var(--text); border-bottom: 1px solid var(--border);
  font-size: .92rem; letter-spacing: .02em; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, height .4s ease;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem); letter-spacing: .22em;
  display: flex; gap: .5ch; align-items: baseline; cursor: pointer;
}
.logo .rose { color: var(--accent); text-shadow: 0 0 22px var(--accent-glow); }
.logo:hover .rose { animation: pulse-glow 1.2s ease infinite; }
@keyframes pulse-glow {
  50% { text-shadow: 0 0 34px var(--accent), 0 0 8px var(--accent); }
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav__link {
  font-size: .82rem; letter-spacing: .18em; font-weight: 500; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .5ch;
  padding: 6px 2px; position: relative; color: var(--text-dim);
  transition: color .25s ease;
}
.nav__link svg { width: 18px; height: 18px; opacity: .85; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right .3s ease;
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link:hover::after, .nav__link.active::after { right: 0; }

.controls { display: flex; align-items: center; gap: 14px; }
.divider { width: 1px; height: 26px; background: var(--border-2); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); transition: .3s ease;
  color: var(--text);
}
.icon-btn:hover { border-color: var(--accent); transform: rotate(20deg) scale(1.08); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }

.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  padding: 7px 13px; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  display: flex; align-items: center; gap: 6px; color: var(--text-dim); transition: .25s ease;
}
.lang-toggle button .flag { font-size: 1rem; line-height: 1; }
.flagsvg { width: 20px; height: 13px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.15); object-fit: cover; }
.cover__lang .flagsvg { width: 16px; height: 11px; }
.lang-toggle button.active { background: var(--accent); color: #fff; }
.lang-toggle button:not(.active):hover { background: var(--bg-3); color: var(--text); }

/* ---------- generic section ---------- */
main { position: relative; z-index: 1; }
.section { padding: clamp(56px, 9vw, 120px) clamp(18px, 4vw, 48px); scroll-margin-top: 90px; }
.container { max-width: var(--maxw); margin: 0 auto; }
.section-title {
  font-family: var(--font-display); text-align: center;
  font-size: clamp(2rem, 6vw, 4rem); letter-spacing: .12em; font-weight: 700;
  color: var(--accent); text-shadow: 0 0 40px var(--accent-glow);
}
.section-title.light-title { color: var(--text); text-shadow: none; }
.title-rule { width: 110px; height: 3px; margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); border-radius: 2px; }
.section-lead { text-align: center; color: var(--text-dim); max-width: 760px; margin: 28px auto 0;
  font-family: var(--font-serif); font-size: 1.25rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: clamp(20px, 5vw, 70px);
  padding: clamp(30px, 6vw, 70px) clamp(18px, 5vw, 64px) clamp(40px, 6vw, 90px);
  overflow: hidden;
}
.hero__bgword {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .14em;
  font-size: clamp(4rem, 17vw, 15rem); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(200,16,46,.10);
  opacity: .6;
}
.hero__bgword .rose { -webkit-text-stroke: 1px rgba(200,16,46,.28); }
.hero__content { position: relative; z-index: 2; max-width: 620px; }
.hero__kicker {
  display: inline-block; font-family: var(--font-display); letter-spacing: .4em;
  color: var(--accent); font-size: .8rem; margin-bottom: 18px;
  opacity: 0; animation: fade-up .8s .1s forwards;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700; line-height: 1.05;
  font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: .06em; margin-bottom: 8px;
  opacity: 0; animation: fade-up .9s .25s forwards;
}
.hero__title .rose { color: var(--accent); text-shadow: 0 0 40px var(--accent-glow); }
.hero__rule { width: 90px; height: 3px; background: var(--accent); margin: 18px 0 28px;
  opacity: 0; animation: grow-line 1s .5s forwards; }
@keyframes grow-line { from { width: 0; opacity: 0; } to { width: 90px; opacity: 1; } }
.hero__text { color: var(--text-dim); font-family: var(--font-serif); font-size: 1.2rem;
  margin-bottom: 18px; opacity: 0; animation: fade-up 1s .7s forwards; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px;
  opacity: 0; animation: fade-up 1s .95s forwards; }

@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; letter-spacing: .12em;
  font-size: .8rem; text-transform: uppercase; transition: .3s ease; border: 1px solid var(--border-2);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 10px 30px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 16px 40px var(--accent-glow); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ---------- hero carousel ---------- */
.hero__stage {
  position: relative; z-index: 2; height: clamp(360px, 56vh, 560px);
  display: grid; place-items: center; perspective: 1600px;
}
.hero__stage .fc {
  position: absolute; width: clamp(220px, 22vw, 320px); aspect-ratio: 2/3;
  border-radius: 8px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity 1.1s ease, filter 1.1s ease;
  opacity: 0; transform: translateX(0) scale(.7) rotateY(0); filter: blur(3px) brightness(.5);
}
.hero__stage .fc img { width: 100%; height: 100%; object-fit: cover; }
.hero__stage .fc.pos-c { opacity: 1; transform: translateX(0) scale(1) rotateY(0); filter: none; z-index: 5; }
.hero__stage .fc.pos-l { opacity: .55; transform: translateX(-58%) scale(.82) rotateY(28deg); filter: brightness(.55); z-index: 3; }
.hero__stage .fc.pos-r { opacity: .55; transform: translateX(58%) scale(.82) rotateY(-28deg); filter: brightness(.55); z-index: 3; }
.hero__stage .fc.pos-c::after {
  content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 0 60px rgba(200,16,46,.25); border-radius: 8px;
}
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Hero-Highlight: THE FIFTH SCENT & CLOE — gold gerahmt, groß als Popup mittig */
.hero__stage { overflow: visible; }
.hero__stage.hero-pop .fc.pos-l,
.hero__stage.hero-pop .fc.pos-r { opacity: 0; pointer-events: none; }
.hero__stage .fc.fc-highlight.pos-c {
  animation: none;
  transform: translateX(0) scale(1.18) rotateY(0);
  z-index: 25; overflow: visible;
  box-shadow: 0 0 90px var(--hl-glow), 0 0 0 3px var(--hl), 0 36px 80px rgba(0,0,0,.65);
}
.hero__stage .fc img { border-radius: 8px; }
.hero__stage .fc.fc-highlight.pos-c::after {
  box-shadow: inset 0 0 70px rgba(217,177,90,.30);
  border-color: var(--hl);
}
.fc .fc-tag { display: none; }
.fc.fc-highlight.pos-c .fc-tag {
  display: block; position: absolute; top: -34px; bottom: auto; left: 50%; transform: translateX(-50%);
  z-index: 6; white-space: nowrap;
  background: var(--hl); color: #3a2700;
  font-family: var(--font-display); font-weight: 700; font-size: .58rem; letter-spacing: .16em;
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 4px 16px var(--hl-glow);
}

/* ---------- toolbar (search + filters) ---------- */
.toolbar { max-width: 940px; margin: 0 auto; }
.search {
  position: relative; margin-top: 44px;
}
.search input {
  width: 100%; padding: 18px 20px 18px 56px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  font-size: 1rem; transition: .3s ease; font-family: var(--font-sans);
}
.search input::placeholder { color: var(--text-dim); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--text-dim); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.pill {
  padding: 10px 22px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  border: 1px solid var(--border-2); color: var(--text-dim);
  transition: .25s ease; white-space: nowrap;
}
.pill:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.pill.active { background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow); }

/* ---------- book grid ---------- */
.grid {
  display: grid; gap: clamp(22px, 3vw, 38px);
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  margin-top: clamp(40px, 6vw, 64px);
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
  opacity: 0; transform: translateY(34px);
}
.card.reveal { opacity: 1; transform: none; }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--border-2); }

/* 3D flip cover */
.cover {
  position: relative; aspect-ratio: 2/3; perspective: 1400px; background: #000;
  overflow: hidden;
}
.cover__inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.4,.1,.2,1);
}
.cover.flipped .cover__inner { transform: rotateY(180deg); }
.cover__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.cover__face img { width: 100%; height: 100%; object-fit: cover; }
.cover__face--back { transform: rotateY(180deg); }
.cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65));
  opacity: 0; transition: opacity .4s ease;
}
.card:hover .cover::after { opacity: 1; }
.cover__lang {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  padding: 4px 9px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff;
  border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px);
  display: flex; align-items: center; gap: 5px;
}
.cover__shine {
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%; z-index: 3;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.card:hover .cover__shine { animation: shine .9s ease; }
@keyframes shine { to { left: 130%; } }

/* "Deutsche Ausgabe" stamp — only on DE page for books without a German cover */
.de-stamp {
  position: absolute; top: 12px; right: 10px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1;
  font-family: var(--font-display); text-transform: uppercase; color: #fff;
  background: linear-gradient(var(--accent), var(--accent-deep));
  border: 2px solid rgba(255,255,255,.85); border-radius: 5px;
  padding: 6px 12px; transform: rotate(-7deg);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.de-stamp b { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.de-stamp span { font-size: .56rem; letter-spacing: .22em; }
.bd-cover .de-stamp { top: 16px; right: 14px; padding: 9px 16px; }
.bd-cover .de-stamp b { font-size: 1.05rem; }
.bd-cover .de-stamp span { font-size: .74rem; }

/* Age rating 18+ badge (e.g. CLOE) */
.age18 {
  position: absolute; top: 10px; left: 10px; z-index: 6;
  width: 38px; height: 38px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff;
  background: #d10019; border: 2px solid #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.5);
}
.bd-cover .age18 { width: 52px; height: 52px; font-size: 1.5rem; top: 14px; left: 14px; border-radius: 10px; }

.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.badge {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; padding: 5px 11px; border-radius: 6px;
  background: var(--bg-3); color: var(--text-dim); border: 1px solid var(--border);
}
.badge.genre-erotic { color: #ff8bb0; border-color: rgba(255,139,176,.35); }
.badge.genre-horror { color: #ff7a59; border-color: rgba(255,122,89,.35); }
.badge.badge-age { color: #fff; background: var(--accent); border-color: var(--accent); }
.badge.badge-de { color: var(--hl); background: rgba(217,177,90,.12); border-color: rgba(217,177,90,.4); }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem;
  line-height: 1.25; margin-bottom: 4px; }
.card__sub { font-size: .68rem; letter-spacing: .12em; color: var(--accent); text-transform: uppercase;
  font-weight: 600; margin-bottom: 8px; }
.card__author { font-size: .72rem; letter-spacing: .16em; color: var(--text-dim);
  text-transform: uppercase; margin-bottom: 12px; }
.card__desc { font-family: var(--font-serif); font-size: 1.02rem; color: var(--text-dim);
  flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.amazon-btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 600;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--border-2);
  letter-spacing: .06em; transition: .25s ease;
}
.amazon-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.amazon-btn svg { width: 16px; height: 16px; }
.unavail { font-size: .74rem; color: var(--text-dim); font-style: italic; }

/* ---------- series ---------- */
.series-block { margin-top: clamp(48px, 7vw, 88px); }
.series-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.series-head h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: .08em; color: var(--text); }
.series-head .by { color: var(--accent); font-size: .8rem; letter-spacing: .2em; font-weight: 600; }
.series-head .count { color: var(--text-dim); font-size: .85rem; }
.series-desc { color: var(--text-dim); font-family: var(--font-serif); font-size: 1.15rem; max-width: 760px; margin-bottom: 8px; }
.series-foreword { max-width: 820px; margin: 8px 0 14px; }
.series-foreword p { font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.7; color: var(--text-dim); margin-bottom: 12px; }
.series-foreword p:first-child { font-family: var(--font-display); color: var(--accent); font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: .03em; line-height: 1.3; margin-bottom: 12px; }
.series-foreword p:last-child { color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.grid--series { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid--series .card__title { font-size: 1rem; }
.grid--series .card__desc { -webkit-line-clamp: 2; font-size: .95rem; }
.vol-no {
  position: absolute; bottom: 10px; right: 10px; z-index: 4;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow);
}

.no-results { text-align: center; color: var(--text-dim); font-family: var(--font-serif);
  font-size: 1.3rem; padding: 60px 0; grid-column: 1 / -1; }

/* ---------- book detail page ---------- */
#book-detail { display: none; position: relative; min-height: calc(100vh - var(--header-h)); padding-top: clamp(28px,5vw,56px); }
body.detail-mode main > section:not(#book-detail) { display: none; }
body.detail-mode #book-detail { display: block; }
.cursor-link { cursor: pointer; }
.card__title.cursor-link:hover { color: var(--accent); }

.bd-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: .18; pointer-events: none; }
.bd-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(34px) saturate(1.2); transform: scale(1.2); }
.bd-backdrop::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 60% at 70% 20%, transparent, var(--bg) 90%), linear-gradient(180deg, transparent, var(--bg)); }
.bd-wrap { position: relative; z-index: 1; }

.bd-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  color: var(--text-dim); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; transition: .25s ease;
}
.bd-back::before { content: "←"; font-size: 1.1rem; }
.bd-back:hover { color: var(--accent); transform: translateX(-4px); }

.bd-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.bd-cover-col { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.bd-cover { position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.bd-cover img { width: 100%; height: 100%; object-fit: cover; }
.bd-cover .cover__lang { position: absolute; top: 12px; left: 12px; }
.bd-cover.flippable { cursor: pointer; }
.bd-cover.flippable::after { content: "⇄ DE / EN"; position: absolute; bottom: 10px; right: 10px;
  font-size: .62rem; letter-spacing: .1em; padding: 4px 9px; border-radius: 6px;
  background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.25); opacity: 0; transition: .3s; }
.bd-cover.flippable:hover::after { opacity: 1; }
.bd-buy { justify-content: center; }

.bd-content { max-width: 760px; }
.bd-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.bd-author { font-size: .78rem; letter-spacing: .18em; color: var(--text-dim); text-transform: uppercase; }
.bd-title { font-family: var(--font-display); font-weight: 700; line-height: 1.1;
  font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .03em; }
.bd-tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--accent); margin-top: 14px; }
.bd-rule { width: 80px; height: 3px; background: var(--accent); margin: 26px 0; border-radius: 2px; }
.bd-desc { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.75; color: var(--text); }
.bd-desc p { margin-bottom: 1.1rem; }
.bd-desc p:last-child { color: var(--accent); font-weight: 600; font-style: italic; }
.bd-pages { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; gap: 26px; flex-wrap: wrap; color: var(--text-dim); font-size: .92rem; }
.bd-pages b { color: var(--text); font-family: var(--font-display); }
.bd-pages:empty { display: none; }

@media (max-width: 820px) {
  .bd-grid { grid-template-columns: 1fr; }
  .bd-cover-col { position: static; flex-direction: row; gap: 16px; align-items: flex-start; }
  .bd-cover { width: 180px; flex: none; }
  .bd-buy { align-self: center; }
}

/* ---------- legal pages ---------- */
#legal-view { display: none; min-height: calc(100vh - var(--header-h)); scroll-margin-top: 90px; }
body.legal-mode main > section:not(#legal-view) { display: none; }
body.legal-mode #legal-view { display: block; }

/* Series as a separate page (only shown via the SERIES nav) */
#series { display: none; }
body.series-mode:not(.detail-mode):not(.legal-mode) main > section:not(#series) { display: none; }
body.series-mode #series { display: block; }
.lg-wrap { max-width: 900px; }
.lg-content { margin-top: 38px; font-family: var(--font-serif); font-size: 1.14rem; line-height: 1.8; color: var(--text); }
.lg-content h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); margin: 34px 0 10px; letter-spacing: .03em; }
.lg-content h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--text); margin: 22px 0 6px; letter-spacing: .02em; }
.lg-content p { margin-bottom: 14px; }
.lg-content a { color: var(--accent); text-decoration: underline; }
.lg-content .lg-lead { color: var(--text-dim); font-style: italic; }
.lg-content .lg-note { color: var(--text-dim); font-size: .98rem; border-left: 3px solid var(--border-2); padding-left: 14px; }
#lg-back { margin-bottom: 30px; }

/* ---------- age confirmation gate (18+) ---------- */
.age-gate { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.age-gate.open { display: flex; animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.age-gate__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); backdrop-filter: blur(6px); }
.age-gate__card {
  position: relative; z-index: 1; max-width: 460px; width: 100%; text-align: center;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 16px;
  padding: 38px 30px; box-shadow: var(--shadow);
}
.age-gate__badge {
  width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: #fff;
  background: var(--accent); border: 2px solid #fff; box-shadow: 0 6px 20px var(--accent-glow);
}
.age-gate__card h2 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .04em; margin-bottom: 14px; }
.age-gate__card p { color: var(--text-dim); font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.65; margin-bottom: 26px; }
.age-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.amazon-btn.locked { cursor: pointer; border-style: dashed; }
.amazon-btn.locked:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px clamp(18px,4vw,48px);
  text-align: center; color: var(--text-dim); background: var(--bg-2); position: relative; z-index: 1; }
.footer .logo { justify-content: center; margin-bottom: 16px; font-size: 1.55rem; }
.footer__tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--text); margin-bottom: 28px; }
.footer__qr { display: inline-flex; flex-direction: column; align-items: center; gap: 9px; margin-bottom: 28px; }
.qr-box { width: 92px; height: 92px; background: #fff; border-radius: 10px; padding: 7px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.qr-box svg, .qr-box img { display: block; width: 100%; height: 100%; }
.footer__qr span { font-family: var(--font-display); letter-spacing: .28em; font-size: .7rem; color: var(--text-dim); }
.footer__social { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.social-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-2); color: var(--text); transition: .3s ease;
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translateY(-3px); box-shadow: 0 8px 22px var(--accent-glow); }
.footer__copy { font-size: .82rem; letter-spacing: .04em; margin-bottom: 18px; }
.footer__legal { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.footer__legal a { font-size: .82rem; letter-spacing: .06em; color: var(--text-dim); transition: color .25s ease; }
.footer__legal a:hover { color: var(--accent); }
.footer__sep { color: var(--border-2); }

/* ---------- scroll reveal helper ---------- */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal-on-scroll.reveal { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — Tablet & Handy
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }
img, svg, video { max-width: 100%; }

/* Tablet landscape */
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .hero__stage .fc { width: clamp(200px, 30vw, 300px); }
}

/* Tablet — hero stacks */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-bottom: 34px; }
  .hero__content { margin: 0 auto; }
  .hero__rule { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__stage { order: -1; height: clamp(300px, 54vw, 420px); margin-bottom: 16px; }
}

/* Tablet portrait / large phone */
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .grid--series { grid-template-columns: repeat(2, 1fr); }
  .card__title { font-size: 1.02rem; }
  .card__desc { font-size: .94rem; }
  .card__body { padding: 14px 15px 18px; }
  .section-lead { font-size: 1.1rem; }
  .series-head h3 { font-size: clamp(1.3rem, 5vw, 1.9rem); }
}

/* Phone */
@media (max-width: 600px) {
  :root { --header-h: 62px; }
  .header { padding: 0 14px; }
  .nav { gap: 12px; }
  .nav .nav__text { display: none; }
  .nav__link svg { width: 21px; height: 21px; }
  .divider { display: none; }
  .logo { font-size: 1.2rem; letter-spacing: .1em; }
  .controls { gap: 8px; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 18px; height: 18px; }
  .lang-toggle button { padding: 6px 9px; }
  .flagsvg { width: 18px; height: 12px; }
  .marquee__track { font-size: .72rem; letter-spacing: .2em; }

  .section { padding: clamp(42px, 9vw, 68px) 14px; }
  .hero { padding: 24px 16px 30px; }
  .hero__bgword { opacity: .3; }
  .hero__stage { height: 360px; margin-top: 42px; }  /* Platz fuer das Bestseller-Label ueber dem Laufband */
  .hero__stage .fc.pos-l, .hero__stage .fc.pos-r { display: none; }
  .hero__stage .fc.pos-c { width: clamp(190px, 56vw, 230px); }
  .hero__stage .fc.fc-highlight.pos-c { transform: scale(1.16); }
  .hero__text { font-size: 1.08rem; }

  .search input { padding: 15px 16px 15px 48px; font-size: .95rem; }
  .search svg { left: 16px; width: 20px; height: 20px; }
  .pill { padding: 9px 16px; font-size: .8rem; }

  /* book detail */
  .bd-cover-col { flex-direction: column; align-items: stretch; }
  .bd-cover { width: 100%; max-width: 240px; margin: 0 auto; }
  .bd-buy { width: 100%; }
  .bd-desc { font-size: 1.06rem; line-height: 1.7; }
  .bd-tagline { font-size: 1.2rem; }

  /* legal */
  .lg-content { font-size: 1.02rem; line-height: 1.7; }
  .lg-content h3 { font-size: 1.18rem; }

  /* footer */
  .footer { padding: 44px 16px; }
  .footer__tagline { font-size: 1.05rem; }
}

/* Small phone */
@media (max-width: 430px) {
  .grid { gap: 13px; }
  .card__desc { -webkit-line-clamp: 2; }
  .logo { font-size: 1.05rem; }
  .lang-toggle button .lang-text { display: none; }
  .section-title { font-size: clamp(1.7rem, 9vw, 2.4rem); }
  .hero__title { font-size: clamp(2.3rem, 13vw, 3rem); }
  .footer__legal { flex-direction: column; gap: 8px; }
  .footer__sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .marquee__track { animation: scroll-left 26s linear infinite; }
}
