/* Quiz: Übersicht, Einstieg, Spiel und Ergebnisseite */

.quiz-marke {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}
.quiz-klein { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.quiz-klein a { color: var(--red); }
.quiz-du {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
}

/* ---- Übersicht ---- */
.prose a.quiz-karte {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 26px;
  margin-bottom: 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  color: var(--text-2);
  text-decoration: none;
  font-weight: 400;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.prose a.quiz-karte:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.06); color: var(--text-2); }
.prose a.quiz-karte-aktuell { border-color: var(--gold); background: var(--gold-light); }
.quiz-karte-kopf { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.quiz-karte-stand { font-size: 13px; color: var(--text-2); }
.quiz-karte-titel { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; line-height: 1.25; }
.quiz-karte-unter, .quiz-karte-status { font-size: 14.5px; }
.quiz-karte-status strong { color: var(--text); }

/* ---- Einstieg ---- */
.quiz-runden { list-style: none; padding: 0; margin: 16px 0 14px; display: grid; gap: 8px; }
.quiz-runden li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}
.quiz-runden-nr {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-runden-text { display: flex; flex-direction: column; line-height: 1.4; }
.quiz-runden-text span { font-size: 13.5px; }

.quiz-rang { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0 10px; }
.quiz-rang th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
}
.quiz-rang td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.quiz-rang .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quiz-rang tr.ich td { background: var(--gold-light); }
.quiz-rang td a { color: var(--text); font-weight: 600; }
.quiz-rang-titel { color: var(--text-2); font-size: 13.5px; }
.quiz-rang-luecke td { text-align: center; color: var(--text-2); border-bottom: none; padding: 2px; }

/* ---- Spiel ---- */
section.quiz-buehne { padding: 40px 20px 80px; background: var(--bg); min-height: 70vh; }
.quiz-spiel { max-width: 720px; margin: 0 auto; }
.quiz-laedt { text-align: center; color: var(--text-2); padding: 60px 0; }

.quiz-kopf { margin-bottom: 16px; }
.quiz-kopf-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.quiz-kopf-punkte { white-space: nowrap; font-variant-numeric: tabular-nums; }
.quiz-kopf-punkte strong { color: var(--text); font-size: 17px; }
.quiz-balken { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.quiz-balken span { display: block; height: 100%; background: var(--red); border-radius: 999px; transition: width 0.3s; }
.quiz-uebung { margin-top: 8px; font-size: 13px; color: var(--text-2); }

.quiz-karte-spiel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 30px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  color: var(--text-2);
  line-height: 1.65;
}
.quiz-karte-spiel h2 {
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 8px 0 20px;
  text-align: left;
  outline: none;
}
.quiz-karte-spiel p { margin: 0 0 14px; }
.quiz-karte-spiel .btn { margin-top: 6px; }
.quiz-intro h2 { font-size: clamp(26px, 5vw, 36px); margin-bottom: 12px; }
.quiz-intro p { font-size: 17px; }
.quiz-knopfzeile { display: flex; gap: 10px; flex-wrap: wrap; }

