/* ==========================================================================
   LENNLI — Shared Stylesheet (Twitch-Style / GeoGuessr Theme)
   Für: default.asp, impressum.html, datenschutz.html
   Einbindung: <link rel="stylesheet" href="/css/lennli-style.css">
   Auf default.asp NACH bootstrap.min.css einbinden, damit diese Regeln
   Bootstraps Defaults überschreiben.
   ========================================================================== */

:root {
  /* Twitch-Basis */
  --geo-bg:        #0e0e10;
  --geo-surface:   #18181b;
  --geo-surface-2: #1f1f23;
  --geo-border:    #2c2c33;
  --geo-text:      #efeff1;
  --geo-text-light:#adadb8;

  /* Signature-Akzente: Twitch-Violett + GeoGuessr-Pin-Grün */
  --geo-primary:   #9147ff;
  --geo-secondary: #772ce8;
  --geo-accent:    #00c853;
  --geo-pin-dim:   #0a3d24;
  --geo-gold:      #ffb800;
  --geo-gold-dim:  #3d2f00;

  /* Type */
  --f-display: "Poppins", "Segoe UI", sans-serif;
  --f-body:    "Inter", "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", "Courier New", monospace;

  --border-radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(145, 71, 255, 0.4), 0 8px 24px rgba(145, 71, 255, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: clamp(16px, 0.6vw + 10px, 20px);
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */
body {
  margin: 0;
  background-color: var(--geo-bg);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(145, 71, 255, 0.10), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(0, 200, 83, 0.08), transparent 40%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
  background-position: 0 0, 0 0, 0 0;
  background-attachment: fixed;
  color: var(--geo-text);
  font-family: arial, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--geo-primary); text-decoration: none; }
a:hover { color: var(--geo-secondary); text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--geo-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; text-align: center; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); color: var(--geo-primary); }
.lead { font-size: 1.125rem; font-weight: 400; color: var(--geo-text-light); }

/* --------------------------------------------------------------------------
   Coordinate tag — Signature-Element (GeoGuessr-Koordinaten-Look)
   <span class="geo-tag">Rechtliches</span>
   -------------------------------------------------------------------------- */
.geo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--geo-accent);
  background: var(--geo-pin-dim);
  border: 1px solid rgba(0, 200, 83, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.geo-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--geo-accent);
  box-shadow: 0 0 6px var(--geo-accent);
}

/* --------------------------------------------------------------------------
   Hero Badges — Erfolge als Schlagzeile, nicht als Nebensatz
   -------------------------------------------------------------------------- */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.hero-badge:hover { transform: translateY(-1px); text-decoration: none; }

.hero-badge--gold {
  background: linear-gradient(135deg, var(--geo-gold-dim), rgba(255, 184, 0, 0.08));
  border: 1px solid rgba(255, 184, 0, 0.5);
  color: var(--geo-gold);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.12);
}
.hero-badge--gold:hover { color: var(--geo-gold); box-shadow: 0 0 28px rgba(255, 184, 0, 0.22); }

.hero-badge--purple {
  background: rgba(145, 71, 255, 0.12);
  border: 1px solid rgba(145, 71, 255, 0.4);
  color: #cba8ff;
}
.hero-badge--purple:hover { color: #cba8ff; }

@media (max-width: 560px) {
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
}

/* --------------------------------------------------------------------------
   News-Section
   -------------------------------------------------------------------------- */
.news-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-list h2 { text-align: left; font-size: 1.4rem; margin-bottom: 4px; }
.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--geo-surface);
  border: 1px solid var(--geo-border);
  border-radius: var(--border-radius);
  padding: 14px 20px;
  color: var(--geo-text);
  text-decoration: none;
  transition: var(--transition);
}
.news-item:hover {
  border-color: var(--geo-primary);
  transform: translateX(4px);
  color: var(--geo-text);
  text-decoration: none;
}
.news-item__badge {
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--geo-accent);
  background: var(--geo-pin-dim);
  border: 1px solid rgba(0, 200, 83, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
}
.news-item__text {
  font-size: 0.92rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}
