:root {
  --pz-bg: #0f0f0f;
  --pz-panel: #1c1c1e;
  --pz-border: #2a2a2a;
  --pz-accent: #C8FF00;
  --pz-text: #f0f0f0;
  --pz-muted: #888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--pz-bg);
  color: var(--pz-text);
  min-height: 100vh;
}

a { color: inherit; }

.pz-header {
  background: #1a1a1a;
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--pz-border);
}
.pz-header a.pz-brand { text-decoration: none; }
.pz-header .pz-brand-text {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--pz-accent);
  letter-spacing: -0.5px;
}
.pz-header p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--pz-muted);
}

.pz-breadcrumb {
  max-width: 640px;
  margin: 20px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--pz-muted);
}
.pz-breadcrumb a { color: var(--pz-muted); text-decoration: none; }
.pz-breadcrumb a:hover { color: var(--pz-accent); }
.pz-breadcrumb .pz-current { color: var(--pz-text); }

.pz-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.pz-hero {
  text-align: center;
  padding: 36px 0 32px;
}
.pz-hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.pz-hero-emoji {
  font-size: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: rgba(200, 255, 0, 0.1);
  margin-bottom: 20px;
}
.pz-hero h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.pz-hero .pz-subtitle {
  margin-top: 10px;
  font-size: 16px;
  color: var(--pz-accent);
  font-weight: 600;
}
.pz-hero .pz-desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--pz-muted);
  line-height: 1.6;
}

.pz-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
.pz-cta-row--left { justify-content: flex-start; }

.pz-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 24px;
  text-decoration: none;
  border: 1px solid transparent;
}
.pz-btn--primary {
  background: var(--pz-accent);
  color: #0f0f0f;
}
.pz-btn--primary:hover { opacity: 0.85; }
.pz-btn--secondary {
  background: transparent;
  color: var(--pz-text);
  border-color: var(--pz-border);
}
.pz-btn--secondary:hover { border-color: var(--pz-accent); color: var(--pz-accent); }
.pz-btn--small { padding: 6px 14px; font-size: 12px; border-radius: 20px; }
.pz-btn--disabled { opacity: 0.45; cursor: default; }

.pz-section {
  padding: 36px 0;
  border-top: 1px solid var(--pz-border);
}
.pz-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.pz-section p { color: var(--pz-muted); font-size: 15px; line-height: 1.65; }
.pz-section p + p { margin-top: 10px; }

.pz-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px) {
  .pz-games-grid { grid-template-columns: repeat(3, 1fr); }
}

.pz-game-card {
  background: var(--pz-panel);
  border: 1px solid var(--pz-border);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.pz-game-card:hover { border-color: var(--pz-accent); }
.pz-game-card .pz-game-icon {
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(200, 255, 0, 0.1);
}
.pz-game-card h3 { font-size: 15px; font-weight: 600; }
.pz-game-card p { font-size: 12.5px; color: var(--pz-muted); line-height: 1.4; }

.pz-facts {
  background: var(--pz-panel);
  border: 1px solid var(--pz-border);
  border-radius: 16px;
  padding: 4px 20px;
  list-style: none;
}
.pz-facts li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pz-border);
  font-size: 14px;
}
.pz-facts li:last-child { border-bottom: none; }
.pz-facts strong { color: var(--pz-text); flex-basis: 100%; }
.pz-facts span { color: var(--pz-muted); }
@media (min-width: 480px) {
  .pz-facts strong { flex-basis: 150px; flex-shrink: 0; }
}

/* Two-column layout: main content + "Passende Ausrüstung" sidebar.
   Mobile-first: .pz-layout behaves like the plain .pz-wrap container and
   the products aside renders as a horizontally scrollable row placed by
   source order right after "Spiel auf einen Blick". */
.pz-layout {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.pz-products-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.pz-area-products .pz-product-card {
  flex: 0 0 220px;
  max-width: 220px;
  width: auto;
  scroll-snap-align: start;
}
.pz-product-card {
  background: var(--pz-panel);
  border: 1px solid var(--pz-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 220px;
  max-width: 300px;
  width: 100%;
}
.pz-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--pz-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pz-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}
.pz-product-card h3 { font-size: 14px; font-weight: 600; overflow-wrap: break-word; }
.pz-product-card p { font-size: 12.5px; color: var(--pz-muted); line-height: 1.45; flex-grow: 1; }
.pz-product-card .pz-btn { text-align: center; }
.pz-affiliate-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--pz-text);
  opacity: 0.75;
}

