:root {
  /* Palette */
  --blue: #1388b5;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #e74c3c;
  --orange: #fd7e14;
  --yellow: #f39c12;
  --green: #00bc8c;
  --teal: #20c997;
  --cyan: #3498db;
  --white: #fff;
  --gray: #999;
  --gray-dark: #303030;

  /* Brand */
  --primary: #b53533;
  --secondary: #f0f0f0;
  --success: #28b62c;
  --info: #6f42c1;
  --warning: #ff851b;
  --danger: #ff4136;
  --light: #f6f6f6;
  --dark: #555;

  /* Layout */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 1100px;
  --container-xl: 1300px;

  /* Typography */
  --font-family-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Explorer (Dark defaults; Glas überschreibt unten) */
  --explorer-surface: rgba(20, 24, 32, 0.9);
  --explorer-surface-elevated: rgba(28, 34, 46, 0.9);
  --explorer-surface-contrast: rgba(255, 255, 255, 0.08);
  --explorer-outline: rgba(255, 255, 255, 0.12);
  --explorer-outline-strong: rgba(255, 255, 255, 0.18);
  --explorer-accent: #7cc9ff;
  --explorer-accent-strong: #a9e2ff;
  --explorer-warning: #ffd08a;
  --explorer-danger: #ff8a8a;
  --explorer-success: #8ff0c2;
  --explorer-text-main: rgba(255, 255, 255, 0.95);
  --explorer-text-soft: rgba(255, 255, 255, 0.7);

  /* Misc (alte Custom-Variablen konsolidiert) */
  --bgcolor: #222222;
  --bgrepeat: no-repeat;
  --navcolor: #89b560;
  --navopa: 0.96;
  --navcolstrength: 70%;
  --navborder: 1;
  --navbdcol1: #bebf57;
  --navbdcol2: #b76c40;
  --inverttime: 1.5s;

  /* Farbslots 1..11 (falls genutzt) */
  --1: #fff636;
  --2: #df0101;
  --3: #01df01;
  --4: #1e90ff;
  --5: #8904b1;
  --6: #c0c0c0;
  --7: #ff8800;
  --8: #2d803f;
  --9: #000000;
  --10: #ff69b4;
  --11: #c70039;
}

/* =========================================
   2) RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font-family: var(--font-family-sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  padding-top: 100px;           /* Space for fixed navbar */
  overflow-y: scroll;
  background: linear-gradient(135deg, #01060f 0%, #041223 35%, #052030 70%, #020c18 100%) fixed;
}
main { padding-bottom: 170px; }
footer, header, main, nav, section { display: block; }
img, svg { vertical-align: middle; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, [type="button"], [type="submit"] { appearance: button; -webkit-appearance: button; cursor: pointer; }

/* Links (einheitlich) */
a {
  color: var(--explorer-accent);
  text-decoration: none;
  background-color: transparent;
  transition: color .15s ease;
}
a:hover, a:focus { color: var(--explorer-accent-strong); text-decoration: underline; }

/* Headings */
h1, h2, h4, h5, .h4, .h5 {
  margin: 0 0 .5rem 0;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: none;
}
h1 { font-size: 2.1875rem; }
h2 { font-size: 1.75rem; }
.h4, h4 { font-size: 1.3125rem; }
.h5, h5 { font-size: 1.09375rem; }
small, .small { font-size: 0.875em; font-weight: 400; }

/* =========================================
   3) GRID / LAYOUT
   ========================================= */
.container, .container-fluid {
  width: 100%; padding: 0 15px; margin: 0 auto;
}
@media (min-width: 576px) { .container { max-width: var(--container-sm); } }
@media (min-width: 768px) { .container { max-width: var(--container-md); } }
@media (min-width: 992px) { .container { max-width: var(--container-lg); } }
@media (min-width: 1200px){ .container { max-width: var(--container-xl); } }

.row {
  display: flex; flex-wrap: wrap;
  margin-right: -15px; margin-left: -15px;
}
.col, .col-12, .col-sm-6, .col-md-6, .col-lg-3, .col-lg-4 {
  position: relative; width: 100%; padding: 0 15px;
}
.col { flex: 1 0 0%; max-width: 100%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 576px){ .col-sm-6 { flex: 0 0 50%; max-width: 50%; } }
@media (min-width: 768px){ .col-md-6 { flex: 0 0 50%; max-width: 50%; } }
@media (min-width: 992px){
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .row-cols-lg-5 > * { flex: 0 0 20%; max-width: 20%; }
}

/* =========================================
   4) TABLES
   ========================================= */
.table {
  width: 100%; margin-bottom: 1rem;
  color: var(--explorer-text-main);
  background: var(--explorer-surface-elevated);
  border: 1px solid var(--explorer-outline);
  border-radius: .95rem;
  overflow: hidden;
}
.table th, .table td {
  padding: .75rem; vertical-align: top;
  border-top: 1px solid var(--explorer-outline);
}
.table thead th {
  vertical-align: bottom;
  color: var(--explorer-text-soft);
  background: rgba(255,255,255,.03);
  border-bottom: 2px solid var(--explorer-outline);
}
.table tbody + tbody { border-top: 2px solid var(--explorer-outline); }
.table-sm th, .table-sm td { padding: .3rem; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255,255,255,.02); }
.table-hover tbody tr:hover { background-color: rgba(255,255,255,.06); }

