/* ===== Probetraining-Portal – Compact UI (grau abgestuft) ===== */

:root{
  --bg:#141821;          /* vorher #0b0c10  → etwas heller & neutraler grau-blau */
  --card:#1a1d24;        /* vorher #111217  → klarer Abstand zum BG */
  --muted:#a0a8b2;       /* vorher #8a8f97  → bessere Lesbarkeit */
  --text:#e6e6e6;        /* unverändert */
  --accent:#6ee7ff;      /* unverändert */
  --ok:#35cf84;          /* unverändert */
  --err:#ff6b6b;         /* unverändert */

  /* Dichte */
  --radius:10px;
  --gap:8px;
  --pad:10px;
  --pad-sm:6px;

  --border:#2a2f37;      /* vorher #1b1f26 → sichtbarer auf dunklem Grund */
}

/* Reset & Base */
*{box-sizing:border-box}
html,body{margin:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;              /* kleiner */
  line-height: 1.35;            /* kompakter */
  color: var(--text);
  background: linear-gradient(180deg,#161a22,#0f1217 280px); /* vorher #0f1117→#0a0b0f */
}
a{color:var(--accent);text-decoration:none}
small,.muted{color:var(--muted);font-size:.92em}

/* Layout */
.container{padding:14px;max-width:1100px;margin:0 auto}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.topbar a{padding:6px 10px;border:1px solid var(--border);border-radius:var(--radius)}
.card{
  background:var(--card);
  border:1px solid var(--border);
  padding: var(--pad);
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  margin-bottom: 10px;
}
.card.narrow{max-width:380px;margin:8vh auto}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:var(--gap)}
.table{display:grid;gap:6px}
.row{
  display:grid;
  grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
  gap:8px;
  padding:8px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(34,38,46,.75); /* vorher rgba(17,18,23,.65) → heller + etwas dichter */
}
.row.head{font-weight:600;background:transparent;border:none;padding:0}

/* Inputs / Buttons */
label{display:flex;flex-direction:column;gap:4px;font-size:.95em}
input,select,textarea,button{
  padding: 6px 8px;                           
  border-radius: 8px;
  border:1px solid var(--border);
  background:#252a33;                         /* NEU: heller als Cards, gute Abgrenzung */
  color:var(--text);
  outline:none;
}
input,select{height: 32px}                    
textarea{min-height:72px}
button{cursor:pointer}
button.success{background:#0f2b1f;border-color:#174a34}
.btn{
  display:inline-block;
  padding: 6px 8px;
  border:1px solid var(--border);
  border-radius: 8px;
}
.inline{display:inline-flex;gap:6px;align-items:center}
.check{display:flex;align-items:center;gap:6px;margin:4px 0}
:focus-visible{outline:2px solid rgba(110,231,255,.35);outline-offset:2px}

/* Tabs */
.tabs{display:flex;gap:6px;margin:0 0 12px 0}
.tabs a{
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--text);
  opacity:.85;
  font-weight:500;
}
.tabs a.active{
  opacity:1;
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(110,231,255,.10) inset;
}

/* Badges / Alerts */
.badge{
  display:inline-block;
  background:#1c2028;              /* vorher #151a20 → heller */
  border:1px solid var(--border);
  padding:2px 8px;
  border-radius:999px;
  font-size:.88em;
}
.alert{padding:8px;border-radius:8px;margin:6px 0}
.alert.error{background:#2a0e0e;border:1px solid #5a1a1a} /* bewusst nicht grau */

/* Stats (kleiner & dichter) */
.cards{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px;margin-bottom:12px}
.stat{text-align:center;padding:10px}
.stat-num{font-size:22px;font-weight:700;line-height:1}
.stat-label{color:var(--muted);margin-top:4px}

/* Tabellen auf schmalen Screens */
@media (max-width:900px){
  .row{grid-template-columns: 1fr 1fr}
  .row.head{display:none}
  .cards{grid-template-columns:repeat(3,1fr)}
}

/* Kleinere Abstände in Formularsektionen */
h1,h2,h3{margin:8px 0 10px 0}
hr{border:0;border-top:1px solid var(--border);margin:10px 0}

/* Links in Tabellen */
.row a.btn{padding:6px 8px}
.row small{opacity:.9}

.cards .card.stat { text-decoration:none; cursor:pointer; }
.cards .card.stat .stat-label, .cards .card.stat .stat-num { color: inherit; }


