/* Quiz-Plus (23.10.2026): Darstellungs-Ebene für /quiz und /adventskalender-quiz.
   Durchgehend fester Weiter-Button, weniger Rand am Handy, Antwort-Kacheln statt Auswahllisten,
   Ideen für die Anziehung, Zwischen-Slides mit Social Proof, Videos am E-Mail-Schritt, FAQ im Checkout-Schritt.
   Schritte, Felder, Werte und Tracking bleiben unverändert (siehe quiz-plus.js). */

/* ── Fester Weiter-Button: auf jedem Schritt, auch beim Tippen und im Checkout-Schritt ── */
@media (max-width: 700px) {
  body.quiz-page,
  body.quiz-page.quiz-checkout-step,
  body.quiz-page.quiz-typing:not(.quiz-checkout-step) {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
  body.quiz-page .quiz-navigation,
  body.quiz-page.quiz-checkout-step .quiz-navigation,
  body.quiz-page.quiz-typing:not(.quiz-checkout-step) .quiz-navigation {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    margin: 0;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(22, 14, 23, 0.97);
    border-top: 1px solid var(--q-line);
    box-shadow: 0 -8px 30px #00000055;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  body.quiz-page.qp-keyboard .quiz-navigation {
    padding-bottom: 10px;
  }
  body.quiz-page .quiz-navigation .back-button {
    width: 56px;
    height: 56px;
    flex: none;
  }
  body.quiz-page .quiz-navigation > .button {
    min-height: 56px;
    flex: 1;
  }
  body.quiz-page .quiz-panel input,
  body.quiz-page .quiz-panel textarea,
  body.quiz-page .quiz-panel select {
    scroll-margin-bottom: 110px;
  }
}
/* Desktop: Button bleibt am unteren Rand der Karte sichtbar */
@media (min-width: 701px) {
  body.quiz-page .quiz-navigation {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 14px 0 16px;
    background: linear-gradient(180deg, transparent, var(--q-card) 30%);
  }
}
/* Status-Zeile hat eine feste Höhe, damit nichts nachrutscht */
body.quiz-page .draft-status {
  min-height: 1.5em;
  margin-top: 14px;
  margin-bottom: 0;
}
body.quiz-page .draft-status:empty {
  visibility: hidden;
}

/* Fehlermeldung als Hinweis direkt über dem Button */
body.quiz-page #quiz-error:not(:empty) {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 61;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #4c1f37;
  border: 1px solid #a24a76;
  color: #ffe3ef;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 30px #0008;
  animation: qp-rise 0.25s ease-out;
}
body.quiz-page.qp-keyboard #quiz-error:not(:empty) {
  bottom: auto;
  top: 12px;
}
body.quiz-page.qp-error-dismissed #quiz-error {
  display: none;
}
@media (min-width: 701px) {
  body.quiz-page #quiz-error:not(:empty) {
    position: static;
    margin-top: 10px;
    animation: none;
  }
}
@keyframes qp-rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* ── Weniger Rand am Handy: Karte bleibt, Abstand außen 10 px statt 20, innen 16 px statt 20 ── */
@media (max-width: 700px) {
  body.quiz-page .atelier-section {
    padding: 10px 10px 24px;
  }
  body.quiz-page .atelier-form {
    padding: 24px 16px 26px;
  }
}

