@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@500;600;700&display=swap');

:root{
  --bg: #0b0e0c;
  --panel: #121613;
  --panel-2: #171d19;
  --hazard: #ff7a1a;
  --hazard-dim: #7a3d10;
  --toxic: #8fce4a;
  --danger: #e0554a;
  --combine: #5b8fd6;
  --line: #263129;
  --text: #d7e0d9;
  --text-dim: #7f9186;
}
*{ box-sizing:border-box; max-width:100%; }
/* overflow-x:hidden gehört NUR auf html, nicht auf body: auf body würde es
   (per Spezifikation implizit overflow-y:auto erzwingen) body zu einer eigenen
   Scroll-Box machen und damit position:sticky für .site-topbar kaputt machen --
   sticky klebt dann nur innerhalb von bodys eigener Mini-Scrollbox, nicht relativ
   zum sichtbaren Viewport-Scroll (User-Feedback 2026-08-21: "Header/Nav bleiben
   beim Scrollen nicht oben"). */
/* Verhindert Mobile-Browser-"Font Boosting" (Android Chrome vergroessert sehr
   kleine Schrift wie das .badge-Rank-Tag (11px) automatisch ueber den in der
   CSS angegebenen Wert hinaus, groesserer Text wie Ueberschriften bleibt davon
   unberuehrt) -- genau das liess das Rank-Badge trotz line-height:1 auf
   Mobile immer noch zu gross/verschoben gegenueber dem Namen wirken (User-
   Report 2026-09-05, zwei Handy-Screenshots). */
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
html{ overflow-x:hidden; }
html,body{
  margin:0; padding:0; min-height:100vh;
  background: radial-gradient(ellipse at top left, #14180f 0%, #05070a 70%);
  font-family:'Rajdhani',sans-serif;
  color:var(--text);
}
body{
  display:flex; flex-direction:column;
}
body::before{
  content:""; position:fixed; inset:0;
  background:repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
  pointer-events:none;
}
a{ color:inherit; }
img{ max-width:100%; }
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:var(--line); border-radius:4px; }
::-webkit-scrollbar-thumb:hover{ background:var(--hazard-dim); }
*{ scrollbar-width:thin; scrollbar-color:var(--line) transparent; }

.mono{ font-family:'Share Tech Mono',monospace; }

/* ==== SHELL ====
   Volle Seitenbreite, edge-to-edge Bänder statt einer eingerahmten Karte
   (User-Feedback 2026-08-21, Referenz layout.png: "modern, aufgeräumt, über die
   ganze Seite gezogen"). Kein Sidebar mehr (User: die linke Server/Top-Players-Box
   "sah komisch aus") -- Serverstatus + Join-Button leben im großen Header. Header +
   eigene Pill-Nav-Leiste stecken zusammen in .site-topbar (position:sticky) --
   damit bleiben BEIDE beim Scrollen oben (User-Vorgabe), ohne dass irgendwo eine
   Header-Höhe hart codiert werden muss (robuster als zwei einzeln gestickte
   Elemente mit `top:<pixel>`). */
.site-topbar{ position:sticky; top:0; z-index:20; }

.site-header{
  display:flex; align-items:center; gap:20px 28px; flex-wrap:wrap;
  padding:22px clamp(20px, 4vw, 48px);
  background:linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow:0 2px 24px rgba(0,0,0,0.35);
  position:relative; z-index:1;
}
.brand-h{ display:flex; align-items:center; gap:14px; text-decoration:none; flex-shrink:0; margin-right:auto; }
.brand-mark{
  width:46px; height:46px; flex-shrink:0;
  object-fit:contain;
  filter:drop-shadow(0 0 10px rgba(255,122,26,0.35));
}
.brand-text{ display:flex; flex-direction:column; }
.brand-tag{ font-family:'Share Tech Mono',monospace; font-size:11px; letter-spacing:3px; text-transform:uppercase; color:var(--text-dim); }
.brand-name{ font-size:28px; font-weight:700; letter-spacing:1px; color:#fff; line-height:1.15; margin-top:2px; }
.brand-name span{ color:var(--hazard); }

.header-actions{ display:flex; align-items:center; gap:14px; flex-shrink:0; margin-left:auto; }
.header-status{
  display:flex; align-items:center; gap:8px;
  font-family:'Share Tech Mono',monospace; font-size:13px; letter-spacing:0.8px; text-transform:uppercase;
}
.header-status .dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.header-status.online{ color:var(--toxic); }
.header-status.online .dot{ background:var(--toxic); box-shadow:0 0 8px rgba(143,206,74,0.7); }
.header-status.offline{ color:var(--danger); }
.header-status.offline .dot{ background:var(--danger); }
.header-join{ padding:11px 22px; font-size:14px; flex-shrink:0; }
/* Eingeloggt: Avatar + kompakte Icon-Buttons statt der frueheren "My Profile"/
   "Logout"-Textbuttons (User-Wunsch 2026-09-06). Eckig statt rund (User-
   Wunsch 2026-09-06: "der kasten bei dem steam bild eckig und nicht rund"),
   gleicher border-radius wie .header-icon-btn daneben. */
/* Gleiche Hoehe wie .nav-toggle (Burger-Icon, 40px) -- User-Wunsch 2026-09-06:
   "das steam bild und das logout icon bitte genauso hoch wie das burger
   menu symbol". */
/* Bugfix 2026-09-06 (User-Report: "der tooltip bei dem steam bild... fehlt
   noch"): overflow:hidden auf .header-avatar selbst hat das eigene
   ::after-Tooltip mit abgeschnitten (der Tooltip liegt geometrisch
   ausserhalb der 40x40-Box, overflow:hidden clippt aber JEDEN Inhalt,
   auch position:absolute-Kindelemente mit demselben Containing Block --
   .header-icon-btn hatte deshalb nie dieses Problem, kein overflow dort).
   Rundung jetzt direkt am <img> (object-fit:cover deckt eh die ganze Box ab,
   sieht optisch identisch aus), Parent bleibt overflow:visible. */
.header-avatar{
  width:40px; height:40px; border-radius:5px; flex-shrink:0;
  border:1px solid var(--line); background:var(--panel-2); display:block;
}
.header-avatar img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:4px; }
.header-icon-btn{
  width:40px; height:40px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:5px; background:var(--panel-2); color:var(--text);
  font-size:16px; text-decoration:none; transition:border-color .15s, color .15s;
}
.header-icon-btn:hover{ border-color:var(--hazard); color:var(--hazard); }


/* Custom Tooltip statt title-Attribut (User-Wunsch 2026-09-06: "bei mouseover
   ein tooltip ueber myprofil icon und logout mit kleiner erklaerung") --
   eigene Optik statt der haesslichen nativen Browser-Box. */
.header-avatar, .header-icon-btn{ position:relative; }
.header-avatar::after, .header-icon-btn::after{
  content:attr(data-tooltip);
  position:absolute; top:calc(100% + 8px); right:0;
  background:var(--panel); border:1px solid var(--line); color:var(--text);
  font-family:'Share Tech Mono',monospace; font-size:11.5px; white-space:nowrap;
  padding:6px 10px; border-radius:4px; box-shadow:0 6px 16px rgba(0,0,0,0.35);
  opacity:0; pointer-events:none; transform:translateY(-4px);
  transition:opacity .15s, transform .15s; z-index:50;
}
.header-avatar:hover::after, .header-avatar:focus::after,
.header-icon-btn:hover::after, .header-icon-btn:focus::after{ opacity:1; transform:translateY(0); }

/* Hamburger-Toggle -- nur auf schmalen Screens sichtbar (siehe @media unten).
   User-Vorgabe 2026-08-21: "Join Now" auf dem Handy geht eh nicht (kein
   steam://-Handler) -- weg damit; Navigation wird zum Burger-Menü, damit nicht
   alle 5 Einträge gleichzeitig um den Platz konkurrieren. */
.nav-toggle{
  display:none; position:relative; flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width:40px; height:40px; flex-shrink:0;
  background:rgba(255,255,255,0.03); border:1px solid var(--line); border-radius:4px; cursor:pointer; padding:0;
}
.nav-toggle .nav-toggle-live-dot{
  display:block; position:absolute; top:-3px; right:-3px; width:10px; height:10px; border-radius:50%;
  padding:0; margin:0; border:1px solid rgba(255,255,255,0.75);
}
.nav-toggle .nav-toggle-live-dot.nav-live-badge-off{ background:var(--danger); }
.nav-toggle .nav-toggle-live-dot.nav-live-badge-on{ background:var(--toxic); animation:navLivePulse 1.6s ease-in-out infinite; }
.nav-toggle span{ display:block; width:18px; height:2px; background:var(--text); transition:transform .2s, opacity .2s; }
.nav-toggle.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.site-nav{
  display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap;
  padding:12px clamp(20px,4vw,48px);
  background:var(--panel); border-bottom:1px solid var(--line);
}
.nav-label{
  font-family:'Share Tech Mono',monospace; font-size:13px; letter-spacing:2px; text-transform:uppercase;
  color:var(--text-dim); padding-right:16px; margin-right:6px;
  background:linear-gradient(180deg, transparent, var(--line) 25%, var(--line) 75%, transparent) right / 1px 100% no-repeat;
  white-space:nowrap;
}
.nav-pill{
  display:flex; align-items:center; gap:8px; line-height:1;
  padding:10px 22px; text-decoration:none; color:var(--text-dim);
  font-size:14.5px; font-weight:700; letter-spacing:0.5px; text-transform:uppercase;
  border:1px solid var(--line); border-radius:6px; background:rgba(255,255,255,0.02);
  transition:color .15s, background .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space:nowrap;
}
.nav-pill .ic{ font-size:15px; display:flex; align-items:center; transition:transform .2s ease; line-height:0; }
.nav-pill .ic svg{ width:1em; height:1em; display:block; }
.nav-pill:hover{
  color:var(--text); border-color:var(--hazard-dim); background:rgba(255,255,255,0.04);
  transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,0.35), 0 0 18px rgba(255,122,26,0.18);
}
.nav-pill:hover .ic{ transform:scale(1.15) rotate(-4deg); }
.nav-pill.active{ color:#1a0e00; background:var(--hazard); border-color:var(--hazard); box-shadow:0 0 16px rgba(255,122,26,0.3); }
.nav-pill-live{ position:relative; }
.nav-live-badge{
  position:absolute; top:-12px; right:-10px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.75); padding:3px 7px;
  font-family:'Share Tech Mono',monospace; font-size:10px; font-weight:700; letter-spacing:0.3px;
  text-transform:uppercase; color:#fff; line-height:1.3; white-space:nowrap;
  box-shadow:0 2px 6px rgba(0,0,0,0.4);
}
.nav-live-badge-off{ background:var(--danger); }
.nav-live-badge-on{ background:var(--toxic); color:#0a1400; }
@keyframes navLivePulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.55; } }
.nav-pill.active:hover{ transform:translateY(-2px); box-shadow:0 0 16px rgba(255,122,26,0.3), 0 6px 14px rgba(0,0,0,0.3); }

@media (max-width: 860px){
  /* .header-actions .header-join (statt nur .header-join) -- gleiche Spezifität wie
     .btn{display:inline-flex} reicht NICHT, weil .btn textuell weiter unten im File
     steht und bei Gleichstand die spätere Regel gewinnt (Cascade-Bug, der "Join Now"
     auf dem Handy die ganze Zeit sichtbar gehalten hat, obwohl die Regel "da" war --
     User-Report 2026-08-21, mehrfach reproduziert trotz Cache-Löschen). Höhere
     Spezifität durch den zusätzlichen Vorfahren-Selektor gewinnt zuverlässig. */
  .header-actions .header-join{ display:none; }
  /* Login bleibt auf Mobile sichtbar (anders als "Join Now") -- steam://
     funktioniert dort ohnehin schlecht, Login ueber den Browser aber gut. */
  .header-login{ padding:9px 14px; font-size:13px; }
  .nav-toggle{ display:flex; }
  .site-nav{ display:none; flex-direction:column; align-items:stretch; gap:6px; padding:10px 16px 14px; }
  .site-nav.open{ display:flex; }
  .nav-pill{ border-radius:4px; justify-content:flex-start; }
  .nav-label{ padding:0 0 6px; margin-right:0; background:none; }
}