/* Dunkle Variante */
.table-dark { color: #fff; background-color: #303030; }
.table-dark th, .table-dark td, .table-dark thead th { border-color: #434343; }
.table-dark.table-striped tbody tr:nth-of-type(odd){ background-color: rgba(255,255,255,.05); }
.table-dark.table-hover tbody tr:hover{ background-color: rgba(255,255,255,.075); }

/* =========================================
   5) FORMS
   ========================================= */
.form-group { margin-bottom: 1rem; }
.form-check-input {
  position: absolute; margin-top: .3rem; margin-left: 0 !important;
}
.form-control {
  display: block; width: 100%;
  height: calc(1.5em + .75rem + 2px);
  padding: .375rem .75rem;
  font-size: .875rem;
  color: var(--explorer-text-main);
  background-color: rgba(255,255,255,.04);
  border: 1px solid var(--explorer-outline);
  border-radius: .75rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out, background-color .15s ease-in-out;
}
.form-control::placeholder { color: var(--explorer-text-soft); opacity: 1; }
.form-control:focus {
  border-color: var(--explorer-accent);
  box-shadow: 0 0 0 .2rem rgba(122,140,255,.22);
  background-color: rgba(255,255,255,.06);
  outline: 0;
}
.form-control:disabled { background-color: #ebebeb; opacity: 1; }
.form-control-sm {
  height: calc(1.5em + .5rem + 2px);
  padding: .25rem .5rem; font-size: .765625rem; border-radius: .2rem;
}

/* =========================================
   6) BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: .375rem .75rem;
  font-size: .75rem;
  line-height: 1.2rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  color: var(--explorer-text-main);
  background: rgba(255,255,255,.08);
  transition: all .15s ease;
  text-transform: uppercase;
}
.btn:hover { text-decoration: none; }
.btn:focus { outline: 0; box-shadow: 0 0 0 .2rem rgba(122,140,255,.25); }
.btn.disabled, .btn:disabled { opacity: .65; cursor: default; }
.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: .5rem; }
.btn-sm { padding: .25rem .5rem; font-size: .65rem; border-radius: .2rem; }

/* Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--explorer-accent), var(--explorer-accent-strong));
  border: none;
  box-shadow: 0 18px 36px rgba(92,115,255,.28);
  color: var(--explorer-text-main);
}
.btn-primary:hover, .btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(92,115,255,.34);
}

.btn-info {
  background: var(--info);
  border-color: var(--info);
  color: #fff;
}
.btn-warning {
  background: var(--warning);
  border-color: var(--warning);
  color: #fff;
}
.btn-danger {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  border: none;
  box-shadow: 0 18px 34px rgba(255,75,90,.28);
  color: #fff;
}
.btn-danger:hover, .btn-danger:focus {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(255,75,90,.34);
}
.btn-light {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: var(--explorer-text-main);
}
.btn-light:hover, .btn-light:focus {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.26);
}

/* Button Group */
.btn-group { position: relative; display: inline-flex; vertical-align: middle; }
.btn-group > .btn { position: relative; flex: 1 1 auto; }
.btn-group > .btn:hover,
.btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active { z-index: 1; }
.btn-group > .btn:not(:first-child) { margin-left: -1px; }
.btn-group > .btn-group:not(:last-child) > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group > .btn:not(:first-child),
.btn-group > .btn-group:not(:first-child) > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* =========================================
   7) NAVIGATION / NAVBAR
   ========================================= */
.nav { display: flex; flex-wrap: wrap; list-style: none; padding-left: 0; margin-bottom: 0; }
.nav-link { display: block; padding: .5rem 2rem; font-weight: 400; white-space: nowrap; }
.nav-link:hover, .nav-link:focus { text-decoration: none; }
.nav-link.disabled { color: #adb5bd; pointer-events: none; cursor: default; }

.nav-pills .nav-link {
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--explorer-text-soft);
  border: 1px solid transparent;
  transition: all .2s ease;
}
.nav-pills .nav-link:hover { color: var(--explorer-text-main); }
.nav-pills .nav-link.active {
  color: var(--explorer-text-main);
  background: linear-gradient(135deg, var(--explorer-accent), var(--explorer-accent-strong));
  border-color: transparent;
  box-shadow: 0 18px 32px rgba(92,115,255,.28);
}

.navbar {
  position: relative; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  padding: 10px 1rem;
  animation: navbarReady 1ms;
}
@keyframes navbarReady { from { opacity: 1; } to { opacity: 1; } }

.navbar > .container, .navbar > .container-fluid {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
}
.navbar-brand {
  display: block;
  width: 200px; height: 40px;
  padding: .3359375rem 0;
  margin-right: 1rem;
  background-size: contain;
  background-repeat: no-repeat;
  font-size: 0;
  filter: invert(0);
  transition: var(--inverttime);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.navbar-toggler {
  padding: .25rem .75rem;
  font-size: 1.09375rem; line-height: 1;
  background: transparent; border: 1px solid transparent; border-radius: .65rem;
}
.navbar-toggler:hover, .navbar-toggler:focus { text-decoration: none; }

.navbar-dark .navbar-brand { color: var(--explorer-text-main); font-weight: 600; letter-spacing: .03em; }
.navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus { color: var(--explorer-accent); }
.navbar-dark .navbar-nav .nav-link {
  color: var(--explorer-text-soft);
  transition: color .2s ease;
}
.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus { color: var(--explorer-text-main); }
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--explorer-text-main);
  position: relative;
}
.navbar-dark .navbar-nav .nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.35rem; height: 2px;
  background: linear-gradient(135deg, var(--explorer-accent), var(--explorer-accent-strong));
  border-radius: 999px;
}
.navbar-dark .navbar-toggler { border-color: rgba(255,255,255,.16); }
.navbar-dark .navbar-toggler:hover, .navbar-dark .navbar-toggler:focus { border-color: rgba(255,255,255,.28); }
.navbar-dark .navbar-toggler-icon {
  display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle;
  background: 50%/100% 100% no-repeat;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.35));
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; }
@media (max-width: 991.98px) {
  .navbar { overflow: auto; max-height: 85vh; align-items: flex-start; }
}
@media (min-width: 992px) {
  .navbar-expand-lg { flex-flow: row nowrap; justify-content: flex-start; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; }
  .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { flex-wrap: nowrap; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-expand-lg .navbar-toggler { display: none; }
}

/* =========================================
   8) CARDS, BREADCRUMB, BADGES
   ========================================= */
.card {
  position: relative; display: flex; flex-direction: column;
  min-width: 0;
  background: var(--explorer-surface);
  color: var(--explorer-text-main);
  border: 1px solid var(--explorer-outline);
  border-radius: 1.1rem;
  box-shadow: 0 24px 52px rgba(5,8,17,.42);
  overflow: hidden;
}
.card-header {
  padding: .75rem 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  border-bottom: 1px solid var(--explorer-outline);
}
.card-body { flex: 1 1 auto; min-height: 1px; padding: 1.25rem; background: var(--explorer-surface-elevated); }

.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .35rem;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--explorer-outline);
  border-radius: .75rem;
  list-style: none;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: var(--explorer-text-main);
}
.breadcrumb-item + .breadcrumb-item { padding-left: 0; }
.breadcrumb-item + .breadcrumb-item::before {
  float: none;
  padding-right: .35rem;
  color: var(--explorer-text-soft);
  content: "/";
}
.breadcrumb-item a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
  color: #fff;
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: var(--explorer-text-soft);
}