/* ── Antwort-Kacheln (ersetzen sichtbar die Auswahllisten, die Liste bleibt die Quelle der Antwort) ── */
.qp-native {
  display: none !important;
}
body.quiz-page .quiz-panel label.qp-has-chips {
  margin-bottom: 0;
  padding-bottom: 0;
}
.qp-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 18px;
}
.qp-chips.is-wide {
  grid-template-columns: 1fr;
}
.qp-chip {
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--q-line-strong, #5a3b52);
  background: var(--q-field, #2b1b29);
  color: var(--q-ink, #f4e6ec);
  font: 500 15px/1.25 var(--sans);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.1s;
}
.qp-chip::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--q-line-strong, #5a3b52);
  transition: 0.15s;
}
.qp-chip:active {
  transform: scale(0.98);
}
.qp-chip[aria-checked="true"] {
  border-color: var(--q-accent, #e9a9c5);
  background: #3d2236;
}
.qp-chip[aria-checked="true"]::before {
  border-color: var(--q-accent, #e9a9c5);
  background: var(--q-accent, #e9a9c5);
  box-shadow: inset 0 0 0 3px #3d2236;
}
.qp-chip.is-other {
  color: var(--q-muted, #b598a7);
  border-style: dashed;
}
.qp-chips.is-invalid .qp-chip {
  border-color: #c4628f;
}
@media (hover: hover) {
  .qp-chip:hover {
    border-color: var(--q-accent, #e9a9c5);
  }
}

/* ── Anziehung: Ideen zum Antippen ── */
.qp-ideas {
  margin: 10px 0 4px;
}
.qp-ideas > p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--q-muted, #b598a7);
}
.qp-ideas > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.qp-idea {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--q-line-strong, #5a3b52);
  background: transparent;
  color: var(--q-ink, #f4e6ec);
  font: 500 13.5px/1.2 var(--sans);
  cursor: pointer;
}
.qp-idea::before {
  content: "+ ";
  color: var(--q-accent, #e9a9c5);
}
.qp-idea.is-used {
  border-color: var(--q-accent, #e9a9c5);
  background: #3d2236;
}
.qp-idea.is-used::before {
  content: "✓ ";
}
.qp-assure {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #2a1a28;
  border: 1px solid var(--q-line, #3d2838);
  font-size: 13.5px;
  line-height: 1.45;
  color: #d9c0cd;
}
.qp-assure::before {
  content: "✧";
  color: var(--q-accent, #e9a9c5);
  flex: none;
}

/* ── Echte Cover / Videos ── */
.qp-proof {
  margin: 22px -16px 4px;
  padding: 18px 16px 4px;
  border-top: 1px solid var(--q-line, #3d2838);
}
.qp-proof-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.qp-proof-head strong {
  font: 500 21px/1.15 var(--serif);
  color: var(--q-ink, #f4e6ec);
}
.qp-proof-head strong em {
  color: var(--q-accent, #e9a9c5);
}
.qp-proof-head span,
.qp-proof-note {
  font-size: 12px;
  color: var(--q-soft, #8f7385);
}
.qp-reel {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px 6px;
}
.qp-reel::-webkit-scrollbar {
  display: none;
}
.qp-tile {
  position: relative;
  flex: none;
  width: 132px;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #2b1b29;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.qp-tile.is-cover {
  width: 112px;
  aspect-ratio: 5 / 8;
  border-radius: 6px;
  box-shadow: 0 8px 20px #0007;
}
.qp-tile.is-cover::after {
  display: none;
}
.qp-tile video,
.qp-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qp-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, #160e17e6);
  pointer-events: none;
}
.qp-tile span {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  z-index: 1;
  font: 500 14px/1.12 var(--serif);
  color: #f4ebf0;
  text-align: left;
}
.qp-proof-note {
  margin: 6px 0 0;
}
/* ── Platzhalter-Hinweis am Cover ── */
body.quiz-page .cover-hint {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #2a1a28;
  border: 1px solid var(--q-line, #3d2838);
  font-size: 12.5px;
  line-height: 1.45;
}
body.quiz-page .cover-hint::before {
  content: "✧";
  color: var(--q-accent, #e9a9c5);
  flex: none;
}

/* ── FAQ im Checkout-Schritt ── */
.qp-faq {
  margin: 22px 0 6px;
}
.qp-faq > strong {
  display: block;
  font: 500 22px/1.15 var(--serif);
  color: var(--q-ink, #f4e6ec);
  margin-bottom: 4px;
}
.qp-faq > p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--q-muted, #b598a7);
}
.qp-faq details {
  border-top: 1px solid var(--q-line, #3d2838);
}
.qp-faq details:last-of-type {
  border-bottom: 1px solid var(--q-line, #3d2838);
}
.qp-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 0;
  font: 500 15px/1.3 var(--sans);
  color: var(--q-ink, #f4e6ec);
  cursor: pointer;
}
.qp-faq summary::-webkit-details-marker {
  display: none;
}
.qp-faq summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--q-line-strong, #5a3b52);
  display: grid;
  place-items: center;
  color: var(--q-accent, #e9a9c5);
  transition: transform 0.2s;
}
.qp-faq details[open] summary::after {
  transform: rotate(45deg);
}
.qp-faq details p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #d9c0cd;
}
.qp-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}
.qp-pay span {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--q-line-strong, #5a3b52);
  font-size: 12px;
  color: #d9c0cd;
}

/* ── Zwischen-Slides ── */
.qp-moment {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, #4c2b4555, transparent 60%), var(--q-bg, #160e17);
  color: var(--q-ink, #f4e6ec);
  animation: qp-fade 0.3s ease-out;
}
.qp-moment[hidden] {
  display: none;
}
@keyframes qp-fade {
  from {
    opacity: 0;
  }
}
.qp-moment-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 16px 20px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.qp-moment-top {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--q-accent, #e9a9c5);
  margin-bottom: 12px;
}
.qp-moment h2 {
  font: 500 34px/1.06 var(--serif);
  margin: 0 0 10px;
  color: var(--q-ink, #f4e6ec);
}
.qp-moment h2 em {
  color: var(--q-accent, #e9a9c5);
}
.qp-moment-lead {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #d9c0cd;
}
.qp-moment-bar {
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--q-line, #3d2838);
  background: rgba(22, 14, 23, 0.97);
}
.qp-moment-bar .button {
  width: 100%;
  max-width: 528px;
  margin: 0 auto;
  min-height: 56px;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  position: relative;
}
.qp-moment-bar .arrow-circle {
  position: absolute;
  right: 7px;
  top: 50%;
  margin-top: -21px;
}
/* Collage */
.qp-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 92px;
  gap: 6px;
  margin: 0 0 12px;
}
.qp-collage > * {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #2b1b29;
}
.qp-collage > .tall {
  grid-row: span 2;
}
.qp-collage > .wide {
  grid-column: span 2;
}
.qp-collage img,
.qp-collage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.quiz-page .quiz-panel .input-row:has(.qp-chips) {
  display: block;
}
.qp-moment-bar .button {
  display: flex;
}
.qp-collage > .wide:last-child {
  grid-column: span 3;
}
@media (min-width: 701px) {
  .qp-collage {
    grid-auto-rows: 120px;
  }
}

/* ── Trustpilot-Widget (wischbar, ohne Animation) ── */
.qp-tp {
  margin-top: 18px;
}
.qp-tp-widget {
  padding: 16px 0 14px;
  border-radius: 18px;
  background: #241722;
  border: 1px solid var(--q-line, #3d2838);
}
.qp-tp-head,
.qp-tp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.qp-tp-head {
  margin-bottom: 12px;
}
.qp-tp-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 17px/1 var(--sans);
  letter-spacing: -0.01em;
  color: var(--q-ink, #f4e6ec);
}
.qp-tp-logo svg {
  width: 22px;
  height: 22px;
  fill: #00b67a;
}
.qp-tp-nav {
  display: flex;
  gap: 6px;
}
.qp-tp-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--q-line-strong, #5a3b52);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.qp-tp-nav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--q-ink, #f4e6ec);
  stroke-width: 2;
}
.qp-tp-row,
.qp-reel {
  scroll-padding-inline: 14px;
}
.qp-tp-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 14px 2px;
  -webkit-overflow-scrolling: touch;
}
.qp-tp-row::-webkit-scrollbar {
  display: none;
}
.qp-tp-card {
  flex: none;
  width: min(270px, 74vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  color: #191919;
  font: 400 14px/1.45 var(--sans);
}
.qp-tp-stars {
  display: flex;
  gap: 2px;
}
.qp-tp-stars i {
  width: 20px;
  height: 20px;
  background: #00b67a;
  display: grid;
  place-items: center;
}
.qp-tp-stars i.is-off {
  background: #dcdce6;
}
.qp-tp-stars svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}
.qp-tp-card strong {
  margin: 10px 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.qp-tp-card p {
  margin: 0;
  flex: 1;
  color: #3b3b3b;
}
.qp-tp-card .qp-tp-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #6b6b6b;
}
.qp-tp-card .qp-tp-meta b {
  color: #191919;
  font-weight: 600;
}
.qp-tp-foot {
  margin-top: 12px;
}
.qp-tp-dots {
  display: flex;
  gap: 5px;
}
.qp-tp-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--q-line-strong, #5a3b52);
  transition: 0.2s;
}
.qp-tp-dots i.is-on {
  width: 16px;
  border-radius: 3px;
  background: #00b67a;
}
.qp-tp-foot a {
  font-size: 12px;
  color: var(--q-muted, #b598a7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Fan-Nachrichten ── */
.qp-fan {
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: #2a1a28;
  border: 1px solid var(--q-line, #3d2838);
}
.qp-fan blockquote {
  margin: 0;
  font: italic 500 18px/1.38 var(--serif);
  color: var(--q-ink, #f4e6ec);
}
.qp-fan figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--q-soft, #8f7385);
}
.qp-fan figcaption i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--q-accent-deep, #4c2b45);
  color: var(--q-chip, #f0c7da);
  font: 600 14px/1 var(--sans);
  font-style: normal;
}
.qp-fan figcaption b {
  display: block;
  font-size: 13px;
  color: var(--q-ink, #f4e6ec);
}
.qp-collage.is-three {
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: clamp(80px, calc(100svh - 690px), 150px);
}
.qp-pay-slide {
  margin-top: 14px;
}

/* ── Streifen „So könnte dein Cover aussehen“ mit Rand ── */
.qp-covers .qp-reel {
  gap: 12px;
  padding-top: 4px;
  padding-bottom: 14px;
}
.qp-covers .qp-tile.is-cover {
  width: 104px;
}

/* ── Collage passt ohne Scrollen auf den Bildschirm ── */
.qp-collage {
  grid-auto-rows: clamp(84px, calc((100svh - 380px) / 3), 160px);
}

/* ── Aufgeräumt: kein doppelter Cover-Hinweis, keine Statuszeile, kein Cover-Großbild ── */
body.quiz-page .cover-notice,
body.quiz-page #summary-zoom {
  display: none !important;
}
body.quiz-page #cover-shot {
  cursor: default;
}


/* Streifen mit Rand statt randlos bis an die Karte */
.qp-proof {
  margin-inline: 0;
  padding-inline: 0;
}
.qp-reel {
  margin: 0;
  padding: 0 0 6px;
  scroll-padding-inline: 0;
}
.qp-idea {
  text-align: left;
}
.qp-fan figcaption img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.qp-fan figcaption i {
  background: linear-gradient(135deg, #e9a9c5, #7c3d64);
  color: #2a1426;
}

/* Kleinere Trustpilot-Karten, dafür mehr Fotos (User 23.10.) */
.qp-tp-widget {
  padding: 12px 0 10px;
}
.qp-tp-head {
  margin-bottom: 9px;
}
.qp-tp-logo {
  font-size: 14px;
}
.qp-tp-logo svg {
  width: 18px;
  height: 18px;
}
.qp-tp-nav button {
  width: 30px;
  height: 30px;
}
.qp-tp-card {
  width: min(220px, 62vw);
  padding: 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
}
.qp-tp-stars i {
  width: 15px;
  height: 15px;
}
.qp-tp-stars svg {
  width: 11px;
  height: 11px;
}
.qp-tp-card strong {
  margin: 7px 0 3px;
  font-size: 13px;
}
.qp-tp-card .qp-tp-meta {
  margin-top: 8px;
  font-size: 11px;
}
.qp-tp-foot {
  margin-top: 9px;
}
.qp-collage.is-mini {
  margin-top: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(60px, calc((100svh - 650px) / 2), 104px);
  gap: 5px;
}
.qp-collage.is-mini > * {
  border-radius: 9px;
}

/* Lange Wörter (»Universitätscampus«) brechen in der Kachel um statt herauszuragen */
.qp-chip > span {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Abstand zwischen Fan-Karten und Trustpilot-Widget */
.qp-tp > .qp-fan + .qp-fan {
  margin-top: 10px;
}
.qp-tp > .qp-fan + .qp-tp-widget {
  margin-top: 16px;
}

/* Kein blaues Aufblitzen beim Antippen von Optionen (Mobil-Browser-Markierung) */
body.quiz-page label,
body.quiz-page button,
body.quiz-page .funnel-option,
body.quiz-page summary {
  -webkit-tap-highlight-color: transparent;
}
/* Hinweis zum fehlenden Widerrufsrecht im Funnel ausgeblendet (User 23.10.); steht in den verlinkten Widerrufsinfos */
body.quiz-page #print-rights {
  display: none !important;
}
/* Radio/Checkbox bekommen beim Antippen kein Fokus-Kästchen (Feld-Fokusstil galt auch für sie) */
body.quiz-page .quiz-panel input[type="radio"]:focus,
body.quiz-page .quiz-panel input[type="checkbox"]:focus {
  outline: none;
  box-shadow: none;
  background-color: transparent;
}
body.quiz-page .quiz-panel input[type="radio"]:focus-visible,
body.quiz-page .quiz-panel input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--q-accent, #e9a9c5);
  outline-offset: 2px;
}