.main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:clamp(20px,3vw,32px) clamp(16px,4vw,40px) 20px;
  max-width:1320px; margin:0 auto; width:100%;
}
.topbar h1{ margin:0; font-size:clamp(20px,2.4vw,28px); letter-spacing:1px; text-transform:uppercase; color:#fff; font-weight:700; }
.topbar .crumb{ font-family:'Share Tech Mono',monospace; font-size:12.5px; color:var(--text-dim); margin-top:4px; letter-spacing:0.5px; }

.content{ padding:0 clamp(16px,4vw,40px) 48px; flex:1; width:100%; max-width:1320px; margin:0 auto; }

/* Grid statt flex+space-between (User-Report 2026-09-04: "die ip nicht genau
   in der mitte") -- space-between verteilt nur GLEICHE Abstaende zwischen den
   3 Elementen, das zentriert die IP (mittleres Element) aber nur, wenn Copyright-
   Text und Legal-Links zufaellig gleich breit sind. 1fr/auto/1fr zentriert die
   mittlere Spalte immer exakt, unabhaengig von der Breite der aeusseren. */
.site-footer{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px;
  padding:18px clamp(16px,4vw,40px);
  border-top:1px solid var(--line);
  background:var(--panel);
  font-family:'Share Tech Mono',monospace; font-size:12px; color:var(--text-dim); letter-spacing:0.3px;
}
.site-footer > :first-child{ justify-self:start; }
.site-footer > :nth-child(2){ justify-self:center; }
.site-footer > :last-child{ justify-self:end; }
.footer-legal a{ color:var(--text-dim); text-decoration:none; }
.footer-legal a:hover{ color:var(--hazard); }

/* Allgemeiner Cookie-/Consent-Hinweis (User-Wunsch 2026-09-04) -- fixiert am
   unteren Rand, nur sichtbar solange keine Zustimmung in localStorage steht
   (siehe layout.php). */
.cookie-banner{
  display:flex; position:fixed; left:0; right:0; bottom:0; z-index:200;
  align-items:center; justify-content:center; gap:16px; flex-wrap:wrap;
  padding:14px clamp(16px,4vw,40px);
  background:var(--panel-2); border-top:1px solid var(--hazard-dim);
  box-shadow:0 -10px 30px rgba(0,0,0,0.5);
  transform:translateY(120%); transition:transform 0.6s ease;
  pointer-events:none;
}
.cookie-banner.open{ transform:translateY(0); pointer-events:auto; }
.cookie-banner p{ margin:0; flex:1 1 420px; color:var(--text-dim); font-size:13px; line-height:1.5; }
.cookie-banner p a{ color:var(--hazard); }
.cookie-banner-actions{ display:flex; gap:10px; flex-shrink:0; }
.cookie-banner .btn{ flex-shrink:0; }

@media (max-width: 560px){
  .site-header{ padding:16px 16px; gap:12px 10px; }
  .brand-mark{ width:38px; height:38px; font-size:20px; }
  .brand-name{ font-size:21px; }
  .brand-tag{ font-size:9.5px; }
  .header-status{ font-size:11px; }
  .header-join{ padding:9px 16px; font-size:13px; }
  .site-nav{ padding:10px 12px; gap:8px; }
  .nav-pill{ font-size:12.5px; padding:9px 14px; }
  .content{ padding:0 14px 36px; }
  .topbar{ padding:18px 14px 16px; }
  .site-footer{ display:flex; padding:16px 14px; flex-direction:column; align-items:center; text-align:center; gap:4px; }
}

/* ==== GENERIC ==== */
.panel{ border:1px solid var(--line); border-radius:6px; background:var(--panel-2); padding:18px 20px; margin-bottom:18px; }
.panel-title{
  font-family:'Rajdhani',sans-serif; font-weight:700; font-size:15px;
  letter-spacing:1.5px; text-transform:uppercase; color:var(--hazard);
  margin:0 0 14px; padding-bottom:10px; border-bottom:1px solid var(--line);
}
.panel-title-row{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
  margin:0 0 14px; padding-bottom:10px; border-bottom:1px solid var(--line);
}
.panel-title-row .panel-title{ margin:0; padding-bottom:0; border-bottom:none; }
.history-range-switch{ display:flex; gap:6px; }
.history-range-btn{
  box-sizing:border-box; height:30px; padding:0 12px; border:1px solid var(--line); border-radius:4px;
  background:var(--panel); color:var(--text-dim); font-family:'Share Tech Mono',monospace; font-size:12px;
  cursor:pointer; transition:border-color .15s, color .15s, background .15s;
}
.history-range-btn:hover{ border-color:var(--hazard-dim); color:var(--text); }
.history-range-btn.active{ color:#1a0e00; background:var(--hazard); border-color:var(--hazard); }
.history-summary{ font-family:'Share Tech Mono',monospace; font-size:12.5px; color:var(--text-dim); margin:-4px 0 14px; }
.history-chart-wrap{ position:relative; height:320px; }
@media (max-width: 640px){ .history-chart-wrap{ height:260px; } }
.status-line{ font-family:'Share Tech Mono',monospace; font-size:14px; color:var(--text-dim); padding:14px 0; }

.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr)); gap:10px; margin-bottom:18px; }
/* Server-Status-Grid: Players+Ping nebeneinander, Map darunter über die volle
   Spaltenbreite -- User-Vorgabe 2026-08-21 ("die map unter players und ping auf
   ganzer spalten länge"), unabhängig von Bildschirmbreite. Eigene Klasse statt
   .stat-grid direkt zu ändern, weil match.php dieselbe Klasse für die 3er
   Kills/Deaths/Headshots-Statistik im Waffen-Modal wiederverwendet. */
