/* Gemeinsames Stylesheet — branding-neutral, ein Ort (kein Inline-CSS).
   App-Titel/Branding kommen aus der Tenant-Config, nicht aus dem CSS. */

:root {
  --bg: #0f1115;
  --surface: #191c23;
  --surface-2: #21252e;
  --border: #2b303b;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #4f8cff;
  --ok: #35c46b;
  --warn: #e6a817;
  --error: #e5484d;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar .brand { font-weight: 600; font-size: 1.05rem; }
.topbar .spacer { flex: 1; }
.topbar .user { color: var(--muted); font-size: 0.9rem; margin-right: 12px; }

.container { max-width: 960px; margin: 0 auto; padding: 28px 22px; }

/* --- Login --- */
.center-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.login-card { width: 100%; max-width: 360px; }
.login-card h1 { margin: 0 0 4px; font-size: 1.3rem; }
.login-card p.sub { margin: 0 0 20px; color: var(--muted); font-size: 0.9rem; }

label { display: block; font-size: 0.85rem; color: var(--muted); margin: 12px 0 6px; }
input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}
input:focus { outline: none; border-color: var(--accent); }

button {
  margin-top: 18px;
  width: 100%;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover { filter: brightness(1.06); }
button.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  width: auto;
  margin: 0;
  padding: 7px 12px;
  font-weight: 500;
}

.error-msg { color: var(--error); font-size: 0.88rem; min-height: 1.2em; margin-top: 10px; }

/* --- Kachel-Startseite --- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.tile:hover { border-color: var(--accent); text-decoration: none; }
.tile .tile-head { display: flex; align-items: center; gap: 8px; }
.tile .title { font-weight: 600; }
.tile .subtitle { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.tile .group { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.error { background: var(--error); }

.empty {
  color: var(--muted);
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* --- Tabellen (Admin) --- */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { color: var(--muted); font-weight: 500; }
h2 { margin-top: 30px; font-size: 1.05rem; }
.muted { color: var(--muted); }