.news-item__text strong { color: var(--geo-text); }
.news-item__arrow {
  margin-left: auto;
  color: var(--geo-text-light);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Channel Card (ersetzt den alten Subscribe-Screenshot im Hero)
   -------------------------------------------------------------------------- */
.channel-card {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--geo-surface);
  border: 1px solid var(--geo-border);
  border-radius: 999px;
  padding: 10px 24px 10px 10px;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  justify-content: center;
}
.channel-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--geo-accent);
  flex-shrink: 0;
}
.channel-card__info { text-align: left; min-width: 0; overflow-wrap: break-word; }
.channel-card__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--geo-text);
}
.channel-card__meta {
  font-size: 0.82rem;
  color: var(--geo-text-light);
  font-family: var(--f-mono);
}
.channel-card__actions {
  display: flex;
  gap: 10px;
  margin-left: 8px;
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  transition: var(--transition);
}
.btn-youtube:hover {
  background: linear-gradient(135deg, #cc0000, #ff0000);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn-twitch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--geo-primary), var(--geo-secondary));
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  transition: var(--transition);
}
.btn-twitch:hover {
  background: linear-gradient(135deg, var(--geo-secondary), var(--geo-primary));
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 560px) {
  .channel-card { padding: 14px 18px; }
  .channel-card__actions { width: 100%; justify-content: center; margin-left: 0; margin-top: 8px; }
  .channel-card__info { text-align: center; width: 100%; }
}

/* --------------------------------------------------------------------------
   SEO-Content-Block (Fließtext unter dem Video-Grid)
   -------------------------------------------------------------------------- */
.seo-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--geo-text-light);
  font-size: 0.95rem;
}
.seo-content h2 { text-align: left; font-size: 1.4rem; }
.seo-content p { margin: 0 0 14px; }
.seo-content strong { color: var(--geo-text); }

/* 1. Behebung der Breite & Spalten auf Mobilgeräten */
/* 1. Übergreifende Container-Begrenzung auf Mobilgeräten */
@media (max-width: 768px) {
  .achievements-band,
  .achievements,
  .worldleague {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Verhindert das Herausragen aus dem Viewport */
  }

  /* 2. Spalten-Elemente (Flex-Items) zum Schrumpfen zwingen */
  .achievements-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .achievements-grid > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* WICHTIG: Erlaubt der Spalte, schmaler als die Tabelle zu werden */
    box-sizing: border-box !important;
  }

  /* 3. Horizontalen Scrollbalken ausschließlich für die Tabelle aktivieren */
  .tournament-history-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important; /* Erzeugt den Scrollbalken nur innerhalb des Tabellenrahmens */
    -webkit-overflow-scrolling: touch; /* Weiches Scrollen auf Smartphones */
    box-sizing: border-box !important;
  }

  .tournament-history {
    width: 100% !important;
    table-layout: auto !important;
  }
}



@media (min-width: 900px) {
  .seo-content h2 { margin-bottom: 20px; }
  .seo-content .seo-columns {
    column-count: 2;
    column-gap: 48px;
  }
  .seo-content .seo-columns p {
    break-inside: avoid;
  }
}
@media (min-width: 1600px) { .seo-content { max-width: 1360px; } }
@media (min-width: 2000px) { .seo-content { max-width: 1560px; } }

/* --------------------------------------------------------------------------
   FAQ-Akkordeon
   -------------------------------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.faq h2 { text-align: left; font-size: 1.4rem; margin-bottom: 16px; }
.faq-item {
  background: var(--geo-surface);
  border: 1px solid var(--geo-border);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--geo-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary > span.faq-q { min-width: 0; overflow-wrap: break-word; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--geo-accent);
  font-size: 1.2rem;
  margin-left: 12px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--geo-text-light);
  font-size: 0.9rem;
  line-height: 1.65;
}
/* --------------------------------------------------------------------------
   Achievements-Section (Erfolge + Turnier-Historie)
   -------------------------------------------------------------------------- */

/* Eigenes Band, analog zu #videos — grenzt den Bereich optisch von
   .seo-content (davor) und .faq (danach) ab */
.achievements-band {
  background: var(--geo-surface);
  border-top: 1px solid var(--geo-border);
  border-bottom: 1px solid var(--geo-border);
  padding: 2.5rem 0;
  margin: 2rem 0;
}