.badge {
  display: inline-block; padding: .3rem .6rem;
  font-size: 75%; font-weight: 700; line-height: 1;
  text-align: center; white-space: nowrap; vertical-align: baseline;
  border-radius: 999px; transition: all .15s ease;
}
.badge-warning { color: #fff; background-color: var(--warning); }

/* =========================================
   9) ALERTS & PROGRESS
   ========================================= */
.alert {
  position: relative; padding: .75rem 1.25rem; margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0); border-radius: .85rem;
  color: var(--explorer-text-main);
  background: rgba(255,255,255,.12);
}
.alert-warning {
  background: rgba(255,179,71,.12);
  border-color: rgba(255,179,71,.28);
  color: #ffe0b3;
}
.alert-danger {
  background: rgba(255,107,107,.14);
  border-color: rgba(255,107,107,.3);
  color: #ffd7d7;
}

.progress {
  display: flex; height: 1rem; overflow: hidden;
  font-size: .65625rem; line-height: 0;
  background-color: rgba(255,255,255,.06);
  border-radius: 999px;
}
.progress-bar {
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; text-align: center; white-space: nowrap;
  background: linear-gradient(135deg, var(--explorer-accent), var(--explorer-accent-strong));
  box-shadow: 0 8px 18px rgba(92,115,255,.3);
  transition: width .6s ease;
}

