/* ─────────────────────────────────────────────────────────────
   Lunedo — Spiele-Datenbank (Detail / Übersicht / Award-Seiten)
   Nutzt konsequent die Tokens aus lunedo-tokens.css. Kein Framework,
   kein Webfont, kein CDN. Mobile-first.
   ───────────────────────────────────────────────────────────── */

:root {
  --w-display: clamp(30px, 5vw, 52px);
  --w-h2:      clamp(22px, 3vw, 34px);
  --w-h3:      clamp(17px, 1.8vw, 20px);
  --w-lead:    clamp(15px, 1.2vw, 17px);
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(32px, 5vw, 64px); position: relative; }
.eyebrow {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-family: var(--font-display); font-size: var(--w-display); font-weight: 700; }
h2 { font-family: var(--font-display); font-size: var(--w-h2); font-weight: 700; line-height: 1.1; }
h3 { font-family: var(--font-display); font-size: var(--w-h3); font-weight: 700; line-height: 1.2; }
p { margin: 0; line-height: 1.6; }

/* ── Header (identisch zu index.html / share-collection.html) ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
header.is-scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: var(--sp-lg); height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { margin-left: auto; display: flex; gap: var(--sp-xl); }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .15s ease; }
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: #fff;
  border-radius: var(--r-full); padding: 10px 18px;
  font-size: 14px; font-weight: 600; border: 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s ease, transform .15s ease;
  margin-left: var(--sp-lg);
}
.nav-cta:hover { background: var(--teal-dark); }
.nav-cta:active { transform: scale(.97); }

/* ── Burger-Menü (Mobile) ── */
.nav-burger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border: 0; background: transparent; border-radius: var(--r-full);
  color: var(--text-1); padding: 0;
}
.nav-burger svg { width: 22px; height: 22px; }
.nav-burger .icon-x { display: none; }
.nav-burger.is-open .icon-menu { display: none; }
.nav-burger.is-open .icon-x { display: block; }
.mobile-nav {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.mobile-nav-links { display: flex; flex-direction: column; padding-block: 6px 14px; }
.mobile-nav-links a {
  padding: 13px 0;
  font-size: 16px; font-weight: 500; color: var(--text-1);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-links a:last-child { border-bottom: 0; }
.mobile-nav-links a:hover { color: var(--teal); }
/* Breakpoint 1020px: 6 Nav-Punkte + Logo + CTA brauchen >1000px Breite —
   darunter Burger statt Desktop-Nav (keine gequetschte Zwischenzone). */
@media (min-width: 1021px) { .mobile-nav { display: none !important; } }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-burger { display: inline-flex; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-2);
  padding-block: 18px 4px;
}
.breadcrumb a { color: var(--text-2); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb svg { width: 11px; height: 11px; color: var(--text-3); flex-shrink: 0; }
.breadcrumb .current { color: var(--text-1); font-weight: 600; }

/* ── Detail Hero ── */
.game-hero {
  padding-block: clamp(20px, 3vw, 40px) clamp(32px, 4vw, 56px);
}
.game-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 720px) { .game-hero-grid { grid-template-columns: 1fr; } }
.game-hero-cover {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 2 / 3;
  background: var(--surface);
  max-width: 260px;
}
@media (max-width: 720px) { .game-hero-cover { max-width: 220px; margin-inline: auto; } }
.game-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-hero-cover .mini-badge { position: absolute; top: 10px; left: 10px; }

.game-hero-info { min-width: 0; }
.game-hero-year { color: var(--text-2); font-size: var(--w-lead); margin-top: 6px; }
.game-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fact-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border-radius: var(--r-full);
  padding: 7px 13px; font-size: 13px; font-weight: 500; color: var(--text-1);
}
.fact-chip svg { width: 15px; height: 15px; stroke: var(--teal); flex-shrink: 0; }

.game-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag-chip {
  background: var(--teal-light); color: var(--teal-card);
  border-radius: var(--r-full); padding: 5px 11px;
  font-size: 12px; font-weight: 600;
}

.game-hero-awards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.award-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid; border-radius: var(--r-full);
  padding: 6px 13px 6px 8px; font-size: 12.5px; font-weight: 600;
  transition: transform .15s ease;
}
.award-chip:hover { transform: translateY(-1px); }
.award-chip svg { width: 16px; height: 16px; flex-shrink: 0; }

.game-hero-intro { margin-top: 20px; font-size: var(--w-lead); color: var(--text-2); max-width: 62ch; font-style: italic; }

/* ── Gameplay / body sections ── */
.game-body-section h2 { margin-bottom: 16px; }
.game-body-section p { color: var(--text-1); max-width: 72ch; white-space: pre-line; }

