/* GameFrogs Marktplatz - Dark Theme (site-weit: Startseite, Deals, Beitraege, Seiten) */

:root {
  --bg: #121412;
  --surface: #1a1d1a;
  --surface-2: #21251f;
  --border: #2e332c;
  --text: #f1f4ee;
  --text-muted: #9aa394;
  --accent: #6fc02e;
  --accent-strong: #86d948;
  --accent-deep: #3f7217;
  --deal: #ff7a45;
  --deal-bg: #3a2318;
  --card-bg: #f5f5f7;
  --card-text: #1d1d1f;
  --card-text-muted: #6e6e73;
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

.gf-page * { box-sizing: border-box; }
.gf-page {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.gf-page img { max-width: 100%; display: block; }
.gf-page a { color: inherit; }
.gf-page h1, .gf-page h2, .gf-page h3 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--text); }
.gf-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gf-tabular { font-variant-numeric: tabular-nums; }

.gf-header {
  position: sticky; top: 0; z-index: 30; background: rgba(18,20,18,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.gf-header-inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; position: relative; }
.gf-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.gf-brand-logo { width: 36px; height: 36px; border-radius: 8px; }
.gf-brand-word { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em; color: var(--text); }
.gf-nav { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; }
.gf-nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.gf-nav a:hover { color: var(--accent); }
.gf-nav-toggle {
  display: none; background: none; border: none; color: var(--text) !important; font-size: 24px;
  cursor: pointer; padding: 4px 8px; margin-left: auto; line-height: 1;
}

.gf-ticker { background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; overflow: hidden; }
.gf-ticker-label {
  flex-shrink: 0; background: var(--deal-bg); color: var(--deal); font-family: var(--font-display);
  font-weight: 600; font-size: 12px; padding: 10px 16px; white-space: nowrap; letter-spacing: .03em;
}
.gf-ticker-track-wrap { overflow: hidden; flex: 1; }
.gf-ticker-track { display: flex; gap: 40px; width: max-content; animation: gf-ticker 40s linear infinite; padding: 10px 0; }
.gf-ticker-track span { white-space: nowrap; font-size: 13px; color: var(--text-muted); }
.gf-ticker-track strong { color: var(--accent); font-weight: 600; }
@keyframes gf-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gf-ticker-track { animation: none; } }

.gf-intro { max-width: 1180px; margin: 0 auto; padding: 48px 20px 12px; }
.gf-intro h1 { font-size: clamp(28px, 4vw, 40px); max-width: 20ch; }
.gf-intro p { color: var(--text-muted); max-width: 60ch; margin-top: 12px; font-size: 16px; }

