
/* =========================
   DARK MODE (Default)
========================= */
:root{
  --bg:#07070a;
  --panel:rgba(18,18,22,.85);
  --panel2:rgba(18,18,22,.65);
  --text:#f4f4f5;
  --muted:#a1a1aa;
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.18);
  --cyan:#22d3ee;
  --orange:#fb923c;
}

/* =========================
   LIGHT MODE
========================= */
html[data-theme="light"]{
  --bg:#f4f4f7;
  --panel:rgba(255,255,255,.85);
  --panel2:rgba(255,255,255,.70);
  --text:#111827;
  --muted:#6b7280;
  --stroke:rgba(0,0,0,.08);
  --stroke2:rgba(0,0,0,.15);
  --cyan:#06b6d4;
  --orange:#f97316;
}

*{box-sizing:border-box}

html,body{min-height:100%}

body{
  position:relative;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:url("/banner.jpg") center center / cover no-repeat;
  opacity:.16;
  pointer-events:none;
  z-index:-2;
  transform:scale(1.02);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  background:linear-gradient(180deg, rgba(7,7,10,.50), rgba(7,7,10,.76));
  pointer-events:none;
  z-index:-1;
}

html[data-theme="light"] body::before{
  opacity:.14;
}

html[data-theme="light"] body::after{
  background:linear-gradient(180deg, rgba(244,244,247,.50), rgba(244,244,247,.72));
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  transition:background .25s ease,color .25s ease;
  padding-bottom:88px;
}

a{text-decoration:none;color:inherit}

.site-header{
  position:fixed;
  top:0;left:0;width:100%;
  backdrop-filter:blur(12px);
  background:var(--panel);
  border-bottom:1px solid var(--stroke);
  z-index:1000;
}

.nav{
  max-width:1200px;
  margin:auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  gap:14px;
}

.brand{
  display:flex;align-items:center;gap:12px;
  font-weight:900;font-size:18px;
}
.brand img{width:36px;border-radius:10px;}

.nav-link{
  padding:9px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:var(--panel2);
  font-weight:800;
  font-size:14px;
  transition:.18s ease;
}
.nav-link:hover{border-color:var(--stroke2);transform:translateY(-1px)}
.nav-link.active{border-color:var(--cyan)}

.nav-link.primary{
  background:linear-gradient(135deg,var(--cyan),var(--orange));
  color:#000;
  border:none;
}

/* Active-Optik auch bei Primary sichtbar */
.nav-link.primary.active{
  outline:2px solid rgba(255,255,255,.25);
  outline-offset:2px;
}
.nav-right{
  display:flex;
  gap:10px;
  margin-left:auto;
}

.theme-toggle{
  padding:9px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:var(--panel2);
  cursor:pointer;
  font-weight:800;
  color:var(--text);
  transition:.18s ease;
  line-height:1; /* hier rein verschoben */
}

#themeIcon{
  display:inline-block;
  font-size:16px;
  transform:translateY(1px);
  transition: transform .2s ease;
}

.theme-toggle:hover #themeIcon{
  transform:translateY(-1px) rotate(15deg) scale(1.1);
}
.page-content{position:relative;z-index:1;padding-top:100px;min-height:calc(100vh - 100px);display:flex;flex-direction:column}

@media(max-width:600px){
  .nav{flex-wrap:wrap}
  .nav-links{flex-basis:100%}
  .page-content{padding-top:150px;min-height:calc(100vh - 150px)}
}

/* ---------- Spielmodi UI ---------- */
.sg-container{max-width:1100px;margin:0 auto;padding:24px 18px 60px;}
.sg-hero{padding:34px 18px 16px;}
.sg-hero__inner{max-width:1100px;margin:0 auto;}
.sg-breadcrumb{display:flex;gap:10px;align-items:center;font-size:13px;opacity:.75}
.sg-breadcrumb a{text-decoration:none}
.sg-title{font-size:34px;line-height:1.1;margin:10px 0 8px;}
.sg-subtitle{font-size:16px;line-height:1.6;max-width:820px;opacity:.9;margin:0 0 14px;}
.sg-chiprow{display:flex;gap:10px;flex-wrap:wrap}
.sg-chip{font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid var(--stroke);opacity:.85}

.sg-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 18px;}
.sg-tab{border:1px solid var(--stroke);background:transparent;padding:10px 12px;border-radius:12px;cursor:pointer}
.sg-tab.is-active{border-color:var(--stroke2);transform:translateY(-1px)}
.sg-panels .sg-panel{display:none}
.sg-panels .sg-panel.is-active{display:block}

.sg-card{
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:18px;
  background:var(--panel);
  backdrop-filter: blur(8px);
}
.sg-card--tight{padding:14px}
.sg-card__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}
.sg-h2{margin:0;font-size:18px}
.sg-muted{font-size:13px;opacity:.75}

.sg-prose{font-size:15px;line-height:1.7;opacity:.95}
.sg-prose ul{margin:10px 0 0 18px}

.sg-grid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:12px}
@media (max-width: 900px){.sg-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}}
@media (max-width: 560px){.sg-grid{grid-template-columns:1fr;}}

.sg-map{border:1px solid var(--stroke);border-radius:14px;overflow:hidden;background:transparent;cursor:pointer;text-align:left;transition:transform .12s ease, border-color .12s ease}
.sg-map:hover{transform:translateY(-2px);border-color:var(--stroke2)}
.sg-map:focus{outline:none;border-color:var(--stroke2)}
.sg-map__imgwrap{aspect-ratio:16/9;background:var(--panel2)}
.sg-map img{width:100%;height:100%;object-fit:cover;display:block}
.sg-map__meta{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;gap:10px}
.sg-map__title{font-size:14px;font-weight:600}
.sg-map__hint{font-size:12px;opacity:.75}

.sg-stats{padding:2px 2px 0}
.sg-stats__list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.sg-stats__row{display:grid;grid-template-columns:60px 1fr auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--stroke);border-radius:12px;background:var(--panel2)}
.sg-rank{opacity:.8;font-size:13px}
.sg-player{font-weight:600}
.sg-value{opacity:.9}

.sg-note{margin-top:10px;padding:10px 12px;border:1px dashed var(--stroke2);border-radius:12px;opacity:.8;font-size:13px}

.sg-skeleton{height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.10);background:linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03));background-size:200% 100%;animation:sgsh 1.2s infinite}
@keyframes sgsh{0%{background-position:200% 0}100%{background-position:-200% 0}}

.sg-lightbox{position:fixed;inset:0;display:none;z-index:9999}
.sg-lightbox.is-open{display:block}
.sg-lightbox__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}
.sg-lightbox__content{position:relative;max-width:1100px;margin:6vh auto;background:rgba(20,20,20,.95);border:1px solid rgba(255,255,255,.14);border-radius:18px;overflow:hidden}
.sg-lightbox__title{padding:12px 16px;font-weight:600;border-bottom:1px solid rgba(255,255,255,.10)}
.sg-lightbox__content img{width:100%;height:auto;display:block}
.sg-lightbox__close{position:absolute;top:10px;right:12px;width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);cursor:pointer;font-size:22px;line-height:1}