/* ── Videos & Regeln ── */
.link-group { margin-top: 20px; }
.link-group:first-child { margin-top: 0; }
.link-group-title { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.link-item a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--surface); border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--text-1);
  transition: background .15s ease;
}
.link-item a:hover { background: var(--teal-light); }
.link-item svg { color: var(--teal); flex-shrink: 0; }
.link-item .link-channel { color: var(--text-2); font-weight: 400; font-size: 12.5px; margin-left: auto; padding-left: 12px; white-space: nowrap; }

/* ── CTA card (identisch zu index.html) ── */
.cta-section { background: var(--bg); padding-block: clamp(40px, 6vw, 80px); }
.cta-card {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(10,173,160,0.45), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(167,237,230,0.30), transparent 60%),
    var(--teal-card);
  color: #fff;
  border-radius: 40px;
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
}
.cta-card h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta-card p { color: rgba(255,255,255,0.72); margin-top: 14px; max-width: 52ch; margin-inline: auto; font-size: var(--w-lead); }
.store-badges { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center; }
.store-badge { display: inline-flex; align-items: center; height: 50px; border-radius: 12px; transition: transform .15s ease; }
.store-badge img { height: 100%; width: auto; display: block; }
.store-badge img[src*="googleplay"] { height: 130%; }
.store-badge:hover { transform: scale(1.03); }

/* ── Footer (identisch zu index.html) ── */
footer { border-top: 1px solid var(--border); padding-block: 40px; color: var(--text-2); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, 1fr); gap: 40px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid .foot-about { grid-column: 1 / -1; } }
.foot-about p { color: var(--text-2); font-size: 14px; max-width: 36ch; margin-top: 12px; line-height: 1.6; }
.foot-col h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--text-1); letter-spacing: 0.04em; text-transform: uppercase; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--text-2); transition: color .15s ease; }
.foot-col a:hover { color: var(--teal); }
.foot-illu-note { margin-top: 28px; font-size: 12px; color: var(--text-3); }
.foot-bottom { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-3); }

/* ── Mini-Card (Familie / Ähnliche Spiele / Overview / Award) ── */
.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: 24px;
}
@media (min-width: 620px)  { .mini-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .mini-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .mini-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.mini-card { display: block; }
.mini-card-art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mini-card:hover .mini-card-art { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.mini-card-art img { width: 100%; height: 100%; object-fit: cover; }
.mini-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--teal-card); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: var(--r-full); padding: 3px 9px;
}
.mini-card-title {
  margin-top: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-1);
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-card-facts { margin-top: 3px; font-size: 11.5px; color: var(--text-2); }

/* ── Familie / Ähnliche Spiele Sections ── */
.related-section { background: var(--surface); }

/* ── Overview page (/spiele) ── */
.overview-hero { padding-block: clamp(28px, 4vw, 48px) 8px; }
.overview-intro { margin-top: 14px; color: var(--text-2); font-size: var(--w-lead); max-width: 68ch; }
#filter-bar { margin-top: 20px; }
.overview-count-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.overview-count { font-size: 13px; color: var(--text-2); }
.filter-reset-link { font-size: 13px; font-weight: 600; color: var(--teal); }
.filter-reset-link:hover { color: var(--teal-dark); text-decoration: underline; }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: 24px;
}
@media (min-width: 620px)  { .overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .overview-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Cards hidden by the live filter logic. */
.overview-card.is-filtered-out { display: none; }

/* ── Filter bar ── */
.filter-bar {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(14px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filter-top-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-search {
  flex: 1 1 240px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 10px 16px;
}
.filter-search svg { width: 17px; height: 17px; color: var(--text-3); flex-shrink: 0; }
.filter-search input {
  border: 0; outline: 0; background: transparent; flex: 1; min-width: 0;
  font: inherit; font-size: 14px; color: var(--text-1);
}
.filter-search input::placeholder { color: var(--text-3); }
.filter-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.filter-tags-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 10px 16px;
  font-size: 14px; font-weight: 600; color: var(--text-1);
  white-space: nowrap;
}
.filter-tags-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.filter-tags-btn svg:first-child { color: var(--teal); }
.filter-tags-btn .chev { width: 13px; height: 13px; color: var(--text-3); transition: transform .15s ease; }
.filter-tags-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.filter-tags-btn.has-active { border-color: var(--teal); color: var(--teal); }
.filter-tags-btn.has-active svg { color: var(--teal); }

.filter-chip-row { display: flex; align-items: center; gap: 10px; }
.filter-chip-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); flex: 0 0 auto; min-width: 46px; }
.chip-scroll, .chip-wrap {
  display: flex; gap: 8px; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none; padding-block: 1px;
}
.chip-scroll::-webkit-scrollbar, .chip-wrap::-webkit-scrollbar { display: none; }
.chip-wrap { flex-wrap: wrap; overflow: visible; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 7px 14px;
  font-size: 13px; font-weight: 500; color: var(--text-1);
  white-space: nowrap; flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--teal); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip-count { color: inherit; opacity: 0.65; font-size: 12px; }