/* =========================================
   10) UTILITIES
   ========================================= */
.bg-secondary { background-color: var(--secondary) !important; color: #000 !important; }
.bg-info { background-color: var(--info) !important; }
.bg-transparent { background-color: transparent !important; }

.border-top, footer { border-top: 1px solid #303030 !important; }
.border-0 { border: 0 !important; }
.border-secondary { border-color: #000 !important; }

.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-1 { flex-grow: 1 !important; }

.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-stretch { align-items: stretch !important; }
@media (min-width: 768px) {
  .flex-md-row { flex-direction: row !important; }
  .align-items-md-end { align-items: flex-end !important; }
  .align-items-md-center { align-items: center !important; }
}
@media (min-width: 992px) {
  .flex-lg-row { flex-direction: row !important; }
  .justify-content-lg-end { justify-content: flex-end !important; }
}

.position-static { position: static !important; }
.fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }
@supports (position: sticky) { .sticky-top { position: sticky; top: 0; z-index: 1020; } }

.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }

.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.h-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }

.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.ml-2 { margin-left: .5rem !important; }
.mr-auto { margin-right: auto !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: .5rem !important; }
.p-4 { padding: 1.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }

.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
@media (min-width: 768px) { .text-md-right { text-align: right !important; } }

.text-uppercase { text-transform: uppercase !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-light { color: var(--light) !important; }
.text-muted { color: var(--explorer-text-soft) !important; }

footer { margin: 3rem 0 !important; display: flex; flex-wrap: wrap; }

/* =========================================
   11) ANIMATIONS (genutzt von Progress/Shake)
   ========================================= */
@keyframes progress-bar-stripes { from { background-position: 1rem 0; } to { background-position: 0 0; } }
@keyframes spinner-border { to { transform: rotate(360deg); } }
@keyframes spinner-grow { 0% { transform: scale(0); } 50% { opacity: 1; transform: none; } }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d( 2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d( 4px, 0, 0); }
}

/* =========================================
   12) PRINT
   ========================================= */