/* Desktop: two-column layout with a sticky "Passende Ausrüstung" sidebar
   next to the main game content. Below this breakpoint the elements above
   keep the mobile behaviour (single column, horizontal product row). */
@media (min-width: 900px) {
  .pz-layout {
    max-width: 1040px;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
    grid-template-rows: repeat(5, auto);
    column-gap: 40px;
    align-items: start;
  }
  .pz-layout.pz-layout--no-options {
    grid-template-rows: repeat(4, auto);
  }
  .pz-layout > .pz-area-blick,
  .pz-layout > .pz-area-rules,
  .pz-layout > .pz-area-scoring,
  .pz-layout > .pz-area-options,
  .pz-layout > .pz-area-app {
    grid-column: 1;
  }

  .pz-area-products {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    position: sticky;
    top: 24px;
    border-top: none;
    padding: 0;
  }
  .pz-area-products .pz-products-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    gap: 14px;
  }
  .pz-area-products .pz-product-card {
    flex: none;
    width: 100%;
    max-width: none;
    padding: 12px;
    gap: 8px;
  }
  .pz-area-products .pz-product-image {
    aspect-ratio: 16 / 10;
  }
  .pz-area-products .pz-product-card h3 { font-size: 13px; }
  .pz-area-products .pz-product-card p { font-size: 11.5px; }
  .pz-area-products .pz-btn--small { padding: 5px 12px; font-size: 11.5px; }
}

.pz-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 600px) {
  .pz-related-grid { grid-template-columns: repeat(4, 1fr); }
}
.pz-related-card {
  background: var(--pz-panel);
  border: 1px solid var(--pz-border);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s;
}
.pz-related-card:hover { border-color: var(--pz-accent); }
.pz-related-card .pz-game-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(200, 255, 0, 0.1);
  margin-bottom: 8px;
}

.pz-footer {
  text-align: center;
  padding: 48px 24px;
  color: #444;
  font-size: 13px;
}
.pz-footer a { color: #666; }

/* Rules & scoring content (game detail pages) */

.pz-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.pz-section h3:first-child { margin-top: 0; }

.pz-section ul, .pz-section ol {
  margin: 4px 0 12px 20px;
  color: var(--pz-muted);
  font-size: 15px;
  line-height: 1.6;
}
.pz-section ul li, .pz-section ol li { margin-bottom: 6px; }
.pz-section li strong { color: var(--pz-text); }

.pz-table-wrap {
  overflow-x: auto;
  margin: 8px 0 16px;
  border: 1px solid var(--pz-border);
  border-radius: 12px;
}
.pz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--pz-panel);
}
.pz-table th, .pz-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--pz-border);
  text-align: left;
  white-space: nowrap;
}
.pz-table th {
  color: var(--pz-text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}
.pz-table td { color: var(--pz-muted); }
.pz-table tr:last-child td { border-bottom: none; }

.pz-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 16px;
}
.pz-chain .pz-chip {
  background: var(--pz-panel);
  border: 1px solid var(--pz-border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pz-text);
  white-space: nowrap;
}
.pz-chain .pz-arrow { color: var(--pz-muted); font-size: 13px; }

.pz-infobox {
  background: rgba(200, 255, 0, 0.06);
  border: 1px solid rgba(200, 255, 0, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--pz-text);
  line-height: 1.55;
  margin: 8px 0 16px;
}
.pz-infobox strong { color: var(--pz-accent); }

.pz-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--pz-accent);
  background: rgba(200, 255, 0, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.pz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pz-option-card {
  background: var(--pz-panel);
  border: 1px solid var(--pz-border);
  border-radius: 14px;
  padding: 16px;
}
.pz-option-card h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.pz-option-card p { font-size: 13.5px; color: var(--pz-muted); line-height: 1.5; margin: 0; }
.pz-option-card p + p { margin-top: 6px; }