.filter-bottom-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 4px; border-top: 1px solid var(--border);
}
.filter-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--text-1); cursor: pointer; user-select: none; }
.filter-toggle input { accent-color: var(--teal); width: 17px; height: 17px; cursor: pointer; }
.filter-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.filter-sort select {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text-1);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-full);
  padding: 7px 12px; cursor: pointer;
}

.filter-age-range { display: flex; align-items: center; gap: 8px; }
.filter-age-range label { font-size: 13px; color: var(--text-2); }
.filter-select {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text-1);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-full);
  padding: 7px 12px; cursor: pointer;
}
.filter-select.has-value { border-color: var(--teal); color: var(--teal); }

.filter-tags-panel {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.tags-group + .tags-group { margin-top: 18px; }
.tags-group-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); }

.filter-empty {
  text-align: center; padding-block: 48px;
  color: var(--text-2); font-size: 15px;
}
.filter-empty p { margin-bottom: 16px; }
.filter-reset-btn {
  display: inline-flex; align-items: center;
  background: var(--teal); color: #fff; border: 0;
  border-radius: var(--r-full); padding: 11px 22px;
  font-size: 14px; font-weight: 600;
}
.filter-reset-btn:hover { background: var(--teal-dark); }

@media (max-width: 640px) {
  .filter-chip-label { min-width: 0; width: 100%; margin-bottom: -2px; }
  .filter-chip-row { flex-wrap: wrap; }
  .filter-top-row { flex-direction: column; align-items: stretch; }
  .filter-tags-btn { justify-content: center; }
}

/* ── Auszeichnungen: Teaser-Link auf /spiele + Übersichtsseite ── */
.awards-teaser-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: 14px; font-weight: 600; color: var(--teal);
  transition: color .15s ease;
}
.awards-teaser-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.awards-teaser-link:hover { color: var(--teal-dark); text-decoration: underline; }

.awards-overview-group { padding-block: clamp(20px, 3vw, 40px); }
.awards-overview-group .award-group-title { margin-top: 24px; }
.awards-newest-grid { margin-top: 12px; }
.awards-link-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.award-year-chip:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ── "So spielt es sich" list (detail pages) ── */
.gameplay-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  max-width: 72ch;
}
.gameplay-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
}
.gameplay-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}
.gameplay-action { font-weight: 600; color: var(--text-1); }

/* ── Award pages ── */
.award-hero { padding-block: clamp(28px, 4vw, 48px) 8px; }
.award-group-title { margin-top: 40px; margin-bottom: 4px; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); }
.award-group-title:first-of-type { margin-top: 8px; }

/* ── Award-Siegel — exakt die Reel-Optik aus lunedo/index.html ──
   Referenz: 84px-Siegel auf 342px-Karte, top 28px / right 16px, Fonts 7px.
   Alle Maße in em (1em = 7px im Reel) -> per font-size skaliert das komplette
   Siegel proportional, Aufbau bleibt identisch. */
.award-seal {
  position: absolute;
  top: 4em; right: 2.29em;              /* 28px / 16px */
  width: 12em; height: 12em;            /* 84px */
  font-size: 7px;                       /* Reel-Größe als Default */
  border-radius: 50%;
  transform: rotate(-6deg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0.57em; box-sizing: border-box;  /* 4px */
  text-decoration: none;
}
span.award-seal { pointer-events: none; }   /* wie im Reel (dort <div>); <a>-Variante bleibt klickbar */
.award-seal-ring { position: absolute; inset: 0.86em; border-radius: 50%; pointer-events: none; }  /* 6px */
.award-seal-icon { width: 2.86em; height: 2.86em; flex-shrink: 0; }  /* 20px */
.award-seal-status { font-size: 1em; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin-top: 0.29em; line-height: 1; }
.award-seal-name { font-size: 1em; font-weight: 600; text-align: center; max-width: 8em; line-height: 1.15; margin-top: 0.29em; color: rgba(255,255,255,0.92); }
.award-seal-year { font-size: 1em; font-weight: 700; opacity: 0.75; margin-top: 0.29em; color: #fff; }
.award-laurel-l, .award-laurel-r { position: absolute; top: 1em; line-height: 0; }  /* 7px */
.award-laurel-l { left: -0.57em; }
.award-laurel-r { right: -0.57em; transform: scaleX(-1); }
.award-laurel-l svg, .award-laurel-r svg { width: 5em; height: 10em; }  /* 35x70px */

/* Auf Grid-/Mini-Karten skaliert das Siegel mit der Kartenbreite —
   gleiche Proportionen wie im Reel (Karte als Size-Container, 1cqw = 1% Kartenbreite;
   7px/342px = 2.05cqw). px-Fallback für Browser ohne Container Queries. */
.mini-card-art { container-type: inline-size; }
.mini-card-art .award-seal { font-size: 4px; font-size: 2.05cqw; }

/* Detail-Hero (260px-Cover): bewährte Größe von ~78px beibehalten. */
.game-hero-cover .award-seal { font-size: 6.5px; }