@media print {
  *, *::before, *::after { text-shadow: none !important; box-shadow: none !important; }
  a:not(.btn) { text-decoration: underline; color: #000 !important; }
  tr { page-break-inside: avoid; }
  p, h2 { orphans: 3; widows: 3; }
  h2 { page-break-after: avoid; }
  @page { size: a3; }
  body, .container { min-width: 992px !important; }
  .navbar { display: none; }
  .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; border: none !important; }
  .table { border-collapse: collapse !important; }
  .table td, .table th { background-color: #fff !important; }
  .table-dark { color: inherit; }
  .table-dark th, .table-dark td, .table-dark thead th, .table-dark tbody + tbody { border-color: #444; }
}

/* =========================================
   13) THEME: GLASS (helle Liquid-Glass-Optik)
   Nur Variablen + spezifische Glasflächen.
   ========================================= */
body.glass-theme {
  --explorer-surface: rgba(255, 255, 255, 0.38);
  --explorer-surface-elevated: rgba(255, 255, 255, 0.48);
  --explorer-surface-contrast: rgba(255, 255, 255, 0.16);
  --explorer-outline: rgba(144, 198, 255, 0.4);
  --explorer-outline-strong: rgba(124, 184, 245, 0.48);
  --explorer-accent: #63c7ff;
  --explorer-accent-strong: #83def7;
  --explorer-warning: #ffc977;
  --explorer-danger: #ff6f66;
  --explorer-success: #76eabc;
  --explorer-text-main: rgba(16, 42, 58, 0.95);
  --explorer-text-soft: rgba(16, 42, 58, 0.68);

  position: relative; min-height: 100vh;
  background:
    radial-gradient(160% 160% at 20% -24%, rgba(108, 194, 255, 0.38), transparent 58%),
    radial-gradient(140% 150% at 82% -14%, rgba(64, 170, 186, 0.32), transparent 58%),
    radial-gradient(150% 140% at 12% 118%, rgba(78, 150, 188, 0.3), transparent 72%),
    linear-gradient(135deg, #02070f 0%, #051527 35%, #082134 70%, #041421 100%);
  background-attachment: fixed;
  color: var(--explorer-text-main);
}

/* Glas-Container (Navbar / Footer) */
.glass-navbar, .glass-footer {
  background:
    radial-gradient(120% 140% at 8% -20%, rgba(180, 232, 255, 0.48), transparent 70%),
    radial-gradient(120% 140% at 96% -10%, rgba(120, 224, 210, 0.32), transparent 64%),
    var(--explorer-surface);
  border: 1px solid rgba(156, 204, 255, 0.4);
  box-shadow: 0 32px 74px rgba(8, 22, 32, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glass-navbar {
  border-radius: 0 0 1.2rem 1.2rem;
  border-top: none; border-left: none; border-right: none;
}
.glass-navbar .navbar-brand,
.glass-navbar .navbar-nav .nav-link,
.glass-navbar .navbar-text,
.glass-navbar .navbar-toggler { color: rgba(236,245,255,.9); }
.glass-navbar .navbar-nav .nav-link:hover,
.glass-navbar .navbar-nav .nav-link:focus,
.glass-navbar .navbar-nav .nav-link.active { color: #fff; }
.glass-navbar .navbar-toggler { border-color: rgba(236,245,255,.4); }

.glass-footer {
  border-radius: 1.2rem 1.2rem 0 0;
  border-bottom: none; border-left: none; border-right: none;
  box-shadow: 0 -24px 64px rgba(6,18,30,.38);
  padding: 1rem 0; margin-top: auto;
  color: rgba(236,245,255,.82);
}
.glass-footer small { color: inherit; }

/* Glas-Surfaces / Cards */
.glass-surface,
.glass-card {
  position: relative;
  color: var(--explorer-text-main);
  border-radius: 1.3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  border: 1px solid rgba(156, 204, 255, 0.36);
  box-shadow: 0 34px 82px rgba(8, 24, 34, 0.32);
  background:
    radial-gradient(120% 140% at 8% -20%, rgba(180, 232, 255, 0.48), transparent 70%),
    radial-gradient(120% 140% at 96% -10%, rgba(120, 224, 210, 0.32), transparent 64%),
    var(--explorer-surface);
}
.glass-card::before,
.glass-surface::before {
  content: "";
  position: absolute; inset: .16rem;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none; mix-blend-mode: screen; z-index: 1;
}
.glass-card .card-header, .glass-card .card-body {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.14);
  border-color: transparent;
  color: var(--explorer-text-main);
}
.glass-card .card-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(156, 204, 255, .28);
}

/* Glas-Tabellen/Formen */
.glass-theme .table {
  background: rgba(210,232,255,.32);
  border: 1px solid rgba(156,204,255,.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--explorer-text-main);
}
.glass-theme .table thead { background: rgba(255,255,255,.22); color: var(--explorer-text-soft); }
.glass-theme .table thead th { border-color: rgba(156,204,255,.28); font-weight: 600; }
.glass-theme .table td, .glass-theme .table th { border-color: rgba(156,204,255,.2); }
.glass-theme .table tbody tr { background: rgba(224,240,255,.24); transition: background .18s ease; }
.glass-theme .table tbody tr:nth-of-type(odd) { background: rgba(232,244,255,.2); }
.glass-theme .table tbody tr:hover { background: rgba(202,232,255,.34); }

.glass-theme .form-control {
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(156,204,255,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.glass-theme .form-control::placeholder { color: rgba(16,42,58,.45); }
.glass-theme .form-control:focus {
  border-color: rgba(128,188,255,.68);
  box-shadow: 0 0 0 .2rem rgba(98,172,255,.28);
  background: rgba(255,255,255,.32);
}
.glass-theme .alert {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(156,204,255,.3);
  background: rgba(255,255,255,.2);
}
.glass-theme .progress {
  background: rgba(255,255,255,.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass-theme .progress-bar {
  background: linear-gradient(135deg, rgba(128,214,255,.92), rgba(94,214,206,.82));
  box-shadow: 0 16px 40px rgba(88,188,222,.45);
}

/* =========================================
   Statistik-Dashboard
   ========================================= */
#statisticsPage .stat-intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.6rem 2rem 1.4rem;
  border-radius: 1.35rem;
}
#statisticsPage .stat-intro-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
}
#statisticsPage .stat-intro-header .display-5 {
  font-size: 2.25rem;
}
#statisticsPage .stat-last-update {
  margin-left: auto;
  white-space: nowrap;
  color: rgba(236,245,255,.68);
}
#statisticsPage .stat-intro-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
#statisticsPage .stat-range {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
}
#statisticsPage .stat-range .nav-link {
  padding-inline: 1.1rem;
  padding-block: .55rem;
  border-radius: 999px;
  font-weight: 600;
}
#statisticsPage .stat-overview {
  margin-bottom: 1.5rem;
}
#statisticsPage .stat-overview .stat-summary .card-header {
  padding: 0 0 .65rem;
}
#statisticsPage .stat-overview .stat-summary .card-body {
  padding: .65rem 0 0;
}
#statisticsPage .stat-summary-header {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
#statisticsPage .stat-eyebrow {
  letter-spacing: .18em;
}
#statisticsPage .stat-summary-grid {
  margin: 0;
  display: grid;
  gap: .75rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
