/*
 * counterstrike.de – Gemeinsames Design-System
 * Zentrale Datei für Marken-Farben, Typografie und wiederkehrende Bausteine.
 * Wird auf allen Custom-Templates geladen (front-page.php, single.php, page-*.php).
 * Änderungen hier wirken sofort auf allen Seiten.
 */

:root {
  --cs2-orange: #C44B2A;
  --cs2-gold: #E8A030;
  --cs2-blue: #4A8FC4;
  --cs2-gradient: linear-gradient(90deg, var(--cs2-orange) 0%, var(--cs2-gold) 50%, var(--cs2-blue) 100%);

  /* Echte Marken-Farben der DACH-Teams (nicht die generische Site-Akzentfarbe) */
  --cs2-team-big: #1f1f1f;
  --cs2-team-mouz: #F11F18;
  --cs2-team-sprout: #37b551;
  --cs2-team-vitality: #2A72B0;
  --cs2-team-spirit: #3A9A3A;

  --cs2-text-muted: #666666;
  --cs2-text-faint: #8a8a8a;
  --cs2-border: rgba(128,128,128,0.2);
  --cs2-bg-soft: rgba(128,128,128,0.04);
}

/* Nativen Theme-Seitentitel auf Custom-Templates ausblenden (sonst weiße Leerbox oben).
   Kadence-Klassen ergänzt (entry-hero-container, page-header etc.) – ggf. nach dem
   ersten Live-Check noch an die tatsächlich gerenderte Klasse anpassen. */
.page-header, .archive-header, .blog-header, .site-page-title,
.entry-header-wrap, .page-title-wrap, .single-page-header,
.p-header, .page-hero, .archive-hero,
.entry-hero-container, .entry-hero, .site-header-item.header-page-title,
.kadence-page-header { display: none !important; }

/* Kadences "Boxed"-Inhaltsstil (body-Klasse content-style-boxed) legt oben
   etwas weißen Rand/Padding über den Hauptinhalt – auf unseren Custom-Templates
   nicht gewünscht, besonders da der Hero auf der Startseite bis zum Rand
   ausbricht und der weiße Rand sonst als Balken sichtbar bleibt. */
main#inner-wrap.wrap,
.content-style-boxed main#inner-wrap {
  padding-top: 0 !important;
  margin-top: 0 !important;
  box-shadow: none !important;
}

/* Gemeinsame Typografie für Artikel-/Team-Fließtext */
.cs2-content { font-size: 1rem; line-height: 1.9; }
.cs2-content h2 {
  font-size: 1.5rem; font-weight: 700; line-height: 1.3;
  margin: 2.5rem 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  border-image: var(--cs2-gradient) 1;
}
.cs2-content h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 1.75rem 0 0.75rem; }
.cs2-content p { margin: 0 0 1.1rem; }
.cs2-content ul, .cs2-content ol { margin: 0 0 1.5rem 1.4rem; padding: 0; }
.cs2-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.cs2-content a { color: var(--cs2-orange); text-decoration: underline; }
.cs2-content strong { font-weight: 700; }
.cs2-content em { font-style: italic; opacity: 0.85; }
.cs2-content dl > div { padding: 14px 0; border-bottom: 1px solid rgba(128,128,128,0.15); }
.cs2-content dt { font-weight: 600; margin-bottom: 6px; }
.cs2-content dd { opacity: 0.75; line-height: 1.7; margin: 0; }

/* Wiederkehrende Bausteine */
.cs2-gradient-bar { height: 4px; background: var(--cs2-gradient); border-radius: 2px; }

/* Abstand oberhalb von Breadcrumb/Titel, damit beides nicht unter dem
   (mobil oft höheren, ggf. zweizeiligen) Sticky-Menü verschwindet.
   Ein fester Wert reicht nicht für alle Breiten – daher gestaffelt per Media Query. */
