/*
Theme Name: Spielplan 2026
Theme URI: https://spielplan-2026.de/
Author: Marcel
Description: Schlankes WM-2026-Theme mit Countdown-Hero, Spielfeld-Optik und Beitragsraster. Keine geschützten Logos oder Marken, keine externen Font-Requests (DSGVO-freundlich).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spielplan2026
*/

:root {
  --pitch-deep: #0a2e1f;
  --pitch-mid: #14543a;
  --pitch-light: #1d6b4a;
  --chalk: #f4f6f1;
  --chalk-dim: rgba(244, 246, 241, 0.72);
  --gold: #e8b23a;
  --ink: #14241d;
  --paper: #fbfbf8;
  --line: rgba(20, 36, 29, 0.12);
  --radius: 14px;
  --maxw: 1120px;
  --font-display: -apple-system, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--pitch-mid); }
a:hover { color: var(--pitch-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--pitch-deep);
  color: var(--chalk);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--chalk);
}
.site-brand:hover { color: #fff; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-name span { color: var(--gold); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--chalk-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--chalk);
  background: rgba(244, 246, 241, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--chalk-dim);
  color: var(--chalk);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--pitch-deep);
    border-bottom: 3px solid var(--gold);
    padding: 10px 20px 16px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 10px; font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, var(--pitch-light) 0%, var(--pitch-mid) 45%, var(--pitch-deep) 100%);
  color: var(--chalk);
  overflow: hidden;
  text-align: center;
  padding: 72px 20px 88px;
}
.hero-pitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--chalk-dim);
  margin: 0 auto 34px;
  max-width: 620px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 22px);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.countdown .unit {
  background: rgba(10, 46, 31, 0.55);
  border: 1px solid rgba(244, 246, 241, 0.22);
  border-radius: var(--radius);
  padding: 14px 10px 10px;
  min-width: 84px;
  backdrop-filter: blur(2px);
}
.countdown .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
}
.countdown .label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.countdown-live {
  display: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4.5vw, 40px);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #f0c25c; color: var(--ink); transform: translateY(-2px); }
.btn.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border-color: rgba(244, 246, 241, 0.45);
  margin-left: 10px;
}
.btn.btn-ghost:hover { border-color: var(--chalk); color: #fff; }
@media (max-width: 520px) {
  .btn { display: block; margin: 0 auto 12px; max-width: 320px; }
  .btn.btn-ghost { margin-left: auto; }
}

/* ---------- Kreidelinien-Trenner ---------- */
.chalk-divider {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: rgba(20, 36, 29, 0.65);
  max-width: 640px;
  margin: 0 auto 42px;
}

/* Feature-Karten */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(10, 46, 31, 0.12);
  color: var(--ink);
}
.card .card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: var(--pitch-mid);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.card p { margin: 0; color: rgba(20, 36, 29, 0.7); font-size: 15.5px; }
.card .card-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
  font-size: 14px;
  color: var(--pitch-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Beitragsraster */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pitch-mid); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 246, 241, 0.5);
}
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 19px; line-height: 1.35; margin: 0 0 10px; font-weight: 800; }
.post-card h3 a { text-decoration: none; color: var(--ink); }
.post-card h3 a:hover { color: var(--pitch-mid); }
.post-card .meta {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.post-card .excerpt { font-size: 15px; color: rgba(20, 36, 29, 0.7); margin: 0; }

/* ---------- Inhalt (Seiten/Beiträge) ---------- */
.content-area { padding: 56px 0 72px; }
.entry-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.15;
  margin: 0 0 12px;
}
.entry-meta {
  font-size: 14px;
  color: rgba(20, 36, 29, 0.55);
  margin-bottom: 28px;
}
.entry-content { max-width: 760px; }
.entry-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  margin-top: 44px;
}
.entry-content h3 { font-weight: 800; font-size: 21px; margin-top: 34px; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  color: rgba(20, 36, 29, 0.75);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.entry-content th { background: var(--pitch-deep); color: var(--chalk); }
.entry-content tr:nth-child(even) td { background: rgba(20, 84, 58, 0.05); }

/* Archiv */
.archive-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 36px);
  text-transform: uppercase;
  margin: 0 0 32px;
}
.pagination { margin-top: 44px; text-align: center; }
.pagination .page-numbers {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  margin: 0 3px;
  color: var(--ink);
}
.pagination .page-numbers.current { background: var(--pitch-deep); color: var(--chalk); border-color: var(--pitch-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pitch-deep);
  color: var(--chalk-dim);
  padding: 48px 0 32px;
  margin-top: 24px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand-name { font-size: 17px; }
.footer-brand p { font-size: 14px; margin: 12px 0 0; line-height: 1.6; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--chalk-dim); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.footer-nav a:hover { color: var(--chalk); }
.footer-bottom {
  border-top: 1px solid rgba(244, 246, 241, 0.15);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 13px;
  text-align: center;
  color: rgba(244, 246, 241, 0.5);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