#statisticsPage .stat-summary-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
#statisticsPage .stat-summary-item dt {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(236,245,255,.7);
}
#statisticsPage .stat-summary-item dd {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--explorer-text-main);
  font-variant-numeric: tabular-nums;
}
#statisticsPage .stat-summary .text-muted.small {
  color: rgba(236,245,255,.58) !important;
}
#statisticsPage .stat-overview-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
#statisticsPage .stat-grid {
  display: grid;
  gap: 1.15rem;
}
#statisticsPage .stat-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
#statisticsPage .stat-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
#statisticsPage .stat-card {
  min-height: 100%;
}
#statisticsPage .stat-card-tight .card-header {
  padding: 0.85rem 1.1rem 0.55rem;
}
#statisticsPage .stat-card-tight .card-body {
  padding: 0.65rem 1.1rem 0.85rem;
}
#statisticsPage .stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
#statisticsPage .stat-card-header > div {
  flex: 1 1 220px;
  min-width: 0;
}
#statisticsPage .stat-card-header p {
  margin-top: .35rem;
  color: rgba(236,245,255,.62);
}
#statisticsPage .stat-card-tools {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#statisticsPage .stat-card-tools .btn-group {
  flex-wrap: nowrap;
}
#statisticsPage .stat-card-tools .btn-group .btn {
  border-radius: 999px;
}
#statisticsPage .stat-card-fluid .table-responsive {
  border-radius: 0 0 1.2rem 1.2rem;
}
#statisticsPage .stat-pagination {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .25rem .45rem;
}
#statisticsPage .stat-pagination .btn {
  padding: .35rem .65rem;
  min-width: 2.15rem;
}
#statisticsPage .stat-pagination .btn.disabled {
  pointer-events: none;
}
#statisticsPage .stat-search {
  min-width: 220px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(156,204,255,.32);
  color: var(--explorer-text-main);
}
#statisticsPage .stat-search::placeholder {
  color: rgba(18,46,64,.52);
}
#statisticsPage .stat-card .card-body {
  position: relative;
}
#statisticsPage .stat-chart-canvas {
  width: 100%;
  min-height: 200px;
}
#statisticsPage .stat-table-wrap {
  max-width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(126,188,255,.68) rgba(16,38,58,.32);
  contain: layout paint;
}
#statisticsPage .stat-table-wrap::-webkit-scrollbar {
  width: .6rem;
}
#statisticsPage .stat-table-wrap::-webkit-scrollbar-track {
  background: rgba(10,28,40,.32);
  border-radius: 1rem;
}
#statisticsPage .stat-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(164,216,255,.82), rgba(126,188,255,.68));
  border-radius: 1rem;
}
#statisticsPage .stat-table-wrap-sm {
  max-height: 340px;
}
#statisticsPage .stat-table-wrap-lg {
  max-height: 420px;
}
#statisticsPage .stat-table-wrap table {
  min-width: 100%;
}
#statisticsPage .stat-table-wrap th,
#statisticsPage .stat-table-wrap td {
  white-space: nowrap;
}
#statisticsPage .stat-table-wrap td {
  font-variant-numeric: tabular-nums;
}
#statisticsPage .stat-card-tools .btn-light {
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(156,204,255,.32);
  color: rgba(18,52,68,.85);
}
#statisticsPage .stat-card-tools .btn-light.disabled {
  opacity: .85;
  cursor: default;
}
#statisticsPage .stat-detail .card-body {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
#statisticsPage .stat-detail-grid > div {
  background: rgba(255,255,255,.08);
  border-radius: .9rem;
  padding: .9rem;
  backdrop-filter: blur(12px);
}
#statisticsPage .stat-detail-grid span.text-muted {
  letter-spacing: .08em;
}
#statisticsPage .stat-detail-grid .fw-semibold {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1199.98px) {
  #statisticsPage .stat-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
