/* =========================================================
   Basis
   ======================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #050816, #020308 55%, #000 100%);
  color: #e5ecff;
  min-height: 100vh;
}

/* Links */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utility */

.hidden {
  display: none !important;
}

/* Buttons */

button {
  font-family: inherit;
}

/* =========================================================
   Layout / Container
   ======================================================= */

.rn-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* =========================================================
   Header / Navigation
   ======================================================= */

.rn-header {
  border-bottom: 1px solid rgba(148, 163, 255, 0.15);
  background: radial-gradient(circle at top, #050b20, #02040b 60%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.rn-nav-bar {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rn-nav-left {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.rn-logo {
  display: flex;
  flex-direction: column;
}

.rn-logo-main {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f9fbff;
}

.rn-logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8ea2ff;
}

.rn-nav-tabs-wrapper {
  display: flex;
  align-items: center;
}

.rn-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* Tabs */

.rn-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: rgba(11, 15, 40, 0.9);
  color: #dde6ff;
  cursor: pointer;
  transition: all 0.15s ease-out;
  white-space: nowrap;
}

.rn-tab:hover {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.35);
  text-decoration: none;
}

.rn-tab-active {
  border-color: #60a5fa;
  background: linear-gradient(
    120deg,
    rgba(96, 165, 250, 0.27),
    rgba(17, 24, 39, 0.95)
  );
  color: #f9fbff;
}

.rn-tab-accent {
  border-color: #38bdf8;
  color: #e0f2fe;
}

/* Dropdown in Tabs */

.rn-tab-has-menu {
  position: relative;
}

.rn-tab-has-menu:hover .rn-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(4px);
}

.rn-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  min-width: 180px;
  border-radius: 0.75rem;
  background: rgba(10, 16, 40, 0.97);
  border: 1px solid rgba(148, 163, 255, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  padding: 0.35rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
  z-index: 20;
}

.rn-dropdown-item {
  display: block;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: #e5ecff;
}

.rn-dropdown-item:hover {
  background: rgba(55, 65, 194, 0.85);
}

/* Right side (search + login) */

.rn-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rn-search {
  position: relative;
}

.rn-search input {
  padding: 0.35rem 1.7rem 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.5);
  background: rgba(5, 10, 30, 0.95);
  color: #e5ecff;
  font-size: 0.8rem;
}

.rn-search input::placeholder {
  color: #9ca3c5;
}

.rn-search-icon {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
}

.rn-login-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.9),
    rgba(59, 130, 246, 1)
  );
  color: #0b1020;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.7);
}

.rn-login-btn:hover {
  filter: brightness(1.08);
}

/* Burger (mobile, derzeit nur optisch) */

.rn-burger {
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.5);
  background: transparent;
  cursor: pointer;
}

.rn-burger span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5ecff;
}

/* =========================================================
   Hero-Banner
   ======================================================= */

.rn-hero {
  border-top: 1px solid rgba(148, 163, 255, 0.18);
  border-bottom: 1px solid rgba(148, 163, 255, 0.18);
  background: radial-gradient(circle at top, #0b173b, #050818 55%, #020309 100%);
}

.rn-hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.3rem 1.5rem 2.4rem;
}