.quiz-spiel button:focus-visible,
.quiz-spiel input:focus-visible,
.quiz-spiel a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Vier Antworten */
.quiz-antworten { display: grid; gap: 10px; }
.quiz-antwort {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.quiz-antwort:hover:not(:disabled) { border-color: var(--red); }
.quiz-antwort:disabled { cursor: default; opacity: 1; }
.quiz-antwort-nr {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-antwort.gewaehlt, .quiz-duell-karte.gewaehlt { border-color: var(--text); }
.quiz-antwort.richtig, .quiz-duell-karte.richtig { border-color: #16a34a; background: #f0fdf4; }
.quiz-antwort.falsch, .quiz-duell-karte.falsch { border-color: var(--red); background: #fef2f2; }

/* Duell */
.quiz-duell { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.quiz-duell-oder { align-self: center; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); }
.quiz-duell-karte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  padding: 20px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s, transform 0.12s;
}
.quiz-duell-karte:hover:not(:disabled) { border-color: var(--red); transform: translateY(-2px); }
.quiz-duell-karte:disabled { cursor: default; }
.quiz-duell-label { font-size: 17px; font-weight: 600; line-height: 1.35; }
.quiz-duell-wert { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Schätzen */
.quiz-schaetzen { text-align: center; }
.quiz-schaetz-wert { display: block; font-size: 44px; font-weight: 700; color: var(--text); letter-spacing: -1px; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.quiz-schaetzen input[type=range] { width: 100%; height: 36px; accent-color: var(--red); cursor: pointer; }
.quiz-schaetz-skala { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 18px; }

/* Sortieren */
.quiz-sort { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.quiz-sort li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
}
.quiz-sort-pos { flex: 0 0 22px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.quiz-sort-label { flex: 1; font-size: 16px; line-height: 1.35; }
.quiz-sort-knoepfe { display: flex; gap: 6px; }
.quiz-sort-knoepfe button {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
.quiz-sort-knoepfe button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.quiz-sort-knoepfe button:disabled { opacity: 0.3; cursor: default; }

/* Finale */
.quiz-finale-leiste {
  position: sticky;
  top: 60px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 6px;
  background: var(--white);
  font-size: 14px;
  color: var(--text-2);
}
.quiz-uhr {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--black);
  color: var(--gold);
  font-weight: 700;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.quiz-uhr.knapp { background: var(--red); color: var(--white); }
.quiz-finale { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.quiz-finale-karte {
  padding: 14px;
  min-height: 74px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.quiz-finale-karte:hover:not(:disabled) { border-color: var(--red); }
.quiz-finale-karte.gewaehlt { border-color: var(--black); background: var(--black); color: var(--white); }
.quiz-finale-karte:disabled { cursor: default; }

/* Auflösung */
.quiz-loesung { margin-top: 22px; padding: 18px 20px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); }
.quiz-loesung-voll { border-color: #86efac; background: #f0fdf4; }
.quiz-loesung-teil { border-color: var(--gold); background: var(--gold-light); }
.quiz-loesung-null { border-color: #fecaca; background: #fef2f2; }
.quiz-loesung-kopf { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; color: var(--text); }
.quiz-loesung-kopf strong { font-size: 18px; }
.quiz-loesung-kopf span { font-weight: 600; font-variant-numeric: tabular-nums; }
.quiz-loesung strong { color: var(--text); }
.quiz-ordnung { margin: 0 0 14px; padding-left: 22px; }
ul.quiz-ordnung { list-style: none; padding-left: 0; }
.quiz-ordnung li { padding: 4px 0; }
.quiz-ordnung li span { float: right; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; margin-left: 12px; }
.quiz-ordnung li.gewaehlt { font-weight: 700; color: var(--text); }
.quiz-ordnung li.gewaehlt::before { content: "\2713\00a0"; }

/* Abschluss */
.quiz-ende { text-align: center; }
.quiz-ende h2 { text-align: center; margin-bottom: 8px; }
.quiz-ende-punkte { margin: 10px 0 4px; }
.quiz-ende-punkte strong { display: block; font-size: 72px; line-height: 1; letter-spacing: -2px; color: var(--red); font-variant-numeric: tabular-nums; }
.quiz-ende-punkte span { font-size: 14px; color: var(--text-2); }
.quiz-ende form { max-width: 380px; margin: 22px auto 10px; text-align: left; }
.quiz-ende label, .quiz-eigen label { display: block; font-weight: 600; color: var(--text); font-size: 14px; margin-bottom: 6px; }
.quiz-ende input[type=text], .quiz-eigen input[type=text] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  margin-bottom: 8px;
}
.quiz-ende form .btn { width: 100%; justify-content: center; }
.quiz-hinweis { color: var(--red); font-weight: 600; font-size: 14px; }

/* ---- Ergebnisseite ---- */
.quiz-erg-punkte { font-size: clamp(64px, 14vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -3px; color: var(--gold); font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.quiz-erg-von { color: #a3a3a3; font-size: 15px; margin-bottom: 18px; }
.quiz-erg-runden { display: grid; gap: 14px; margin: 18px 0 8px; }
.quiz-erg-runde-kopf { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--text); margin-bottom: 5px; }
.quiz-erg-runde-kopf span:last-child { font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.quiz-teilen { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.quiz-teilen .btn { border: 1.5px solid var(--border); background: var(--white); color: var(--text); }
.quiz-teilen .btn:hover { border-color: var(--red); color: var(--red); }
.quiz-eigen { margin-top: 36px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.quiz-eigen form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.quiz-eigen input[type=text] { flex: 1 1 220px; margin: 0; background: var(--white); }

@media (max-width: 640px) {
  section.quiz-buehne { padding: 20px 12px 60px; }
  .quiz-karte-spiel { padding: 22px 18px 22px; border-radius: 14px; }
  .quiz-duell { grid-template-columns: 1fr; }
  .quiz-duell-karte { min-height: 96px; }
  .quiz-finale { grid-template-columns: 1fr; }
  .quiz-finale-karte { min-height: 0; }
  .quiz-rang-titel, .quiz-rang th:nth-child(3) { display: none; }
  .quiz-rang td, .quiz-rang th { padding: 9px 6px; }
  .quiz-schaetz-wert { font-size: 38px; }
  .quiz-kopf-zeile { font-size: 13px; }
}

/* Das hidden-Attribut muss auch bei .btn (display: inline-flex) gewinnen */
.quiz-spiel [hidden], .quiz-teilen [hidden] { display: none !important; }

/* ---- Landingpage /quiz/ ---- */
.quiz-kostproben { list-style: none; padding: 0 !important; margin: 16px 0 14px !important; display: grid; gap: 10px; }
.quiz-kostproben li {
  margin: 0 !important;
  padding: 16px 18px 16px 20px;
  border-left: 4px solid var(--gold);
  background: var(--gold-light);
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.quiz-titelstufen td { font-size: 16px; }
.quiz-titelstufen td.r { width: 1%; text-align: right; color: var(--text-2); padding-right: 18px; }
.prose .btn-primary, .prose .btn-primary:hover { color: white; text-decoration: none; }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Hero der Landingpage: roter Samt mit Adler, abgedunkelt für lesbaren Text */
.quiz-hero {
  background: #5a0c10 url('/img/samtig.jpg') center 42% / cover no-repeat;
}
.quiz-hero::before {
  background:
    radial-gradient(ellipse at center, rgba(10,10,10,0.18) 0%, rgba(10,10,10,0.42) 75%),
    linear-gradient(to bottom, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.45) 100%);
}
.quiz-hero h1 { text-shadow: 0 2px 22px rgba(0,0,0,0.75); }
.quiz-hero h1 .accent { color: #f0cf7a; }
.quiz-hero .hero-sub { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.85); }
.quiz-hero .hero-note, .quiz-hero .hero-stat-label { text-shadow: 0 1px 8px rgba(0,0,0,0.85); }
.quiz-hero .hero-note { color: #e5e7eb; }
.quiz-hero .hero-badge { background: rgba(10,10,10,0.45); border-color: rgba(240,207,122,0.55); color: #f0cf7a; }
.quiz-hero .hero-stats { border-top-color: rgba(255,255,255,0.25); }
.quiz-hero .hero-stat-value { color: #f0cf7a; }
.quiz-hero .hero-stat-label { color: #e5e7eb; }
.quiz-hero .quiz-erg-punkte { color: #f0cf7a; text-shadow: 0 2px 22px rgba(0,0,0,0.75); }
.quiz-hero .quiz-erg-von { color: #f3f4f6; text-shadow: 0 1px 8px rgba(0,0,0,0.85); }
.quiz-hero .btn-ghost-dark { background: rgba(10,10,10,0.45); color: #fff; border-color: rgba(255,255,255,0.45); }
.quiz-hero .btn-ghost-dark:hover { border-color: #f0cf7a; color: #f0cf7a; }