@media (max-width: 991.98px) {
  #statisticsPage .stat-card-tools {
    margin-left: 0;
    justify-content: flex-start;
  }
  #statisticsPage .stat-card-tools .stat-search {
    flex: 1 1 100%;
    min-width: 0;
  }
  #statisticsPage .stat-card-header {
    align-items: stretch;
  }
}
@media (max-width: 767.98px) {
  #statisticsPage .stat-intro {
    padding: 1.25rem 1.1rem;
    gap: 1rem;
  }
  #statisticsPage .stat-intro-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
  }
  #statisticsPage .stat-last-update {
    text-align: left;
    margin-left: 0;
  }
  #statisticsPage .stat-intro-filters {
    flex-direction: column;
    align-items: stretch;
  }
  #statisticsPage .stat-range {
    width: 100%;
    justify-content: space-between;
  }
  #statisticsPage .stat-card-tools {
    width: 100%;
    gap: .5rem;
  }
  #statisticsPage .stat-pagination {
    width: 100%;
    justify-content: space-between;
  }
  #statisticsPage .stat-card-tools .btn-group {
    width: 100%;
    justify-content: space-between;
  }
  #statisticsPage .stat-card-tools .btn-group .btn {
    flex: 1 1 auto;
  }
}

/* =========================================
   14) FILE EXPLORER (spezifischer Bereich)
   ========================================= */
#fileExplorer {
  position: relative;
  border-radius: 1.45rem;
  background:
    radial-gradient(160% 140% at 6% -20%, rgba(206,242,255,.52), transparent 70%),
    radial-gradient(150% 150% at 95% -6%, rgba(132,226,214,.34), transparent 62%),
    rgba(255,255,255,.3);
  border: 1px solid rgba(156,204,255,.36);
  box-shadow: 0 46px 96px rgba(10,28,40,.36);
}
#fileExplorer::before {
  content: ""; position: absolute; inset: .18rem;
  border-radius: inherit; border: 1px solid rgba(255,255,255,.22);
  pointer-events: none; mix-blend-mode: screen; z-index: 2;
}
#fileExplorer::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255,255,255,.24), rgba(255,255,255,0));
  opacity: .55; pointer-events: none; z-index: 1;
}
#fileExplorer .card-header, #fileExplorer .card-body { position: relative; z-index: 3; background: transparent; }

/* Toolbar / Navigation */
#fileExplorer .explorer-toolbar,
#fileExplorer .explorer-navigation {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(156,204,255,.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 18px 34px rgba(10,32,44,.28);
  border-radius: 1.2rem;
}
#fileExplorer .explorer-toolbar { padding: 1.25rem; }
#fileExplorer .toolbar-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
#fileExplorer .toolbar-actions, #fileExplorer .toolbar-uploads { display: flex; gap: .75rem; min-width: 0; }
#fileExplorer .toolbar-uploads { width: 100%; }
#fileExplorer .toolbar-uploads .upload-action { flex: 1 1 220px; }
#fileExplorer .explorer-info { display: flex; gap: .25rem; min-width: 0; }
#fileExplorer .explorer-info > span { display: block; }
#fileExplorer .explorer-info .label {
  color: rgba(236,245,255,.78);
  letter-spacing: .12em; text-transform: uppercase;
}
#fileExplorer .toolbar-uploads .action-text { text-align: left; }
#fileExplorer .toolbar-uploads .action-text .title { white-space: nowrap; }

@media (min-width: 992px) {
  #fileExplorer .toolbar-row { align-items: center; }
  #fileExplorer .toolbar-actions, #fileExplorer .toolbar-uploads { flex-wrap: nowrap; }
  #fileExplorer .toolbar-uploads { margin-left: auto; width: auto; }
  #fileExplorer .toolbar-uploads .upload-action { flex: 0 0 auto; }
}

/* Buttons im Explorer */
#fileExplorer .btn {
  border-radius: 1.1rem;
  padding: .55rem 1.2rem;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.2);
  color: rgba(18,56,74,.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 22px 46px rgba(82,140,186,.28);
  display: inline-flex; align-items: center; gap: .4rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
#fileExplorer .btn.btn-sm { padding: .48rem 1rem; font-size: .7rem; }
#fileExplorer .btn .icon { width: 18px; height: 18px; opacity: .95; fill: currentColor; }
#fileExplorer .btn-icon-only { min-width: 2.5rem; justify-content: center; }
#fileExplorer .btn:hover, #fileExplorer .btn:focus {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 28px 54px rgba(82,140,186,.36);
}
#fileExplorer .btn.btn-danger {
  background: linear-gradient(135deg, rgba(255,112,112,.9), rgba(255,148,120,.82));
  border-color: rgba(255,192,172,.5); color: rgba(72,20,20,.92);
}
#fileExplorer .btn.btn-series {
  background: linear-gradient(135deg, rgba(172,255,216,.9), rgba(128,236,196,.8));
  border-color: rgba(196,255,226,.52); color: rgba(18,64,48,.9);
}
#fileExplorer .btn-info {
  background: linear-gradient(135deg, rgba(152,218,255,.9), rgba(122,196,255,.82));
  border-color: rgba(184,230,255,.5);
}
#fileExplorer .btn-warning {
  background: linear-gradient(135deg, rgba(255,214,166,.88), rgba(255,194,140,.8));
  border-color: rgba(255,226,194,.5); color: rgba(80,45,16,.92);
}
#fileExplorer .btn-light {
  background: linear-gradient(135deg, rgba(211,224,248,.32), rgba(182,196,226,.26));
  border-color: rgba(206,218,240,.3); color: rgba(22,64,86,.9);
}