.rn-hero-title {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.rn-hero-subtitle {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: #cbd5ff;
}

/* =========================================================
   Standard-Sektionen
   ======================================================= */

.rn-section {
  margin-top: 2rem;
}

.rn-section-dashboard {
  margin-top: 2.2rem;
}

.rn-units-title {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rn-units-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #c5ceed;
}

/* =========================================================
   Units Grid
   ======================================================= */

.rn-units-grid {
  margin-top: 2rem;
}

.rn-units-cards {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.rn-unit-card {
  position: relative;
  padding: 1rem 1rem 0.9rem;
  border-radius: 1.2rem;
  background: radial-gradient(circle at top left, #0b1126, #02030a 70%);
  border: 1px solid rgba(129, 140, 248, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.rn-unit-card h3 {
  margin: 0 0 0.35rem;
}

.rn-unit-card p {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: #cfd7ff;
}

.rn-unit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: #fff;
}

.rn-unit-badge-red {
  background: #ef4444;
}

.rn-unit-badge-blue {
  background: #3b82f6;
}

.rn-unit-badge-gold {
  background: #f59e0b;
}

.rn-unit-badge-teal {
  background: #14b8a6;
}

.rn-unit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #93c5fd;
}

/* =========================================================
   Modulkopf vor Schocktruppen
   ======================================================= */

.rn-module-header {
  margin-top: 3rem;
  padding: 1.2rem 1.5rem 1.3rem;
  border-radius: 1.3rem;
  background: radial-gradient(circle at left top, #020718, #050816 60%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.rn-module-title {
  margin: 0 0 0.3rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.rn-module-subtitle {
  margin: 0;
  color: #cdd9ff;
  font-size: 0.9rem;
}

/* =========================================================
   Panel / Karten generisch
   ======================================================= */

.panel-card {
  padding: 1.4rem 1.5rem 1.3rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at top left, #050a18, #02030a 65%);
  border: 1px solid rgba(148, 163, 255, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
}

.panel-card-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-card-header p {
  margin: 0;
  color: #c5ceed;
  font-size: 0.85rem;
}

/* Grid innerhalb eines Panels */

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  gap: 1.25rem;
}

/* Formularkram */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 0.2rem;
  color: #cbd5ff;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.48rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 255, 0.55);
  background: rgba(5, 9, 27, 0.95);
  color: #e5ecff;
  font-size: 0.85rem;
}

.form-group textarea {
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3c5;
}

.form-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 1),
    rgba(37, 99, 235, 1)
  );
  color: #f9fafb;
  box-shadow: 0 14px 22px rgba(37, 99, 235, 0.9);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 255, 0.5);
  color: #e5ecff;
}

/* Fehler & Hinweise */

.error-text {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #f97373;
}

.hint-text {
  font-size: 0.8rem;
  color: #9ca3c5;
}

/* =========================================================
   Admin: Tabellen
   ======================================================= */

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(0, 3fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

/* User-Tabelle */

.admin-users table,
.admin-logs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.admin-users thead tr th,
.admin-logs thead tr th {
  text-align: left;
  padding: 0.45rem 0.55rem;
  background: rgba(30, 64, 175, 0.95);
  color: #e5ecff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-users tbody tr,
.admin-logs tbody tr {
  background: rgba(10, 17, 40, 0.95);
}

.admin-users tbody tr:nth-child(even),
.admin-logs tbody tr:nth-child(even) {
  background: rgba(15, 23, 55, 0.9);
}

.admin-users tbody td,
.admin-logs tbody td {
  padding: 0.4rem 0.55rem;
  border-top: 1px solid rgba(55, 65, 150, 0.7);
}

.admin-users tbody tr:hover {
  background: rgba(37, 99, 235, 0.35);
  cursor: pointer;
}

/* Logs */

.admin-logs .logs-list {
  max-height: 340px;
  overflow: auto;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 255, 0.4);
}

/* Admin Formulare */

.admin-form {
  margin-top: 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(148, 163, 255, 0.4);
}

.admin-form h5 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================================================
   Auth Modal
   ======================================================= */

.auth-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
}

.auth-modal-dialog {
  position: relative;
  width: min(420px, 100% - 2rem);
  border-radius: 1.2rem;
  background: radial-gradient(circle at top left, #020617, #02020a 70%);
  border: 1px solid rgba(96, 165, 250, 0.75);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
  padding: 1.1rem 1.3rem 1.2rem;
  z-index: 10;
}

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

.auth-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-modal-close {
  border-radius: 999px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(148, 163, 255, 0.6);
  background: transparent;
  color: #e5ecff;
  cursor: pointer;
}

.auth-modal-tabs {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.35rem;
}

.auth-tab {
  flex: 1;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.6);
  background: transparent;
  color: #e5ecff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-tab-active {
  background: linear-gradient(
    120deg,
    rgba(59, 130, 246, 1),
    rgba(37, 99, 235, 0.9)
  );
  border-color: transparent;
}

.auth-modal-body {
  margin-top: 0.8rem;
}

/* =========================================================
   Schocktruppen – Neon Blue Style
   ======================================================= */

:root {
  --st-accent: #3ac8ff;
  --st-accent-soft: rgba(58, 200, 255, 0.18);
}

.st-section {
  margin-top: 2.5rem;
}

/* Hero */

