/* ==========================================================================
   Tatort-Quiz – angelehnt an das Theme „tatort-v4“ von tatort-fans.de
   (Bootstrap 5.3.0, Standardfarben, weiße Content-Cards ohne Rundung)
   ========================================================================== */

/* --- 1:1 aus dem Theme ---------------------------------------------------- */
#breadcrumbs, #breadcrumbs a { color: #5a5d62; font-size: .75rem; line-height: 1.125rem; }
body { background-color: #f8f9fa; }

.content-card {
  background-color: white;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-top: 2rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.article-title { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; }
.article-text  { font-size: 1.1rem; line-height: 1.6; }
@media (min-width: 1020px) { .article-text { width: 83.333%; margin-left: auto; margin-right: auto; } }
@media (max-width: 575.98px) { .content-card { padding: 1.25rem; } .article-title { font-size: 1.8rem; } }

.nav-buttons { margin-bottom: 2rem; }
.teaser-title { font-size: 1.5rem; margin-bottom: 1rem; }
.small-teaser-title { font-size: 1.2rem; margin-top: 1rem; }
.teaser-info { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; color: #666; }
.teaser-info-item { display: flex; align-items: center; gap: 5px; }
.teaser-info-item img { width: 16px; height: 16px; }
.small-teaser-image { object-fit: cover; height: 200px; width: 100%; }
.small-teaser-description { font-size: 0.9rem; margin-top: 0.5rem; }
.card { border: none; background-color: transparent; }
.thumbnail-overlay {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background-color: #007bff; color: white;
  padding: 5px 10px; border-radius: 5px; font-weight: bold; font-size: 0.9em;
}

/* --- Ergänzungen fürs Quiz -------------------------------------------------- */
.teaser-placeholder {
  display: grid; place-items: center; background: #212529;
  min-height: 200px; height: 100%;
}
.teaser-big-image { min-height: 260px; }
.level-badges .badge { font-weight: 600; }

/* Countdown */
.countdown { display: flex; gap: .5rem; }
.countdown > div { background: #212529; color: #fff; padding: .5rem .25rem; min-width: 64px; text-align: center; }
.countdown span { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .7rem; text-transform: uppercase; opacity: .7; }

/* Schwierigkeitsgrad-Auswahl */
.level-btn {
  display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 100%;
  padding: 1.25rem 1rem; background: #fff; color: #212529;
  border: 1px solid #dee2e6; border-top: 4px solid var(--lv); border-radius: 0;
  box-shadow: 0 0 10px rgba(0,0,0,.06); transition: transform .12s ease, box-shadow .12s ease;
}
.level-btn:hover, .level-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.12); }
.level-btn .level-icon { font-size: 1.8rem; color: var(--lv); }
.level-btn .level-name { font-weight: 700; font-size: 1.2rem; }
.level-btn .level-count { font-size: .85rem; color: #666; }

/* Spiel */
.quiz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-size: .9rem; color: #666; }
.quiz-progress { height: 6px; border-radius: 0; }
.question-text { font-size: 1.35rem; font-weight: 500; line-height: 1.4; margin: 1.5rem 0; }
.answer-btn {
  display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left;
  padding: .8rem 1rem; background: #fff; color: #212529;
  border: 1px solid #ced4da; border-radius: .375rem; transition: border-color .12s, background .12s;
}
.answer-btn:hover:not(:disabled) { border-color: #0d6efd; background: #f1f6ff; }
.answer-btn .letter {
  flex: 0 0 2rem; height: 2rem; display: grid; place-items: center;
  border-radius: 50%; background: #e9ecef; font-weight: 700;
}
.answer-btn.is-correct { border-color: #198754; background: #d1e7dd; }
.answer-btn.is-correct .letter { background: #198754; color: #fff; }
.answer-btn.is-wrong { border-color: #dc3545; background: #f8d7da; }
.answer-btn.is-wrong .letter { background: #dc3545; color: #fff; }
.answer-btn:disabled { opacity: 1; cursor: default; color: #212529; }
.quiz-step { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Ergebnis */
.stars, .result-stars { color: #ffc107; letter-spacing: .12em; }
.result-stars { font-size: 2.4rem; }
.result-stars .bi-star { color: #ced4da; }

/* Teilen */
.btn-whatsapp { background: #25d366; color: #fff; } .btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.btn-facebook { background: #1877f2; color: #fff; } .btn-facebook:hover { background: #0f65d6; color: #fff; }
.btn-x { background: #000; color: #fff; } .btn-x:hover { background: #333; color: #fff; }

/* ==========================================================================
   STARTSEITE – ein Gestaltungssystem
   Farben:  #212529 (wie Header)  ·  #0d6efd (wie Buttons)  ·  #f8f9fa (Grund)
   Formen:  eckig wie .content-card, ein Schatten, ein Bildformat (16:9)
   Abstände: Sektionen 3rem, Karten-Innenraum 1.25rem
   ========================================================================== */
.main-full { padding: 0; }

/* Kleine Überzeile über jeder Sektionsüberschrift – gibt allen Blöcken dieselbe Stimme */
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #0d6efd; margin-bottom: .35rem; display: flex; align-items: center; gap: .4rem;
}
.eyebrow-light { color: #9ec5fe; }
.section-title { font-size: 1.75rem; font-weight: 500; margin-bottom: 0; }
.section-head > span { white-space: nowrap; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: 3rem 0 1.25rem; }

/* 1. Bühne ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: #212529;
  padding: 3.5rem 0 3rem;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .22; filter: blur(2px) grayscale(.3); transform: scale(1.05);
}
.hero::after { /* sanfter Verlauf, damit Text immer lesbar bleibt */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #212529 0%, rgba(33,37,41,.85) 55%, rgba(33,37,41,.4) 100%);
}
.hero .container { z-index: 1; }
.hero-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; line-height: 1.1; margin-bottom: 1rem; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 38rem; margin-bottom: 1rem; }
.hero .teaser-info { color: rgba(255,255,255,.7); }
.hero .teaser-info-item img { filter: invert(1) brightness(1.4); opacity: .8; }
.hero-question { margin: 2rem 0 .75rem; font-weight: 500; }
.live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #20c997; box-shadow: 0 0 0 0 rgba(32,201,151,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .5rem rgba(32,201,151,0); } 100% { box-shadow: 0 0 0 0 rgba(32,201,151,0); } }

.hero-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; max-width: 36rem; }
@media (max-width: 575.98px) {
  .hero { padding: 2.25rem 0 2rem; }
  .hero-levels { gap: .5rem; }
  .hero-level { padding: .7rem .6rem; }
  .hero-level-name { font-size: 1rem; }
  .hero-question { margin-top: 1.5rem; }
  .steps-list { padding: 1rem 0; gap: .6rem; }
  .step-no { flex-basis: 1.9rem; height: 1.9rem; font-size: .9rem; }
}
.hero-level {
  display: flex; flex-direction: column; gap: .1rem; padding: .9rem 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-top: 4px solid var(--lv);
  color: #fff; text-decoration: none; transition: background .15s, transform .15s;
}
.hero-level:hover, .hero-level:focus-visible { background: #fff; color: #212529; transform: translateY(-2px); }
.hero-level-name { font-weight: 700; font-size: 1.15rem; }
.hero-level-name::after { content: " →"; opacity: .6; }
.hero-level-meta { font-size: .85rem; opacity: .75; }
.hero-level-best { font-size: .8rem; color: #ffc107; letter-spacing: .1em; }

.hero-card { display: block; position: relative; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.45); }
.hero-card-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-card .teaser-placeholder { aspect-ratio: 16 / 10; min-height: 0; background: #343a40; }
.hero-card-play {
  position: absolute; left: 1rem; bottom: 1rem; background: #0d6efd; color: #fff;
  padding: .5rem 1rem; font-weight: 600; transition: background .15s;
}
.hero-card:hover .hero-card-play { background: #0b5ed7; }

/* 2. Ablauf ---------------------------------------------------------------- */
.steps { background: #fff; border-bottom: 1px solid #e9ecef; }
.steps-list {
  list-style: none; margin: 0; padding: 1.25rem 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.steps-list li { display: flex; align-items: center; gap: .85rem; }
.steps-list strong { display: block; }
.steps-list span:not(.step-no) { font-size: .9rem; color: #6c757d; }
.step-no {
  flex: 0 0 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid #0d6efd; color: #0d6efd; font-weight: 700;
}
@media (max-width: 767.98px) { .steps-list { grid-template-columns: 1fr; gap: .9rem; } }

/* 3. Nächster Fall ------------------------------------------------------------ */
.next-case-media { position: relative; }
.next-case-img, .next-case-media .teaser-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; min-height: 0; display: block; }

/* 4. Archiv: eine Kartenform ---------------------------------------------------- */
.quiz-card {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.1); transition: transform .15s, box-shadow .15s;
}
.quiz-card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.14); }
.quiz-card-media { position: relative; }
.quiz-card-img, .quiz-card-media .teaser-placeholder { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; min-height: 0; }
.quiz-card-played {
  position: absolute; right: .6rem; bottom: .6rem; background: rgba(33,37,41,.85); color: #ffc107;
  font-size: .8rem; padding: .2rem .5rem; letter-spacing: .08em;
}
.quiz-card-body { padding: 1rem 1.25rem .5rem; flex: 1; }
.quiz-card-date { font-size: .8rem; color: #6c757d; margin-bottom: .25rem; }
.quiz-card-title { font-size: 1.15rem; font-weight: 500; margin-bottom: .25rem; }
.quiz-card-title a { color: #212529; text-decoration: none; }
.quiz-card:hover .quiz-card-title a { color: #0d6efd; }
.quiz-card-meta { font-size: .9rem; color: #6c757d; margin-bottom: 0; }
.quiz-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1.25rem; border-top: 1px solid #f1f3f5; font-size: .85rem; color: #6c757d;
}
.quiz-card-cta { color: #0d6efd; font-weight: 600; }
.level-dots { display: inline-flex; gap: .25rem; }
.level-dots i { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; }

/* 5. Rückweg -------------------------------------------------------------------- */
.outro { margin-top: 3rem; }
.outro-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.outro-links a {
  display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem .5rem;
  border: 1px solid #dee2e6; color: #212529; text-decoration: none; text-align: center; font-size: .9rem;
  transition: border-color .15s, color .15s;
}
.outro-links a i { font-size: 1.4rem; color: #0d6efd; }
.outro-links a:hover { border-color: #0d6efd; color: #0d6efd; }
@media (max-width: 575.98px) { .outro-links { grid-template-columns: repeat(2, 1fr); } }

/* Bestwert-Anzeige auf der Quizseite */
.level-btn .level-best { font-size: .8rem; color: #e0a800; letter-spacing: .1em; }

@media (max-width: 575.98px) { .hero-level-name::after { content: none; } }
