/*
Theme Name: boardgame.digital
Theme URI: https://boardgame.digital
Author: Geekpunkt / ChatGPT
Description: Minimalistisches Dark-Theme für die virtuelle Brettspiel-Convention boardgame.digital.
Version: 1.3.0
License: GPL-2.0-or-later
Text Domain: boardgame-digital
*/

:root {
  --bg: #161b22;
  --fg: #FCFCFC;
  --acc: #f70d9e;
  --surface: #1e242d;
  --card: #252c38;
  --border: #2d3748;
  --muted: #6b7a93;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, .btn { font: inherit; }

.site-wrap { min-height: 100vh; background: radial-gradient(circle at top, #202837 0, var(--bg) 34rem); }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13,17,23,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 64px; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; letter-spacing: -.03em; }
.brand img { width: 34px; height: 34px; display: block; object-fit: contain; }
.brand span { color: var(--fg); }
.brand span span { color: var(--acc); }
.nav-links { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; list-style: none; padding: 0; }
.nav-links a { font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-cta { margin-left: .25rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; border-radius: 8px; padding: 10px 18px; font-weight: 700; font-size: 14px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--acc); color: #fff; box-shadow: 0 10px 32px rgba(247,13,158,.22); }
.btn-secondary { border-color: var(--border); color: var(--fg); background: transparent; }
.btn-secondary:hover { background: var(--surface); }

.hero { background: #0d1117; border-bottom: 1px solid var(--border); text-align: center; padding: 76px 0 42px; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 14px 24px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #ff2fb3 0%,
    #f70d9e 100%
  );

  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;

  margin: 0 auto 1.75rem;

  box-shadow:
    0 12px 40px rgba(247,13,158,.35),
    inset 0 1px 0 rgba(255,255,255,.18);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 18px 50px rgba(247,13,158,.45),
    inset 0 1px 0 rgba(255,255,255,.22);
  filter: brightness(1.04);
}

.badge a {
  color: #fff;
  text-decoration: none;
}
.hero-logo { width: min(180px, 42vw); max-height: 150px; margin: 0 auto 22px; display: block; object-fit: contain; opacity: .96; }
h1 { font-size: clamp(42px, 8vw, 86px); line-height: .95; margin: 0 0 1rem; letter-spacing: -.07em; }
h1 em { font-style: normal; color: var(--acc); }
.hero-sub { font-size: clamp(17px, 2vw, 22px); color: var(--muted); margin: 0 0 2rem; line-height: 1.55; }
.hero-btns { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; border-top: 1px solid var(--border); padding-top: 2rem; max-width: 760px; margin: 0 auto; }
.stat-num { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: var(--acc); letter-spacing: -.05em; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .12em; }

.section { padding: 64px 0 0; }
.sec-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.sec-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.grid { display: grid; gap: .85rem; }
.program-grid { grid-template-columns: repeat(2, 1fr); }
.publisher-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.ticket-grid { grid-template-columns: repeat(2, 1fr); }
.card { background: rgba(37,44,56,.9); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem; }
.card.live, .ticket.vip { border-color: var(--acc); }
.live-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--acc); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.live-lbl { font-size: 11px; color: var(--acc); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.card-time, .card-meta, .pub-name, .faq-a { color: var(--muted); }
.card-time { font-size: 12px; margin-bottom: 6px; }
.card-title { font-size: 18px; line-height: 1.25; font-weight: 800; margin-bottom: 5px; }
.card-meta { font-size: 14px; }
.pub-card {
  min-height: 120px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(37,44,56,.65);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.pub-card:hover {
  transform: translateY(-3px);
  border-color: var(--acc);
  background: rgba(37,44,56,.95);
}

.pub-logo {
  width: 100%;
  height: 72px;
  margin: 0;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-logo img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(1) brightness(1.25);
  opacity: .82;
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}

.pub-card:hover .pub-logo img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.04);
}

.pub-name {
  display: none;
}

.pub-logo:not(:has(img)) {
  color: var(--muted);
  font-weight: 900;
}
.pub-plus { border-style: dashed; }
.pub-plus .pub-logo { color: var(--acc); font-size: 22px; }
.ticket { padding: 1.4rem; }
.ticket.vip { background: #1e1628; }
.t-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .8rem; gap: 1rem; }
.t-title { font-size: 22px; font-weight: 900; }
.t-price { font-size: 28px; font-weight: 900; color: var(--acc); letter-spacing: -.05em; }
.ticket:not(.vip) .t-price { color: var(--fg); font-size: 22px; }
.t-features { list-style: none; padding: 0; margin: 0; }
.t-features li { color: var(--muted); padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.t-features li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex-shrink: 0; }
.ticket:not(.vip) .t-features li::before { background: var(--muted); }
.faq-list { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
summary { cursor: pointer; font-size: 18px; font-weight: 750; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display:none; }
summary::after { content: '+'; color: var(--acc); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
.faq-a { margin: .5rem 0 0; line-height: 1.6; }
.footer { margin-top: 64px; background: #0d1117; border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; gap: 1.25rem; align-items: center; }
.footer-links { display: flex; gap: 1.25rem; align-items: center; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-credit { margin-left: auto; }
.footer-credit span { color: var(--acc); }

@media (max-width: 760px) {
  .nav-inner { height: auto; padding: 14px 0; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 4px; }
  .nav-cta { margin-left: auto; }
  .hero { padding: 48px 0 32px; }
  .stats, .program-grid, .publisher-grid, .ticket-grid { grid-template-columns: 1fr 1fr; }
  .ticket-grid, .program-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
  .footer-credit { margin-left: 0; width: 100%; }
}


/* Update 1.2.2: festes großes Logo auf der Startseite */
.hero-logo {
  width: 600px;
  max-width: 80vw;
  height: auto;
}


.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  border-color: var(--acc);
}


.single-event {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.single-event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}
.single-event-card h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: .5rem 0 1rem;
}
.single-event-meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 1.5rem;
}
.single-event-content {
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
}
.single-event-content p {
  margin: 0 0 1rem;
}
.single-event-back {
  margin-top: 2rem;
}
.single-event-back a {
  color: var(--acc);
  font-weight: 700;
}


/* 1.3.0: Sprache, administrierbare Sektionen, saubere Partnerwand */
.bd-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: .25rem;
}
.bd-lang-switcher ul {
  display: inline-flex;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.bd-lang-switcher li {
  margin: 0;
}
.bd-lang-switcher a,
.bd-lang-switcher span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(37,44,56,.65);
}
.bd-lang-switcher .current-lang a,
.bd-lang-switcher .current-lang span,
.bd-lang-switcher a:hover {
  color: #fff;
  border-color: var(--acc);
  background: rgba(247,13,158,.18);
}

.hero-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.hero-info span,
.hero-info strong {
  color: var(--acc);
  font-weight: 800;
}

.section-centered {
  text-align: center;
}
.aftergame-embed {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 1.25rem;
}

.publisher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 210px));
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
}
.pub-card {
  min-height: 128px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(37,44,56,.65);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.pub-card:hover {
  transform: translateY(-3px);
  border-color: var(--acc);
  background: rgba(37,44,56,.95);
}
.pub-logo {
  width: 100%;
  min-height: 82px;
  height: 82px;
  margin: 0;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-logo img {
  max-width: 165px;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.pub-name {
  margin-top: .5rem;
}
.pub-card:has(.pub-logo img) .pub-name {
  display: none;
}

@media (max-width: 760px) {
  .bd-lang-switcher {
    margin-left: 0;
  }
  .publisher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nav-inner li::marker {
  content: "";
}

.nav-inner li {
  list-style-type: none !important;
}



@media (max-width: 760px) {
  .nav-inner {
    height: 56px;
    padding: 8px 0;
    flex-wrap: nowrap;
    gap: .75rem;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    order: initial;
    width: auto;
    margin-left: auto;
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 12px;
  }

  .nav-cta {
    display: none;
  }

  .lang-switcher,
  .nav-inner > ul:not(.nav-links) {
    flex-shrink: 0;
  }
}