.achievements { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.achievements h2 { text-align: left; font-size: 1.4rem; margin-bottom: 16px; }
.achievements h3 {
  text-align: left;
  font-size: 1.1rem;
  color: var(--geo-text);
  margin: 0 0 14px;
}
@media (min-width: 1600px) { .achievements { max-width: 1360px; } }
@media (min-width: 2000px) { .achievements { max-width: 1560px; } }

/* Highlights + Historie nebeneinander */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .achievements-grid { grid-template-columns: 1fr 1fr; }
}

/* Highlights */
.achievements-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.achievements-list li {
  background: var(--geo-bg);
  border: 1px solid var(--geo-border);
  border-left: 3px solid var(--geo-gold);
  border-radius: var(--border-radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--geo-text-light);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: var(--transition);
}
.achievements-list li:hover {
  border-color: var(--geo-gold);
  border-left-color: var(--geo-gold);
  background: var(--geo-surface-2);
  transform: translateY(-2px);
}
.achievements-list li .year {
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--geo-gold);
  background: var(--geo-gold-dim);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 1px;
}

/* Turnier-Historie-Tabelle */
.tournament-history-wrap {
  overflow-x: auto;
  border: 1px solid var(--geo-border);
  border-radius: var(--border-radius);
  background: var(--geo-bg);
  box-shadow: var(--shadow-sm);
}
.tournament-history {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 420px;
}
.tournament-history th,
.tournament-history td {
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.tournament-history th {
  font-family: var(--f-mono);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--geo-text-light);
  background: var(--geo-surface-2);
  border-bottom: 1px solid var(--geo-border);
}
.tournament-history td { color: var(--geo-text); }
.tournament-history td:first-child { font-weight: 600; }
.tournament-history tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.tournament-history tbody tr:hover { background: var(--geo-surface-2); }
.tournament-history tbody tr:not(:last-child) td { border-bottom: 1px solid var(--geo-border); }

/* Platzierung als Pill statt Fließtext */
.placement {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
}
.placement--gold {
  color: var(--geo-gold);
  background: var(--geo-gold-dim);
  border: 1px solid rgba(255, 184, 0, 0.35);
}
.placement--good {
  color: var(--geo-accent);
  background: var(--geo-pin-dim);
  border: 1px solid rgba(0, 200, 83, 0.25);
}
.placement--neutral {
  color: var(--geo-text-light);
  background: var(--geo-surface-2);
  border: 1px solid var(--geo-border);
}
.placement--pending {
  color: var(--geo-text-light);
  background: transparent;
  border: 1px dashed var(--geo-border);
  font-style: italic;
  font-weight: 400;
}

@media (max-width: 768px) {
  .achievements-band { padding: 2rem 0; margin: 1.5rem 0; }
  .achievements-list li { padding: 12px 16px; font-size: 0.87rem; }
}

@media (max-width: 420px) {
  .achievements-list li { flex-direction: column; gap: 6px; }
  .tournament-history { font-size: 0.8rem; min-width: 420px; }
  .tournament-history th, .tournament-history td { padding: 9px 12px; }
  .placement { font-size: 0.72rem; padding: 2px 9px; }
}


/* --------------------------------------------------------------------------
   World-League-Section (SEO-Text + Platzierungstabelle nebeneinander)
   -------------------------------------------------------------------------- */
.worldleague { max-width: 1140px; margin: 0 auto; padding: 2rem 20px; }
.worldleague h2 { text-align: left; font-size: 1.4rem; margin-bottom: 16px; }
@media (min-width: 1600px) { .worldleague { max-width: 1360px; } }
@media (min-width: 2000px) { .worldleague { max-width: 1560px; } }

.worldleague-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  /* Text breiter als Tabelle — Lesefluss hat Priorität */
  .worldleague-grid { grid-template-columns: 3fr 2fr; }
}

/* Linke Spalte: SEO-Fließtext, gleiche Typografie wie .seo-content */
.worldleague-text {
  color: var(--geo-text-light);
  font-size: 0.95rem;
}
.worldleague-text h3 {
  text-align: left;
  font-size: 1.05rem;
  color: var(--geo-text);
  margin: 0 0 10px;
}
.worldleague-text p { margin: 0 0 14px; }
.worldleague-text p:last-child { margin-bottom: 0; }
.worldleague-text strong { color: var(--geo-text); }

