/* ==========================================================================
   SMPStats — 9titanen.de Inspired Minecraft Pixel-Art Design
   ========================================================================== */

@font-face {
  font-family: "Monocraft";
  src: url("/fonts/monocraft.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #121212;
  --color-bg-deep: #0a0a0a;
  --color-surface: #1b1b1a;
  --color-border: #333331;
  --color-text: #f0efe9;
  --color-muted: #9a9a94;
  --color-accent: #e3a73f;
  --color-signal: #e23f3f;
  --color-green: #6aab7a;
  --font-pixel: "Monocraft", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Custom Minecraft Crosshair Cursors (24x24 Pixel Art SVG) */
  --cursor-crosshair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' shape-rendering='crispEdges'%3E%3Cpath d='M10 2h4v7h7v4h-7v7h-4v-7H3V9h7V2z' fill='%23000000'/%3E%3Cpath d='M11 3h2v7h7v2h-7v7h-2v-7H4v-2h7V3z' fill='%23f0efe9'/%3E%3Crect x='11' y='11' width='2' height='2' fill='%23e3a73f'/%3E%3C/svg%3E") 12 12, crosshair;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' shape-rendering='crispEdges'%3E%3Cpath d='M9 1h6v8h8v6h-8v8H9v-8H1V9h8V1z' fill='%23000000'/%3E%3Cpath d='M10 2h4v8h8v4h-8v8h-4v-8H2v-4h8V2z' fill='%23e3a73f'/%3E%3Crect x='11' y='11' width='2' height='2' fill='%23ffffff'/%3E%3C/svg%3E") 12 12, pointer;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: var(--color-bg-deep);
  color: var(--color-text);
  font-family: var(--font-pixel);
  scroll-behavior: smooth;
  cursor: var(--cursor-crosshair);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-pixel);
  overflow-x: hidden;
  cursor: var(--cursor-crosshair);
}

a, button, summary, select, input, [role="button"], .clickable-row, .stk-spieler-karte {
  cursor: var(--cursor-pointer);
  font-family: var(--font-pixel);
}

/* ==========================================================================
   Top Navigation Header (9titanen.de style)
   ========================================================================== */
.kopf-wrapper {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
}

.kopf-nav {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kopf-titel {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 0 #000;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: color 0.15s ease;
}

.kopf-titel:hover {
  color: var(--color-accent);
}

.kopf-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  background: #ffffff0a;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
}

.kopf-live--aktiv {
  color: var(--color-text);
  border-color: #6aab7a66;
  background: #6aab7a18;
}

.kopf-live-punkt {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #6b6b66;
  flex-shrink: 0;
}

.kopf-live--aktiv .kopf-live-punkt {
  background: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
  animation: kopfPuls 1.6s ease-in-out infinite;
}

@keyframes kopfPuls {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.84); }
}

.kopf-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   3D Beveled Minecraft GUI Buttons (.btn-mc)
   ========================================================================== */
.btn-mc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.05rem;
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f4f3ee;
  background: #6b6b63;
  border: 2px solid #1c1c1a;
  box-shadow: inset 2px 2px #ffffff59, inset -2px -2px #00000073;
  text-shadow: 2px 2px #000000bf;
  user-select: none;
  transition: filter 0.12s ease, transform 60ms ease;
}

.btn-mc:hover {
  filter: brightness(1.18);
}

.btn-mc:active {
  transform: translateY(1px);
  box-shadow: inset 2px 2px #00000073, inset -2px -2px #ffffff40;
}

.btn-mc--accent {
  background: var(--color-accent);
  color: #1b1305;
  text-shadow: 1px 1px #ffffff59;
  box-shadow: inset 2px 2px #fff6, inset -2px -2px #00000066;
}

.btn-mc--small {
  padding: 0.42rem 0.8rem;
  font-size: 0.7rem;
}

.btn-mc--active {
  background: var(--color-accent);
  color: #1b1305;
  text-shadow: 1px 1px #ffffff59;
  box-shadow: inset 2px 2px #fff6, inset -2px -2px #00000066, 0 0 12px rgba(227, 167, 63, 0.35);
}

/* ==========================================================================
   Starry Pixel-Art Sky Background & Gliding Moon (.stk-seite)
   ========================================================================== */
.stk-seite {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: calc(100vh - 7rem);
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 0, #282e4a80, #0000 70%),
    linear-gradient(#04050a 0%, #090a14 55%, #05060b 100%);
}

.stk-seite::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image: url("/images/sternenhimmel.png");
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 960px 540px;
  image-rendering: pixelated;
  opacity: 0.95;
  animation:
    stkSterneTwinkle 7s ease-in-out infinite alternate,
    stkSterneDriften 180s linear infinite;
}

.stk-milchstrasse {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(60% 18% at 55% 28%, #788cdc1f 0%, #5a6ebe0d 45%, #0000 75%);
  transform: rotate(-18deg) scale(1.2);
  animation: stkMilchstrasseSchimmern 14s ease-in-out infinite alternate;
}

#sky-embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.stk-mond-bahn {
  position: fixed;
  inset: 0 0 auto;
  height: 22rem;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.stk-mond {
  position: absolute;
  width: clamp(3.5rem, 6vw, 5.2rem);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 18px rgba(220, 230, 255, 0.35));
  animation: stkMondBahn 150s linear infinite;
}