.st-hero {
  position: relative;
  padding: 2.4rem 2rem 2.8rem;
  border-radius: 1.5rem;
  background: radial-gradient(circle at top left, #061226, #050813 55%, #02040a 100%);
  border: 1px solid rgba(58, 200, 255, 0.2);
  box-shadow: 0 0 40px rgba(58, 200, 255, 0.18);
  overflow: hidden;
  margin-bottom: 1.8rem;
}

.st-hero-inner {
  position: relative;
  z-index: 2;
}

.st-hero-title {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
}

.st-hero-subtitle {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9fb7ff;
}

.st-hero-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 10% -10%,
    rgba(58, 200, 255, 0.48),
    transparent 55%
  );
  opacity: 0.7;
  pointer-events: none;
}

/* Tabs */

.st-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.st-tab {
  position: relative;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(158, 182, 255, 0.4);
  background: rgba(3, 7, 25, 0.92);
  color: #d8e4ff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.st-tab:hover {
  border-color: var(--st-accent);
  box-shadow: 0 0 16px rgba(58, 200, 255, 0.35);
}

.st-tab-active {
  border-color: var(--st-accent);
  background: linear-gradient(
    120deg,
    rgba(58, 200, 255, 0.25),
    rgba(5, 13, 40, 0.98)
  );
  color: #ffffff;
}

/* Panels */

.st-panels {
  display: block;
}

.st-tab-panel {
  display: none;
}

.st-tab-panel-active {
  display: block;
}

.st-card {
  background: radial-gradient(circle at top left, #050915, #02040a 55%);
  border-radius: 1.4rem;
  border: 1px solid rgba(115, 140, 255, 0.25);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.65);
}

/* Filter / Suche */

.st-search-bar {
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(129, 140, 248, 0.6);
  background: rgba(6, 9, 30, 0.96);
}

.st-search-icon {
  font-size: 0.85rem;
}

.st-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #e5ecff;
  font-size: 0.85rem;
}

.st-search-input:focus {
  outline: none;
}

/* Filter Row */

.st-filters-row {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: flex-end;
}

.st-filter {
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
}

.st-filter label {
  margin-bottom: 0.15rem;
  color: #cbd5ff;
}

.st-filter input,
.st-filter select {
  padding: 0.38rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 255, 0.55);
  background: rgba(5, 9, 27, 0.95);
  color: #e5ecff;
  font-size: 0.82rem;
}

.st-filter-actions {
  display: flex;
  align-items: center;
}

/* Dropdowns im ST-Bereich */