/* Rechte Spalte: nutzt bewusst die bestehenden .tournament-history-Klassen
   (gleiche Optik wie die Turnier-Historie oben, keine neue Tabellenkomponente nötig) */
.worldleague-table-col { min-width: 0; }
.worldleague-table-col h3 {
  text-align: left;
  font-size: 1.05rem;
  color: var(--geo-text);
  margin: 0 0 10px;
}

@media (max-width: 420px) {
  .worldleague-text { font-size: 0.88rem; }
}


/* --------------------------------------------------------------------------
   Site Header — Logo + Nav (alle 3 Seiten)
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--geo-border);
  background: rgba(14, 14, 16, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1600px) { .site-header__inner { max-width: 1360px; } }
@media (min-width: 2000px) { .site-header__inner { max-width: 1560px; } }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--geo-text);
  text-decoration: none;
}
.brand:hover { color: var(--geo-text); text-decoration: none; }
.brand__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--geo-accent);
}
.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}
.site-nav a {
  color: var(--geo-text-light);
  text-decoration: none;
  transition: var(--transition);
}
.site-nav a:hover,
.site-nav a.active { color: var(--geo-text); }
.site-nav a.active {
  border-bottom: 2px solid var(--geo-accent);
  padding-bottom: 2px;
}

/* Hamburger-Button — auf Desktop versteckt, nur mobil sichtbar */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  z-index: 1001;
}
.hamburger-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--geo-text);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* --------------------------------------------------------------------------
   Layout containers
   -------------------------------------------------------------------------- */

/* Bootstrap .container auf default.asp: moderat mitwachsen auf sehr breiten Screens */
@media (min-width: 1600px) { .container { max-width: 1360px; } }
@media (min-width: 2000px) { .container { max-width: 1560px; } }

