/* /kochbuch/: Showroom für „Snacks für den Quizabend“ (17.11.2026).
   Aufbau nach der Bernhack-Showroom-Seite, Farben von QuizTreff: Lila, Gelb, Koralle.
   Alles steht unter .kb, damit Kopf und Fuß von QuizTreff unverändert bleiben. */
.kb {
  --night: #150b2e;
  --night-2: #1d1140;
  --lila: #7c3aed;
  --lila-deep: #4c1d95;
  --lila-soft: #c4b5fd;
  --gelb: #facc15;
  --koralle: #fb7185;
  --koralle-deep: #e11d48;
  --paper: #f7f3ff;
  --cream: #efe7ff;
  --ink: #1e1236;
  --ink-soft: #54486b;
  --line: rgba(30, 18, 54, .14);
  --gutter: 16px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
@media (min-width: 700px) { .kb { --gutter: 32px; } }
@media (min-width: 1100px) { .kb { --gutter: 56px; } }
.kb *, .kb *::before, .kb *::after { box-sizing: border-box; }
.kb img { max-width: 100%; height: auto; display: block; }
.kb a { color: inherit; }
.kb h1, .kb h2, .kb h3 { font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -.015em; }
.kb h2 { font-size: clamp(2rem, 5vw, 3.3rem); }
.kb p { margin: 0; }
.kb .wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.kb :focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-radius: 6px; }

.kb .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lila); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.kb .kicker::before { content: ''; width: 34px; height: 2px; background: currentColor; }
.kb .section-lede { max-width: 640px; color: var(--ink-soft); margin-top: 18px; font-size: 1.125rem; }

