body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050910;
  color: #eee;
}

a {
  color: #f28c3d;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.header h1 {
  margin: 0 0 0.5rem;
}

.header p {
  margin: 0.25rem 0;
  color: #aaa;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.mode-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle at top left, #243b55, #141e30 60%, #050910);
  padding: 1.5rem;
  border-radius: 1rem;
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.mode-card h2 {
  margin: 0 0 0.5rem;
}

.mode-card p {
  margin: 0;
  color: #ccc;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.speedtest-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  grid-auto-rows: minmax(0, auto);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .speedtest-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: #111722;
  padding: 1.25rem 1.5rem;
}

.card h2 {
  margin-top: 0;
}

.bb-status p {
  margin: 0.25rem 0;
}

.download-list {
  list-style: none;
  padding: 0;
}
.download-list li {
  margin-bottom: 0.5rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  background: #111722;
  border-radius: 1rem;
  padding: 1.5rem;
  width: min(380px, 90vw);
  box-shadow: 0 18px 45px rgba(0,0,0,0.8);
}

.modal h2 {
  margin-top: 0;
}

.modal input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #333a4a;
  background: #050910;
  color: #fff;
  margin-top: 0.5rem;
}

.modal-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-actions button {
  border-radius: 999px;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

#passwordCancel {
  background: #252b3a;
  color: #ddd;
}

#passwordSubmit {
  background: linear-gradient(135deg, #f1503f, #f28c3d);
  color: #fff;
}

.modal-error {
  margin-top: 0.75rem;
  color: #ff6b6b;
  font-size: 0.9rem;
}

.card-big {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .card-big {
    grid-column: span 1;
  }
}

.librespeed-wrapper {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #050910;
  border: 1px solid rgba(255,255,255,0.08);
  height: 420px;
}