.gf-filter-bar { max-width: 1180px; margin: 0 auto; padding: 12px 20px 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* !important auf Farbe/Hintergrund: Blogarise stylt <button>-Elemente global mit
   eigener Akzentfarbe, die eine einzelne Klassen-Selektor-Spezifitaet schlaegt. */
.gf-pill {
  background: var(--surface) !important; border: 1px solid var(--border); color: var(--text-muted) !important;
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.gf-pill.is-active { background: var(--accent) !important; border-color: var(--accent); color: #10190a !important; font-weight: 600; }
.gf-filter-bar select { background: var(--surface) !important; border: 1px solid var(--border); color: var(--text) !important; border-radius: 999px; padding: 7px 14px; font-size: 13px; }

.gf-grid {
  max-width: 1180px; margin: 0 auto; padding: 0 20px 48px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px;
}
.gf-card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.gf-card:hover { border-color: var(--accent-deep); }
.gf-cover { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--surface-2); }
.gf-cover img { width: 100%; height: 100%; object-fit: cover; }
.gf-badge-discount {
  position: absolute; top: 10px; left: -6px; transform: rotate(-6deg);
  background: var(--deal); color: #1c0f08; font-family: var(--font-display); font-weight: 700;
  font-size: 13px; padding: 3px 10px; border-radius: 2px; box-shadow: 0 3px 8px rgba(0,0,0,.35); z-index: 2;
}
.gf-dlc-badge {
  position: absolute; top: 10px; right: 8px; background: var(--accent-deep); color: #eafcd8;
  font-family: var(--font-display); font-weight: 700; font-size: 10px; padding: 3px 7px; border-radius: 2px; z-index: 2;
}
.gf-card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.gf-platform-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gf-platform-tags span { font-size: 10px; font-weight: 600; letter-spacing: .03em; color: var(--text-muted); border: 1px solid var(--border); border-radius: 3px; padding: 2px 6px; }
.gf-card-title { font-size: 14.5px; line-height: 1.3; }
.gf-price-line { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.gf-price-old { color: var(--text-muted); text-decoration: line-through; font-size: 12.5px; }
.gf-price-new { font-family: var(--font-display); color: var(--accent); font-weight: 700; font-size: 17px; }
.gf-mini-cta { font-size: 12px; font-weight: 600; color: var(--accent-strong); }
.gf-store-note { font-size: 10px; color: var(--text-muted); }

.gf-trust-band { max-width: 1180px; margin: 20px auto 0; padding: 0 20px 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gf-trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 20px; }
.gf-trust-item svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 10px; }
.gf-trust-item h3 { font-size: 15px; margin-bottom: 6px; }
.gf-trust-item p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.gf-deal-page { max-width: 1180px; margin: 0 auto; padding: 32px 20px 8px; }
.gf-deal-page-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; }
.gf-cover.large { aspect-ratio: 3/4; border-radius: 4px; border: 1px solid var(--border); max-width: 340px; }
.gf-deal-info { display: flex; flex-direction: column; gap: 18px; }
.gf-deal-info .gf-platform-tags span { font-size: 11px; padding: 3px 8px; }
.gf-deal-info h1 { font-size: clamp(26px, 3vw, 34px); }
.gf-deal-desc { color: var(--text-muted); font-size: 15px; max-width: 62ch; }
.gf-deal-desc strong { color: var(--text); }

.gf-price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 22px; max-width: 420px; }
.gf-price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.gf-price-row .gf-store-label { font-size: 13px; color: var(--text-muted); }
.gf-price-row.old .gf-price-old { font-size: 17px; }
.gf-price-row.highlight { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 14px; }
.gf-price-row.highlight .gf-store-label { color: var(--accent-strong); font-weight: 600; }
.gf-price-new.big { font-size: 30px; }
.gf-discount-flag { display: inline-block; margin-top: 10px; background: var(--deal-bg); color: var(--deal); font-family: var(--font-display); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 3px; }
.gf-cta-button {
  display: block; text-align: center; text-decoration: none; margin-top: 18px;
  background: var(--accent); color: #10190a; font-family: var(--font-display); font-weight: 700;
  font-size: 15px; padding: 14px 20px; border-radius: 4px; transition: background .15s ease;
}
.gf-cta-button:hover { background: var(--accent-strong); }
.gf-out-of-stock-note {
  margin-top: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px;
  padding: 12px 16px; font-size: 13.5px; color: var(--text-muted);
}
.gf-disclosure { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }

