/* ==== Design angelehnt an Analyse_Top_Flop.html ==== */
/* Farbvariablen */
:root{
  --bg:#f5f5f5;
  --primary:#bbdefb;
  --text:#222;
  --muted:#555;
  --white:#fff;
}

/* Reset & Grundlayout */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial;
  background:var(--bg);
  color:var(--text);
}

/* Header */
.site-header{
  background:var(--primary);
  padding:16px 24px;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.site-header h1{margin:0; font-size:20px; display:flex; gap:8px; align-items:center}
.site-header .badge a{color:inherit; text-decoration:none}

/* Container (optional Wrapper-Klasse um Inhalt) */
.container{
  padding:16px;
  max-width:1600px;
  margin:0 auto;
}

/* Karten/Paneel-Optik (Mapping von .panel -> .card) */
.card{
  background:var(--white);
  border-radius:12px;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
  overflow:hidden;
  margin:16px 0;
}
.card h2{
  margin:0;
  font-size:16px;
  padding:12px 16px;
  background:var(--bg);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.card > .content,
.card > .card-body{padding:12px 16px}

/* Filterleiste */
.filters{
  display:flex; gap:12px; flex-wrap:wrap; align-items:end
}
.filters label{font-size:12px; color:var(--muted)}
.filters input[type="text"],
.filters input[type="date"],
.filters select{
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:8px;
  outline:none;
  background:var(--white);
}
.filters button,
button, .btn{
  padding:6px 10px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,.15);
  background:var(--white);
  cursor:pointer;
}
a.badge, .badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:#e0f2f1;
  border:1px solid rgba(0,0,0,.06);
  color:#00695c;
  font-size:12px;
  text-decoration:none;
}

/* Sekundär-Badge (grau), falls benötigt */
.badge-muted{
  background:var(--bg);
  color:var(--muted);
  border:1px solid rgba(0,0,0,.06);
}

/* Kleine Status-Badges für Zahlen (ok/bad wie bisher genutzt) */
.badge.ok{background:#e8f5e9; color:#1b5e20}
.badge.bad{background:#ffebee; color:#b71c1c}

/* Tabelle (Sticky Header, wie in der Vorlage) */
.table-wrap{overflow:auto}
table{width:100%; border-collapse:collapse}
thead th{
  position:sticky; top:0;
  background:var(--bg);
  text-align:left;
  font-size:13px;
  padding:10px;
  border-bottom:1px solid rgba(0,0,0,.12);
  white-space:nowrap;
  z-index:1;
}
thead th.date{text-align:center}
tbody td{
  padding:10px;
  border-bottom:1px solid rgba(0,0,0,.06);
  font-size:14px;
}
tbody tr:hover{background:rgba(0,0,0,.025)}
td.date{ text-align:center; font-variant-numeric: tabular-nums; }
.muted{ color:var(--muted); font-style:italic }

/* Utilities */
.grid{display:grid; gap:16px}
.grid-2{grid-template-columns:1fr 1fr}
@media (max-width: 900px){ .grid-2{grid-template-columns:1fr} }

/* Optionale „Toggle“-Gruppe (falls später genutzt) */
.toggle{
  display:inline-flex; gap:8px; background:var(--bg);
  padding:4px; border-radius:10px; border:1px solid rgba(0,0,0,.08);
}
.toggle label{ padding:6px 10px; border-radius:8px; cursor:pointer; user-select:none }
.toggle input{ display:none }
.toggle input:checked + span{
  background:var(--white);
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}

/* Links im Text */
a{color:inherit}
a:hover{opacity:.85}
