@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #fbfafc;
  --surface: #ffffff;
  --text: #15121a;
  --muted: #706a7c;
  --line: #ebe7f2;
  --brand: #6d28d9;
  --brand-strong: #5318b8;
  --brand-soft: #f1eafe;
  --blueviolet: #4f46e5;
  --warm-muted: #8a6168;
  --score-good: #06c979;
  --score-mid: #ffc247;
  --score-low: #ff6573;
  --score-empty: #6d28d9;
  --shadow: 0 18px 45px rgba(31, 22, 48, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #f7f1ff 0, transparent 28rem), var(--bg);
}

a { color: inherit; text-decoration: none; }

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 800;
  font-size: 1.55rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
}

.brand small {
  display: block;
  margin-top: -0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
  color: #312b3b;
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.intro-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 40px 0 24px;
}

h1, h2, h3, p { margin-top: 0; }

.intro-row h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  letter-spacing: 0;
}

.intro-row p,
.detail-kicker {
  color: var(--muted);
  margin-bottom: 0;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.detail-kicker a {
  color: inherit;
}

.detail-kicker a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(109, 40, 217, 0.18);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.featured-card,
.review-card,
.detail-hero {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-card {
  display: block;
  position: relative;
  min-height: 360px;
  color: #ffffff;
  isolation: isolate;
}

.featured-card img,
.detail-hero img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-card::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 5, 13, 0.05), rgba(8, 5, 13, 0.82));
}

.featured-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.featured-card-body {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding-right: 86px;
  pointer-events: none;
}

.featured-card h2 {
  position: static;
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.24;
}

.featured-meta {
  position: static;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
}

.featured-meta a,
.meta a {
  color: inherit;
}

.featured-meta a {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.featured-meta a:hover,
.meta a:hover {
  text-decoration: underline;
}

.featured-card p {
  max-width: 34rem;
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.55;
}

.score {
  --score-value: 0;
  --score-color: var(--score-empty);
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #ffffff;
  background: conic-gradient(from -90deg, var(--score-color) calc(var(--score-value) * 1%), rgba(255, 255, 255, 0.24) 0);
  font-size: 1.35rem;
  font-weight: 800;
  isolation: isolate;
}

.score-good { --score-color: var(--score-good); }
.score-mid { --score-color: var(--score-mid); }
.score-low { --score-color: var(--score-low); }
.score-empty { --score-color: var(--score-empty); }

.score::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(20, 14, 29, 0.72);
}

.featured-card .score,
.detail-hero .score {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.featured-card .score::before,
.detail-hero .score::before {
  background: rgba(15, 10, 22, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.featured-card .score {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
}

.score.abgebrochen {
  background: conic-gradient(from -90deg, var(--score-empty) 100%, rgba(255, 255, 255, 0.24) 0);
  color: #ffffff;
}

.score.abgebrochen::before {
  background: rgba(20, 14, 29, 0.72);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
}

.badge.angespielt { color: var(--blueviolet); background: #eef2ff; }
.badge.abgebrochen { color: var(--warm-muted); background: #f5edf0; }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 40px 0 22px;
}

.filter-tabs a {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  color: #40384d;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
}

.filter-tabs a.is-active {
  color: #ffffff;
  background: var(--brand);
  box-shadow: none;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 54px;
}

.review-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.review-card-body {
  position: relative;
  padding: 20px 18px 20px;
}

.review-card-score {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 64px;
  height: 64px;
  color: #ffffff;
  font-size: 1.15rem;
  box-shadow: 0 12px 24px rgba(31, 22, 48, 0.08);
}

.review-card-score::before {
  background: rgba(15, 10, 22, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.review-card h2 {
  margin: 0.75rem 0 0.65rem;
  font-size: 1.15rem;
}

.review-card p {
  color: #504958;
  line-height: 1.65;
}

.meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-hero {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 650px);
  margin: 34px 0 44px;
}

.detail-hero-content {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 6vw, 64px);
  right: clamp(22px, 6vw, 64px);
  bottom: clamp(24px, 6vw, 56px);
  color: #ffffff;
}

.detail-hero h1 {
  max-width: 820px;
  margin: 0.75rem 0;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.detail-badge-row {
  margin-top: 1rem;
}

.article {
  max-width: 760px;
  margin: 0 auto 70px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article h2,
.article h3,
.article h4 {
  margin: 2.2rem 0 0.8rem;
  line-height: 1.25;
}

.article a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.25rem;
  border-left: 4px solid var(--brand);
  color: #4f465d;
}

.article pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #191622;
  color: #f6f1ff;
}

.article code {
  padding: 0.12rem 0.3rem;
  border-radius: 5px;
  background: var(--brand-soft);
}

.article pre code {
  padding: 0;
  background: transparent;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 900px) {
  .featured-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-header,
  .intro-row,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 28px, 1120px);
  }
  .site-nav {
    width: 100%;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  .featured-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
  .featured-card {
    min-height: 420px;
  }
}