/* .page: Wrapper für Impressum/Datenschutz (schmalere Lesebreite für Fließtext) */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
@media (min-width: 1600px) { .page { max-width: 820px; } }
@media (min-width: 2000px) { .page { max-width: 900px; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(135deg, var(--geo-primary), var(--geo-secondary));
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--geo-secondary), var(--geo-primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero (default.asp)
   -------------------------------------------------------------------------- */
.hero-section {
  background: linear-gradient(135deg, var(--geo-surface), var(--geo-bg));
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: var(--border-radius);
  margin: 0.5rem 0 0;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Video grid (default.asp — Bootstrap .row/.col-lg-4 Struktur)
   -------------------------------------------------------------------------- */
#videos {
  padding: 1.5rem 0;
  background: var(--geo-surface);
}
.video-card {
  background: var(--geo-bg);
  border: 1px solid var(--geo-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: var(--geo-primary);
}
.video-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: var(--transition);
}
.video-card:hover img { transform: scale(1.05); }
.video-card .card-body { padding: 0.9rem 1.25rem; text-align: center; }
.video-card h3 {
  color: var(--geo-text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.video-card p { color: var(--geo-text-light); font-size: 0.9rem; margin: 0; }

/* --------------------------------------------------------------------------
   Legal pages (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal-head { padding-top: 48px; margin-bottom: 30px; }
.legal-head h1 { font-size: 1.9rem; text-align: left; }
.legal-head .sub { color: var(--geo-text-light); font-size: 0.95rem; margin-top: 4px; }

.legal-card {
  background: var(--geo-surface);
  border: 1px solid var(--geo-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.35);
  padding: 26px 28px;
  margin-bottom: 18px;
}
.legal-card h2 { font-size: 1.05rem; color: var(--geo-secondary); text-align: left; }
.legal-card p { margin: 0 0 10px; }
.legal-card p:last-child { margin-bottom: 0; }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.platforms span {
  font-family: var(--f-mono);
  background: var(--geo-surface-2);
  border: 1px solid var(--geo-border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.8rem;
  color: var(--geo-text-light);
}

/* --------------------------------------------------------------------------
   Footer (gemeinsames <footer>-Element auf allen 3 Seiten)
   -------------------------------------------------------------------------- */
footer {
  background: var(--geo-surface);
  color: var(--geo-text);
  border-top: 1px solid var(--geo-border);
  padding: 0.9rem 0;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}
footer a { color: var(--geo-text-light); text-decoration: none; margin: 0 0.5rem; }
footer a:hover { color: var(--geo-primary); text-decoration: none; }

/* --------------------------------------------------------------------------
   Back-to-Top Button (default.asp)
   -------------------------------------------------------------------------- */
/* 2. Zentrierung des Pfeils im "Zurück nach oben"-Button */
#backToTop {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  line-height: 1 !important;
  padding: 0 !important;
  text-decoration: none;
  
  /* Falls Ihre existierende Breite/Höhe überschrieben werden muss, 
     passen Sie diese Werte an die gewünschte Kreisgröße an */
  width: 50px; 
  height: 50px;
  border-radius: 50%;
  box-sizing: border-box;
}
#backToTop:hover { background: var(--geo-secondary); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Legacy/Sonstiges (aus bestehenden Unterseiten, z. B. Turnier-/Punktetabellen)
   -------------------------------------------------------------------------- */
.tx-0p { color: #EF4444 !important; }
.tx-1p { color: #F97316 !important; }
.highlight { background-color: hsl(265, 100%, 20%) !important; }
.text-success-light { color: var(--geo-primary); }
.text-danger-light { color: #EF4444; }
.fw-strong { font-weight: 700; }
.fw-light { font-weight: 300; }
.hand { cursor: pointer; }

.matches th { font-size: 0.875rem; font-weight: 500; }
td, th { font-size: 0.875rem; }
@media (max-width: 767.98px) {
  td { font-size: 0.75rem; }
  .card { font-size: 0.875rem; }
  .card-title { font-size: 1.125rem; }
}

.bgmatches { background-color: #1a2733 !important; }
.bggames { background-color: #1c1c1f !important; }
.bgpoints { background-color: #18181b !important; }

.circle-progress { display: inline-block; margin: 0; }
.circle-bg { fill: var(--geo-surface); stroke: var(--geo-border); stroke-width: 5; }
.circle-fg {
  fill: none; stroke: var(--geo-primary); stroke-width: 5;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dashoffset .3s; stroke-linecap: round;
}
.circle-text {
  font-size: 14px; font-weight: 600; fill: var(--geo-text);
  pointer-events: none; font-family: arial,'Inter', sans-serif;
}

.width-25 { width: 25px !important; }
.width-50 { width: 50px !important; }
.width-100 { width: 100px !important; }
.width-150 { width: 150px !important; }
.width-200 { width: 200px !important; }
.points { background-color: var(--geo-surface) !important; width: 25px !important; text-align: center; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section { padding: 2rem 1rem; margin: 1rem 0; }
  .video-card img { height: 150px; }
  .video-card .card-body { padding: 1rem; }
  #videos { padding: 2rem 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .legal-card { padding: 20px; }

  /* Hamburger-Button einblenden */
  .menu-toggle { display: flex; }

  .site-header__inner { position: relative; }

  /* Nav mobil ausblenden + als Dropdown unter dem Header positionieren */
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--geo-bg);
    padding: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a.active { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

  /* Hamburger -> X Animation */
  .menu-toggle.active .hamburger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.active .hamburger-bar:nth-child(2) { opacity: 0; }
  .menu-toggle.active .hamburger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
@media (max-width: 576px) {
  .row > * { margin-bottom: 1rem; }
  #backToTop { bottom: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; font-size: 1rem; }
}

/* Sehr schmale Mobilgeräte: UI-Text zusätzlich verkleinern */
@media (max-width: 420px) {
  html { font-size: 15px; }
  h1 { font-size: 1.6rem; }
  .hero-badge { font-size: 0.7rem; padding: 5px 12px; gap: 4px; }
  .channel-card { padding: 12px 14px; gap: 12px; }
  .channel-card__avatar { width: 46px; height: 46px; }
  .channel-card__name { font-size: 0.95rem; }
  .channel-card__meta { font-size: 0.75rem; }
  .btn-youtube, .btn-twitch { font-size: 0.78rem; padding: 7px 12px; }
  .news-item { padding: 12px 14px; gap: 10px; }
  .news-item__text { font-size: 0.85rem; }
  .seo-content { font-size: 0.88rem; }
  .faq-item summary { font-size: 0.88rem; padding: 12px 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video-card, .btn-primary { transition: none; }
}
/* Inline-Links im Fließtext klar als Link kennzeichnen */
.seo-content a,
.faq p a,
footer a {
  text-decoration: underline;
}