.cs2-breadcrumb-wrap {
  padding: 3.5rem 24px 0;
  margin-bottom: 4rem;
  overflow: visible;
}
@media (max-width: 782px) {
  .cs2-breadcrumb-wrap { padding-top: 5.5rem; margin-bottom: 6rem; }
}
@media (max-width: 480px) {
  .cs2-breadcrumb-wrap { padding-top: 6.5rem; margin-bottom: 7rem; }
}

/* Rank-Math-Breadcrumb an unser Design-System angleichen statt Standard-Blau/Unterstrichen. */
.cs2-breadcrumb-wrap .rank-math-breadcrumb {
  font-size: 0.8rem;
  color: var(--cs2-text-faint);
}
.cs2-breadcrumb-wrap .rank-math-breadcrumb p { margin: 0; }
.cs2-breadcrumb-wrap .rank-math-breadcrumb a {
  color: var(--cs2-text-muted);
  text-decoration: none;
  font-weight: 600;
}
.cs2-breadcrumb-wrap .rank-math-breadcrumb a:hover {
  color: var(--cs2-orange);
  text-decoration: underline;
}
.cs2-breadcrumb-wrap .rank-math-breadcrumb .separator {
  margin: 0 6px;
  color: var(--cs2-border);
}
.cs2-breadcrumb-wrap .rank-math-breadcrumb .last {
  opacity: 0.85;
  font-weight: 600;
}

/* Team-Hero-Bild oben in den Team-Steckbriefen (aus offiziellem Presskit). */
.cs2-team-hero {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 2rem;
  display: block;
  background: var(--cs2-bg-soft);
}
@media (max-width: 480px) {
  .cs2-team-hero { height: 180px; }
}

/* Hinweis: Der Fabula-spezifische .nav-pos-sticky-Override entfällt hier bewusst –
   Kadence hat dafür eine native, erreichbare Customizer-Option
   (Anpassen → Header → Sticky Header), kein CSS-Hack mehr nötig. */

.cs2-chip {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
}

.cs2-avatar {
  width: 36px; height: 36px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}

/* Sidebar-Widget-Titel als kräftiges Badge statt blassem Kleintext –
   Gradient-Hintergrund (Marken-Farbverlauf) + weiße Schrift, angeschrägte
   linke Kante für einen "Gaming-HUD"-Look statt generischem Pill-Chip. */
.cs2-widget-title {
  display: inline-block;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 800; color: #fff; margin-bottom: 14px;
  padding: 7px 16px 7px 14px;
  background: linear-gradient(90deg, var(--cs2-orange) 0%, var(--cs2-gold) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 2px 8px rgba(196,75,42,0.25);
}

.cs2-card {
  border: 1px solid var(--cs2-border); border-radius: 8px;
  padding: 1.25rem; background: var(--cs2-bg-soft);
}
.cs2-card-sm { padding: 1.1rem; }
.cs2-card + .cs2-card,
.cs2-card-sm + .cs2-card-sm { margin-top: 1.25rem; }

/* Gleiche Badge-Sprache wie .cs2-widget-title, nur größer – für die
   prominenteren Abschnitts-Überschriften im Hauptbereich (nicht in
   kompakten Sidebar-Karten). Beide sollen konsistent wirken, nicht wie
   zwei verschiedene Systeme. */
.cs2-section-title {
  display: inline-block;
  font-size: 1.05rem; font-weight: 800; margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
  color: #fff;
  padding: 9px 20px 9px 16px;
  background: linear-gradient(90deg, var(--cs2-orange) 0%, var(--cs2-gold) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 2px 8px rgba(196,75,42,0.25);
}

/* Zeilen in Sidebar-Widgets (Matches, Ranking, Skins, LAN-Partys) –
   letztes Kind bekommt automatisch keine Trennlinie, spart Python-Logik. */
.cs2-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,0.12);
}
.cs2-row:last-child { border-bottom: none; }

.cs2-link {
  display: block; text-decoration: none; color: inherit;
  font-size: 1rem; font-weight: 600; line-height: 1.6;
}
.cs2-link:not(:last-child) { margin-bottom: 8px; }