.librespeed-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Layout nur noch 2 Karten nebeneinander */
.speedtest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .speedtest-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card-bb,
.card-mon {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Chart-Wrapper */
.chart-wrapper {
  margin-top: 0.5rem;
  background: #050910;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem;
}

/* Farb-Codierung der Werte */
.metric-value {
  font-weight: 600;
}

/* Farben: grün (gut), gelb (ok), orange (suboptimal), rot (schlecht), blau (neutral/info) */
.metric-good {
  color: #4ade80; /* green-400 */
}
.metric-ok {
  color: #facc15; /* yellow-400 */
}
.metric-warn {
  color: #fb923c; /* orange-400 */
}
.metric-bad {
  color: #f97373; /* red-400 */
}
.metric-info {
  color: #38bdf8; /* sky-400 */
}

/* Hauptbereich als vertikale Liste */
.main-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Karten für die drei Bereiche */
.card-bb,
.card-mon,
.card-dl {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Chart-Wrapper */
.chart-wrapper {
  margin-top: 0.5rem;
  background: #050910;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem;
  height: 180px;
}

.chart-wrapper-big {
  height: 220px;
}

.chart-title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* Farb-Codierung für Werte (wie gehabt) */
.metric-value {
  font-weight: 600;
}

.metric-good {
  color: #4ade80;
}
.metric-ok {
  color: #facc15;
}
.metric-warn {
  color: #fb923c;
}
.metric-bad {
  color: #f97373;
}
.metric-info {
  color: #38bdf8;
}

body {
  background: #05070b;
  color: #e5e7eb;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.header h1 {
  margin: 0 0 0.4rem;
}

.header p {
  margin: 0.1rem 0 0.75rem;
  color: #9ca3af;
}

.section-block {
  margin-bottom: 1.75rem;
}

.section-block h2 {
  margin: 0 0 0.25rem;
}

.section-subtitle {
  margin: 0 0 0.75rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Karten */
.card {
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.25);
  background: radial-gradient(circle at top left, #0b1220, #020617 55%);
  padding: 1rem 1.25rem;
}

.subcard {
  margin-top: 0.75rem;
}

.subcard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.subcard-header h3 {
  margin: 0;
}

.subcard-note {
  margin: 0.25rem 0 0.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Profile */
.profile-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.profile-label {
  font-size: 0.9rem;
  color: #9ca3af;
}

.profile-btn {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: transparent;
  color: #e5e7eb;
  padding: 0.25rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.profile-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  border-color: transparent;
  color: #020617;
}

.profile-active-hint {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Controls */
.idle-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.idle-controls label {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.idle-controls select {
  margin-left: 0.25rem;
  background: #020617;
  color: #e5e7eb;
  border-radius: 4px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.2rem 0.4rem;
  font-size: 0.85rem;
}

button {
  font-family: inherit;
}

button#idle-start,
button#burst-start,
button#bb-start,
button#dl-start,
button#ul-start,
button#mon-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: #020617;
  color: #e5e7eb;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

button#idle-start:hover,
button#burst-start,
button#dl-start:hover,
button#ul-start:hover,
button#bb-start:hover,
button#mon-toggle:hover {
  border-color: #0ea5e9;
}

/* Charts & Eval */
.chart-wrapper {
  margin-top: 0.5rem;
  background: #020617;
  border-radius: 6px;
  border: 1px solid rgba(15,23,42,0.9);
  padding: 0.6rem;
  height: 180px;
}

.chart-wrapper-big {
  height: 200px;
}

.chart-title {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.eval-box {
  margin-top: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.8);
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* Farben für Werte */
.metric-value {
  font-weight: 600;
}

.metric-good {
  color: #22c55e;
}
.metric-ok {
  color: #eab308;
}
.metric-warn {
  color: #f97316;
}
.metric-bad {
  color: #f97373;
}
.metric-info {
  color: #0ea5e9;
}

/* Download-Liste */
.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.download-list li {
  margin-bottom: 0.4rem;
}
.download-list a {
  color: #0ea5e9;
  text-decoration: none;
}
.download-list a:hover {
  text-decoration: underline;
}

body {
  margin: 0;
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020409;
  color: #e5e7eb;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Header */
.header h1 {
  margin: 0 0 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header p {
  margin: 0.1rem 0 0.75rem;
  color: #9ca3af;
}

/* 1/2/3 Bereich-Navigation */
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(148,163,184,0.6);
  background: #020617;
  color: #e5e7eb;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.section-nav-item .section-nav-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 3px;
  background: #0b1120;
  font-weight: 600;
  font-size: 0.8rem;
}

.section-nav-item .section-nav-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.section-nav-item.active {
  border-color: transparent;
  background: linear-gradient(135deg, #0ea5e9, #f97316);
  color: #020617;
}

/* Sektionen */
.section-block {
  margin-bottom: 1.75rem;
}

.section-block h2 {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-subtitle {
  margin: 0 0 0.75rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Karten */
.card {
  border-radius: 2px;
  border: 1px solid rgba(148,163,184,0.25);
  background: radial-gradient(circle at top left, #020617, #000000 70%);
  padding: 1rem 1.25rem;
}

.subcard {
  margin-top: 0.75rem;
}

.subcard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.subcard-header h3 {
  margin: 0;
}

.subcard-note {
  margin: 0.25rem 0 0.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Profile */
.profile-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.profile-label {
  font-size: 0.9rem;
  color: #9ca3af;
}

.profile-btn {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: transparent;
  color: #e5e7eb;
  padding: 0.25rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.profile-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  border-color: transparent;
  color: #020617;
}

.profile-active-hint {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Idle Controls + Timer */
.idle-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.idle-controls label {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.idle-controls select {
  margin-left: 0.25rem;
  background: #020617;
  color: #e5e7eb;
  border-radius: 4px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.2rem 0.4rem;
  font-size: 0.85rem;
}

.idle-timer-label {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Buttons */
button {
  font-family: inherit;
}

/* Idle Progressbar */
.idle-progress {
  margin-top: 0.4rem;
  width: 100%;
  height: 4px;
  background: #020617;
  border-radius: 999px;
  overflow: hidden;
}

.idle-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 0.15s linear;
}

/* Charts & Eval */
.chart-wrapper {
  margin-top: 0.5rem;
  background: #020617;
  border-radius: 6px;
  border: 1px solid rgba(15,23,42,0.9);
  padding: 0.6rem;
  height: 180px;
}

.chart-wrapper-big {
  height: 200px;
}

.chart-title {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.eval-box {
  margin-top: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.8);
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* Farb-Codierung Werte */
.metric-value {
  font-weight: 600;
}

.metric-good { color: #22c55e; }
.metric-ok   { color: #eab308; }
.metric-warn { color: #f97316; }
.metric-bad  { color: #f97373; }
.metric-info { color: #0ea5e9; }

/* Download-Liste */
.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.download-list li {
  margin-bottom: 0.4rem;
}
.download-list a {
  color: #0ea5e9;
  text-decoration: none;
}
.download-list a:hover {
  text-decoration: underline;
}

/* Profilabhängige Hintergründe (Bilder selbst bereitstellen) */
body.theme-gaming {
  background:
    url("/assets/bg-gaming.png") center/cover fixed no-repeat;
}

body.theme-streaming {
  background:
    url("/assets/bg-streaming.png") center/cover fixed no-repeat;
}

body.theme-browsing {
  background:
    url("/assets/bg-browsing.png") center/cover fixed no-repeat;
}

/* ====== HCG-Battlefield-Style für Buttons & Nav ====== */

/* 1) Bereichs-Navigation 1 / 2 / 3 */
.section-nav-item,
.section-nav-item:link,
.section-nav-item:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.9rem;
  border-radius: 3px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(3, 7, 18, 0.9);
  color: #e5e7eb;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.9);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.section-nav-item .section-nav-index {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 2px;
  background: #020617;
  border: 1px solid rgba(148,163,184,0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.78rem;
  color: #e5e7eb;
}

.section-nav-item .section-nav-label {
  font-weight: 500;
}

/* Hover: leichter Cyan-Glow */
.section-nav-item:hover {
  border-color: #0ea5e9;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 0 0 1px rgba(14,165,233,0.45);
}

/* Aktiv: Orange-Akzent + unterer Notch */
.section-nav-item.active {
  position: relative;
  background: rgba(15,23,42,0.95);
  border-color: #f97316;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 0 0 1px rgba(249,115,22,0.65);
}

.section-nav-item.active::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #facc15);
  border-radius: 999px;
}

/* 2) Profil-Buttons (Gaming / Streaming / Surfen) */
.profile-btn {
  border-radius: 3px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(3, 7, 18, 0.9);
  color: #e5e7eb;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.9);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.profile-btn:hover {
  border-color: #0ea5e9;
  box-shadow:
    inset 0 0 0 1px rgba(15,23,42,0.9),
    0 0 0 1px rgba(14,165,233,0.45);
}

.profile-btn.active {
  background: rgba(15,23,42,0.98);
  border-color: #f97316;
  color: #fefce8;
  box-shadow:
    inset 0 0 0 1px rgba(15,23,42,1),
    0 0 0 1px rgba(249,115,22,0.6);
}

/* 3) Funktions-Buttons (Start / Stop) */
button#idle-start,
button#burst-start,
button#dl-start,
button#ul-start,
button#bb-start,
button#mon-toggle {
  border-radius: 2px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(3, 7, 18, 0.9);
  color: #e5e7eb;
  padding: 0.28rem 0.9rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.9);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

button#idle-start:hover,
button#bb-start:hover,
button#dl-start:hover,
button#ul-start:hover,
button#mon-toggle:hover {
  border-color: #0ea5e9;
  box-shadow:
    inset 0 0 0 1px rgba(15,23,42,0.9),
    0 0 0 1px rgba(14,165,233,0.45);
}

button#mon-toggle[data-state="running"],
button#mon-toggle.running {
  border-color: #f97316;
  color: #fed7aa;
}

/* ===== Typo allgemein etwas größer machen ===== */

body {
  font-size: 18px;          /* vorher ~16px */
  line-height: 1.6;
}

.header h1 {
  font-size: 2.1rem;        /* Titel oben */
}

.section-block h2 {
  font-size: 1.35rem;       /* "1. Kurzdiagnose" etc. */
}

.card h3,
.subcard-header h3 {
  font-size: 1.15rem;       /* Kartentitel: Idle, Bufferbloat, Live-Monitor */
}

.section-subtitle {
  font-size: 0.98rem;
}

.bb-status p,
.eval-box,
.download-list a,
.section-block p {
  font-size: 0.98rem;
}

/* Navi + Profil + Buttons etwas größer */

.section-nav-item,
.section-nav-item .section-nav-label {
  font-size: 0.9rem;
}

.section-nav-item .section-nav-index {
  font-size: 0.82rem;
}

.profile-label,
.profile-active-hint {
  font-size: 0.95rem;
}

.profile-btn {
  font-size: 0.9rem;
}

button#idle-start,
button#bb-start,
button#dl-start,
button#ul-start,
button#mon-toggle,
button#burst-start {
  font-size: 0.9rem;
}

/* Messwerte leicht betonen */

.metric-value {
  font-size: 1rem;
  font-weight: 600;
}

/* Timer/Text beim Idle-Test */

.idle-timer-label {
  font-size: 0.95rem;
}

html,
body {
  min-height: 100%;
}

body {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Export-Buttons wie Preset-Auswahl */

.export-row {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.export-btn {
  border-radius: 3px;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(3, 7, 18, 0.9);
  color: #e5e7eb;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.9);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.export-btn:hover:not(:disabled) {
  border-color: #0ea5e9;
  box-shadow:
    inset 0 0 0 1px rgba(15,23,42,0.9),
    0 0 0 1px rgba(14,165,233,0.45);
}

.export-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.dl-hint {
  margin-top: 0.9rem;
  border-top: 1px solid rgba(148,163,184,0.25);
  padding-top: 0.7rem;
  font-size: 0.95rem;
  color: #9ca3af;
}

.dl-hint p {
  margin: 0 0 0.45rem;
}

.dl-examples {
  list-style: none;
  margin: 0 0 0.4rem;
  padding-left: 0;
}

.dl-examples li {
  margin: 0.05rem 0;
}

.dl-examples-title {
  margin-top: 0.4rem;
  font-weight: 600;
}

.dl-note {
  font-size: 0.85rem;
  color: #6b7280;
}

/* ===== Profil-Infobox unterhalb des Contents ===== */

.profile-info-box {
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  border: 1px solid rgba(148,163,184,0.45);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.08), transparent 55%),
              radial-gradient(circle at bottom right, rgba(249,115,22,0.08), transparent 55%),
              rgba(3,7,18,0.96);
  font-size: 0.95rem;
  color: #e5e7eb;
}

.profile-info-header {
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.45rem;
  color: #f9fafb;
}

.profile-info-box p {
  margin: 0 0 0.4rem;
}

.profile-info-list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  font-size: 0.92rem;
}

.profile-info-list li {
  margin: 0.15rem 0;
}

/* Farbbadges */

.metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0 0.45rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.metric-chip.metric-good {
  border-color: #22c55e;
  color: #bbf7d0;
}

.metric-chip.metric-ok {
  border-color: #eab308;
  color: #fef9c3;
}

.metric-chip.metric-warn {
  border-color: #f97316;
  color: #fed7aa;
}

.metric-chip.metric-bad {
  border-color: #ef4444;
  color: #fecaca;
}

.metric-chip.metric-info {
  border-color: #0ea5e9;
  color: #bae6fd;
}

/* === Profil-Infobox kompakter & größer === */

.profile-info-box {
  margin-top: 1.0rem;
  padding: 0.85rem 1.0rem;
  border-radius: 4px;
  border: 1px solid rgba(148,163,184,0.45);
  background: rgba(3, 7, 18, 0.94);
  font-size: 1.02rem;
  color: #e5e7eb;
}

.profile-info-header {
  font-size: 1.05rem;
}

.profile-info-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.98rem;
}

.profile-info-list li {
  margin: 0.2rem 0;
}

/* Chips bleiben, Schrift darf minimal größer wirken */
.metric-chip {
  font-size: 0.8rem;
}

/* === Cards ohne bunte Gradients, nur dunkler, transparenter Block === */

.card,
.card-bb,
.card-mon,
.card-dl {
  background: rgba(3, 7, 18, 0.94);       /* dunkles, leicht transparentes Panel */
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

/* === TOS-Infobox auf der Startseite === */

.tos-info-box {
  margin-top: 1.4rem;
  padding: 1.0rem 1.2rem;
  border-radius: 4px;
  border: 1px solid rgba(148,163,184,0.45);
  background: rgba(3, 7, 18, 0.94);
  font-size: 1.0rem;
  color: #e5e7eb;
}

.tos-info-box h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.tos-info-box p {
  margin: 0 0 0.5rem;
}

.latency-info {
  color: #2fb3ff;           /* Blau wie gewünscht */
  margin-top: 0.75rem;
  line-height: 1.5;
}
