/* Komponenten-Styles (erweiterbar)
   Hinweis: Layout (Borders/Header/Footer/Background/Content-Padding) kommt aus layout.css
*/
:root {
  color-scheme: dark;

  --fg: #e7eef7;
  --muted: #a7b3c2;

  --border: rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --pad: 16px;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

h1, h2 { margin: 0 0 12px; color: var(--fg); }
p { margin: 0 0 12px; color: var(--muted); }

/* Card / UI */
.card {
  background: rgba(18,25,38,.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--fg);
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; }
.kv div { padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.10); }
.kv div:nth-last-child(-n+2) { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.82);
  z-index: 9999;
}
.loader__box {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(18,25,38,.75);
  box-shadow: var(--shadow);
}
.spinner {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.85);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