.cs2-news-card {
  text-decoration: none; color: inherit; display: block;
  border: 1px solid var(--cs2-border); border-radius: 8px;
  padding: 1.1rem 1.25rem; background: var(--cs2-bg-soft);
}
.cs2-news-card + .cs2-news-card { margin-top: 10px; }
.cs2-news-card .cs2-news-date {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cs2-text-muted); margin-bottom: 6px;
}
.cs2-news-card .cs2-news-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; line-height: 1.4; }
.cs2-news-card .cs2-news-excerpt { font-size: 1rem; color: #525252; line-height: 1.6; }

/* Copy-Button für Konsolen-Befehle/Codes (cs2-copy.js hängt das automatisch
   an jedes <code> in .cs2-content). */
.cs2-content .cs2-copy-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap; max-width: 100%;
}
.cs2-content .cs2-copy-wrap code {
  background: rgba(128,128,128,0.1); border: 1px solid var(--cs2-border);
  border-radius: 6px; padding: 3px 8px; font-size: 0.88em;
  white-space: pre-wrap; word-break: break-word;
}
.cs2-copy-btn {
  flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--cs2-orange);
  background: rgba(196,75,42,0.08); border: 1px solid rgba(196,75,42,0.35);
  border-radius: 20px; padding: 3px 12px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cs2-copy-btn:hover { background: var(--cs2-orange); color: #fff; }
.cs2-copy-btn--done { background: #3A9A3A; border-color: #3A9A3A; color: #fff; }

/* Responsive 16:9-Video-Einbettung (YouTube etc.) in Guides. iframe wird
   erst bei Sichtbarkeit im Viewport geladen (loading="lazy" im Markup),
   spart Bandbreite auf Seiten mit vielen Guides. */
.cs2-video-embed {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 10px; overflow: hidden; margin: 2rem 0;
  background: rgba(128,128,128,0.08);
}
.cs2-video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.cs2-video-caption {
  font-size: 0.78rem; opacity: 0.55; margin-top: -1.4rem; margin-bottom: 2rem;
}

/* Schwebendes Guide-Wechsler-Widget – bleibt beim Scrollen sichtbar,
   damit man zwischen Guides springen kann, ohne erst runterzuscrollen. */
.cs2-guide-switcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
}
.cs2-guide-switcher-toggle {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, var(--cs2-orange) 0%, var(--cs2-gold) 100%);
  border: none; border-radius: 24px; padding: 11px 18px;
  cursor: pointer; box-shadow: 0 4px 16px rgba(196,75,42,0.35);
}
.cs2-guide-switcher-toggle:hover { filter: brightness(1.06); }
.cs2-guide-switcher-panel {
  display: none;
  position: absolute; right: 0; bottom: calc(100% + 10px);
  width: 260px; max-height: 60vh; overflow-y: auto;
  background: var(--cs2-bg-soft, #fff);
  background-color: Canvas;
  border: 1px solid var(--cs2-border); border-radius: 10px;
  padding: 14px; box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.cs2-guide-switcher.is-open .cs2-guide-switcher-panel { display: block; }
.cs2-guide-switcher-cat {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700; opacity: 0.5; margin: 12px 0 6px;
}
.cs2-guide-switcher-cat:first-child { margin-top: 0; }
.cs2-guide-switcher-item {
  display: block; text-decoration: none; color: inherit;
  font-size: 0.9rem; font-weight: 600; padding: 6px 4px; border-radius: 6px;
}
a.cs2-guide-switcher-item:hover { background: rgba(128,128,128,0.08); }
.cs2-guide-switcher-item--current { color: var(--cs2-orange); }
.cs2-guide-switcher-all {
  display: block; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--cs2-border);
  font-size: 0.85rem; font-weight: 700; color: var(--cs2-orange); text-decoration: none;
}
@media (max-width: 480px) {
  .cs2-guide-switcher { right: 14px; bottom: 14px; }
  .cs2-guide-switcher-panel { width: calc(100vw - 28px); max-width: 300px; }
}