.st-select {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(123, 147, 255, 0.5);
  background: rgba(5, 9, 25, 0.97);
  color: #e7eeff;
  font-size: 0.85rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #b0c8ff 50%),
    linear-gradient(135deg, #b0c8ff 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px),
    calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.st-select:focus {
  outline: none;
  border-color: var(--st-accent);
  box-shadow: 0 0 0 1px rgba(58, 200, 255, 0.45);
}

/* Cases-Grid / Karten */

.st-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.st-cases-empty {
  color: #9aa5c4;
  font-size: 0.9rem;
}

/* Einzelkarte */

.st-case-card {
  position: relative;
  padding: 1.1rem 1.25rem 1rem;
  border-radius: 1.2rem;
  background: radial-gradient(circle at top left, #070f23, #02040a 65%);
  border: 1px solid rgba(121, 146, 255, 0.35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.st-case-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(
    circle at 0 -10%,
    rgba(58, 200, 255, 0.4),
    transparent 60%
  );
  opacity: 0.55;
  pointer-events: none;
}

.st-case-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.st-case-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.st-case-tag {
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #ef4444;
  color: #fff;
}

/* Body */

.st-case-body {
  position: relative;
  z-index: 2;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #cfd7ff;
}

.st-case-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.st-case-row span:first-child {
  opacity: 0.7;
}

/* Footer */

.st-case-footer {
  position: relative;
  z-index: 2;
  margin-top: 0.7rem;
  display: flex;
  justify-content: flex-end;
}

.st-case-status {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: none;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: default;
}

.st-status-open {
  background: #ffb74d;
  color: #1f1200;
}

/* Placeholder-Tab */

.st-placeholder {
  padding: 1.6rem 1.4rem 1.2rem;
}

.st-placeholder h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st-placeholder p {
  margin: 0;
  font-size: 0.85rem;
  color: #a5b2d8;
}

/* Buttons */

.st-btn-wide {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   Responsive (Grundzüge)
   ======================================================= */

@media (max-width: 960px) {
  .panel-grid,
  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-grid {
    gap: 1rem;
  }
}

@media (max-width: 880px) {
  .rn-nav-bar {
    flex-wrap: wrap;
  }

  .rn-nav-left {
    flex-wrap: wrap;
  }

  .rn-burger {
    display: flex;
  }
}

@media (max-width: 720px) {
  .st-filters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* =========================
   ADMIN LAYOUT – FINAL FIX
   (Benutzer links, Systemprotokoll rechts – mit Abstand)
   ========================= */
.rn-section-admin .panel-grid {
  max-width: 1500px;
}

.panel-card.panel-admin {
  max-width: 1500px;
}

.panel-card.panel-admin .admin-layout{
  display: grid !important;
  grid-template-columns: minmax(560px, 1fr) minmax(560px, 1fr) !important;
  gap: 3.5rem !important;
  align-items: start !important;
}

/* rechter Block deutlich getrennt */
.panel-card.panel-admin .admin-logs{
  min-width: 0;
  padding-left: 2.75rem !important;
  margin-left: 0.5rem !important;
  border-left: 1px solid rgba(120, 180, 255, 0.22);
}

/* verhindert, dass Tabellen aus dem Grid „rausdrücken“ */
.panel-card.panel-admin .admin-users,
.panel-card.panel-admin .admin-logs{
  min-width: 0;
}

.panel-card.panel-admin .admin-users table,
.panel-card.panel-admin .admin-logs table{
  width: 100%;
}

.panel-card.panel-admin .admin-logs .logs-list{
  max-height: 520px;
  overflow: auto;
}

/* mobile: untereinander */
@media (max-width: 1200px){
  .panel-card.panel-admin .admin-layout{
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem !important;
  }
  .panel-card.panel-admin .admin-logs{
    padding-left: 0 !important;
    margin-left: 0 !important;
    border-left: none !important;
    border-top: 1px solid rgba(120, 180, 255, 0.18);
    padding-top: 1.25rem !important;
  }
}
/* =========================================================
   ADMIN – VISUAL FIX (Benutzer links / Systemprotokoll rechts)
   ========================================================= */

/* Admin-Card etwas breiter */
.rn-section-admin .panel-grid,
.panel-card.panel-admin {
  max-width: 1600px;
}

/* 2-Spalten Layout */
.panel-card.panel-admin .admin-layout{
  display: grid !important;
  grid-template-columns: minmax(620px, 1fr) minmax(520px, 0.95fr) !important;
  gap: 44px !important;
  align-items: start !important;
}

/* Beide Spalten als eigene "Cards" innerhalb der großen Card */
.panel-card.panel-admin .admin-users,
.panel-card.panel-admin .admin-logs{
  min-width: 0;
  background: rgba(2, 8, 18, 0.55);
  border: 1px solid rgba(120, 190, 255, 0.18);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 0 36px rgba(0, 150, 255, 0.08);
}

/* Entfernt die “durchgehende” Linie, die bei dir durchs Formular läuft */
.panel-card.panel-admin .admin-logs{
  border-left: 1px solid rgba(120, 190, 255, 0.18); /* bleibt dezent */
}

/* Überschriften etwas “cleaner” */
.panel-card.panel-admin .admin-users h4,
.panel-card.panel-admin .admin-logs h4{
  margin: 6px 0 14px;
  letter-spacing: .14em;
  font-weight: 700;
}

/* Tabellen: fixe Breite, keine komischen Scrollbars außen */
.panel-card.panel-admin table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

.panel-card.panel-admin thead th{
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Log-Container scrollbar nur innen */
.panel-card.panel-admin .admin-logs .logs-list{
  max-height: 520px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(120, 190, 255, 0.12);
}

/* Formulare: gleichmäßiger Abstand & Inputs nicht “zu breit” */
.panel-card.panel-admin .admin-form{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(120, 190, 255, 0.18);
}

.panel-card.panel-admin .form-grid{
  gap: 12px 14px;
}

.panel-card.panel-admin input,
.panel-card.panel-admin select{
  width: 100%;
}

/* Mobile: untereinander, ohne harte Trennlinie */
@media (max-width: 1200px){
  .panel-card.panel-admin .admin-layout{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}
/* =========================================
   ADMIN – HINTERGRUND ABHEBEN (Glass Cards)
   ========================================= */

/* Haupt-Admin-Card: etwas dunkler, damit die Unter-Cards rauskommen */
.panel-card.panel-admin{
  background: radial-gradient(1200px 600px at 20% 0%,
      rgba(0, 140, 255, 0.10),
      rgba(0, 0, 0, 0.0) 55%),
    linear-gradient(180deg,
      rgba(3, 8, 18, 0.92),
      rgba(2, 6, 16, 0.86));
  border: 1px solid rgba(120, 190, 255, 0.18);
}

/* Unter-Cards: deutlich heller/glasiger + blur */
.panel-card.panel-admin .admin-users,
.panel-card.panel-admin .admin-logs{
  background:
    radial-gradient(900px 420px at 15% 0%,
      rgba(0, 160, 255, 0.16),
      rgba(0, 0, 0, 0.0) 55%),
    linear-gradient(180deg,
      rgba(10, 18, 40, 0.78),
      rgba(6, 10, 22, 0.70));
  border: 1px solid rgba(120, 190, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 170, 255, 0.06) inset,
    0 18px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 150, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Trenner zwischen links/rechts nur dezent (keine harte Linie durchs Layout) */
.panel-card.panel-admin .admin-layout{
  position: relative;
}
.panel-card.panel-admin .admin-layout::before{
  content:"";
  position:absolute;
  top: 14px;
  bottom: 14px;
  left: calc(50% + 22px); /* sitzt im Gap-Bereich */
  width: 1px;
  background: linear-gradient(
    transparent,
    rgba(120,190,255,0.25),
    transparent
  );
  pointer-events:none;
  opacity: 0.75;
}

/* Optional: damit die Überschriften klarer wirken */
.panel-card.panel-admin .admin-users h4,
.panel-card.panel-admin .admin-logs h4{
  color: rgba(220, 245, 255, 0.95);
}

/* Mobile: Linie ausblenden */
@media (max-width: 1200px){
  .panel-card.panel-admin .admin-layout::before{
    display:none;
  }
}
.rn-login-btn-logged {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}
/* Untereinheiten Submenu */
.rn-has-submenu {
  position: relative;
}

.rn-submenu {
  display: none;
  margin-top: 8px;
  margin-left: 12px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.rn-has-submenu:hover .rn-submenu {
  display: block;
}

.rn-submenu-item {
  display: block;
  padding: 6px 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}

.rn-submenu-item:hover {
  color: #fff;
}
/* Dropdowns nicht nur per Hover steuern (wichtig für Mobile) */
.rn-tab-has-menu .rn-dropdown {
  display: none;
}

.rn-tab-has-menu.rn-open .rn-dropdown {
  display: block;
}
/* Dropdowns stabil per Klick (rn-open) statt Hover */
.rn-tab-has-menu .rn-dropdown {
  display: none !important;
}

.rn-tab-has-menu.rn-open .rn-dropdown {
  display: block !important;
}
/* ===== Submenu (Untereinheiten) ===== */
.rn-has-submenu{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  cursor: default;
}

.rn-submenu-label{
  flex: 1;
}

.rn-submenu{
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  min-width: 180px;
  border-radius: 0.75rem;
  background: rgba(10, 16, 40, 0.97);
  border: 1px solid rgba(148, 163, 255, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  padding: 0.35rem 0;

  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
  z-index: 30;
}

.rn-has-submenu:hover .rn-submenu,
.rn-has-submenu:focus-within .rn-submenu{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.rn-submenu-item{
  display: block;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: #e5ecff;
  text-decoration: none;
}

.rn-submenu-item:hover{
  background: rgba(55, 65, 194, 0.85);
}

/* Dropdown per Klick (rn-open) statt Hover */
.rn-tab-has-menu .rn-dropdown {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.rn-tab-has-menu.rn-open .rn-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(4px);
}

/* Untereinheiten Submenu per Klick */
.rn-has-submenu .rn-submenu {
  display: none;
  margin-top: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(148, 163, 255, 0.25);
}

.rn-has-submenu.rn-submenu-open .rn-submenu {
  display: block;
}

.rn-submenu-item {
  display: block;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}
/* Klickbarer Button für Untereinheiten */
.rn-submenu-toggle {
  all: unset;
  width: 100%;
  cursor: pointer;
  color: inherit;
  padding: 0.35rem 0.8rem;
  display: block;
}

.rn-submenu-toggle:hover {
  background: rgba(55, 65, 194, 0.25);
}