/* Tabellen im Explorer */
#fileExplorer table thead th:first-child,
#fileExplorer table tbody td:first-child {
  text-align: right;
  padding-left: 1.1rem;
  padding-right: .75rem;
}
#fileExplorer table thead th:first-child { padding-right: .45rem; }
#fileExplorer table thead th:first-child input,
#fileExplorer table tbody td:first-child input { margin-right: 0; }

#fileExplorer tr[data-entry-type='dir'] .entry-name-dir,
#fileExplorer tr[data-entry-type='dir'] .entry-link-dir {
  color: #f4a259 !important;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

#fileExplorer .entry-link-dir:hover,
#fileExplorer .entry-link-dir:focus {
  color: #f8b37a !important;
  text-decoration: underline;
}


#fileExplorer .entry-link-dir:visited {
  color: #f4a259 !important;
}

/* =========================================
   15) LIQUID GLASS UTILITIES
   ========================================= */
.liquidGlass-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 1.35rem;
  font-weight: 600;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2), box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
  isolation: isolate;
}
.liquidGlass-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 18px 46px rgba(8, 24, 36, 0.3);
}

.liquidGlass-effect {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  filter: url(#glass-distortion);
  background:
    radial-gradient(140% 140% at -12% -26%, rgba(180, 232, 255, 0.42), transparent 70%),
    radial-gradient(120% 150% at 110% 16%, rgba(120, 224, 210, 0.28), transparent 60%),
    rgba(255, 255, 255, 0.35);
}

.liquidGlass-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.55);
  mix-blend-mode: screen;
}

.liquidGlass-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  box-shadow:
    inset 2px 2px 1px rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px rgba(255, 255, 255, 0.5);
}

.liquidGlass-text {
  position: relative;
  z-index: 3;
  padding: 1.5rem 2rem;
  font-size: 2rem;
  color: #02111d;
}

.liquidGlass-accent {
  position: absolute;
  inset: -26% 32% 58% -18%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.65), transparent 60%);
  opacity: 0.35;
  filter: blur(32px);
  pointer-events: none;
  z-index: 1;
}

/* Optional animated background helper */
body.glass-theme.liquidGlass-background {
  --liquidGlass-background-image: url("https://media.istockphoto.com/id/1430511443/vector/christmas-mistletoe-foliage-and-berries-vector-seamless-pattern.jpg?s=612x612&w=0&k=20&c=oqxlH7ytgd5yjBQroACirJ1gH7Au1tq8gmsdeGd-Crk=");
  background: var(--liquidGlass-background-image) center center / 500px repeat fixed;
  animation: moveLiquidGlassBackground 60s linear infinite;
}
body.glass-theme.liquidGlass-background.bg-liquid-orange {
  --liquidGlass-background-image: url("https://images.fineartamerica.com/images/artworkimages/mediumlarge/3/beautiful-orange-and-pastel-flowers-seamless-pattern-julien.jpg");
}
body.glass-theme.liquidGlass-background.bg-liquid-margaritas {
  --liquidGlass-background-image: url("https://static.vecteezy.com/system/resources/previews/056/652/082/non_2x/hand-drawn-white-flower-seamless-pattern-floral-repeating-wallpaper-for-textile-design-fabric-print-wrapping-paper-cute-daisy-flowers-on-blue-background-repeated-ditsy-texture-vector.jpg");
}
body.glass-theme.liquidGlass-background.bg-liquid-spring {
  --liquidGlass-background-image: url("https://img.freepik.com/free-vector/flat-floral-spring-pattern-design_23-2150117078.jpg");
}
body.glass-theme.liquidGlass-background.bg-liquid-winds {
  --liquidGlass-background-image: url("https://i.ibb.co/MDbLn4N4/vectors.png");
}
body.glass-theme.liquidGlass-background.bg-liquid-red {
  --liquidGlass-background-image: url("https://www.publicdomainpictures.net/pictures/610000/velka/seamless-floral-wallpaper-art-1715193626Gct.jpg");
}

@keyframes moveLiquidGlassBackground {
  from { background-position: 0 0; }
  to { background-position: 500px 500px; }
}