@keyframes stkSterneTwinkle {
  0% { opacity: 0.78; filter: brightness(0.95); }
  50% { opacity: 1; filter: brightness(1.12); }
  100% { opacity: 0.85; filter: brightness(1); }
}

@keyframes stkSterneDriften {
  0% { background-position: 0 0; }
  100% { background-position: -960px 0; }
}

@keyframes stkMilchstrasseSchimmern {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes stkMondBahn {
  0%   { left: -8%;  top: 22%; opacity: 0; }
  4%   { opacity: 0.95; }
  10%  { left: 2%;   top: 17%; }
  20%  { left: 16%;  top: 12%; }
  30%  { left: 30%;  top: 8%;  }
  40%  { left: 44%;  top: 4%;  }
  50%  { left: 58%;  top: 2%;  }
  60%  { left: 72%;  top: 1%;  }
  70%  { left: 86%;  top: 3%;  }
  80%  { left: 100%; top: 7%;  }
  90%  { left: 114%; top: 13%; }
  96%  { opacity: 0.95; }
  100% { left: 128%; top: 20%; opacity: 0; }
}

/* ==========================================================================
   Main Container & Floating Pixel Headings
   ========================================================================== */
.stk-container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 4rem;
  position: relative;
  z-index: 1;
}

.stk-hero-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.stk-title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-shadow:
    1px 1px #8a611f,
    2px 2px #8a611f,
    3px 3px #6b4a16,
    4px 4px #6b4a16,
    5px 5px #4a330f,
    6px 6px 12px #000000a6;
  animation: titleFloat 5s ease-in-out infinite;
}

