/* Admin-Bereich – nutzt die Farben der Website (style.css), eigene Layout-Regeln. */
body.admin { font-size: 15px; line-height: 1.5; }
.admin-shell { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem 5rem; }

.admin-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.9rem 0; margin-bottom: 0.5rem;
  background: rgba(12,12,15,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.admin-topbar .brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; }
.admin-topbar .brand span { color: var(--accent2); }
.admin-topbar .actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.who { color: var(--muted); font-size: 0.85rem; }
.dirty-badge { font-size: 0.75rem; color: #fbbf24; border: 1px solid rgba(251,191,36,0.4); padding: 2px 10px; border-radius: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border2); background: transparent; color: var(--text);
  padding: 8px 16px; border-radius: 10px; font: inherit; font-size: 0.85rem;
  cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.btn:hover { border-color: var(--accent2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #5b52f0; }
.btn-danger { color: #fca5a5; border-color: rgba(248,113,113,0.4); }
.btn-danger:hover { border-color: #f87171; background: rgba(248,113,113,0.08); }
.btn-sm { padding: 4px 10px; font-size: 0.78rem; border-radius: 8px; }
.btn-block { width: 100%; }

.admin-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin: 1rem 0 1.5rem; overflow-x: auto; }
.admin-tabs button {
  background: none; border: none; color: var(--muted); font: inherit; font-size: 0.9rem;
  padding: 0.7rem 1rem; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button.active { color: var(--text); border-bottom-color: var(--accent2); }

.admin-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }

.panel { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.panel h2 { font-family: 'Syne', sans-serif; font-size: 1.05rem; margin-bottom: 1rem; }
.panel h3 { font-size: 0.9rem; color: var(--accent2); margin: 1.25rem 0 0.6rem; font-weight: 600; }

.form-field { margin-bottom: 0.9rem; }
.form-field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; }
input[type="text"], input[type="password"], input[type="url"], textarea, select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border2); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 0.9rem;
}
input[type="color"] { width: 100%; height: 38px; background: var(--bg); border: 1px solid var(--border2); border-radius: 8px; padding: 2px; }
textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent2); }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-bottom: 0.6rem; }
.check input { width: auto; }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

.alert { padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; margin-bottom: 1rem; }
.alert-error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.35); color: #fecaca; }
.alert-ok { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.35); color: #bbf7d0; }

/* Wiederholbare Zeilen (Links, Kennzahlen, Kategorien) */
.rep-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 0.5rem; margin-bottom: 0.5rem; align-items: center; }
.rep-row .row-actions { display: flex; gap: 4px; }

/* Service-Liste */
.item-list { display: flex; flex-direction: column; gap: 0.5rem; }
.item {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.75rem;
}
.item.selected { border-color: var(--accent2); }
.item.is-hidden { opacity: 0.55; }
.item .emoji { font-size: 1.4rem; width: 2rem; text-align: center; }
.item .info { flex: 1; min-width: 0; }
.item .info strong { display: block; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .info small { color: var(--muted); font-size: 0.75rem; }
.item .item-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Login */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { width: 100%; max-width: 380px; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.auth-card h1 { font-family: 'Syne', sans-serif; font-size: 1.4rem; margin: 0.5rem 0 0.25rem; }
.auth-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.auth-card a { color: var(--accent2); text-decoration: none; font-size: 0.85rem; }
.text-center { text-align: center; }
table.users { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.users th, table.users td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
table.users th { color: var(--muted); font-weight: 500; }