.gf-related { max-width: 1180px; margin: 48px auto 0; padding: 0 20px 64px; }
.gf-related h2 { font-size: 15px; color: var(--text-muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.gf-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.gf-related-grid .gf-cover { aspect-ratio: 1/1; }

.gf-footer { border-top: 1px solid var(--border); padding: 28px 20px 40px; text-align: center; }
.gf-footer p { color: var(--text-muted); font-size: 13px; margin: 0; }
.gf-footer a { color: var(--accent-strong); text-decoration: none; }

.gf-empty { max-width: 1180px; margin: 0 auto; padding: 40px 20px; color: var(--text-muted); }

/* Custom-Menue-Unterstuetzung: wp_nav_menu gibt eine <ul> mit <li> aus */
.gf-nav { list-style: none; margin: 0; padding: 0; }
.gf-nav li { list-style: none; }

/* ---------- Artikel / Seiten: helle Lesekarte auf dunklem Hintergrund ---------- */
/* Bewusst hell, damit bestehende Artikel-Inhalte (Bilder, Affiliate-Buttons,
   Archiv-Hinweis-Banner etc.) unveraendert lesbar bleiben. */
.gf-content-shell { max-width: 820px; margin: 40px auto; padding: 0 20px 64px; }
.gf-content-card {
  background: var(--card-bg); color: var(--card-text); border-radius: 12px;
  padding: 40px 44px; box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.gf-content-card .gf-entry-title { font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 34px); color: var(--card-text); margin: 0 0 12px; text-wrap: balance; }
.gf-entry-meta { font-size: 13px; color: var(--card-text-muted); margin-bottom: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.gf-entry-meta a { color: var(--card-text-muted); text-decoration: none; }
.gf-entry-meta a:hover { text-decoration: underline; }
.gf-entry-content { font-size: 16px; line-height: 1.7; color: var(--card-text); }
.gf-entry-content p { margin: 0 0 1.2em; }
.gf-entry-content a { color: #0071e3; }
.gf-entry-content img { border-radius: 8px; height: auto; }
.gf-entry-content h2, .gf-entry-content h3 { color: var(--card-text); font-family: var(--font-display); margin: 1.4em 0 .6em; }
.gf-entry-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid #e2e2e4; display: flex; gap: 8px; flex-wrap: wrap; }
.gf-entry-tags a {
  font-size: 12.5px; color: var(--card-text-muted); text-decoration: none; border: 1px solid #d8d8da;
  border-radius: 999px; padding: 4px 12px;
}
.gf-entry-tags a:hover { border-color: var(--accent); color: var(--accent-deep); }

/* Blogarise stylt Kommentar-Ueberschriften z.T. hell (fuer dunkle Sektionen
   im Original-Theme gedacht) - auf unserer hellen Content-Card unlesbar. */
.gf-content-card .comments-title,
.gf-content-card .comment-reply-title,
.gf-content-card #reply-title,
.gf-content-card .comment-form-comment label,
.gf-content-card .comment-form label,
.gf-content-card .comment-notes,
.gf-content-card p.comment-notes {
  color: var(--card-text) !important;
}

/* Titel/Intro einer Seite (page.php) ohne Card-Kontext, z.B. simple Seiten */
.gf-page-title { max-width: 820px; margin: 0 auto; padding: 48px 20px 0; }
.gf-page-title h1 { font-size: clamp(26px, 4vw, 38px); }

/* ---------- Beitrags-/Seiten-Listen (archive.php, index.php, search.php) ---------- */
.gf-post-list { max-width: 820px; margin: 0 auto; padding: 0 20px 64px; display: flex; flex-direction: column; gap: 16px; }
.gf-post-summary {
  background: var(--card-bg); color: var(--card-text); border-radius: 10px; padding: 24px 28px;
  text-decoration: none; display: block;
}
.gf-post-summary .gf-entry-title { font-size: 20px; margin-bottom: 6px; }
.gf-post-summary .gf-entry-meta { margin-bottom: 10px; }
.gf-post-summary p { color: var(--card-text-muted); font-size: 14.5px; margin: 0; line-height: 1.6; }
.gf-pagination { max-width: 820px; margin: 0 auto; padding: 0 20px 64px; display: flex; gap: 8px; flex-wrap: wrap; }
.gf-pagination .page-numbers {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted) !important;
  text-decoration: none; padding: 8px 14px; border-radius: 6px; font-size: 14px;
}
.gf-pagination .page-numbers.current { background: var(--accent) !important; color: #10190a !important; border-color: var(--accent); }

@media (max-width: 860px) {
  .gf-deal-page-grid { grid-template-columns: 1fr; }
  .gf-cover.large { max-width: 280px; }
  .gf-trust-band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .gf-nav-toggle { display: block; }
  .gf-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 2px; padding: 10px 20px 16px;
  }
  .gf-nav.is-open { display: flex; }
  .gf-nav a { padding: 8px 0; }
  .gf-content-card { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .gf-grid, .gf-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gf-card-body { padding: 9px 9px 11px; gap: 5px; }
  .gf-card-title { font-size: 12.5px; }
  .gf-price-new { font-size: 14.5px; }
  .gf-price-old { font-size: 10.5px; }
  .gf-mini-cta { font-size: 11px; }
  .gf-platform-tags span { font-size: 9px; padding: 1px 5px; }
}