.stk-subtitle {
  margin: 0.65rem auto 0;
  font-size: 0.84rem;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 #000;
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.stk-eyebrow {
  margin: 2.5rem 0 0.35rem;
  font-family: var(--font-pixel);
  font-size: clamp(0.95rem, 2.2vw, 1.22rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-shadow: 2px 2px 0 #000, 0 0 18px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: eyebrowFloat 6s ease-in-out infinite;
}

@keyframes eyebrowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.stk-hinweis {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  text-shadow: 1px 1px 0 #000;
}

/* ==========================================================================
   Tab Switchers (.stk-switch-reihe & Category Filter Bar)
   ========================================================================== */
.stk-switch-reihe {
  margin: 1.75rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.stk-switch-btn {
  padding: 0.62rem 1.25rem;
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: #ffffff0d;
  border: 1px solid #ffffff29;
  border-radius: 0.7rem;
  backdrop-filter: blur(10px);
  text-shadow: 1px 1px 0 #000;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.stk-switch-btn:hover {
  color: var(--color-text);
  background: #ffffff17;
}

.stk-switch-btn--aktiv {
  color: var(--color-text);
  background: #ffffff1f;
  border-color: var(--color-accent);
  box-shadow: 0 0 18px rgba(227, 167, 63, 0.22), inset 0 1px #ffffff26;
}

.stk-filter-leiste {
  margin: 1.4rem 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stk-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stk-suche-input {
  padding: 0.52rem 0.9rem;
  min-width: 15rem;
  font-family: var(--font-pixel);
  font-size: 0.76rem;
  color: var(--color-text);
  background: #0d0e17cc;
  border: 2px solid #333331;
  box-shadow: inset 2px 2px #00000080;
  outline: none;
  transition: border-color 0.15s ease;
}

.stk-suche-input:focus {
  border-color: var(--color-accent);
}

/* ==========================================================================
   Cards (.stk-karte) & Overview KPIs (.stk-grid-gross)
   ========================================================================== */
.stk-karte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.3rem 1.45rem;
  background: #ffffff0e;
  border: 1px solid #ffffff29;
  border-radius: 1.1rem;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 10px 28px #00000059, inset 0 1px #ffffff1f;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.stk-karte:hover {
  border-color: #ffffff42;
}

.stk-grid-gross {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .stk-grid-gross {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stk-karte--gross {
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 1.65rem 1.35rem;
}

.stk-label {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.35;
}

.stk-zahl-gross {
  margin: 0.25rem 0 0;
  font-family: var(--font-pixel);
  font-size: clamp(1.75rem, 4.2vw, 2.55rem);
  line-height: 1.1;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 2px 2px 0 #000;
}

.stk-zahl {
  margin: 0.2rem 0 0;
  font-family: var(--font-pixel);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.15;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 2px 2px 0 #000;
}

.stk-sub {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.stk-online-koepfe {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.stk-online-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  background: #ffffff14;
  border: 1px solid #ffffff26;
  border-radius: 0.45rem;
}

/* ==========================================================================
   Leaderboard Cards Grid (.stk-grid-ranglisten & .stk-rangliste)
   ========================================================================== */
.stk-grid-ranglisten {
  margin-top: 1.15rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items: start;
}

@media (min-width: 680px) {
  .stk-grid-ranglisten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .stk-grid-ranglisten {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stk-rangliste {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.82rem;
}

.stk-rangliste li {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.26rem 0.35rem;
  border-bottom: 1px solid #ffffff12;
  border-radius: 0.35rem;
  transition: background 0.12s ease;
}

.stk-rangliste li:last-child {
  border-bottom: none;
}

.stk-rangliste li:hover {
  background: #ffffff12;
}

.stk-rang {
  width: 1.65rem;
  flex-shrink: 0;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
}

.stk-rang--1 { color: #ffd700; text-shadow: 1px 1px 0 #000; }
.stk-rang--2 { color: #d8d8d8; text-shadow: 1px 1px 0 #000; }
.stk-rang--3 { color: #d98d4f; text-shadow: 1px 1px 0 #000; }

.stk-ca-kopf-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.stk-ca-kopf-bild {
  width: 21px;
  height: 21px;
  border-radius: 0.22rem;
  background: #0000004d;
  box-shadow: 0 0 0 1px #ffffff24;
  image-rendering: pixelated;
  display: block;
}

.stk-spieler-name {
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.stk-online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 6px var(--color-green);
  margin-left: 0.25rem;
  vertical-align: middle;
}

.stk-rang-wert {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  text-shadow: 1px 1px 0 #000;
}

/* Expandable "Weitere X anzeigen" inside cards (9titanen.de exact style) */
.stk-ca-mehr {
  margin-top: 0.5rem;
  border-top: 1px solid #ffffff14;
  padding-top: 0.45rem;
}

.stk-ca-mehr-knopf {
  list-style: none;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  padding: 0.32rem 0.5rem;
  border-radius: 0.4rem;
  background: #ffffff0a;
  border: 1px solid #ffffff1a;
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.stk-ca-mehr-knopf::-webkit-details-marker {
  display: none;
}

.stk-ca-mehr-knopf::after {
  content: " ▼";
  font-size: 0.62rem;
}

.stk-ca-mehr[open] > .stk-ca-mehr-knopf::after {
  content: " ▲";
}

.stk-ca-mehr-knopf:hover {
  color: var(--color-accent);
  background: #ffffff14;
  border-color: #e3a73f66;
}

.stk-ca-mehr > .stk-rangliste {
  margin-top: 0.45rem;
}

/* ==========================================================================
   9titanen.de Donut Charts (.kd-wrapper, .kd-kreis, .kd-legende)
   ========================================================================== */
.stk-spieler-karte {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.stk-spieler-karte:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.stk-name {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.92rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.stk-kreis-abstand {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid #ffffff14;
}

.kd-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
}

.kd-kreis {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 0 0 2px #ffffff24, 0 4px 12px #00000066;
}

.kd-kreis::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #131520;
  box-shadow: 0 0 0 1px #ffffff1f;
}

.kd-legende {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  flex: 1;
  min-width: 8rem;
}

.kd-legende-zeile {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.kd-punkt {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.kd-name {
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kd-prozent {
  margin-left: auto;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Death Feed Cards (Hall of Shame)
   ========================================================================== */
.stk-tod-liste {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .stk-tod-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stk-tod-karte {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: #ffffff0c;
  border: 1px solid #e23f3f40;
  border-radius: 0.9rem;
  backdrop-filter: blur(12px);
}

.stk-tod-kopf {
  width: 32px;
  height: 32px;
  border-radius: 0.25rem;
  image-rendering: pixelated;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px #ffffff29;
}

.stk-tod-inhalt {
  flex: 1;
  min-width: 0;
}

.stk-tod-msg {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text);
  line-height: 1.4;
}

.stk-tod-meta {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--color-muted);
}

.stk-dim-badge {
  padding: 0.1rem 0.42rem;
  border-radius: 0.25rem;
  background: #ffffff14;
  color: var(--color-accent);
}

/* ==========================================================================
   Player Detail Modal (Minecraft Inventory / Dossier Window)
   ========================================================================== */
.stk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 5, 10, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.stk-modal-backdrop[hidden] {
  display: none !important;
}

.stk-modal {
  width: 100%;
  max-width: 54rem;
  max-height: 88vh;
  overflow-y: auto;
  background: #131521f2;
  border: 2px solid var(--color-accent);
  border-radius: 1rem;
  box-shadow: 0 24px 60px #000000cc, inset 0 1px #ffffff29;
  padding: 1.5rem;
  position: relative;
}

.stk-modal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ffffff24;
}

.stk-modal-spieler {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stk-modal-avatar {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  border-radius: 0.35rem;
  border: 2px solid var(--color-accent);
  background: #00000066;
}

.stk-modal-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 680px) {
  .stk-modal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stk-mini-stat {
  padding: 0.75rem 0.85rem;
  background: #ffffff0a;
  border: 1px solid #ffffff1f;
  border-radius: 0.65rem;
}

.stk-mini-stat .stk-label {
  font-size: 0.65rem;
}

.stk-mini-stat .stk-zahl {
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Footer & Back-to-top
   ========================================================================== */
.nach-oben-bereich {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.stk-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-deep);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-muted);
}
