:root {
  --bg: #000;
  --card: #111113;
  --card-2: #1c1c1f;
  --ink: #f5f5f7;
  --muted: #8e8e93;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #f5c542;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.accent { color: var(--accent); }

/* Hero mit Poster-Collage */
.hero {
  position: relative; overflow: hidden;
  min-height: min(86vh, 820px);
  display: grid; place-items: center;
  padding: 96px 24px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: -6%;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; align-content: center;
  animation: drift 60s ease-in-out infinite alternate;
}
.hero-bg img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 640px) { .hero-bg { grid-template-columns: repeat(4, 1fr); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.8) 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 30%, transparent 60%, var(--bg));
}
@keyframes drift { to { transform: translate(-3%, -2%) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
/* Link oben rechts (Leseliste / zurück zur Bücherliste) */
.top-link {
  position: absolute; top: 20px; right: 24px; z-index: 2;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700;
}
.top-link:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.top-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Leseliste */
.hero-small { min-height: min(52vh, 520px); }
.wl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 24px; }
.wl-card { display: flex; background: var(--card); border-radius: 24px; overflow: hidden; }
.wl-card img { width: 160px; flex: none; align-self: flex-start; aspect-ratio: 2 / 3; object-fit: cover; }
.wl-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wl-body h2 { margin: 0 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.wl-body .meta { color: var(--muted); font-size: 16px; }
.wl-body p { margin: 8px 0 0; font-size: 18px; color: #c7c7cc; }
.watch { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--card-2); display: grid; gap: 8px; }
.where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.where-label { color: var(--muted); font-size: 15px; font-weight: 600; margin-right: 4px; }
.svc { padding: 4px 11px; border-radius: 999px; background: var(--card-2); font-size: 15px; font-weight: 600; }
.svc.on { background: var(--accent); color: #000; }
.watch .more { justify-self: start; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.asof { color: var(--muted); font-size: 15px; margin: 28px 0 0; text-align: center; }

/* Sprachschalter oben links */
.lang {
  position: absolute; top: 20px; left: 24px; z-index: 2;
  display: flex; padding: 4px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.lang button {
  border: 0; border-radius: 999px; padding: 8px 14px; min-width: 48px;
  background: transparent; color: var(--muted); font-size: 15px; font-weight: 700; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: #000; }
.lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero-inner { position: relative; z-index: 1; max-width: 960px; }
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.lead { margin: 28px 0 0; font-size: clamp(19px, 2.4vw, 26px); color: #d1d1d6; font-weight: 500; letter-spacing: -0.01em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Rubriken */
.section { padding-top: 72px; scroll-margin-top: 16px; }
.section > h2 { margin: 0 0 28px; font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.row .card h3 { font-size: 22px; }
.row .card .score { font-size: 30px; }
.row .card .score span { font-size: 18px; }
.row .card-body { padding: 18px 20px 22px; }

/* Filter */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.chip {
  border: 0; border-radius: 999px;
  padding: 12px 22px;
  background: var(--card-2); color: var(--ink);
  font-size: 17px; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chip:hover { background: #2a2a2e; }
.chip.active { background: var(--accent); color: #000; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column;
  border: 0; padding: 0; text-align: left;
  background: var(--card); border-radius: 24px; overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-4px); }
.card .poster { aspect-ratio: 2 / 3; overflow: hidden; }
.card .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .poster img { transform: scale(1.03); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.card .meta { color: var(--muted); font-size: 17px; }

.score { font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.score b { color: var(--accent); }
.score span { color: var(--muted); font-weight: 600; }
.card .score { font-size: 36px; margin-top: 6px; }
.card .score span { font-size: 20px; }

.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 6px; }
.card .rating .score { margin-top: 0; }
.verdict { padding: 5px 12px; border-radius: 999px; background: var(--card-2); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.verdict.top { background: var(--accent); color: #000; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) 140px 40px; align-items: center; gap: 14px; font-size: 18px; }
.bar-label small { color: var(--muted); font-size: 15px; }
.bar { height: 8px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bars-note { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.award { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--accent); }
.award svg { flex: none; }

.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 20px; }

.footer { text-align: center; color: var(--muted); font-size: 15px; padding: 96px 24px 48px; }
.footer a { color: var(--muted); }

/* Banger-Alarm im Hero */
.hero-signup {
  display: flex; gap: 8px; margin: 36px auto 0; max-width: 560px; padding: 6px;
  border-radius: 999px; background: rgba(245, 245, 240, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 2px solid transparent;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.hero-signup input[type="email"] {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #111113;
  font: inherit; font-size: 18px; padding: 12px 18px; outline: none;
}
.hero-signup input::placeholder { color: #3a3a3c; }
.hero-signup:focus-within { border-color: var(--accent); }
.hero-signup button { border: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700; padding: 14px 24px; white-space: nowrap; }
.hero-signup button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.signup-msg { margin: 14px 0 0; min-height: 1.5em; font-size: 16px; color: #a1a1a6; }
.signup-msg.ok { color: var(--accent); font-weight: 600; }
.signup-msg.err { color: #ff6b6b; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Popup */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.overlay[hidden] { display: none; }
.overlay-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; width: 100%; max-width: 820px; max-height: calc(100vh - 48px);
  overflow-y: auto; border-radius: 28px;
  background: var(--card);
  animation: pop 0.25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }
.sheet-img { aspect-ratio: 16 / 8; background-size: cover; background-position: center 30%; position: relative; }
/* Buch-Popup: Cover scharf vor unscharfem Cover */
.sheet-img.book { aspect-ratio: auto; height: 380px; display: grid; place-items: center; overflow: hidden; }
.sheet-img.book::before { content: ""; position: absolute; inset: -40px; background: var(--cover) center / cover; filter: blur(30px) brightness(0.55); }
.sheet-img.book::after { z-index: 1; }
.sheet-img.book img { position: relative; z-index: 2; height: 290px; width: auto; border-radius: 8px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6); margin-bottom: 40px; }
.sheet-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--card), transparent 60%); }
.close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.sheet-body { padding: 0 40px 40px; margin-top: -40px; position: relative; z-index: 1; }
.sheet h2 { margin: 0; font-size: clamp(36px, 6vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.sheet .aka { color: var(--muted); font-size: 18px; margin-top: 8px; }
.sheet .rating { margin: 20px 0 10px; }
.sheet .score { font-size: 56px; }
.sheet .verdict { font-size: 17px; padding: 7px 16px; }
.sheet .score span { font-size: 28px; }
.facts { color: var(--muted); font-size: 18px; }

.sheet h3 { margin: 36px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sheet p { margin: 0; }
.review { font-size: 21px; line-height: 1.55; }
.logline { color: #c7c7cc; }

.tip {
  margin-top: 32px; padding: 18px 22px; border-radius: 18px;
  background: rgba(245, 197, 66, 0.12); color: var(--accent);
  font-size: 18px; font-weight: 600;
}

.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.awards li { display: flex; gap: 10px; align-items: baseline; font-size: 18px; }
.awards .won { color: var(--ink); font-weight: 600; }
.awards .nom { color: var(--muted); }
.awards li::before { flex: none; width: 1.3em; }
.awards .won::before { content: "🏆"; }
.awards .nom::before { content: "·"; text-align: center; font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 999px;
  font-size: 18px; font-weight: 600; text-decoration: none;
  background: var(--card-2); color: var(--ink);
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn.primary { background: var(--accent); color: #000; }

/* Tablet */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { min-height: 72vh; padding: 72px 16px; }
  .lang { top: 16px; left: 16px; }
  .top-link { top: 16px; right: 16px; padding: 9px 16px; }
  .hero-small { min-height: 46vh; }
  .wl-grid { grid-template-columns: 1fr; gap: 16px; }
  .wl-card { border-radius: 20px; }
  .wl-card img { width: 112px; }
  .wl-body { padding: 16px 18px; }
  .wl-body h2 { font-size: 21px; }
  .wl-body .meta { font-size: 15px; }
  .wl-body p { font-size: 16px; }
  .hero-signup {
    flex-direction: column; gap: 10px; padding: 0; border: 0; border-radius: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  }
  .hero-signup input[type="email"] {
    text-align: center; padding: 16px 18px; border-radius: 999px;
    background: rgba(245, 245, 240, 0.45);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    border: 2px solid transparent; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  }
  .hero-signup input[type="email"]:focus { border-color: var(--accent); }
  .hero-signup:focus-within { border-color: transparent; }
  .hero-signup button { width: 100%; padding: 16px 24px; }
  .wrap { padding: 0 16px; }
  .section { padding-top: 64px; }
  .row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .row::-webkit-scrollbar { display: none; }
  .row .card { flex: none; width: 62vw; flex-direction: column; scroll-snap-align: start; }
  .row .card .poster { width: 100%; }
  .row .card-body { padding: 14px 16px 18px; }
  .row .card h3 { font-size: 19px; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 32px; padding: 0 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 11px 18px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { flex-direction: row; border-radius: 20px; }
  .card .poster { width: 112px; flex: none; }
  .card-body { padding: 16px 18px; gap: 4px; justify-content: center; }
  .card h3 { font-size: 21px; }
  .card .meta { font-size: 16px; }
  .card .score { font-size: 30px; }
  .card .score span { font-size: 17px; }
  .award { font-size: 16px; }
  .overlay { padding: 0; place-items: end center; }
  .sheet { max-height: 94vh; border-radius: 24px 24px 0 0; }
  .sheet-body { padding: 0 20px 32px; margin-top: -24px; }
  .sheet-img.book { height: 300px; }
  .sheet-img.book img { height: 220px; margin-bottom: 24px; }
  .sheet .score { font-size: 48px; }
  .bars li { grid-template-columns: minmax(0, 1fr) 90px 36px; gap: 10px; font-size: 17px; }
  .bar-label small { display: block; }
  .card .verdict { font-size: 14px; padding: 4px 10px; }
  .review { font-size: 19px; }
  .btn { flex: 1; padding: 16px 20px; }
}

/* Textseiten (Impressum, Abgemeldet) */
.text-page { max-width: 720px; padding-top: 72px; padding-bottom: 96px; font-size: 19px; }
.text-page h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 24px 0 28px; }
.text-page h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 48px 0 12px; }
.text-page p { margin: 0 0 16px; color: #c7c7cc; }
.text-page a { color: var(--ink); }
.text-page .btn { color: #000; margin-top: 16px; }
.text-page .muted { color: var(--muted); }
.text-page.center { text-align: center; padding-top: 22vh; }
.back { color: var(--muted) !important; text-decoration: none; font-weight: 600; font-size: 16px; }