/* Schaltflächen */
.kb .btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.0625rem; border-radius: 999px; padding: 17px 28px; min-height: 58px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; text-align: center; }
.kb .btn-primary { background: linear-gradient(180deg, #fde047 0%, #facc15 60%, #eab308 100%); color: #1e1236; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 30px -8px rgba(250, 204, 21, .55), 0 2px 6px rgba(0,0,0,.25); }
.kb .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 18px 40px -8px rgba(250, 204, 21, .7), 0 2px 6px rgba(0,0,0,.25); }
.kb .btn-coral { background: linear-gradient(180deg, #fb7185 0%, #f43f5e 100%); color: #fff; box-shadow: 0 12px 30px -10px rgba(244, 63, 94, .6); }
.kb .btn-coral:hover { transform: translateY(-2px); }
.kb .btn-outline { border: 1.5px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.kb .btn-outline:hover { background: rgba(255,255,255,.08); }
.kb .btn-lila { background: var(--lila); color: #fff; }
.kb .btn-lila:hover { background: #6d28d9; transform: translateY(-2px); }

/* Hero mit Drehscheibe */
.kb .hero { position: relative; background: radial-gradient(120% 80% at 70% 0%, #2c1760 0%, var(--night) 58%); color: #fff; display: grid; grid-template-columns: 1fr; overflow: hidden; }
.kb .stage { position: relative; height: min(56svh, 560px); min-height: 360px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.kb .stage.is-dragging { cursor: grabbing; }
.kb #showroom { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.kb .stage.is-3d #showroom { opacity: 1; }
.kb .stage.is-3d .poster { opacity: 0; pointer-events: none; }
.kb .drag-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(237, 233, 254, .65); opacity: 0; transition: opacity .8s; pointer-events: none; white-space: nowrap; }
.kb .stage.is-3d .drag-hint { opacity: 1; }
.kb .stage.was-dragged .drag-hint { opacity: 0; }
.kb .poster { position: absolute; inset: 0; transition: opacity 1.2s ease; perspective: 1400px; }
.kb .poster-spot { position: absolute; inset: 0; background: radial-gradient(38% 60% at 50% 30%, rgba(233, 213, 255, .16), transparent 70%), radial-gradient(40% 9% at 50% 88%, rgba(250, 204, 21, .12), transparent 70%); }
.kb .poster-disc { position: absolute; left: 50%; bottom: 7%; width: min(78%, 460px); aspect-ratio: 5 / 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, #2a1b4f 0%, #150b2e 75%, transparent 100%); box-shadow: 0 0 0 1.5px rgba(250, 204, 21, .55), 0 0 40px rgba(250, 204, 21, .16); }
.kb .poster-book { position: absolute; left: 50%; bottom: calc(7% + 9%); height: 72%; aspect-ratio: 4 / 5; transform: translateX(-50%) rotateY(-28deg) rotateX(2deg); transform-style: preserve-3d; z-index: 2; }
.kb .pb-front { position: absolute; inset: 0; transform: translateZ(8px); box-shadow: 0 30px 50px -20px rgba(0,0,0,.8); border-radius: 1px 3px 3px 1px; overflow: hidden; }
.kb .pb-front img { width: 100%; height: 100%; object-fit: cover; }
.kb .pb-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 35%, rgba(0,0,0,.12) 100%); }
.kb .pb-spine { position: absolute; top: 0; bottom: 0; left: 0; width: 16px; transform-origin: left center; transform: translateZ(8px) rotateY(-90deg); background: linear-gradient(90deg, #3b1773, #5b21b6 40%, #44198a); }
.kb .pb-pages { position: absolute; top: 1%; bottom: 1%; right: 0; width: 16px; transform-origin: right center; transform: translateZ(8px) rotateY(90deg); background: repeating-linear-gradient(90deg, #f3eee6 0 1px, #d9d0c2 1px 2px); }

.kb .hero-copy { position: relative; z-index: 3; padding: 8px var(--gutter) 56px; max-width: 640px; }
.kb .eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--koralle); margin-bottom: 14px; }
.kb .hero h1 { font-size: clamp(2.5rem, 8vw, 4.2rem); line-height: 1; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.kb .hero h1 span { color: var(--gelb); }
.kb .subtitle { font-size: clamp(1.25rem, 4vw, 1.75rem); font-style: italic; color: #ede9fe; margin-top: 12px; }
.kb .tagline { margin-top: 16px; }
.kb .tagline span { display: inline-block; font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--night); background: var(--gelb); padding: 6px 12px; border-radius: 6px; }
.kb .lede { margin-top: 22px; color: rgba(237, 233, 254, .85); font-size: 1.125rem; max-width: 520px; }

.kb .buybox { position: relative; margin-top: 30px; padding: 24px 18px 20px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.kb .price { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.kb .price-big { font-weight: 900; font-size: clamp(2.8rem, 11vw, 4rem); line-height: 1; color: #fff; letter-spacing: -.02em; }
.kb .price-note { font-size: 1.05rem; color: var(--lila-soft); }
.kb .buy-actions { display: flex; flex-direction: column; gap: 12px; }
.kb .buy-actions .btn { width: 100%; }
.kb .buybox-meta { margin-top: 14px; font-size: .9rem; color: rgba(237, 233, 254, .7); }
@media (min-width: 600px) { .kb .buy-actions { flex-direction: row; flex-wrap: wrap; } .kb .buy-actions .btn { width: auto; } }

@media (min-width: 980px) {
  .kb .hero { grid-template-columns: minmax(440px, 5fr) 7fr; min-height: min(88svh, 820px); align-items: center; }
  .kb .hero-copy { grid-column: 1; grid-row: 1; padding: 80px 0 80px var(--gutter); max-width: 600px; justify-self: end; width: 100%; }
  .kb .stage { grid-column: 1 / -1; grid-row: 1; position: absolute; inset: 0; height: auto; min-height: 0; }
  .kb .poster { left: 40%; }
  .kb .drag-hint { left: 70%; bottom: 28px; }
}

/* Zahlen */
.kb .stats { background: var(--night); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.kb .stats-list { list-style: none; margin: 0 auto; padding: 34px var(--gutter); max-width: 1240px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
.kb .stats-list li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.kb .stat-num { font-weight: 900; font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1; color: var(--gelb); font-variant-numeric: tabular-nums; }
.kb .stat-label { margin-top: 6px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lila-soft); font-weight: 700; }
@media (min-width: 700px) { .kb .stats-list { grid-template-columns: repeat(4, 1fr); } .kb .stats-list li + li { border-left: 1px solid rgba(255,255,255,.08); } }

/* Blätterbuch */
.kb .flip-section { padding: 90px 0 84px; background: radial-gradient(90% 60% at 50% 40%, #ffffff 0%, var(--cream) 100%); overflow: hidden; }
.kb .flip-stage { position: relative; max-width: 1080px; margin: 44px auto 0; padding: 0 var(--gutter); }
.kb .flipbook { margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(46, 16, 101, .28)); }
.kb .flipbook .page { background: #fdfbf6; overflow: hidden; }
.kb .flipbook .page img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.kb .flipbook:not(.is-ready) { display: grid; grid-template-columns: 1fr; max-width: 420px; }
.kb .flipbook:not(.is-ready) .page:not(:first-child) { display: none; }
.kb .flip-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.kb .flip-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.kb .flip-btn:hover { background: var(--ink); color: #fff; }
.kb .flip-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
.kb .flip-status { min-width: 160px; text-align: center; font-size: .95rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Kapitel */
.kb .chapters { padding: 96px 0; background: var(--paper); }
.kb .chapter-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px) { .kb .chapter-grid { grid-template-columns: repeat(2, 1fr); } .kb .chapter { aspect-ratio: 4 / 4.4; } }
@media (min-width: 1000px) { .kb .chapter-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } .kb .chapter { aspect-ratio: 4 / 4.6; } }
.kb .chapter { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); color: #fff; aspect-ratio: 4 / 3.6; isolation: isolate; box-shadow: 0 18px 40px -24px rgba(46, 16, 101, .55); }
.kb .chapter picture, .kb .chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kb .chapter img { transition: transform 1.2s var(--ease); }
.kb .chapter:hover img { transform: scale(1.05); }
.kb .chapter::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,11,46,0) 28%, rgba(21,11,46,.6) 58%, rgba(21,11,46,.95) 100%); z-index: 1; }
.kb .chapter-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; }
.kb .chapter-no { font-size: 2.2rem; line-height: 1; font-weight: 900; color: var(--gelb); display: block; margin-bottom: 6px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.kb .chapter h3 { font-size: 1.45rem; }
.kb .chapter p { margin-top: 8px; font-size: .95rem; line-height: 1.45; color: rgba(255,255,255,.88); }
.kb .chapter-count { display: inline-block; margin-top: 14px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--koralle-deep); padding: 5px 10px; border-radius: 6px; }

/* Kostproben */
.kb .tastes { padding: 96px 0 70px; background: var(--cream); }
.kb .taste-list { max-width: 1240px; margin: 48px auto 0; padding: 0 var(--gutter); display: grid; gap: 64px; }
.kb .taste { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
.kb .taste-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(46, 16, 101, .55); aspect-ratio: 4 / 4.2; }
.kb .taste-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.kb .taste-chapter { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lila); }
.kb .taste h3 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin-top: 10px; }
.kb .taste-intro { font-style: italic; font-size: 1.25rem; line-height: 1.45; margin-top: 14px; color: var(--ink); }
.kb .taste-tip { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--koralle); background: rgba(255,255,255,.65); border-radius: 0 10px 10px 0; color: var(--ink-soft); }
.kb .taste-tip span { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--koralle-deep); margin-bottom: 4px; }
.kb .taste-meta { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kb .taste-meta li { font-size: .88rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.kb .taste-page { margin-top: 22px; font-weight: 800; font-size: 1.05rem; color: var(--lila-deep); display: flex; align-items: center; gap: 10px; }
.kb .taste-page::before { content: ''; width: 26px; height: 2px; background: currentColor; }
@media (min-width: 900px) {
  .kb .taste { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .kb .taste-flip .taste-photo { order: 2; }
}

/* Den Quizabend planen */
.kb .plan { position: relative; padding: 96px 0; background: radial-gradient(70% 90% at 20% 50%, #6d28d9 0%, var(--lila-deep) 50%, var(--night) 100%); color: #fff; overflow: hidden; }
.kb .plan::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.kb .plan-inner { position: relative; display: grid; gap: 36px; align-items: center; }
.kb .plan .kicker { color: var(--gelb); }
.kb .plan h2 { color: #fff; }
.kb .plan-text > p { margin-top: 18px; font-size: 1.12rem; max-width: 580px; color: rgba(237, 233, 254, .92); }
.kb .plan-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.kb .plan-list li { display: flex; gap: 12px; align-items: flex-start; color: #fff; }
.kb .plan-list li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--koralle); box-shadow: 0 0 0 4px rgba(251,113,133,.25); }
.kb .plan .btn { margin-top: 30px; }
.kb .plan-links { margin-top: 18px; font-size: .95rem; color: rgba(237, 233, 254, .8); }
.kb .plan-links a { color: var(--gelb); text-underline-offset: 3px; }
.kb .plan-visual { justify-self: center; width: min(76vw, 360px); transform: rotate(3deg); }
.kb .plan-visual img { border-radius: 6px; box-shadow: 0 40px 60px -25px rgba(0,0,0,.7); }
@media (min-width: 900px) { .kb .plan-inner { grid-template-columns: 1.3fr 1fr; gap: 70px; } }

/* Abschluss */
.kb .final { padding: 96px 0; background: radial-gradient(80% 80% at 30% 40%, #ffffff, var(--cream)); }
.kb .final-inner { display: grid; gap: 40px; align-items: center; }
.kb .final-cover { width: min(64vw, 340px); justify-self: center; transform: rotate(-4deg); }
.kb .final-cover img { border-radius: 2px 6px 6px 2px; box-shadow: -8px 0 0 -4px var(--lila-deep), 0 40px 60px -25px rgba(46, 16, 101, .7); }
.kb .final-text > p { margin-top: 18px; font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; }
.kb .final .price { margin-top: 26px; }
.kb .final .price-big { color: var(--ink); }
.kb .final .price-note { color: var(--lila); }
.kb .final .buybox-meta { color: var(--ink-soft); }
.kb .final .btn-outline { border-color: var(--ink); color: var(--ink); }
.kb .final .btn-outline:hover { background: rgba(30,18,54,.06); }
@media (min-width: 900px) { .kb .final-inner { grid-template-columns: 1fr 1.3fr; gap: 80px; } .kb .final-cover { width: 380px; } }
@media (max-width: 520px) { .kb .btn { padding: 15px 20px; font-size: 1rem; } }

/* Einblenden beim Scrollen */
.kb-js .kb .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.kb-js .kb .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .kb-js .kb .reveal { opacity: 1; transform: none; transition: none; }
  .kb .chapter img, .kb .btn { transition: none; }
}

/* Volle Breite: die Seite schließt den schmalen <main> des Kopfes und öffnet ihn vor dem Fuß
   wieder. Beide bleiben leer, deshalb ohne Mindesthöhe und Innenabstand. */
main:has(+ .kb), .kb ~ main { min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