.server-stat-grid{ grid-template-columns:1fr 1fr; }
.server-stat-grid .map-box{ grid-column:1 / -1; }
.stat-box{ border:1px solid var(--line); border-radius:5px; background:var(--panel-2); padding:16px; text-align:center; }
.stat-box .sv{ font-size:28px; font-weight:700; color:#fff; }
.stat-box .sl{ font-family:'Share Tech Mono',monospace; font-size:11.5px; color:var(--text-dim); letter-spacing:1.5px; margin-top:4px; text-transform:uppercase; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 18px; border:1px solid var(--line); border-radius:5px; background:var(--panel-2);
  color:var(--text); font-family:'Rajdhani',sans-serif; font-weight:700; letter-spacing:0.5px;
  font-size:15px; text-transform:uppercase; cursor:pointer; text-decoration:none;
  transition:border-color .15s, background .15s, color .15s;
}
.btn:hover{ border-color:var(--hazard); color:var(--hazard); }
.btn.primary{ background:var(--hazard); border-color:var(--hazard); color:#1a0e00; }
.btn.primary:hover{ background:#ff8a35; color:#1a0e00; }
/* Yes/No-Bestaetigungs-Buttons (Kommentar loeschen etc.) -- gruen/rot wie bei
   den Vote-Popups im MOTD (User-Wunsch 2026-09-06: "auf der website auch mit
   yes gruen und no rot sowie bei der motd"). */
.btn.confirm-yes{ border-color:var(--toxic); color:var(--toxic); }
.btn.confirm-yes:hover{ background:var(--toxic); color:#0c1a06; border-color:var(--toxic); }
.btn.confirm-no{ border-color:var(--danger); color:var(--danger); }
.btn.confirm-no:hover{ background:var(--danger); color:#1f0a08; border-color:var(--danger); }

/* Gleiche Hoehe wie .map-search-clear (User-Wunsch 2026-09-06: "das suchfeld
   bei players bitte genauso hoch wie der clear button. auch bei matches!"). */
.search-input{
  box-sizing:border-box; height:40px; -webkit-appearance:none; appearance:none; line-height:normal;
  padding:0 12px; background:var(--panel); border:1px solid var(--line); border-radius:4px; color:var(--text);
  font-family:'Share Tech Mono',monospace; font-size:14px; letter-spacing:0.3px; outline:none;
}
.search-input::placeholder{ color:var(--text-dim); }
.search-input:focus{ border-color:var(--hazard); }

.filter-toggle{ display:inline-flex; border:1px solid var(--line); border-radius:5px; overflow:hidden; }
.filter-toggle a, .filter-toggle button{
  padding:9px 16px; background:var(--panel-2); border:none; border-right:1px solid var(--line);
  color:var(--text-dim); font-family:'Rajdhani',sans-serif; font-weight:700;
  font-size:14.5px; letter-spacing:0.5px; text-transform:uppercase; cursor:pointer; text-decoration:none;
}
.filter-toggle a:last-child, .filter-toggle button:last-child{ border-right:none; }
.filter-toggle a.active, .filter-toggle button.active{ background:var(--hazard); color:#1a0e00; }

.pagination{ display:flex; align-items:center; justify-content:center; gap:14px; margin-top:20px; font-family:'Share Tech Mono',monospace; font-size:13px; }
.pagination a{ padding:7px 14px; border:1px solid var(--line); border-radius:4px; color:var(--text); text-decoration:none; }
.pagination a:hover{ border-color:var(--hazard); color:var(--hazard); }
.pagination .disabled{ opacity:0.3; pointer-events:none; }
.pagination .cur{ color:var(--text-dim); }

/* ==== MATCHES ==== */
.match-list{ display:grid; grid-template-columns:1fr; gap:10px; }
.match-card{
  border:1px solid var(--line); border-radius:6px; background:var(--panel-2); padding:14px 16px;
  text-decoration:none; color:inherit; display:flex; align-items:center; gap:14px;
  transition:border-color .15s, background .15s;
}
.match-card:hover{ border-color:var(--hazard); background:#1c231d; }
.match-thumb{
  width:56px; height:56px; flex-shrink:0; border:1px solid var(--line); border-radius:4px;
  background:linear-gradient(135deg,#1a2e1a,#0d1a0d);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.match-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.match-info{ flex:1; min-width:0; }
/* Kartenname bekommt eine eigene volle Zeile (nie gekürzt -- User-Vorgabe 2026-08-21:
   "die Länge der Map nicht ändern"), Badges (Ergebnis + Elo) eine eigene Reihe darunter.
   Vorher standen Name und Ergebnis-Badge nebeneinander in EINER Zeile -- bei langen
   Namen (z.B. DM_BIOHAZARD_SF_B3) + langem Label (FORFEITED) lief das Badge aus der
   Karte raus (User-Screenshot matches.png: "finished und forfeited leider außerhalb"). */
.match-map{ font-weight:700; letter-spacing:0.5px; text-transform:uppercase; color:#fff; font-size:17px; margin-bottom:6px; }
.match-badges{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
/* Gleiche Optik wie .opp-elo -- User-Vorgabe 2026-08-21: "match-badges sollte
   eigentlich wie die elo badges aussehen" (vorher scharfe statt runde Ecken). */
.match-result{ font-family:'Share Tech Mono',monospace; font-size:13px; padding:2px 7px; border-radius:4px; letter-spacing:0.5px; text-transform:uppercase; flex-shrink:0; }
.match-result.win{ color:var(--toxic); border:1px solid #2f4a1e; }
.match-result.loss{ color:#d65b5b; border:1px solid #4a2020; }
.match-result.neutral{ color:var(--text-dim); border:1px solid var(--line); }
.match-meta{ display:flex; gap:14px; font-family:'Share Tech Mono',monospace; font-size:12.5px; color:var(--text-dim); flex-wrap:wrap; }
.match-meta b{ color:var(--text); font-weight:400; }
.match-meta .meta-row{ display:flex; gap:14px; flex-shrink:0; }
/* .match-status-text ist der "(Finished)"/"(Forfeited)"-Text neben Score/Winner --
   standardmäßig versteckt (auf breiten Screens reicht das Badge oben), erst auf
   Mobile eingeblendet, wenn stattdessen das Badge weicht (User-Vorgabe 2026-08-21:
   "nimm das FINISHED bei responsive als Badge raus und schreib es als normalen Text
   ... bei normal kannst du alles so lassen" -- nur auf matches.php, nicht im
   Recent-Matches-Panel des Spielerprofils, das keinen Score/Winner-Text hat).
   Kartenbild bleibt zentriert zum Textblock (User: "mapbild mittig von allen
   Texten") -- kein align-items:flex-start mehr auf Mobile. */
.match-status-text{ display:none; }
@media (max-width: 520px){
  .match-meta{ flex-direction:column; align-items:flex-start; gap:5px; }
  /* Recent Matches im Spielerprofil hat nur Modus+Datum -- die bleiben auch auf Mobile
     in einer Zeile (User-Vorgabe 2026-08-21: "das 2v2 und das datum mit uhr in einer
     reihe. bei normal kann es so bleiben wie es ist"). */
  .profile-match-list .match-meta{ flex-direction:row; align-items:center; gap:14px; }
  .matches-page-list .match-result{ display:none; }
  .matches-page-list .match-status-text{ display:inline; }
  /* Ohne Badge bleibt .match-badges sonst als leere Box mit ihrem margin-bottom
     stehen -- sichtbare Lücke ohne erkennbaren Grund (User-Screenshot abstand.png:
     "der abstand?? warum ist da einer"). Nur wenn die Elo-Badge (nur bei
     matches.php?player=... vorhanden) noch drin ist, bleibt der Abstand. */
  .matches-page-list .match-badges{ margin-bottom:0; }
  .matches-page-list .match-badges:has(.opp-elo){ margin-bottom:6px; }
}

/* ==== MATCH DETAIL ==== */
.detail-hero{ display:flex; align-items:center; gap:14px; margin-bottom:16px; padding:14px 16px; border:1px solid var(--line); border-radius:6px; background:var(--panel-2); }
.dh-thumb{ width:64px; height:64px; flex-shrink:0; border:1px solid var(--line); border-radius:4px; background:linear-gradient(135deg,#1a2e1a,#0d1a0d); overflow:hidden; }
.dh-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.dh-map{ font-weight:700; letter-spacing:0.5px; text-transform:uppercase; color:#fff; font-size:20px; }
.dh-meta{ font-family:'Share Tech Mono',monospace; font-size:13px; color:var(--text-dim); margin-top:3px; }
/* Status-Badge (FINISHED/FORFEITED/...) rechts in der Map-Box -- nur Desktop
   (User-Vorgabe 2026-08-21: "aber nur auf dem Desktop"), auf schmalen Screens bleibt
   der Status stattdessen als Text in .dh-meta lesbar (kein Platz für Thumb+Name+Badge
   nebeneinander). */
.dh-status{ margin-left:auto; flex-shrink:0; }
.dh-status-text{ display:none; }
@media (max-width: 640px){
  .dh-status{ display:none; }
  .dh-status-text{ display:inline; }
}
@media (max-width: 480px){
  .detail-hero{ gap:12px; padding:12px 14px; }
  .dh-thumb{ width:50px; height:50px; }
  .dh-map{ font-size:16px; }
  .dh-meta{ font-size:11px; line-height:1.5; }
  .vs-block{ gap:14px; padding:14px 10px; }
  .vs-side{ max-width:none; }
  .team-group-label{ font-size:12px; }
}

.vs-block{ display:flex; align-items:center; justify-content:center; gap:20px; margin-bottom:18px; padding:16px; border:1px solid var(--line); border-radius:6px; background:var(--panel-2); }
.vs-side{ text-align:center; flex:1; max-width:220px; }
.vs-team{ font-family:'Share Tech Mono',monospace; font-size:13px; letter-spacing:1.5px; color:var(--text-dim); text-transform:uppercase; }
.vs-score{ font-size:38px; font-weight:700; color:#fff; margin-top:3px; }
.vs-side.combine .vs-score{ color:var(--combine); }
.vs-side.rebels .vs-score{ color:var(--danger); }
/* Sieger-Score in orange bei teamplay 0 (1v1-Kopf-an-Kopf), gleiche Optik wie
   bei der MOTD (.vs-side.leader dort) -- User-Wunsch 2026-09-05. */
.vs-side.leader .vs-score{ color:var(--hazard); }
.vs-sep{ font-family:'Share Tech Mono',monospace; font-size:16px; color:var(--text-dim); }
@media (max-width: 420px){
  .vs-block{ gap:12px; padding:14px; }
  .vs-score{ font-size:30px; }
}

.team-group-label{ font-family:'Share Tech Mono',monospace; font-size:13px; letter-spacing:1.5px; text-transform:uppercase; margin:16px 0 6px; padding-bottom:5px; border-bottom:1px solid var(--line); }
.team-group-label.combine{ color:var(--combine); }
.team-group-label.rebels{ color:var(--danger); }

.best-weapon {
    text-align: center;
    width: 100%;
}
/* Eigene Box mit Border statt nur Trennlinie -- User-Vorgabe 2026-08-21: "die spieler
   auch wieder ... in eigene boxen mit border wie bei players auch". */
.opp-row{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:12px 14px;
  border:1px solid var(--line); border-radius:6px; background:var(--panel-2);
  margin-bottom:8px; cursor:pointer; transition:border-color .15s, background .15s;
}
.opp-row:last-child{ margin-bottom:0; }
.opp-row:hover{ border-color:var(--hazard); background:#1c231d; }
/* Platzierungszahl vor dem Avatar, wie bei .pr-rank auf players.php -- User-Vorgabe
   2026-08-21: "die position wie bei player vor dem bild ... eigentlich wie bei
   players alles". */
.opp-rank{ font-family:'Share Tech Mono',monospace; color:var(--text-dim); font-size:13px; width:24px; flex-shrink:0; text-align:center; }
.opp-avatar{ display:block; position:relative; width:40px; height:40px; border:1px solid var(--line); border-radius:4px; flex-shrink:0; background:var(--panel); }
.opp-avatar img:not(.rank-icon-badge){ width:100%; height:100%; object-fit:cover; display:block; border-radius:3px; }
.opp-name{ display:flex; align-items:center; gap:8px; flex:1 1 140px; min-width:0; font-size:16px; }
.opp-name-text{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font-weight:700; text-decoration:none; }
.opp-name-text:hover{ color:var(--hazard); }
.opp-elo{ font-family:'Share Tech Mono',monospace; font-size:13px; padding:2px 7px; border:1px solid var(--line); border-radius:4px; flex-shrink:0; }
.opp-elo.pos{ color:var(--toxic); border-color:#2f4a1e; }
.opp-elo.neg{ color:var(--danger); border-color:#4a2020; }
.opp-elo.neutral{ color:var(--text-dim); }
.opp-kd{ display:flex; align-items:center; gap:6px; font-family:'Share Tech Mono',monospace; font-size:14.5px; flex-shrink:0; white-space:nowrap; }
.opp-kd .k{ color:var(--toxic); }
.opp-kd .d{ color:#d65b5b; }
.opp-kd .sep{ color:var(--text-dim); }
.opp-hs{ font-size:12px; color:var(--text-dim); }
.opp-actions{ display:flex; align-items:center; gap:8px; flex-shrink:0; margin-left:auto; }
/* .opp-stats bündelt Elo/K-D/HS nur für's Mobile-Grid unten -- display:contents heißt
   hier "unsichtbar" für die Desktop-Flex-Zeile: die Kinder verhalten sich weiterhin
   wie direkte Flex-Items von .opp-row, am Desktop-Layout ändert sich also nichts. */
.opp-stats{ display:contents; }
.btn-mini{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 12px; border:1px solid var(--line); border-radius:4px; background:var(--panel);
  color:var(--text-dim); font-family:'Rajdhani',sans-serif; font-weight:700; letter-spacing:0.3px;
  font-size:12.5px; text-transform:uppercase; text-decoration:none; cursor:pointer;
  transition:border-color .15s, color .15s;
}
.btn-mini:hover{ border-color:var(--hazard); color:var(--hazard); }
@media (max-width: 640px){
  /* Anordnung wie bei der Players-Liste (Avatar+Name nebeneinander, Stats+Buttons
     jeweils eine eigene Zeile darunter) statt der alten flex-order-Lösung, die den
     Avatar über den Namen stapelte -- User-Vorgabe 2026-08-21 (Screenshot
     playersmatch.png), inkl. der View-Profile/Weapons-Buttons in der Anordnung. */
  .opp-row{
    display:grid; grid-template-columns:20px 40px 1fr; grid-template-rows:auto auto auto;
    column-gap:10px; row-gap:8px; align-items:center;
  }
  .opp-rank{ grid-column:1; grid-row:1 / 3; align-self:center; width:auto; }
  /* Avatar spannt Name- UND Stats-Zeile und steht darin vertikal mittig -- User-Vorgabe
     2026-08-21: "das steam bild mittig von namen und elo reihe mit dem score". */
  .opp-avatar{ grid-column:2; grid-row:1 / 3; align-self:center; }
  .opp-name{ grid-column:3; grid-row:1; flex-basis:auto; }
  .opp-stats{ display:flex; grid-column:3; grid-row:2; align-items:center; gap:14px; flex-wrap:wrap; }
  .opp-actions{ grid-column:1 / -1; grid-row:3; margin-left:0; }
}

/* Pro-Waffen-Kacheln (User-Wunsch 2026-08-31, "weapons sind leider keine
   Kacheln") -- 1:1 aus dem MOTD uebernommen (legacy_assets/style.css,
   .weapon-grid/.weapon-box), gleiche Variablennamen (--line/--panel-2/--text/
   --text-dim) sind hier schon vorhanden. Ersetzt die alte Zeilenliste
   (.weapon-row/.weapon-bar) in player.php/match.php.*/
.weapon-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
  gap:10px;
}
.weapon-box{
  border:1px solid var(--line); background:var(--panel-2); border-radius:6px;
  padding:12px 13px; font-family:'Share Tech Mono',monospace; font-size:14px;
}
.weapon-box .wb-head{
  display:flex; align-items:center; gap:10px; margin-bottom:9px;
  padding-bottom:8px; border-bottom:1px solid var(--line);
}
.weapon-box .wb-ic{ width:64px; height:64px; text-align:center; flex-shrink:0; }
.weapon-box .wb-ic img{ width:64px; height:64px; object-fit:contain; }
.weapon-box .wb-name{ color:#fff; text-transform:uppercase; letter-spacing:0.5px; font-weight:700; font-size:14.5px; }
.weapon-box .wb-line{
  display:flex; justify-content:space-between; align-items:baseline;
  color:var(--text-dim); line-height:1.8;
}
.weapon-box .wb-line b{ color:var(--text); font-weight:700; font-size:15px; }

/* ==== PLAYERS LIST ====
   Karten-/Zeilen-Liste statt <table> -- eine echte Tabelle mit mehreren Spalten
   (Elo/Matches/W-D-L) lässt sich auf schmalen Bildschirmen nicht ohne horizontales
   Scrollen darstellen (User-Vorgabe 2026-08-21: kein Scrollen wegen Datenmenge).
   .player-row bricht die Stats-Gruppe stattdessen unter Avatar+Name um. */
.player-list{ display:grid; grid-template-columns:1fr; gap:10px; }
.player-row{
  display:grid; grid-template-columns:26px 38px 1fr; grid-template-rows:auto auto;
  column-gap:14px; row-gap:6px; align-items:center;
  padding:12px 14px; border:1px solid var(--line); border-radius:6px; background:var(--panel-2);
  text-decoration:none; color:inherit; cursor:pointer;
  transition:border-color .15s, background .15s;
}
.player-row:hover{ border-color:var(--hazard); background:#1c231d; }
.pr-rank{ grid-column:1; grid-row:1 / 3; align-self:center; font-family:'Share Tech Mono',monospace; color:var(--text-dim); font-size:13px; text-align:center; }
.pr-avatar{ grid-column:2; grid-row:1; position:relative; width:38px; height:38px; border:1px solid var(--line); border-radius:4px; background:var(--panel); }
.pr-avatar img:not(.rank-icon-badge){ width:100%; height:100%; object-fit:cover; display:block; border-radius:3px; }
.pr-main{ grid-column:3; grid-row:1; min-width:0; display:flex; align-items:center; gap:8px; }
.pr-name{ font-weight:700; color:#fff; font-size:15.5px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pr-flag{ width:20px; height:20px; flex-shrink:0; border-radius:3px; }
/* Stats sitzen als eigene Grid-Zeile UNTER dem Profilbild (Spalte 2, nicht mehr nur
   Spalte 3 unter dem Namen) und ziehen sich bis zum Kartenrand -- User-Vorgabe
   2026-08-21: "das elo matches bitte schon unter dem profil bild". Die Rang-Zahl
   (#1 etc.) spannt dafür beide Zeilen und steht vertikal mittig ("die platzierungs
   zahl genau in der mitte von der karte"). Label:Wert-Paare statt Zahl-über-Label,
   nowrap statt umbrechen -- User-Vorgabe: "Elo: zahl Matches: zahl W/D/L
   Zahl/zahl/zahl alles in einer Reihe bei responsive" -- Schrift schrumpft
   stattdessen auf sehr schmalen Screens. */
.pr-stats{ grid-column:2 / -1; grid-row:2; display:flex; align-items:baseline; gap:16px; flex-wrap:nowrap; min-width:0; }
.pr-stat{ display:inline-flex; align-items:baseline; gap:4px; white-space:nowrap; }
.pr-stat .psv{ font-family:'Share Tech Mono',monospace; font-size:14px; font-weight:700; }
.pr-stat .psl{ font-family:'Share Tech Mono',monospace; font-size:11px; color:var(--text-dim); letter-spacing:0.3px; }
.elo-val{ color:var(--hazard); }
/* Matches-Zahl und die "/"-Trenner im W/D/L-Chip erbten sonst nur das gedimmte
   Body-Grau statt wie der Spielername in echtem Weiß zu stehen (User-Report
   2026-08-22, players.php). .w/.d/.l behalten ihre eigene Farbe -- die ist
   spezifischer als dieses Element-lose Erben und wird dadurch nicht überschrieben. */
.pr-stat .psv.mono, .pr-stat .psv.wl{ color:#fff; }
/* W/D/L als ein Chip, wie die Elo-Badges (z.B. .opp-elo im Recent-Matches-Panel) --
   User-Vorgabe 2026-08-21: "die badges von win draw und loose sollen wie der elo
   badge aussehen". Gilt überall wo .wl auftaucht: players.php, player.php, index.php. */
.wl{ font-family:'Share Tech Mono',monospace; font-size:13px; }
.wl .w{ color:var(--toxic); }
.wl .d{ color:var(--text-dim); }
.wl .l{ color:var(--danger); }
@media (max-width: 400px){
  .pr-stats{ gap:10px; }
  .pr-stat .psv{ font-size:12.5px; }
  .pr-stat .psl{ font-size:10px; }
}
@media (max-width: 340px){
  .pr-stats{ gap:7px; }
  .pr-stat .psv{ font-size:11px; }
  .pr-stat .psl{ font-size:9px; }
}

/* ==== PLAYER PROFILE ==== */
.profile-head{ display:flex; align-items:center; gap:18px; margin-bottom:4px; flex-wrap:wrap; }
/* .profile-head-main (Avatar+Name) bewusst OHNE flex-wrap -- Avatar bleibt immer LINKS
   neben dem Namen, wie vor der "Elo unter dem Profilbild"-Änderung (User-Klarstellung
   2026-08-21: "das hatten wir links das bild und daneben den namen etc, so wie es
   vorher war" -- NICHT Bild oben und alles andere darunter). Nur .profile-actions
   (die Buttons) dürfen bei .profile-head selbst umbrechen und auf eine eigene Zeile
   fallen, dafür bleibt .profile-head noch flex-wrap. */
.profile-head-main{ display:flex; align-items:center; gap:18px; flex:1 1 auto; min-width:0; }
/* Avatar direkt links neben Name+Info -- keine Elo/Matches mehr im Avatar-Block
   (User-Klarstellung 2026-08-21: die Stats-Zeile gehört UNTER den Namen, nicht unter
   das Bild -- "daneben der name mit dem unranked darunter in einer reihe das elo mit
   matches und win loose etc"). */
.profile-avatar{ position:relative; width:96px; height:96px; border:1px solid var(--hazard-dim); border-radius:6px; background:var(--panel); flex-shrink:0; }
.profile-avatar img:not(.rank-icon-badge){ width:100%; height:100%; object-fit:cover; display:block; border-radius:5px; }

/* Rang-Icon-Badge auf Steam-Avataren (Players/Matches/Index/Profil), siehe
   tracker_rank_icon_html() in inc/db.php. Oben-rechts, wie ein Notification-
   Badge, leicht ueber die Avatar-Ecke ueberlappend (User-Vorgabe 2026-09-11:
   "wie ein notification badge oben rechts am bild", vorher unten-rechts und
   durch eine zu allgemeine "X img"-Regel auf 100% Groesse gestreckt --
   overflow:hidden ist jetzt von den Containern runter, border-radius sitzt
   stattdessen direkt am Avatar-<img> selbst, damit das Badge ueberlappen
   kann ohne abgeschnitten zu werden). :not(.rank-icon-badge) oben haelt die
   "X img{width:100%}"-Regeln vom Badge-<img> fern (hoehere Spezifitaet
   haette sonst gewonnen).) */
.rank-icon-badge{ position:absolute; top:-8px; width:24px; height:24px; pointer-events:none; }
.pr-avatar .rank-icon-badge, .opp-avatar .rank-icon-badge{ left:24px; }
.leaderboard-top3 .pr-avatar .rank-icon-badge{ left:24px; top:-5px; width:16px; height:16px; }
.profile-avatar .rank-icon-badge{ width:28px; height:28px; top:-8px; right:-8px; }
.profile-info{ flex:1 1 auto; min-width:0; }
.profile-name{ font-size:26px; font-weight:700; color:#fff; letter-spacing:0.5px; display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.profile-name .pr-flag{ width:30px; height:30px; flex-shrink:0; }
/* .profile-meta trägt jetzt die Elo/Matches/W-D-L-Zeile im selben Format wie überall
   sonst (players.php, index.php) -- kombiniert mit .pr-stats für Layout/Spacing. */
.profile-meta{ font-family:'Share Tech Mono',monospace; font-size:14px; color:var(--text-dim); margin-top:8px; }
.profile-meta b{ color:var(--hazard); font-weight:400; }
.profile-actions{ margin-left:auto; display:flex; flex-wrap:wrap; gap:10px; }
@media (max-width: 640px){
  .profile-head{ gap:14px; }
  .profile-head-main{ gap:12px; }
  .profile-avatar{ width:72px; height:72px; }
  /* Name kuerzen wenn zu lang -- User-Wunsch 2026-09-04, gleiches Verhalten
     wie .pr-name in der Players-Uebersicht (nur mobile, Desktop bleibt
     unveraendert/kein flex-wrap-Zwang hier). min-width:0 auf dem Flex-Item
     ist noetig, damit text-overflow:ellipsis in einer flex-Reihe ueberhaupt
     greift statt den Container zu sprengen. */
  .profile-name{ font-size:21px; flex-wrap:nowrap; min-width:0; }
  .profile-name-text{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  /* Flagge + Rang-/Admin-Badges sollen nie schrumpfen, nur der Name selbst. */
  .profile-name > *:not(.profile-name-text){ flex-shrink:0; }
  .profile-meta.pr-stats{ gap:12px; }
  .profile-actions{ margin-left:0; flex-basis:100%; }
  .profile-actions .btn{ flex:1 1 auto; }
}

/* ==== SETTINGS MODAL ==== */
.modal-overlay{
  display:none; position:fixed; inset:0; z-index:100;
  background:rgba(4,6,4,0.75); align-items:center; justify-content:center; padding:20px;
}
.modal-overlay.open{ display:flex; }
.modal-panel{
  width:100%; max-width:560px; max-height:82vh; overflow-y:auto;
  background:var(--panel-2); border:1px solid var(--hazard-dim); border-radius:8px;
  box-shadow:0 20px 60px rgba(0,0,0,0.7); padding:20px;
}
/* Match-Stats-Popup (User-Wunsch 2026-09-04) -- braucht auf Desktop mehr Platz
   fuer die Waffen-Kacheln als die schmalen Bestaetigungs-Modals (die den
   generischen .modal-panel-Wert behalten). width:100% + .modal-overlay
   padding sorgen weiterhin dafuer, dass es auf Mobile trotzdem nicht breiter
   als der Viewport wird. */
.modal-panel-wide{ max-width:1240px; }
.modal-top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--line);
}
.modal-top h3{ margin:0; font-size:19px; letter-spacing:0.5px; text-transform:uppercase; color:#fff; font-weight:700; }
/* Match-Stats-Popup Kopfzeile (User-Wunsch 2026-09-04): Avatar links vom
   Namen, Rank-Badge rechts vom Namen -- gleiche Reihenfolge wie ueberall
   sonst auf der Seite (.opp-row/.pr-main/.profile-name). */
.wm-head{ display:flex; align-items:center; gap:10px; min-width:0; }
/* h3 hat per Browser-Default ein groesseres line-height als der Rank-Badge-
   Text -- macht die Box optisch hoeher als der sichtbare Text und laesst
   Avatar/Name/Badge trotz align-items:center leicht "hoch" wirken (User-
   Report 2026-09-04: nicht vertikal mittig). line-height:1 gibt der h3-Box
   ihre tatsaechliche Text-Hoehe zurueck, dann zentriert align-items korrekt. */
.wm-head h3{ line-height:1; }
/* players.php (.pr-main) hat dasselbe Avatar/Name/Badge-Layout und dort sitzt
   das Rank-Badge korrekt mittig -- Unterschied: dort ist das Badge ein
   direktes Flex-Kind von .pr-main, hier steckt es (wegen innerHTML im JS)
   in einer zusaetzlichen <span id="weaponsModalRankBadge">-Huelle, deren
   EIGENE Zeilenbox (nicht die des Badges) ueber die Flex-Ausrichtung
   entscheidet. Gleiche Loesung wie bei .pr-main uebernommen: die Huelle
   selbst wird zum Flex-Container, dann zaehlt nur noch die tatsaechliche
   Badge-Hoehe (User-Report 2026-09-05, zwei Handy-Screenshots).*/
#weaponsModalRankBadge{ display:inline-flex; align-items:center; }
.wm-avatar{ width:40px; height:40px; border:1px solid var(--line); border-radius:4px; flex-shrink:0; overflow:hidden; background:var(--panel); }
.wm-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.modal-close{
  width:28px; height:28px; flex-shrink:0; border:1px solid var(--line); border-radius:4px;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-dim); cursor:pointer; font-size:14px;
}
.modal-close:hover{ border-color:var(--hazard); color:var(--hazard); }

.settings-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr)); gap:8px; }
.setting-row{ display:flex; align-items:center; justify-content:space-between; padding:9px 12px; border:1px solid var(--line); border-radius:4px; background:var(--panel); font-family:'Share Tech Mono',monospace; font-size:13.5px; }
.setting-row .sk{ color:var(--text-dim); text-transform:uppercase; }
/* Erklaerungstext unter dem Label, gleiches Prinzip wie ".setting-desc" in
   der MOTD selbst (Login-Feature 2026-09-06, Settings-Seite 1:1 wie /motd/settings). */
/* Ein-Spalten-Layout fuer die editierbare Settings-Seite (statt des kompakten
   Mehrspalten-Grids im reinen Anzeige-Popup auf player.php) -- mit Erklaerungs-
   text braeuchte eine 180px-Spalte sonst zu viel Umbruch. */
.settings-grid-edit{ grid-template-columns:1fr; }
.setting-desc{
  margin-top:3px; font-family:'Rajdhani',sans-serif; text-transform:none;
  font-size:11.5px; color:var(--text-dim); font-weight:400; max-width:320px;
}
.sound-preview-row{ display:flex; align-items:center; gap:8px; }
.sound-preview-btn{
  height:30px; padding:0 10px; flex-shrink:0; border-radius:4px;
  background:var(--panel-2); border:1px solid var(--line); color:var(--text-dim);
  font-family:'Share Tech Mono',monospace; font-size:11px; text-transform:uppercase;
  cursor:pointer; transition:border-color .15s, color .15s;
}
.sound-preview-btn:hover{ border-color:var(--hazard); color:var(--hazard); }
.sound-preview-btn:disabled{ opacity:0.4; cursor:not-allowed; }
.sound-preview-btn:disabled:hover{ border-color:var(--line); color:var(--text-dim); }
/* Settings-Tabs (FOV & Zoom/Visuals/Audio/Gameplay/Nickname) auf Mobile als
   einzelne, eigene Buttons statt einer gemeinsamen Box mit Trennlinien
   (User-Report 2026-09-06: erst 3-zeiliges "FOV & Zoom" in der Vier-Spalten-
   Reihe, dann -- nach der ersten Grid-Fassung mit gemeinsamen Innenrahmen --
   "einzeln und nicht als zusammenhaengende box"). #settingsTabs verliert hier
   den gemeinsamen .filter-toggle-Rahmen (border/overflow explizit
   zurueckgesetzt) und bekommt eigene Buttons mit vollem Rahmen + Abstand.
   Nur #settingsTabs betroffen, .filter-toggle bleibt ueberall sonst (z.B.
   My Matches/Global) unveraendert. */
@media (max-width: 640px){
  #settingsTabs{
    display:flex; flex-wrap:wrap; gap:8px; width:100%;
    border:none; border-radius:0; overflow:visible;
  }
  #settingsTabs button{
    flex:1 1 calc(50% - 4px);
    border:1px solid var(--line); border-radius:5px;
    padding:10px 6px; font-size:12.5px; text-align:center;
  }
  /* Custom-Rank-Tab auf Mobile: Label+Beschreibung ueber dem Control statt
     nebeneinander gequetscht (die langen Erklaerungstexte + Controls passen
     dort nicht in eine Zeile). Nur #customRankScroll betroffen. */
  #customRankScroll .setting-row{ flex-direction:column; align-items:stretch; gap:8px; }
  /* Gradient-Stops in einer Reihe, linksbuendig (User-Wunsch 2026-09-06:
     "die 3 kaestchen mit der farbe in einer reihe und linksbuendig" --
     zuvor 2-Spalten-Grid rechtsbuendig, per frueherem User-Wunsch, jetzt
     wieder zurueckgedreht). */
  #customRankScroll .cr-stops{ display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; }
  /* Rank-Text-Feld volle Breite + Zeichenzaehler nach links (User-Wunsch
     2026-09-06: "das text feld von rank text auf volle breite bei mobile,
     11/20 chara... nach links"), Hue/Saturation/Lightness-Slider volle
     Breite wie bei den FOV-Reglern (User-Wunsch: "die slider bei mobile auf
     ganze breite wie bei fov auch"). Nur auf Mobile. */
  #customRankScroll .cr-rank-text-wrap{ align-items:flex-start; width:100%; }
  #customRankScroll .cr-rank-text-wrap input{ width:100%; }
  #customRankScroll .slider-wrap{ max-width:none; width:100%; margin-left:0; }
  /* Nickname-Tab: Textfeld unter die Erklaerung statt daneben, Save/Reset-
     Buttons untereinander statt nebeneinander (User-Wunsch 2026-09-06: "text
     feld use steam name unter die erklarung und die buttons save apply und
     reset to steamname untereinander"). Nur auf Mobile. */
  .nick-row{ flex-direction:column; align-items:stretch; gap:8px; }
  .nick-actions{ flex-direction:column; }
}
/* Slider/Select/Preview-Zeilen immer (nicht nur auf Mobile) untereinander +
   volle Breite -- User-Wunsch 2026-09-06: "dropdowns in den edit settings
   alle auch auf ganzer breite". Toggles bleiben rechts (User-Wunsch: "switches
   nach rechts auf gleicher Hoehe wie die Erklaerung und den Namen") --
   align-items:center auf der (unveraenderten) Row zentriert den Schalter
   automatisch gegen die zweizeilige Label-Box, kein Sonderfall noetig. Nur
   in der editierbaren Settings-Seite relevant (.setting-row-slider/-select
   gibt's nur dort, player.php's reine Anzeige nutzt nur .setting-row). */
.setting-row-slider,
.setting-row-select{ flex-direction:column; align-items:stretch; gap:10px; }
.setting-row-slider .slider-wrap{ max-width:none; width:100%; margin-left:0; }
.setting-row .sv{ color:var(--text); }
.setting-row .sv.on{ color:var(--toxic); }
.setting-row .sv.off{ color:#d65b5b; }
/* Editierbare Settings-Steuerelemente auf dem eigenen Profil (Login-Feature
   2026-09-06) -- dieselbe .setting-row-Zeile, nur mit echten Controls statt
   reiner Anzeige rechts. */
.setting-toggle{
  width:38px; height:20px; border-radius:10px; border:1px solid var(--line);
  background:var(--panel-2); position:relative; cursor:pointer; flex-shrink:0;
  transition:background .15s, border-color .15s;
}
.setting-toggle::after{
  content:''; position:absolute; top:1px; left:1px; width:16px; height:16px;
  border-radius:50%; background:var(--text-dim); transition:transform .15s, background .15s;
}
.setting-toggle.on{ border-color:var(--hazard-dim); background:rgba(255,122,26,0.15); }
.setting-toggle.on::after{ transform:translateX(18px); background:var(--hazard); }
.slider-wrap{ display:flex; align-items:center; gap:8px; flex:1; max-width:160px; margin-left:12px; justify-content:flex-end; }
.slider-wrap input[type="range"]{ flex:1; accent-color:var(--hazard); }
.slider-wrap .sv{ font-family:'Share Tech Mono',monospace; font-size:13px; color:var(--text); min-width:28px; text-align:right; }
.setting-row select.set-select, .setting-row input.set-select{
  height:30px; box-sizing:border-box; padding:0 8px; border-radius:4px;
  background:var(--panel-2); border:1px solid var(--line); color:var(--text);
  font-family:'Rajdhani',sans-serif; font-size:13.5px; max-width:180px;
}
/* Muss NACH der max-width:180px-Regel oben stehen -- Bugfix 2026-09-06
   (User-Report: "die dropdowns sind immer noch nicht auf voller breite"):
   ".setting-row-select select.set-select" und ".setting-row select.set-select"
   haben EXAKT dieselbe Spezifitaet (je 2 Klassen + 1 Elementtyp), bei
   Gleichstand gewinnt in CSS die zuletzt notierte Regel -- die Regel stand
   vorher VOR der 180px-Regel und wurde deshalb von ihr wieder ueberschrieben,
   obwohl sie explizit max-width:none setzte. */
.setting-row-select .sound-preview-row{ flex-direction:column; align-items:stretch; }
.setting-row-select select.set-select{ max-width:none; width:100%; }
/* Gleicher Spezifitaets-/Reihenfolge-Grund wie oben -- ".nick-row input.set-
   select" muss ebenfalls NACH der max-width:180px-Regel stehen, sonst
   gewinnt die 180px trotz "width:100%" (User-Report 2026-09-06: "use steam
   name feld volle breite bei mobile" -- war vorher VOR dieser Regel platziert
   und wurde deshalb wieder auf 180px zurueckgestutzt). */
@media (max-width: 640px){
  .nick-row input.set-select{ max-width:none; width:100%; }
}
.cr-status{ font-family:'Share Tech Mono',monospace; font-size:12px; color:var(--text-dim); }
.cr-status.err{ color:var(--danger,#d65b5b); }
.cr-status.ok{ color:var(--toxic,#8fd65b); }
/* Custom Rank -- HSL/Hex-Editor, 1:1 uebernommen aus der MOTD (legacy_assets/
   style.css) fuer die neue Custom-Rank-Seite auf der Homepage (User-Wunsch
   2026-09-06: "custom rank in die settings homepage genauso aufgebaut wie
   bei der motd"). Gleiche Variablennamen (--line/--panel-2/--hazard/--text/
   --text-dim/--bg) auf beiden Seiten, deshalb 1:1 uebernehmbar. */
.cr-mode-switch{ display:flex; gap:8px; }
.cr-mode-btn{
  flex:1; padding:9px; text-align:center; background:var(--panel-2); border:1px solid var(--line); border-radius:4px;
  color:var(--text-dim); font-family:'Share Tech Mono',monospace; font-size:12.5px;
  text-transform:uppercase; letter-spacing:0.6px; cursor:pointer;
}
/* Custom-Rank-Slider (Hue/Saturation/Lightness) auf Desktop doppelt so lang
   wie der Standard-Slider (160px) (User-Wunsch 2026-09-06: "die slider bei
   custom rank und desktop doppelt so lang"). Mobile bleibt bei der
   eigenen volle-Breite-Regel oben unveraendert. */
@media (min-width: 641px){
  #customRankScroll .slider-wrap{ max-width:320px; }
}
.cr-mode-btn.active{ border-color:var(--hazard); color:var(--hazard); }
.cr-rank-text-wrap{ display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.cr-preview{
  padding:14px; background:var(--bg); border:1px solid var(--line); text-align:center;
  font-size:22px; font-weight:700; letter-spacing:1px; margin-bottom:14px; min-height:1.4em;
  border-radius:6px;
}
.cr-stops{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.cr-stop{
  width:34px; height:34px; border:2px solid var(--line); cursor:pointer; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-family:'Share Tech Mono',monospace;
  font-size:11px; color:#fff; text-shadow:0 0 2px #000; border-radius:4px;
}
.cr-stop.selected{ border-color:#fff; }
.cr-stepper{ display:flex; align-items:center; gap:10px; }
.cr-stepper button{
  width:34px; height:34px; background:var(--panel-2); border:1px solid var(--line); color:var(--text);
  font-size:16px; cursor:pointer; border-radius:4px;
}
.cr-stepper button:hover{ border-color:var(--hazard); color:var(--hazard); }
.cr-color-row{ display:flex; align-items:center; gap:10px; }
.cr-color-row input[type="color"]{ width:44px; height:34px; border:1px solid var(--line); background:var(--bg); padding:2px; cursor:pointer; border-radius:4px; }
input[type=range].cr-hue-range{
  background:linear-gradient(to right, #FF0000, #FFFF00, #00FF00, #00FFFF, #0000FF, #FF00FF, #FF0000);
  height:10px;
}
input[type=range].cr-hue-range::-webkit-slider-thumb{ border:2px solid #fff; }

.map-mini-list{ display:flex; flex-direction:column; gap:6px; }
.map-mini-row{ display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--line); font-family:'Share Tech Mono',monospace; font-size:13.5px; }
.map-mini-row:last-child{ border-bottom:none; }
.map-mini-thumb{ width:34px; height:34px; border:1px solid var(--line); border-radius:4px; overflow:hidden; flex-shrink:0; background:var(--panel); }
.map-mini-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.map-mini-name{ flex:1; color:var(--text); text-transform:uppercase; }
.map-mini-count{ color:var(--text-dim); }

/* ==== DEMO DOWNLOAD ==== */
.demo-link{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:13px 16px; border:1px solid var(--hazard-dim); border-radius:6px; background:rgba(255,122,26,0.06);
  text-decoration:none; color:inherit;
  transition:border-color .15s, background .15s;
}
.demo-link:hover{ border-color:var(--hazard); background:rgba(255,122,26,0.1); }
.demo-link .dl-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.demo-link .dl-ic{ font-size:19px; flex-shrink:0; }
.demo-link .dl-text{ font-family:'Share Tech Mono',monospace; font-size:14px; color:var(--text); letter-spacing:0.3px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.demo-link .dl-arrow{ color:var(--hazard); font-size:16px; flex-shrink:0; }

/* ==== LANDING PAGE: ABOUT / HOW TO PLAY ====
   Zwei-Spalten-Grid statt einer einzigen langen Panel-Kette runter (User-Feedback
   2026-08-21: "nicht alles nur nach unten gezogen") -- Panels innerhalb des Grids
   verlieren ihr eigenes margin-bottom, der Grid-gap übernimmt den Abstand. */
.landing-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; align-items:stretch; }
.landing-grid > .panel{ margin-bottom:0; display:flex; flex-direction:column; }
@media (max-width: 900px){
  .landing-grid{ grid-template-columns:1fr; }
}

/* ==== MAP POOL PAGE (pages/maps.php) ==== */
.map-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(min(260px,100%), 1fr)); gap:14px; }
.map-card{ border:1px solid var(--line); border-radius:6px; background:var(--panel-2); overflow:hidden; transition:border-color .15s; cursor:pointer; }
.map-card:hover{ border-color:var(--hazard); }
.map-card-thumb{ position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--panel); }
.map-card-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.map-card-overlay{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(5,7,4,0.72); opacity:0; transition:opacity .15s;
}
.map-card:hover .map-card-overlay, .map-card:focus-within .map-card-overlay{ opacity:1; }
.map-card-body{ padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.map-card-name{ font-weight:700; color:#fff; font-size:15px; letter-spacing:0.3px; text-transform:uppercase; word-break:break-word; }
/* Download-Icon fuer die .bsp-Datei (User-Wunsch 2026-08-31), rechts neben dem
   Namen -- gleiche Optik wie der .dl-arrow-Pfeil beim Demo-Download. */
.map-card-dl{
  flex-shrink:0; width:26px; height:26px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:4px; color:var(--hazard); text-decoration:none;
  font-size:13px; background:var(--panel); transition:border-color .15s, color .15s;
}
.map-card-dl:hover{ border-color:var(--hazard); color:#fff; }
.map-card-rating{ padding:0 14px 12px; font-family:'Share Tech Mono',monospace; font-size:14px; color:var(--hazard); }
.map-card-rating span{ color:var(--text-dim); }
/* Immer Platz fuer 2 Tag-Zeilen reservieren (auch bei nur 1 Zeile Tags) --
   sonst rutscht der Inhalt darunter (Sterne/Kommentare/Last Played) bei
   Karten mit unterschiedlich vielen Tags in derselben Grid-Reihe auf
   verschiedene Hoehen (User-Report 2026-09-06, MOTD-Screenshot: "wenn tags
   zwei reihen einnehmen darauf achten das der box inhalt gleich ist von der
   position"). Gleicher Wert wie in der MOTD (legacy_assets/style.css). */
.map-card-modes{ display:flex; flex-wrap:wrap; align-content:flex-start; gap:5px; padding:0 14px 8px; min-height:59px; }
@media (max-width: 640px){
  /* min-height war nur zum Gleichziehen der Kartenhoehen in einem Desktop-Grid
     mit mehreren Spalten gedacht -- auf Mobile (meist 1 Spalte) sorgt der
     Freihalteabstand nur fuer unnoetig viel Leerraum unter Karten mit wenigen
     Tags (User-Vorgabe 2026-09-07: "braucht kein Freihalteabstand fuer die
     Tags bei Mobile"). Desktop bleibt unveraendert. */
  .map-card-modes{ min-height:0; }
}
.map-card-intel{ padding:0 14px 12px; font-family:'Share Tech Mono',monospace; font-size:13px; color:var(--text-dim); }
.map-modal-thumb{ aspect-ratio:16/9; overflow:hidden; border:1px solid var(--line); border-radius:5px; background:var(--panel); }
.map-modal-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Toolbar + Detailansicht (kein Popup mehr) -- 1:1 Aufbau wie beim neuen
   In-Game-MOTD-Menü, in unserer Website-Optik (User-Wunsch 2026-09-05).
   Alle drei Controls (Select/Select/Search) auf gleiche Hoehe/Optik gebracht
   (border-box + gleiches Padding/Font) -- vorher war der Suche-Input durch
   abweichendes Box-Sizing niedriger als die <select>-Elemente. */
.maps-toolbar{ display:flex; flex-wrap:wrap; align-items:stretch; gap:10px; margin-bottom:6px; }
.maps-toolbar .search-input{ flex:1 1 220px; min-width:160px; box-sizing:border-box; height:40px; }
.filter-select{
  box-sizing:border-box; height:40px;
  padding:0 12px; background:var(--panel); border:1px solid var(--line); border-radius:4px; color:var(--text);
  font-family:'Share Tech Mono',monospace; font-size:14px; outline:none; flex:0 0 auto;
}
.filter-select:focus{ border-color:var(--hazard); }
/* Kompakter als .btn (das ist fuer grosse Aktions-Buttons gedacht, hier
   wirkte es neben Suche/Select viel zu gross -- User-Report 2026-09-05). */
.map-search-clear{
  box-sizing:border-box; height:40px; flex:0 0 auto;
  padding:0 16px; border:1px solid var(--line); border-radius:4px; background:var(--panel-2);
  color:var(--text); font-family:'Share Tech Mono',monospace; font-size:13px;
  cursor:pointer; transition:border-color .15s, color .15s;
}
.map-search-clear:hover{ border-color:var(--hazard); color:var(--hazard); }
/* "From"/"To"-Textlabel direkt in der Datumsbox (User-Report 2026-09-06:
   "fehlt noch der text from und bis bei den datumsdropdowns") -- sonst sieht
   man nur zwei leere Datumsfelder ohne Hinweis, welches Start/Ende ist. */
.date-field{
  display:flex; align-items:center; gap:6px; flex:0 0 auto;
  box-sizing:border-box; height:40px; padding:0 12px;
  background:var(--panel); border:1px solid var(--line); border-radius:4px;
}
.date-field:focus-within{ border-color:var(--hazard); }
.date-field-label{
  font-family:'Share Tech Mono',monospace; font-size:11px; text-transform:uppercase;
  letter-spacing:0.4px; color:var(--text-dim); flex-shrink:0;
}
.date-field input[type="date"]{
  flex:1; min-width:0; height:auto; box-sizing:border-box;
  padding:0; border:none; background:transparent; outline:none;
  color:var(--text); font-family:'Share Tech Mono',monospace; font-size:14px;
}
@media (max-width: 640px){
  .filter-select, .maps-toolbar .search-input, .map-search-clear, .date-field{ flex:1 1 100%; width:100%; }
}
/* players.php: Clear-Button unter das Suchfeld, beide volle Breite -- nur
   auf Mobile (User-Wunsch 2026-09-06: "clear unter der suche und beide
   volle breite von der box. aber nur bei mobile"). "flex:1 1 100%" bezieht
   sich in flex-direction:column auf die HOEHE (nicht Breite) und hat die
   Boxen auf sehr duenne Balken zusammengequetscht (User-Report: "clear und
   suche ist noch sehr schmal") -- deshalb hier bewusst flex:0 0 auto, damit
   die explizite height:40px erhalten bleibt, width:100% macht sie trotzdem
   voll breit. */
/* War vorher ein Inline-style="flex:1" direkt am <input> in players.php --
   Inline-Styles gewinnen IMMER gegen jede externe Regel (egal wie
   spezifisch), das hat die max-width:640px-Regel unten (flex:0 0 auto)
   komplett wirkungslos gemacht: mit flex-basis:0% + flex-grow:1 und ohne
   freien Platz zum Wachsen schrumpft das Feld auf seine Content-Mindesthoehe
   (nur Zeilenhoehe, keine vertikale Innenluft) statt bei height:40px zu
   bleiben -- daher trotz identischer height:40px-Regel sichtbar duenner als
   der Clear-Button (User-Report 2026-09-06: "search player textfeld immer
   noch so schmal"). Jetzt als echte Klasse, damit die Mobile-Regel unten sie
   ueberschreiben kann. */
.players-search-row .search-input{ flex:1; }
@media (max-width: 640px){
  .players-search-row{ flex-direction:column; align-items:stretch; }
  .players-search-row .search-input, .players-search-row .map-search-clear{ width:100%; flex:0 0 auto; }
}
.map-detail-hero{
  display:grid; grid-template-columns:minmax(220px, 360px) minmax(0, 1fr);
  gap:20px; align-items:start;
}
@media (max-width: 640px){ .map-detail-hero{ grid-template-columns:1fr; } }
.map-detail-image{ display:block; width:100%; height:240px; object-fit:cover; border:1px solid var(--line); border-radius:6px; }
.map-detail-main{ min-width:0; }
.map-detail-title{ font-weight:700; color:#fff; font-size:22px; letter-spacing:0.3px; text-transform:uppercase; }
.map-detail-name{ font-family:'Share Tech Mono',monospace; font-size:13px; color:var(--text-dim); margin-top:2px; }
.map-detail-actions{ margin:12px 0; display:flex; flex-direction:column; gap:10px; }
.map-detail-actions .btn{ display:flex; width:100%; }
/* Map-Metadaten bearbeiten (Admin-only, User-Wunsch 2026-09-06: "bau das
   metaedit bitte in die maps php ein") -- 1:1 aus der MOTD uebernommene
   Klassennamen (legacy_assets/style.css), gleiche Variablen auf beiden Seiten. */
.mm-label{
  display:block; font-family:'Share Tech Mono',monospace; font-size:11px;
  color:var(--text-dim); margin-bottom:4px;
}
.mm-field{
  display:block; width:100%; box-sizing:border-box;
  padding:7px 10px; margin-bottom:8px;
  background:var(--panel-2); border:1px solid var(--line); color:var(--text);
  font-family:'Share Tech Mono',monospace; font-size:13px;
  outline:none; border-radius:4px;
}
.mm-field:focus{ border-color:var(--hazard); }
.mm-tag-grid{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.mm-tag-option{
  font-family:'Share Tech Mono',monospace; font-size:11px; color:var(--text-dim);
  display:flex; align-items:center; gap:4px; text-transform:uppercase;
}
/* Eigene Bewertung abgeben (nur eingeloggt) -- Login-Feature 2026-09-06. */
.rate-your-rating{ margin-top:10px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rate-label{ font-family:'Share Tech Mono',monospace; font-size:11.5px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.05em; }
.rate-stars{ display:flex; gap:2px; }
.rate-star{ font-size:22px; line-height:1; color:var(--text-dim); cursor:pointer; }
.rate-star:hover{ color:var(--hazard-dim); }
.rate-star.filled{ color:var(--hazard); }
.map-detail-intel{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; margin-top:14px; }
@media (max-width: 380px){ .map-detail-intel{ grid-template-columns:1fr; } }
.map-intel-item{ min-width:0; padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:var(--panel-2); }
.map-intel-item span{
  display:block; color:var(--text-dim); font-family:'Share Tech Mono',monospace;
  font-size:10.5px; text-transform:uppercase; letter-spacing:0.05em;
}
.map-intel-item strong{ display:block; margin-top:4px; color:var(--text); font-size:14px; font-weight:700; }

/* Kommentare (match.php + maps.php, Login-Feature 2026-09-06: "Danach match
   und maps kommentare"). Gleiche Optik wie .opp-row/.player-row. */
.comment-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.comment-item{ display:flex; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:var(--panel-2); }
.comment-avatar{ display:block; width:36px; height:36px; border:1px solid var(--line); border-radius:4px; flex-shrink:0; overflow:hidden; background:var(--panel); }
.comment-avatar img{ width:100%; height:100%; object-fit:cover; }
.comment-body{ min-width:0; flex:1; }
.comment-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.comment-name{ font-family:'Rajdhani',sans-serif; font-weight:700; color:var(--text); text-decoration:none; }
.comment-name:hover{ color:var(--hazard); }
.comment-time{ font-family:'Share Tech Mono',monospace; font-size:11.5px; color:var(--text-dim); }
/* Gleiche Hoehe wie .comment-like-btn (User-Wunsch 2026-09-06: "der delete
   button... genauso hoch wie der like button") -- gleiches padding/font-size. */
.comment-delete-btn{
  display:flex; align-items:center; padding:3px 9px; border:1px solid var(--line); border-radius:4px; background:transparent;
  color:var(--text-dim); font-family:'Share Tech Mono',monospace; font-size:12px; cursor:pointer;
}
.comment-delete-btn:hover{ border-color:var(--hazard); color:var(--hazard); }
.comment-text{ margin-top:5px; font-family:'Share Tech Mono',monospace; font-size:13px; color:var(--text); line-height:1.5; word-break:break-word; white-space:pre-wrap; }
.comment-actions{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.comment-like-btn{
  display:flex; align-items:center; gap:5px; padding:3px 9px; border:1px solid var(--line); border-radius:4px;
  background:transparent; color:var(--text-dim); font-family:'Share Tech Mono',monospace; font-size:12px; cursor:pointer;
}
.comment-like-btn:hover{ border-color:var(--hazard-dim); color:var(--text); }
.comment-like-btn.liked{ border-color:var(--hazard); color:var(--hazard); background:rgba(255,122,26,0.08); }
.comment-like-icon{ font-size:12px; }
.comment-form{ display:flex; flex-direction:column; gap:10px; }
.comment-textarea{
  padding:10px 12px; background:var(--panel); border:1px solid var(--line); border-radius:4px; color:var(--text);
  font-family:'Share Tech Mono',monospace; font-size:13.5px; resize:vertical; min-height:64px; outline:none;
}
.comment-textarea:focus{ border-color:var(--hazard); }
.comment-submit-btn{ align-self:flex-end; }
.comment-login-prompt{ display:flex; }
.comment-login-prompt .btn{ flex:1; text-align:center; justify-content:center; }
/* :hover reagiert auf Touch nicht zuverlässig -- Overlay bleibt auf schmalen
   (typischerweise Touch-)Screens dauerhaft sichtbar, kein Antippen "ins Leere". */
@media (max-width: 700px){
  .map-card-overlay{ opacity:1; background:rgba(5,7,4,0.5); }
}

/* ==== HERO IMAGE (index/matches/players/server -- User-Vorgabe 2026-08-21: EIN
   Bild statt mehrerer Kacheln nebeneinander, offizielles Artwork statt eigener
   Screenshots). */
.hero-image{ position:relative; width:100%; height:240px; overflow:hidden; border:1px solid var(--line); border-radius:6px; margin-bottom:18px; }
.hero-image img{ width:100%; height:100%; object-fit:cover; display:block; filter:saturate(0.92) brightness(0.82); }
.hero-image::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(5,7,4,0.6), transparent 55%); pointer-events:none; }
.hero-caption{
  position:absolute; left:20px; bottom:14px;
  font-family:'Share Tech Mono',monospace; font-size:12px; letter-spacing:1.5px;
  color:var(--text-dim); text-transform:uppercase;
}
@media (max-width: 700px){
  .hero-image{ height:150px; }
  .hero-caption{ left:14px; bottom:10px; font-size:10.5px; }
}

/* Skill-Screenshots auf pages/intro.php -- eigenständig, moderat groß, zentriert. */
.skill-img{ width:100%; max-width:480px; display:block; margin:14px auto 0; border:1px solid var(--line); border-radius:6px; }
.skill-caption{ text-align:center; font-family:'Share Tech Mono',monospace; font-size:12px; color:var(--text-dim); margin-top:6px; }

/* .intro-row wechselt Bild/Text-Seite via .reverse -- User-Vorgabe 2026-08-21:
   "bau nicht alles stur nach unten sondern mal ein bild link und text rechts und
   anders rum, sei kreativer" statt jede Skill-Sektion gleich (Bild oben, Text
   unten) zu stapeln. */
.intro-row{ display:flex; gap:24px; align-items:flex-start; margin:20px 0; }
.intro-row.reverse{ flex-direction:row-reverse; }
/* Feste, kleinere Bildbreite statt 42% der Zeile -- bei kurzen Textabschnitten war
   das riesige Bild viel höher als der Text daneben, die leere Fläche darunter sah
   wie eine kaputte Lücke aus (User-Report 2026-08-21: "mach die bilder nicht sooo
   groß ... damit der text dazu auch proportional aussieht"). object-fit:cover
   erzwingt weiterhin ein einheitliches Seitenverhältnis über alle Quellbilder. */
.intro-row .intro-media{ flex:0 0 260px; min-width:0; }
.intro-row .intro-media img{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; border:1px solid var(--line); border-radius:6px; }
.intro-row .intro-media img.skill-inline{ aspect-ratio:auto; object-fit:contain; }
.intro-row .intro-text{ flex:1; min-width:0; }
@media (max-width: 700px){
  .intro-row, .intro-row.reverse{ flex-direction:column; margin:18px 0; }
  .intro-row .intro-media{ flex:0 0 auto; width:100%; max-width:320px; }
  /* margin:0 auto auf dem Bild selbst reicht nicht -- das zentriert es nur
     INNERHALB von .intro-media, aber .intro-media (max-width:320px) hängt bei
     align-items:flex-start (Basiswert oben) trotzdem links im (breiteren)
     .intro-row/.movement-box. align-self:center zentriert den Media-Slot selbst.
     Nur für die Movement-Tips-Box, User-Report 2026-08-22: "skill-showpos.jpg
     ist noch nicht mittig bei responsive". */
  .movement-box .intro-row .intro-media{ align-self:center; }
}
.intro-row .skill-caption{ margin-top:8px; }

/* .movement-row -- NUR "Movement Tips": GIF, Bind-Screenshot und Text als drei
   gleichberechtigte Spalten nebeneinander (nicht Bildpaar+Text) -- User-Vorgabe
   2026-08-22 (Revision, die vorige .media-pair/.intro-row.centered-Fassung war
   nicht gemeint): "das gif links, daneben rechts das skill-bhopbind, daneben der
   text. bei responsive gif darunter bild darunter text, und das bei responsive
   mittig". Eigenständiger Block statt .intro-row/.intro-media, weil die Bilder
   hier lose Flex-Kinder sind statt in einem gemeinsamen Media-Slot zu stecken --
   beide behalten ihr natives Seitenverhältnis (kein object-fit:cover-Crop, das
   GIF ist kein 16:9-Material und wurde dadurch vorher hässlich angeschnitten). */
/* .movement-box -- umschließt GIF+Bild+Text+Video in einer Box wie .skill-card
   (Border/Radius/Background/Padding), User-Vorgabe 2026-08-22: "in so eine box
   wie bei crouch bhop". Bewusst EIGENE Klasse statt .skill-card wiederzuverwenden
   -- .skill-card img{aspect-ratio:16/9;object-fit:cover;...} hat dieselbe
   Spezifität wie .movement-row img und steht im Stylesheet weiter unten, hätte
   also unser GIF/Bind-Bild-Styling oben (Crop nur beim GIF, contain beim Bind-
   Screenshot) beim Verschachteln stillschweigend überschrieben. */
.movement-box{ border:1px solid var(--line); border-radius:8px; background:var(--panel); padding:16px; margin:20px 0; }
.movement-box .movement-row{ margin-top:0; }
.movement-box .video-embed{ margin-bottom:10px; }
.movement-box .skill-caption{ margin:0; }
.movement-box .intro-row{ margin:0; }
.movement-row{ display:flex; gap:20px; align-items:flex-start; margin:20px 0; }
.movement-row img{ flex:0 0 260px; width:260px; max-width:100%; height:auto; object-fit:contain; display:block; margin:0; border:1px solid var(--line); border-radius:6px; }
/* Nur das GIF croppen wie die anderen Bilder auf der Seite (aspect-ratio:16/9 +
   object-fit:cover) -- der Rohclip hat oben einen schwarzen Balken, der ohne Crop
   sichtbar wird (User-Report 2026-08-22, Screenshot). skill-bhopbind.png ist ein
   Bind-Screenshot, kein Gameplay-Clip -- der bleibt bewusst bei object-fit:contain,
   sonst würde der Crop den Text/Bind abschneiden (User-Vorgabe: "skill-bhopbind
   kannst du so lassen"). */
.movement-row img:first-of-type{ aspect-ratio:16/9; object-fit:cover; }
.movement-row .intro-text{ flex:1; min-width:0; }
@media (max-width: 700px){
  .movement-row{ flex-direction:column; align-items:center; margin:18px 0; }
  /* Bilder zentriert (align-items:center oben), der Fließtext daneben aber
     links ausgerichtet lassen -- User-Vorgabe 2026-08-22: nur die Bilder
     mittig, "der text ... bitte links bei responsive". */
  .movement-row .intro-text{ text-align:left; }
  /* flex-basis wechselt mit flex-direction von Breite auf Höhe -- ohne "flex:0 0
     auto" bliebe hier die Desktop-Breite (260px) als feste HÖHE stehen und die
     16:9-Cropbox des GIFs würde verzerrt statt wie bei den anderen Gif-Sektionen
     sauber im Seitenverhältnis skaliert (User-Report 2026-08-22). */
  .movement-row img{ flex:0 0 auto; width:100%; max-width:320px; }
  .movement-row .intro-text{ width:100%; max-width:420px; }
}

/* Zwei Skill-Karten nebeneinander statt immer nur Bild-links/rechts-Zeilen -- User-
   Vorgabe 2026-08-21: "vielleicht setzt du auch mal zwei boxen nebeneinander und
   variierst mit dem stil". Jede Karte hat ihr eigenes Bild+Titel+Text statt nur
   Fließtext neben einem Bild. */
.skill-card-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:22px 0; align-items:stretch; }
.skill-card-grid.cols-3{ grid-template-columns:1fr 1fr 1fr; }
.skill-card{ display:flex; flex-direction:column; border:1px solid var(--line); border-radius:8px; background:var(--panel); padding:16px; }
.skill-card img{ width:100%; max-width:280px; aspect-ratio:16/9; object-fit:cover; display:block; margin:0 auto 12px; border:1px solid var(--line); border-radius:6px; }
.skill-card h3{ font-size:15px; color:#fff; margin:0 0 8px; }
.skill-card .about-text{ font-size:14px; }
@media (max-width: 700px){ .skill-card-grid, .skill-card-grid.cols-3{ grid-template-columns:1fr; } }
@media (max-width: 980px) and (min-width: 701px){ .skill-card-grid.cols-3{ grid-template-columns:1fr 1fr; } }

/* .intro-stack -- zwei kleine Bilder übereinander statt nur eins, Text daneben.
   User-Vorgabe 2026-08-21: "es können ja auch zwei bilder untereinander und der
   text daneben ... sei kreativ". Löst gleichzeitig das Höhen-Mismatch-Problem, weil
   die GESTAPELTEN Bilder zusammen ungefähr so hoch sind wie der längere Text daneben. */
.intro-stack{ display:flex; gap:24px; align-items:flex-start; margin:20px 0; }
.intro-stack .stack-media{ flex:0 0 240px; display:flex; flex-direction:column; gap:10px; }
.intro-stack .stack-media img{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; border:1px solid var(--line); border-radius:6px; }
.intro-stack .stack-media img.skill-inline{ aspect-ratio:auto; object-fit:contain; }
.intro-stack .intro-text{ flex:1; min-width:0; }
@media (max-width: 700px){
  .intro-stack{ flex-direction:column; margin:18px 0; }
  .intro-stack .stack-media{ flex:0 0 auto; width:100%; max-width:320px; }
}

/* Responsive 16:9-Video-Einbettung (YouTube). */
.video-embed{ position:relative; width:100%; padding-top:56.25%; margin:14px 0; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:var(--panel); }
.video-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

.skill-inline{ width:100%; max-width:260px; display:block; margin:10px 0; border:1px solid var(--line); border-radius:6px; }

/* .showpos-img -- cl_showpos-Screenshot im letzten Movement-Tips-Kasten (ersetzt
   das vorige inline style="margin:0", damit sich der Abstand responsiv anders
   setzen lässt: Desktop bündig, bei schmalen Viewports zentriert -- User-Vorgabe
   2026-08-22: "skill-showpos.jpg bitte mittig bei responsive"). */
.showpos-img{ max-width:280px; margin:0; }
@media (max-width: 700px){
  .showpos-img{ margin:0 auto; }
}

/* Kleinere Bild-Variante für zusätzliche Akzente auf index.php -- User-Vorgabe
   2026-08-21: nicht nur EIN langgezogenes Hero-Bild, auch andere Formen. */
.hero-image.small{ height:150px; }
.panel-figure{ display:flex; gap:16px; align-items:flex-start; }
.panel-figure img{
  width:96px; flex-shrink:0; border:1px solid var(--line);
  filter:saturate(0.92) brightness(0.9);
}
.panel-figure-text{ flex:1; min-width:0; }
@media (max-width: 480px){
  .panel-figure{ flex-direction:column; }
  .panel-figure img{ width:100%; max-width:160px; }
}

.about-text{ color:var(--text); font-size:15px; line-height:1.65; margin:0; }
.about-text + .about-text{ margin-top:10px; }
.about-text a{ color:var(--hazard); text-decoration:none; }
.about-text a:hover{ text-decoration:underline; }
/* .cmd fest statt min-width -- bei nur min-width richtet sich jede .cmd-row
   individuell aus (jede ist ihr eigener Flex-Container), die Spalten laufen
   dadurch je nach Länge des Befehlsnamens auseinander (User-Screenshot
   2026-08-21: "Text ist verschoben weil !run <preset|map> länger ist"). Feste
   Breite hält die Beschreibungsspalte in JEDER Zeile an derselben X-Position. */
.cmd-row{ display:flex; flex-wrap:wrap; gap:4px 20px; padding:11px 0; border-bottom:1px solid var(--line); align-items:baseline; }
.cmd-row:last-child{ border-bottom:none; }
.cmd-row .cmd{ font-family:'Share Tech Mono',monospace; color:var(--hazard); font-weight:700; font-size:14px; flex:0 0 200px; }
.cmd-row .cmd-desc{ flex:1 1 260px; color:var(--text-dim); font-size:14px; line-height:1.55; }
.cmd-row .cmd-desc code{ font-family:'Share Tech Mono',monospace; color:var(--text); background:var(--panel); padding:1px 6px; border:1px solid var(--line); border-radius:3px; }
/* .about-text code -- dieselbe "Chip"-Optik wie .cmd-desc code, aber für Inline-Code in
   normalen Fließtext-Absätzen (z.B. help.php) -- vorher ungestylt, sah nicht wie Code
   aus (User-Report 2026-08-21: "!run <preset|map> wird bei help nicht als code
   angezeigt"). */
.about-text code{ font-family:'Share Tech Mono',monospace; color:var(--text); background:var(--panel); padding:1px 6px; border:1px solid var(--line); border-radius:3px; font-size:0.92em; }
@media (max-width: 560px){
  .cmd-row .cmd{ flex-basis:100%; }
}

.badge{ display:inline-block; font-family:'Share Tech Mono',monospace; font-size:11px; letter-spacing:0.5px; padding:2px 7px; border:1px solid var(--line); border-radius:4px; color:var(--text-dim); text-transform:uppercase; }
.badge.admin{ color:var(--hazard); border-color:var(--hazard-dim); }

/* Rang-Abzeichen (Bronze/Silver/Gold/Platinum/Pro/Unranked) -- Schwellen siehe
   match/match_rank.inc (Rank_GetNameForElo/Rank_GetForClient), gespiegelt in
   inc/db.php (tracker_rank_for_player). */
.badge.rank{ font-weight:700; flex-shrink:0; white-space:nowrap; }
.badge.rank-rookie{ color:#7a93a8; border-color:#3d4d59; }
.badge.rank-bronze{ color:#c17a4a; border-color:#5a3821; }
.badge.rank-silver{ color:#c3ccd1; border-color:#4a5459; }
.badge.rank-gold{ color:#e0c14a; border-color:#5c4d1e; }
.badge.rank-platinum{ color:#7fd8d0; border-color:#215a55; }
.badge.rank-pro{ color:var(--hazard); border-color:var(--hazard-dim); }
.badge.rank-unranked{ color:var(--text-dim); }
.team-dot{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
.team-dot.combine{ background:var(--combine); }
.team-dot.rebels{ background:var(--danger); }
.team-dot.spec{ background:var(--text-dim); }

/* ==== GAMETRACKER HOME (interaktive Hero-Karte, index.php) ==== */
.hero-panel{ position:relative; }
.hero-top{ display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:18px; }
.hero-status-col{ display:flex; flex-direction:column; }
.hero-status-row{
  display:flex; align-items:center; gap:8px;
  font-family:'Share Tech Mono',monospace; font-size:14px; letter-spacing:1px; text-transform:uppercase;
}
.hero-status-row.online-text{ color:var(--toxic); }
.hero-status-row.offline-text{ color:var(--danger); }
.status-dot{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.status-dot.online{ background:var(--toxic); box-shadow:0 0 8px rgba(143,206,74,0.7); }
.status-dot.offline{ background:var(--danger); }
.auto-refresh-timer{
  margin-top:4px; font-family:'Share Tech Mono',monospace; font-size:11px; letter-spacing:0.5px; color:var(--text-dim); opacity:0.7;
}
.blur-target{ transition:filter .25s ease, opacity .25s ease; }
.blur-target.refreshing{ filter:blur(3px); opacity:0.6; }

.refresh-btn{
  width:34px; height:34px; flex-shrink:0;
  background:rgba(255,255,255,0.04); border:1px solid var(--line); border-radius:6px;
  color:var(--text-dim); display:flex; align-items:center; justify-content:center;
  cursor:pointer; padding:0; transition:color .15s, background .15s, border-color .15s;
}

/* ==== TEST LANDINGPAGE V2 (index2.php) ====
   Struktur grob angelehnt an spur-gutachten.de/v2 (Aufbau-Reihenfolge: Hero ->
   Trust-Bar -> About+Bild -> Strength-Karten -> Service-Karten -> Feature-Blöcke
   -> About-Erweitert+Bulletpoints -> Spotlight-Karten -> Connect), aber eigene
   Farben/Bilder/Inhalte (User-Vorgabe 2026-08-21: "farben etc natürlich nicht so
   übernehmen und auch nicht die bilder übernehmen, aber vom aufbau vielleicht ein
   bisschen so dran halten"). Rein zum Vergleichen -- nicht in der Nav verlinkt. */
.v2-container{ max-width:1320px; margin:0 auto; width:100%; }
.v2-container .btn{ border-radius:4px; }
.v2-hero{
  position:relative; text-align:center; padding:72px 16px 128px; overflow:hidden; isolation:isolate;
}
.v2-hero::before{
  content:""; position:absolute; inset:0; z-index:-2;
  background-image:linear-gradient(180deg, rgba(9,12,10,0.55) 0%, rgba(9,12,10,0.75) 55%, #05070a 100%), url('/assets/img/hl2dm-hero.jpg');
  background-size:cover; background-position:center 30%;
  filter:saturate(1.15) brightness(0.85) contrast(1.05);
  -webkit-mask-image:linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
  mask-image:linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
}
.v2-hero-eyebrow{ font-family:'Share Tech Mono',monospace; font-size:12.5px; letter-spacing:2px; text-transform:uppercase; color:var(--hazard); margin-bottom:14px; }
.v2-hero h1{ font-size:clamp(32px,5.5vw,54px); line-height:1.08; margin:0 0 16px; color:#fff; font-weight:700; letter-spacing:0.5px; text-shadow:0 2px 24px rgba(0,0,0,0.5); }
.v2-hero-sub{ font-size:16px; line-height:1.6; color:var(--text-dim); max-width:640px; margin:0 auto 40px; }
.v2-hero-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:24px; }
.v2-hero-actions .btn{ padding:13px 26px; font-size:14px; }

.v2-hero-status{
  display:inline-flex; align-items:center; gap:14px; font-family:'Share Tech Mono',monospace; font-size:13px;
  color:var(--text-dim); border:1px solid var(--line); border-radius:6px; background:rgba(18,22,19,0.75);
  backdrop-filter:blur(4px); padding:10px 18px; margin-bottom:24px;
}
.v2-hero-status-dot{ display:inline-block; width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.v2-hero-status-dot.online{ background:var(--toxic); box-shadow:0 0 0 rgba(143,206,74,0.6); animation:v2PulseDot 1.8s ease-out infinite; }
.v2-hero-status-dot.offline{ background:var(--danger); }
@keyframes v2PulseDot{
  0%{ box-shadow:0 0 0 0 rgba(143,206,74,0.55); }
  70%{ box-shadow:0 0 0 8px rgba(143,206,74,0); }
  100%{ box-shadow:0 0 0 0 rgba(143,206,74,0); }
}
.v2-hero-status-live{ display:flex; align-items:center; gap:8px; }
.v2-hero-status-sep{ width:1px; height:16px; background:var(--line); flex-shrink:0; }
.v2-hero-status-map{ display:flex; align-items:center; gap:8px; }
.v2-hero-status-map img{ width:28px; height:18px; object-fit:cover; border-radius:2px; border:1px solid var(--line); flex-shrink:0; }
.v2-hero-status-players{ display:flex; align-items:center; gap:8px; }
.v2-hero-status-bar{ width:56px; height:5px; border-radius:3px; background:var(--line); overflow:hidden; flex-shrink:0; }
.v2-hero-status-bar-fill{ height:100%; background:var(--hazard); border-radius:3px; }
@media (max-width: 560px){
  .v2-hero-status{ flex-direction:column; align-items:center; gap:10px; }
  .v2-hero-status-sep{ display:none; }
}
@media (max-width: 640px){
  /* Auf schmalen Screens ist die Hero-Box viel hoeher als breit (Hochkant) --
     bei background-size:cover wird das Landschaftsfoto dadurch extrem
     reingezoomt/beschnitten, was wie eine Verzerrung wirkt (User-Report
     2026-09-07). Weniger Padding = weniger extremes Seitenverhaeltnis =
     moderaterer Ausschnitt, plus ein hoeherer Fokuspunkt. */
  .v2-hero{ padding:56px 16px 88px; }
  .v2-hero::before{
    /* inset:0 (Basis-Regel) wuerde das Bild ueber die GESAMTE, sehr hohe
     Mobile-Box strecken -- bei background-size:cover heisst das massives
     Reinzoomen auf einen schmalen Streifen, sieht verzerrt/kaum erkennbar
     aus (User-Report 2026-09-07). Feste Hoehe statt inset:0 haelt den
     Bildausschnitt in einem vernuenftigen (Querformat-nahen) Verhaeltnis. */
    top:0; left:0; right:0; bottom:auto; height:380px;
    background-position:center 22%;
  }
}

.v2-trustbar{
  position:relative; z-index:1; margin-top:-125px;
  display:flex; flex-wrap:wrap; justify-content:center; gap:0;
  border:1px solid var(--line); border-radius:5px; background:var(--panel-2); margin-bottom:40px;
  box-shadow:0 10px 32px rgba(0,0,0,0.4); overflow:hidden;
}
/* Media-Query muss NACH der Basis-Regel stehen -- bei gleicher Spezifitaet
   gewinnt sonst die spaetere Regel im Quellcode (hier: die Basis-Regel),
   auch wenn ihre Media-Query nicht (mehr) zutrifft. Genau dieser Bug hat den
   Mobile-Wert vorher wieder auf -125px zurueckgesetzt (User-Report
   2026-09-07: Trustbar ueberdeckt Status-Widget auf Mobile). Status-Widget
   ist auf Mobile 3-zeilig gestapelt (viel hoeher als Desktop) -- der grosse
   negative margin-top von Desktop wuerde da reinragen, deshalb deutlich
   kleinerer Overlap hier. */
@media (max-width: 640px){
  .v2-trustbar{ margin-top:-80px; }
}
.v2-trustbar-item{
  flex:1 1 160px; text-align:center; padding:20px 16px; border-right:1px solid rgba(255,255,255,0.06);
}
.v2-trustbar-item:last-child{ border-right:none; }
.v2-trustbar-val{ font-family:'Share Tech Mono',monospace; font-size:22px; font-weight:700; color:var(--hazard); }
.v2-trustbar-label{ font-size:12.5px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.5px; margin-top:2px; }

.v2-reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.v2-reveal.in-view{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){ .v2-reveal{ opacity:1; transform:none; transition:none; } }

.v2-section{ margin-bottom:52px; }
.v2-section-head{ text-align:center; max-width:640px; margin:0 auto 30px; }
.v2-eyebrow{ font-family:'Share Tech Mono',monospace; font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--hazard); margin-bottom:8px; }
.v2-section-head h2{ font-size:clamp(24px,3.5vw,32px); color:#fff; margin:0 0 10px; }
.v2-section-head p{ color:var(--text-dim); font-size:15px; line-height:1.6; margin:0; }

.v2-about{ display:flex; gap:36px; align-items:center; }
.v2-about img{ flex:0 0 42%; width:42%; height:280px; object-fit:cover; border-radius:6px; filter:saturate(0.92) brightness(0.85); box-shadow:0 18px 44px rgba(0,0,0,0.5), 0 0 0 1px var(--line); }
.v2-about-text{ flex:1; min-width:0; }
.v2-about-text h2{ font-size:26px; color:#fff; margin:0 0 14px; }
@media (max-width: 800px){
  .v2-about{ flex-direction:column; }
  .v2-about img{ width:100%; height:220px; }
}

.v2-strength-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.v2-strength-card{
  position:relative; border:1px solid var(--line); border-radius:5px; background:var(--panel-2); padding:24px 20px; text-align:center;
  box-shadow:0 4px 18px rgba(0,0,0,0.18); transition:transform .15s, border-color .15s, box-shadow .15s;
}
.v2-strength-card::before, .v2-strength-card::after{
  content:""; position:absolute; width:10px; height:10px; border:1.5px solid var(--hazard); opacity:0; transition:opacity .2s;
}
.v2-strength-card::before{ top:6px; left:6px; border-right:none; border-bottom:none; }
.v2-strength-card::after{ bottom:6px; right:6px; border-left:none; border-top:none; }
.v2-strength-card:hover{ transform:translateY(-3px); border-color:var(--hazard-dim); box-shadow:0 10px 26px rgba(0,0,0,0.28), 0 0 22px rgba(255,122,26,0.12); }
.v2-strength-card:hover::before, .v2-strength-card:hover::after{ opacity:1; }
.v2-strength-icon{ margin-bottom:12px; color:var(--hazard); line-height:0; }
.v2-strength-icon svg{ width:28px; height:28px; }
.v2-strength-card h3{ font-size:16px; color:#fff; margin:0 0 8px; }
.v2-strength-card p{ font-size:13.5px; color:var(--text-dim); line-height:1.55; margin:0; }
@media (max-width: 900px){ .v2-strength-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 480px){ .v2-strength-grid{ grid-template-columns:1fr; } }

.v2-service-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.v2-service-card{
  display:block; text-decoration:none; color:inherit; border:1px solid var(--line); border-radius:6px;
  background:var(--panel-2); overflow:hidden; box-shadow:0 6px 22px rgba(0,0,0,0.2);
  transition:border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.v2-service-card:hover{ border-color:var(--hazard); background:#1c231d; transform:translateY(-3px); box-shadow:0 12px 28px rgba(0,0,0,0.3), 0 0 22px rgba(255,122,26,0.18); }
.v2-service-card img{ width:100%; height:150px; object-fit:cover; display:block; filter:saturate(0.92) brightness(0.82); }
.v2-service-body{ padding:16px 18px; }
.v2-service-body h3{ font-size:17px; color:#fff; margin:0 0 6px; }
.v2-service-body p{ font-size:13.5px; color:var(--text-dim); line-height:1.55; margin:0; }
.v2-service-arrow{ color:var(--hazard); font-family:'Share Tech Mono',monospace; font-size:13px; margin-top:10px; display:inline-block; }
@media (max-width: 700px){ .v2-service-grid{ grid-template-columns:1fr; } }

.v2-feature-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px 32px; }
.v2-feature{ display:flex; gap:14px; }
.v2-feature-num{ font-family:'Share Tech Mono',monospace; color:var(--hazard-dim); font-size:22px; font-weight:700; flex-shrink:0; }
.v2-feature h3{ font-size:16px; color:#fff; margin:0 0 6px; }
.v2-feature p{ font-size:13.5px; color:var(--text-dim); line-height:1.6; margin:0; }
@media (max-width: 700px){ .v2-feature-grid{ grid-template-columns:1fr; } }
@media (min-width: 1100px){
  .v2-feature-grid{ display:flex; align-items:flex-start; gap:0; position:relative; padding-top:4px; }
  .v2-feature-grid::before{
    content:""; position:absolute; top:31px; left:12.5%; right:12.5%; height:1px;
    background:linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent); z-index:0;
  }
  .v2-feature{ flex:1; flex-direction:column; align-items:center; text-align:center; gap:12px; padding:0 18px; position:relative; z-index:1; }
  .v2-feature-num{
    width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    background:var(--panel-2); border:1px solid var(--hazard-dim); font-size:17px;
  }
}

.v2-about-ext{ display:flex; gap:40px; border:1px solid var(--line); border-radius:6px; background:var(--panel-2); padding:36px; box-shadow:0 8px 28px rgba(0,0,0,0.22); }
.v2-about-ext-text{ flex:1.3; min-width:0; }
.v2-about-ext-text h2{ font-size:24px; color:#fff; margin:0 0 12px; }
.v2-about-ext-text p{ color:var(--text-dim); font-size:14.5px; line-height:1.65; margin:0 0 14px; }
.v2-bullets{ list-style:none; margin:0 0 20px; padding:0; display:flex; flex-direction:column; gap:8px; }
.v2-bullets li{ display:flex; gap:10px; align-items:baseline; font-size:14px; color:var(--text); }
.v2-bullets li::before{ content:"▸"; color:var(--hazard); flex-shrink:0; }
.v2-about-ext-cta{ flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:12px; border-left:1px solid rgba(255,255,255,0.08); padding-left:32px; }
.v2-about-ext-cta .cmd{ font-family:'Share Tech Mono',monospace; color:var(--hazard); font-size:15px; }
@media (max-width: 800px){
  .v2-about-ext{ flex-direction:column; padding:24px; border-radius:6px; }
  .v2-about-ext-cta{ border-left:none; border-top:1px solid rgba(255,255,255,0.08); padding-left:0; padding-top:20px; }
}

.v2-spotlight-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.v2-spotlight-card{
  border:1px solid var(--line); border-radius:5px; background:var(--panel-2); padding:20px;
  box-shadow:0 4px 18px rgba(0,0,0,0.18); transition:border-color .15s, background .15s;
}
/* Nur Border-Farbe beim Hover, kein Hochheben/Schatten mehr -- gleiche Optik
   wie .match-card (Recent Matches, User-Wunsch 2026-09-06: "nur den border
   orange drum herum aber die box nicht nach oben animieren"). Border-Dicke
   bleibt 1px, identisch zu .match-card. */
.v2-spotlight-card:hover{ border-color:var(--hazard); background:#1c231d; }
/* v2-spotlight-text bündelt Name+Sub+Score/Winner in EINER Spalte neben dem Bild --
   User-Vorgabe 2026-08-21: "score und winner unter die anderen texte und das mapbild
   mittig dann". align-items:center auf .v2-spotlight-top zentriert das Bild jetzt
   gegen den kompletten (3-zeiligen) Textblock statt nur gegen Name+Sub. */
.v2-spotlight-top{ display:flex; align-items:center; gap:10px; }
/* Platzierungszahl (nur Top-Players-Karten) als eigene Spalte GANZ links, vertikal
   mittig zur ganzen Karte -- vorher stand "#1" als Text VOR dem Namen mit drin, sah
   aus wie an den Namen geklebt (User-Vorgabe 2026-08-21: "soll doch mittig links von
   der box links vom mapbild"). */
.v2-spotlight-rank{ font-family:'Share Tech Mono',monospace; color:var(--text-dim); font-size:13px; flex-shrink:0; width:18px; text-align:center; }
/* gap statt einzelner margin-top-Werte -- garantiert gleiche Abstände zwischen
   Name/Sub/Score (User-Report 2026-08-21, Screenshot index.png: "verschiedener
   abstand bei den texten ?? alle gleiche abstände von der höhe"). */
.v2-spotlight-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.v2-spotlight-avatar{ position:relative; width:36px; height:36px; border:1px solid var(--line); border-radius:4px; flex-shrink:0; background:var(--panel); }
.v2-spotlight-avatar img:not(.rank-icon-badge){ width:100%; height:100%; object-fit:cover; display:block; border-radius:3px; }
.v2-spotlight-avatar .rank-icon-badge{ left:24px; top:-5px; width:16px; height:16px; }
.v2-spotlight-name{ font-weight:700; color:#fff; font-size:14.5px; }
.v2-spotlight-sub{ font-family:'Share Tech Mono',monospace; font-size:11.5px; color:var(--text-dim); }
.v2-spotlight-body{ font-size:13.5px; color:var(--text-dim); line-height:1.6; }
.v2-spotlight-body b{ color:var(--text); }
/* .v2-spotlight-body b.elo-val -- höhere Spezifität (Klasse+Element statt nur Klasse)
   nötig, sonst gewinnt die generische ".v2-spotlight-body b"-Regel oben gegen
   ".elo-val" und die Elo-Zahl bleibt weiß statt orange (User-Report 2026-08-21,
   gleicher Spezifitäts-Bug wie beim Join-Now-Button). */
.v2-spotlight-body b.elo-val{ color:var(--hazard); }
@media (max-width: 900px){ .v2-spotlight-grid{ grid-template-columns:1fr; } }

.v2-connect{
  text-align:center; border:1px solid var(--line); border-radius:6px; background:var(--panel-2); padding:48px 24px;
  box-shadow:0 10px 32px rgba(0,0,0,0.24);
}
.v2-connect h2{ font-size:26px; color:#fff; margin:0 0 10px; }
.v2-connect p{ color:var(--text-dim); font-size:14.5px; margin:0 0 22px; }
.v2-connect-ip{
  font-family:'Share Tech Mono',monospace; font-size:17px; color:var(--hazard);
  border:1px solid var(--hazard-dim); border-radius:4px; display:inline-block;
  padding:9px 18px; margin-bottom:20px; position:relative; cursor:pointer;
  transition:border-color .15s, background .15s;
}
.v2-connect-ip:hover{ background:rgba(255,122,26,0.08); }
.v2-connect-ip-copied{
  position:absolute; left:50%; bottom:calc(100% + 8px); transform:translate(-50%, 6px);
  background:var(--hazard); color:#0a0a0a; font-family:'Rajdhani',sans-serif; font-weight:700;
  font-size:12px; letter-spacing:0.4px; text-transform:uppercase; padding:5px 12px;
  border-radius:4px; white-space:nowrap; opacity:0; pointer-events:none;
  transition:opacity .15s, transform .15s;
  display:inline-flex; align-items:center; gap:5px;
}
.v2-connect-ip-copied svg{ width:12px; height:12px; flex-shrink:0; }
.v2-connect-ip-copied.show{ opacity:1; transform:translate(-50%, 0); }
.v2-connect-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* Homepage-Leaderboard-Teaser: Top-3 farblich absetzen (Gold/Silber/Bronze),
   nur hier -- .leaderboard-top3 scoped die Regel gegen players.php (gleiche
   .player-row-Klasse dort, soll unberuehrt bleiben). */
.leaderboard-top3 .player-row{ border-left-width:3px; border-left-color:var(--line); }
.leaderboard-top3 .player-row:nth-child(1){ border-left-color:#ffd700; }
.leaderboard-top3 .player-row:nth-child(2){ border-left-color:#c0c0c0; }
.leaderboard-top3 .player-row:nth-child(3){ border-left-color:#cd7f32; }
.leaderboard-top3 .player-row:nth-child(1):hover{ border-color:#ffd700; }
.leaderboard-top3 .player-row:nth-child(2):hover{ border-color:#c0c0c0; }
.leaderboard-top3 .player-row:nth-child(3):hover{ border-color:#cd7f32; }

/* Recent-Matches-Teaser: leichter Zoom aufs Map-Thumbnail bei Hover (.match-thumb
   hat schon overflow:hidden, siehe oben). */
.match-thumb img{ transition:transform .3s ease; }
.match-card:hover .match-thumb img{ transform:scale(1.08); }
/* Live-Scoreboard auf server.php (User-Vorgabe 2026-09-07: "setze es genau so
   um" mit Referenzscreenshot vom echten HL2DM-Tab-Scoreboard) -- Aufbau/Farben
   nachgebaut: Titelzeile in Orange mit Score/Deaths/Latency-Spaltenkoepfen,
   Gruppenzeile "Team - N players" in Team-Farbe mit Team-Gesamtscore rechts,
   Combine hellblau, Rebels rot, Spectator orange, dunkles Glass-Panel statt
   Valve-Font/-Assets (keine 1:1-Kopie der Original-Grafiken/Schrift). */
.sb2-frame{
  border:1px solid rgba(255,255,255,0.25); border-radius:5px; overflow:hidden;
  background:rgba(10,12,9,0.82); backdrop-filter:blur(3px); font-family:'Rajdhani',sans-serif;
}
.sb2-titlebar{
  display:grid; grid-template-columns:1fr 64px 64px 64px; gap:4px; align-items:center; padding:8px 14px;
  border-bottom:1px solid rgba(255,255,255,0.18); font-weight:700; font-size:16px;
}
.sb2-titlebar-name{ color:var(--hazard); letter-spacing:0.3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sb2-titlebar .sb2-col-num{ color:var(--hazard); font-size:14px; text-transform:none; }
.sb2-group-head{
  display:grid; grid-template-columns:1fr 64px 64px 64px; gap:4px; align-items:center; padding:6px 14px;
  border-top:1px solid rgba(255,255,255,0.14); font-weight:700; font-size:15px;
}
.sb2-group-label{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sb2-group-head .sb2-col-num{ font-size:15px; font-weight:700; }
.sb2-combine .sb2-group-label, .sb2-combine .sb2-group-head .sb2-col-num{ color:#8fc7ff; }
.sb2-rebels .sb2-group-label, .sb2-rebels .sb2-group-head .sb2-col-num{ color:#ff6b6b; }
.sb2-unassigned .sb2-group-label, .sb2-unassigned .sb2-group-head .sb2-col-num{ color:var(--hazard); }
.sb2-spectators .sb2-group-label{ color:var(--hazard); }
.sb2-row{
  display:grid; grid-template-columns:1fr 64px 64px 64px; gap:4px; align-items:center; padding:5px 14px;
  text-decoration:none; border-top:1px solid rgba(255,255,255,0.08); transition:background .15s;
  font-size:15px; font-weight:600;
}
.sb2-combine .sb2-row{ color:#8fc7ff; }
.sb2-rebels .sb2-row{ color:#ff6b6b; }
.sb2-unassigned .sb2-row{ color:#fff; }
.sb2-spectators .sb2-row{ color:#fff; }
.sb2-row:hover{ background:rgba(255,255,255,0.08); }
.sb2-row-spec{ opacity:0.85; }
.sb2-col-name{ display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sb2-avatar{ width:22px; height:22px; border-radius:4px; overflow:hidden; background:var(--panel-2); flex-shrink:0; border:1px solid var(--line); }
.sb2-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.sb2-col-num{ font-family:'Share Tech Mono',monospace; font-size:14.5px; color:var(--text); text-align:right; }

/* Live-Kill-Feed unter dem Scoreboard (User-Vorgabe 2026-09-07, Referenz:
   Ingame-Killfeed -- Angreifer/Opfer in Orange, Waffen-Icon dazwischen,
   Suizid als Totenkopf+Name). */
.kf-list{ display:flex; flex-direction:column; gap:6px; max-height:1000px; overflow-y:auto; }
@media (max-width: 640px){
  /* User-Vorgabe 2026-09-07: "Players - 2 ohne das players", "live kill feed
     ab ungefaehr 15 eintraegen die box scollbar machen -- erstmal nur bei
     mobile". Desktop bleibt bewusst unveraendert (volles Wort, keine feste
     Hoehe). */
  .sb2-count-word{ display:none; }
  .kf-list{ max-height:480px; overflow-y:auto; }
}
.kf-row{
  display:flex; align-items:center; gap:8px; padding:7px 12px; border-radius:4px;
  background:rgba(255,255,255,0.03); border:1px solid var(--line);
  font-family:'Rajdhani',sans-serif; font-size:14.5px; font-weight:700;
}
.kf-name{ color:var(--hazard); }
.kf-name-combine{ color:#8fc7ff; }
.kf-name-rebels{ color:#ff6b6b; }
.kf-weapon-icon{ width:26px; height:16px; object-fit:contain; flex-shrink:0; filter:drop-shadow(0 0 2px rgba(255,122,26,0.5)); }
.kf-weapon-fallback{ color:var(--text-dim); font-weight:400; }
.kf-time{ margin-left:auto; font-family:'Share Tech Mono',monospace; font-size:12.5px; font-weight:400; color:var(--text-dim); flex-shrink:0; }
.kf-row-suicide{ opacity:0.9; }
.kf-skull{ width:18px; height:18px; color:var(--danger); flex-shrink:0; }
.kf-skull svg{ width:100%; height:100%; display:block; }
.kf-empty{ color:var(--text-dim); font-size:13.5px; padding:8px 4px; }
.kf-row-pause{ justify-content:center; background:rgba(255,122,26,0.06); }
.kf-pause-label{
  font-family:'Share Tech Mono',monospace; font-size:12px; text-transform:uppercase; letter-spacing:0.6px;
  color:dodgerblue;
}
.kf-pause-match{ color:var(--danger); }
.live-empty-hint{
  text-align:center; color:var(--text-dim); font-family:'Rajdhani',sans-serif; font-size:14.5px;
  padding:28px 12px; border:1px dashed var(--line); border-radius:6px;
}
.live-status-banner{
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-bottom:14px; padding:10px 16px; border-radius:6px; border:1px solid var(--line);
  font-family:'Share Tech Mono',monospace; font-size:14px; font-weight:700; letter-spacing:1px;
}
.live-status-banner.live-status-on{ background:rgba(143,206,74,0.1); border-color:var(--toxic); color:var(--toxic); }
.live-status-banner.live-status-off{ background:rgba(224,85,74,0.1); border-color:var(--danger); color:var(--danger); }
.live-status-dot{ width:10px; height:10px; border-radius:50%; background:currentColor; }
.live-status-banner.live-status-on .live-status-dot{ animation:navLivePulse 1.6s ease-in-out infinite; }

.refresh-btn svg{ width:16px; height:16px; fill:currentColor; }
.refresh-btn:hover{ color:var(--hazard); border-color:var(--hazard); background:rgba(255,122,26,0.08); }
.refresh-btn.spinning svg{ animation:tracker-spin 1s linear infinite; }
@keyframes tracker-spin{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }

.ip-box{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border:1px solid var(--line); border-radius:6px; background:var(--panel); padding:14px 16px; margin-bottom:14px;
}
.ip-box .ip-info{ flex:1 1 0; min-width:0; }
.ip-box .ip-text{ font-family:'Share Tech Mono',monospace; font-size:17px; color:#fff; word-break:break-all; }
.ip-box .ip-label{ font-family:'Share Tech Mono',monospace; font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-dim); margin-bottom:4px; }
.copy-btn{
  width:32px; height:32px; flex-shrink:0; background:rgba(255,255,255,0.04); border:1px solid var(--line); border-radius:6px;
  color:var(--text-dim); display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0;
  transition:color .15s, background .15s, border-color .15s;
}
.copy-btn svg{ width:15px; height:15px; fill:currentColor; }
.copy-btn:hover{ color:var(--hazard); border-color:var(--hazard); background:rgba(255,122,26,0.08); }
.copy-btn.copied{ color:var(--toxic); border-color:#2f4a1e; background:rgba(143,206,74,0.08); }

.ping-good{ color:var(--toxic); }
.ping-mid{ color:#e0c14a; }
.ping-bad{ color:var(--danger); }

.map-box{ position:relative; overflow:hidden; }
.map-box::before{
  content:""; position:absolute; inset:0;
  background-image:var(--map-bg); background-size:cover; background-position:center;
  opacity:0.14; pointer-events:none;
}
.map-box > *{ position:relative; z-index:1; }

.connect-btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; padding:15px; margin-top:4px; border-radius:5px;
  background:var(--hazard); border:none; color:#1a0e00;
  font-family:'Rajdhani',sans-serif; font-weight:700; letter-spacing:2px;
  font-size:17px; text-transform:uppercase; cursor:pointer; text-decoration:none;
  transition:background .15s;
}
.connect-btn:hover{ background:#ff8a35; }
.connect-btn svg{ width:19px; height:19px; fill:currentColor; }
