/* admin.css – Admin-Panel Styles | patch_0440 */

/* ── Dark-Theme-Kompatibilitäts-Shim ───────────────────────
   Das öffentliche Redesign (style.css/patch0438.css/tw-local.css)
   ist auf helle Karten umgestellt. admin.php/_admin.php laden
   diese Datei zuletzt im <head> und bleiben bewusst im alten
   dunklen Glass-Theme – daher hier gezielt zurückgesetzt, ohne
   admin.php/_admin.php selbst anzufassen. ─────────────────── */
body {
  background:
    linear-gradient(rgba(10,20,30,.55), rgba(5,10,15,.75)),
    url('../img/bg-road-3400x1440.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.glass-card {
  background: rgba(7,20,37,0.92);
  box-shadow: none;
  border-radius: 0;
}
.glass-container {
  background: rgba(0,242,255,0.22);
  border-radius: 0;
}
.octagon-clip {
  clip-path: polygon(15px 0%, calc(100% - 15px) 0%, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0% calc(100% - 15px), 0% 15px);
  border-radius: 0;
}
.text-white { color: #fff; }
.text-soft { color: rgba(255,255,255,.82); }
select, option { color: #fff; background: rgba(7,20,37,.92); }

/* ── Layout ────────────────────────────────────────────── */
.admin-layout {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.admin-login {
  max-width: 420px;
  margin: 60px auto;
}

/* Sidebar + Content nebeneinander */
@media (min-width: 768px) {
  .admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* ── Sidebar ───────────────────────────────────────────── */
.admin-sidebar { position: sticky; top: 80px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.admin-nav-item {
  display: block;
  padding: 10px 12px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.admin-nav-item:hover { color: #fff; background: rgba(0,242,255,0.05); }
.admin-nav-item.active {
  color: #00f2ff;
  border-left-color: #00f2ff;
  background: rgba(0,242,255,0.08);
}
.admin-nav-meta {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Newsletter Toolbar ────────────────────────────────── */
.nl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: rgba(0,242,255,0.05);
  border: 1px solid rgba(0,242,255,0.15);
  margin-bottom: 2px;
}
.nl-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.nl-btn:hover { background: rgba(0,242,255,0.2); border-color: #00f2ff; }

/* ── Vorschau ──────────────────────────────────────────── */
.nl-preview {
  background: #fff;
  color: #222;
  padding: 20px;
  border: 1px solid rgba(0,242,255,0.2);
  max-height: 400px;
  overflow-y: auto;
}
.nl-preview h2 { font-size: 1.4rem; font-weight: bold; margin: 12px 0 8px; }
.nl-preview h3 { font-size: 1.1rem; font-weight: bold; margin: 10px 0 6px; }
.nl-preview p { margin: 8px 0; line-height: 1.6; }
.nl-preview img { max-width: 100%; height: auto; margin: 12px 0; }
.nl-preview a { color: #0bf; }
.nl-preview hr { border: none; border-top: 1px solid #ddd; margin: 16px 0; }
.hidden { display: none; }

/* ── Tabelle ───────────────────────────────────────────── */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-table th, .admin-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-table th {
  color: rgba(0,242,255,0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-inline-form { display: inline; }
.nl-send-btn {
  background: rgba(0,242,255,0.15);
  color: #00f2ff;
  border: 1px solid rgba(0,242,255,0.3);
  padding: 4px 12px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.nl-send-btn:hover { background: rgba(0,242,255,0.3); }

/* ── Upload ────────────────────────────────────────────── */
.admin-upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Mobile: Sidebar wird Top-Nav ──────────────────────── */
@media (max-width: 767px) {
  .admin-sidebar { position: static; margin-bottom: 16px; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav-item { border-left: none; border-bottom: 2px solid transparent; }
  .admin-nav-item.active { border-bottom-color: #00f2ff; border-left-color: transparent; }
}

/* ─── Statistik-Tab (Patch 0443) ─────────────────────────── */
.stats-period-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stats-period-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  background: rgba(0,191,255,0.08);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,191,255,0.2);
  cursor: pointer;
  clip-path: polygon(6px 0%,calc(100% - 6px) 0%,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0% calc(100% - 6px),0% 6px);
  transition: all 0.2s;
}
.stats-period-btn:hover,
.stats-period-btn.active {
  background: rgba(0,191,255,0.18);
  color: rgb(0,191,255);
  border-color: rgba(0,191,255,0.5);
}
.stats-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 700px) { .stats-kpi-row { grid-template-columns: repeat(2, 1fr); } }
.stats-kpi {
  background: rgba(0,242,255,0.06);
  border: 1px solid rgba(0,242,255,0.15);
  padding: 14px 16px;
  text-align: center;
}
.stats-kpi-val {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgb(0,191,255);
  line-height: 1.2;
}
.stats-kpi-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stats-chart-wrap {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,242,255,0.1);
  padding: 16px;
  margin-bottom: 20px;
}
.stats-tables-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .stats-tables-row { grid-template-columns: 1fr; } }
.stats-table-block {}
.stats-table-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  color: rgba(0,191,255,0.8);
  margin-bottom: 8px;
}

/* ══ Helles Admin-Design (passend zur Website) ═══════════════ */
body { background: #e9eef6; color: #1a2f6a; padding: 0 !important; }
body > .admin-layout, body > main, body > div:not(.lmd-nav-sticky):not(#lmd-cookie-banner) { padding-left: 16px; padding-right: 16px; }
.lmd-nav-sticky { position: sticky; top: 0; z-index: 50; margin-bottom: 24px; }
.text-white, .text-soft { color: #1a2f6a; }
.text-soft { color: #5a6a8a; }
.text-cyan-300, .text-cyan-400 { color: #22539d; }
.text-yellow-300 { color: #b36b00; }
.text-green-300 { color: #1f7a3a; }
.text-red-300, .text-red-400 { color: #b3261e; }
.glass-card { background: #fff; border: 1px solid #d5deed; box-shadow: 0 4px 18px rgba(26,47,106,.08); }
.glass-container { background: #cfdcf2; }
.octagon-clip { clip-path: none; border-radius: 12px; }
.glass-container.octagon-clip { padding: 1px; }
.heading-font { font-family: inherit; }
.admin-nav-item { color: #3b4a6b; border-radius: 6px; }
.admin-nav-item:hover { color: #1a2f6a; background: #eef2fb; }
.admin-nav-item.active { color: #1a2f6a; border-left-color: #22539d; background: #dde7f6; font-weight: 700; }
.admin-nav-meta { border-top-color: #d5deed; }
textarea, input[type=text], input[type=password], input[type=email], input[type=number], input[type=file], select {
  background: #f5f8fd !important; color: #1a2f6a !important; border: 1px solid #b8c7e0 !important; border-left: 3px solid #22539d !important; border-radius: 6px;
}
textarea::placeholder, input::placeholder { color: #8a97b3; }
textarea:focus, input:focus, select:focus { background: #fff !important; outline: 2px solid #22539d55; }
select, option { color: #1a2f6a; background: #fff; }
button.bg-white, .bg-white.text-black { background: #22539d !important; color: #fff !important; border-radius: 8px; }
button.bg-white:hover, .bg-white.text-black:hover { background: #f5a623 !important; color: #0f1d47 !important; }
.nl-toolbar { background: #eef2fb; border-color: #cdd7e8; }
.nl-btn { background: #fff; color: #1a2f6a; border-color: #b8c7e0; border-radius: 4px; }
.nl-btn:hover { background: #dde7f6; border-color: #22539d; }
.nl-send-btn { background: #eef2fb; color: #22539d; border-color: #b8c7e0; }
.nl-send-btn:hover { background: #dde7f6; }
.nl-preview { border-color: #cdd7e8; }
.admin-table th, .admin-table td { border-bottom-color: #e3e8f2; }
.admin-table th { color: #22539d; }
.stats-period-btn { font-family: inherit; background: #fff; color: #3b4a6b; border-color: #b8c7e0; clip-path: none; border-radius: 6px; }
.stats-period-btn:hover, .stats-period-btn.active { background: #22539d; color: #fff; border-color: #22539d; }
.stats-kpi { background: #f5f8fd; border-color: #d5deed; border-radius: 8px; }
.stats-kpi-val, .stats-table-title { font-family: inherit; color: #22539d; }
.stats-kpi-label { color: #5a6a8a; }
.stats-chart-wrap { background: #f5f8fd; border-color: #d5deed; border-radius: 8px; }
