:root {
  --bg-page: #f5f7fb;
  --bg-card: #ffffff;
  --border-soft: #e4e7f0;
  --text-main: #111827;
  --text-muted: #9ca3af;
  --primary: #2563eb;
  --primary-soft: #e0ecff;

  --positive: #166534; 
  --negative: #dc2626;
	
  --radius-lg: 18px;

  /* Bootstrap koppeln */
  --bs-body-bg: var(--bg-page);
  --bs-body-color: var(--text-main);
  --bs-card-bg: var(--bg-card);
  --bs-border-color: var(--border-soft);
  --bs-table-bg: var(--bg-card);
  --bs-table-border-color: var(--border-soft);
  --bs-primary: var(--primary);
}


      * {
        box-sizing: border-box;
      }

     body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}


      .brand-label {
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--primary);
      }

      .brand-name {
        font-weight: 600;
        font-size: 1.15rem;
      }

      .card-main {
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-soft);
        background-color: var(--bg-card);
   
      }

      .card-soft {
        border-radius: 16px;
        border: 1px solid var(--border-soft);
        background-color: var(--bg-card);
      }

      .stat-label {
        font-size: 1.00rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-muted);
      }

      .stat-value {
        font-weight: 600;
        font-size: 1.45rem;
      }

      .pill-tabs .nav-link {
        border-radius: 999px;
        padding: 0.45rem 0.9rem;
        font-size: 0.95rem;
        font-weight: 500;
        border: none;
        color: var(--text-main); 
        background-color: transparent;
      }

      .pill-tabs .nav-link.active,
.pill-tabs .nav-link.active:focus {
  background-color: var(--primary);
  color: #ffffff !important;        /* Bootstrap überstimmen */
}

      .pill-tabs .nav-link:not(.active):hover {
        background-color: rgba(148, 163, 184, 0.1);
      }

      .tab-pane {
        padding-top: 1rem;
      }

      .chart-placeholder {
        border-radius: 14px;
         background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 20%, transparent),
    color-mix(in srgb, var(--primary) 5%, transparent)
  );
  border: 1px dashed var(--border-soft);
        height: 180px;
        position: relative;
        overflow: hidden;
      }

      .chart-placeholder::before {
        content: '';
        position: absolute;
        inset: 20% 8% 16% 8%;
        border-radius: 999px;
        background: linear-gradient(
          to right,
          rgba(37, 99, 235, 0.6),
          rgba(129, 140, 248, 0.5)
        );
        opacity: 0.35;
        filter: blur(4px);
      }

      .chart-placeholder::after {
        content: 'Chart-Placeholder';
        position: absolute;
        left: 16px;
        bottom: 10px;
        font-size: 0.9rem;
        color: var(--text-muted);
      }

    .kpi-pill {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;

  background-color: var(--primary);   /* statt --primary-soft */
  color: #ffffff;                     /* statt var(--primary) */
}


      .kpi-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin-right: 6px;
      }

      .login-wrapper {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .login-card {
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background-color: var(--bg-card);
  color: var(--text-main);
  padding: 2rem 2.2rem;
}


      .form-control,
      .form-select {
        border-radius: 999px;
        border-color: var(--border-soft);
        padding-inline: 1rem;
      }

      .form-control:focus,
      .form-select:focus {
        border-color: var(--primary);
       
      }

   .btn-primary {
  border-radius: 999px;
  border: none;
  background: var(--primary);
  background-image: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 95%, #ffffff 5%),
    color-mix(in srgb, var(--primary) 80%, #000000 20%)
  );
}


      .btn-primary:hover {
        filter: brightness(1.03);
      }

      .btn-outline-light,
      .btn-outline-secondary {
        border-radius: 999px;
      }

   .fade-in {
  animation: popIn .6s ease-out;
  transform-origin: center;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: perspective(800px) rotateX(-8deg) scale(.92);
  }
  100% {
    opacity: 1;
    transform: perspective(800px) rotateX(0) scale(1);
  }
}
.login-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at top, #1e293b, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s;
}

.login-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: #fff;
  animation: loaderFade .6s ease;
}

.loader-logo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(56,189,248,.6);
  animation: pulse 1.8s infinite ease-in-out;
}

.loader-bar {
  width: 220px;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  overflow: hidden;
  margin: 24px auto 12px;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg,#38bdf8,#6366f1);
  animation: loadingBar 1.1s infinite ease-in-out;
}

.loader-content p {
  font-size: .85rem;
  opacity: .75;
}

/* Animations */
@keyframes loadingBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes loaderFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



      .badge-role {
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 0.12em;
        border-radius: 999px;
        padding: 0.2rem 0.7rem;
		  background-color: var(--primary-soft);
        color: var(--primary);
      }

      .badge-role-admin {
        background-color: var(--primary-soft);
        color: var(--primary);
      }

      .badge-role-user {
  background-color: var(--primary-soft);
  color: var(--primary);
}
.table-modern {
  background-color: transparent;
}
     .table-modern > :not(caption) > * > * {
  padding-block: 0.6rem;
  border-color: var(--border-soft);
}
.table-modern tbody tr {
  background-color: var(--bg-card);      
  color: var(--text-main);               
}


      .table-modern thead th {
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-muted);
        border-bottom-width: 1px;
      }

      .mini-label {
        font-size: 0.8rem;
        color: var(--text-muted);
      }

      .mini-value {
        font-size: 0.95rem;
        font-weight: 500;
      }
		
		.versand-toggle {
  font-size: 0.85rem;
  color: inherit;
}

.versand-toggle i {
  font-size: 0.85rem;
  margin-right: 0.4rem;
}
/* Kleine Info-Buttons mit Tooltip wie im alten Dashboard */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  cursor: default;
  position: relative;
}

.info-icon .info-tooltip {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 220px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 11px;
  line-height: 1.4;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  z-index: 100;
  white-space: normal;
}

.info-icon .info-tooltip small {
  display: block;
  opacity: 0.75;
  margin-top: 4px;
}

.info-icon:hover .info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
	
.buero-total-card {
  background-color: var(--bg-card);
}
	.volume-today {
  font-size: 38px;
  font-weight: 800;
  color: var(--negative);
  margin-bottom: 6px;
}
	.market-due-value {
  color: var(--negative);
  font-weight: 800;
  font-size: 19px;
}
.money-positive {
  color: var(--positive);
  font-weight: 800;
}
		/* Fokus-Dashboard eingebettet */
.fokus-frame-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background-color: var(--bg-card);
 
  overflow: hidden;
  min-height: 600px;
}

.fokus-frame {
  width: 100%;
  min-height: 80vh;  /* kannst du je nach Platz anpassen */
  border: none;
}
/* Retouren-Analyse */
.returns-card {
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background-color: var(--bg-card);
  padding: 0.75rem;
}

.returns-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.returns-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0;
}

.returns-toolbar input,
.returns-toolbar select {
  font-size: 0.85rem;
}

#returnsTable {
  width: 100%;
  font-size: 0.85rem;
}

#returnsTable thead th {
  font-size: 0.75rem;
}

.loader {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  border-top-color: var(--primary);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.theme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-btn {
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: .15s;
}

.theme-btn:hover {
  background: var(--primary-soft);
}

.theme-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 100px;
  display: inline-block;
  background: var(--primary);
}
.market-due-line {
  padding: 4px 0;
  border-bottom: 1px solid var(--border-soft);
}
.text-muted {
  color: var(--text-muted) !important;
}
.market-due-line:last-child {
  border-bottom: none;
}

.wiki-frame {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 12px;
}
.admin-info-card {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--bg-card) 80%, var(--primary-soft) 20%),
    var(--bg-card)
  );
}

/* Bootstrap-Tabelle an Theme koppeln */
.table.table-modern {
  /* Bootstrap 5 Table-Variablen überschreiben */
  --bs-table-bg: var(--bg-card);
  --bs-table-striped-bg: rgba(148, 163, 184, 0.05);
  --bs-table-hover-bg: rgba(148, 163, 184, 0.08);
  --bs-table-border-color: var(--border-soft);
  --bs-table-color: var(--text-main);

  background-color: var(--bg-card);
  color: var(--text-main);
}

/* Zellen erben den Hintergrund und die Border-Farbe */
.table.table-modern > :not(caption) > * > * {
  background-color: inherit;
  border-color: var(--border-soft);
}

.traffic-light {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.5);
}

.traffic-light-green {
  background: #16a34a;
}

.traffic-light-red {
  background: #dc2626;
}
.gw-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.gw-actions .btn {
  min-width: 34px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.gw-actions .btn:hover {
  transform: translateY(-1px);
}
/* ✅ Placeholder an Theme koppeln */
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1; /* wichtig für Firefox */
}

/* Für ältere Browser */
.form-control::-webkit-input-placeholder {
  color: var(--text-muted);
}
.form-control:-ms-input-placeholder {
  color: var(--text-muted);
}
/* Lagerkennzahlen: Text an Theme koppeln */
#lagerkennzahlen-weeks {
  color: var(--text-main);          /* Standardtext hell im Darkmode */
}

/* falls irgendwo explizit dunkle Farben gesetzt sind */
#lagerkennzahlen-weeks * {
  color: var(--text-main);
}

/* Wenn du innerhalb der Karten "abgestufte" Texte hast (z.B. Mo/Di/… kleiner) */
#lagerkennzahlen-weeks .mini-label,
#lagerkennzahlen-weeks small,
#lagerkennzahlen-weeks .text-muted {
  color: var(--text-muted) !important;
}
.text-dark,
.text-black,
.text-body-secondary {
  color: var(--text-main) !important;
}
/* === GLASS THEME – heller, smoother Hintergrund === */
:root[data-theme="glass"] body {
  background-color: #0f172a;
  background-image:
    radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.45) 0%,
      rgba(56, 189, 248, 0.12) 40%,
      transparent 70%
    ),
    radial-gradient(circle at bottom right,
      rgba(125, 211, 252, 0.35) 0%,
      rgba(125, 211, 252, 0.12) 45%,
      transparent 75%
    );
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
}



/* Hauptkarten im Glass-Mode */
:root[data-theme="glass"] .card-main,
:root[data-theme="glass"] .card-soft {
  background: rgba(17, 24, 39, 0.55);
  border-color: rgba(203, 213, 225, 0.35);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.6),
    inset 0 0 0 1px rgba(203, 213, 225, 0.15);
  backdrop-filter: blur(16px);
}


/* Tabellen im Glass-Theme */
:root[data-theme="glass"] .table-modern > :not(caption) > * > * {
  background-color: transparent;
}
/* === PAPER / NATURAL THEME === */
:root[data-theme="paper-natural"] body {
  background: radial-gradient(circle at top left, #fffaf3 0, #f5efe4 55%, #ede4d4 100%);
}

:root[data-theme="paper-natural"] .card-main,
:root[data-theme="paper-natural"] .card-soft {
  box-shadow:
    0 8px 20px rgba(148, 116, 80, 0.18),
    0 0 0 1px rgba(226, 211, 186, 0.9);
}
/* === AURORA-JS THEME === */
/* === AURORA FX THEME – Maus-gesteuerter Glow === */
:root[data-theme="aurora-js"] body {
  background-color: #020617 !important;
  background-image:
    radial-gradient(
      circle at var(--aurora-x, 50%) var(--aurora-y, 30%),
      rgba(56, 189, 248, 0.55),
      transparent 60%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(168, 85, 247, 0.35),
      transparent 65%
    ),
    radial-gradient(
      circle at 85% 10%,
      rgba(34, 211, 238, 0.30),
      transparent 60%
    );
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 130% 130%;
}

/* Karten im Aurora-Look */
:root[data-theme="aurora-js"] .card-main,
:root[data-theme="aurora-js"] .card-soft {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(16px);
}

#theme-starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;        
}

/* Magnetic UI  */
:root[data-theme="magnetic-ui"] .card-main,
:root[data-theme="magnetic-ui"] .card-soft,
:root[data-theme="magnetic-ui"] .btn,
:root[data-theme="magnetic-ui"] .nav-link,
:root[data-theme="magnetic-ui"] .kpi-pill {
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}


#refresh-btn {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background: transparent;
}

#refresh-btn:hover {
  background: var(--primary);
  color: #fff !important;
}



.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background: transparent;
}


.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff !important;
}


.btn-outline-primary.active,
.btn-outline-primary:active,
.btn-outline-primary:focus,
.btn-outline-primary.show,
.btn-check:checked + .btn-outline-primary {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.12rem
    color-mix(in srgb, var(--primary), transparent 70%);
}

.btn.btn-link {
  color: var(--text-main) !important;
  opacity: 0.85;
}

.btn.btn-link:hover {
  color: var(--primary) !important;
  opacity: 1;
}

.btn.btn-link:focus {
  box-shadow: none !important;
}

html {
  font-size: var(--ui-font-scale, 100%);
}


@media (min-width: 1200px) {
  html {
    font-size: var(--ui-font-scale, 100%);
  }
}
/* ========================= */
/* Finanzen & Inkasso Layout */
/* ========================= */

.finanzen-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
}

/* Heading-Bereich */
.finanzen-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.finanzen-header .brand-label {
  margin-bottom: 0;
}

.finanzen-header-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.finanzen-header-title h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Toolbar oben (Kunden) */
.finanzen-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Hauptkarten */
.finanzen-card-main {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
}

.finanzen-card-inkasso {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
}

/* Tabellen */
.finanzen-table-wrapper {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.finanzen-table-wrapper .table-modern {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.finanzen-table-wrapper .table-modern thead th {
  font-size: 0.75rem;
}

/* Inkasso-Toolbar */
.finanzen-inkasso-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

#finanzen-inkasso-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========= */
/* Formular  */
/* ========= */

.finanzen-form-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;          /* wird via JS auf block gesetzt */
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(3px);
  overflow-y: auto;
  padding: 3rem 1rem;
}

.finanzen-form-card {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background-color: var(--bg-card);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(148, 163, 184, 0.2);
  padding: 1.5rem 1.75rem;
}

.finanzen-form-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.finanzen-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.finanzen-form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

#finanzen-form input[type="text"],
#finanzen-form input[type="email"],
#finanzen-form textarea {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
}

#finanzen-form textarea {
  border-radius: 14px;
  resize: vertical;
  min-height: 80px;
}

#finanzen-form input:focus,
#finanzen-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.05rem color-mix(in srgb, var(--primary), transparent 70%);
}

.finanzen-form-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Buttons im Formular */
#finanzen-save.btn {
  min-width: 110px;
}

/* Mobile Tuning */
@media (max-width: 768px) {
  .finanzen-container {
    padding-inline: 0.75rem;
  }

  .finanzen-card-main,
  .finanzen-card-inkasso {
    padding: 1rem;
  }

  .finanzen-form-card {
    padding: 1.25rem 1.35rem;
  }
}
/* Zeilen, bei denen ein Kunde entsperrt wurde */
.finanzen-row-entsperrt {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Sortierbare Tabellenköpfe */
th.finanzen-sortable {
  cursor: pointer;
  user-select: none;
}

th.finanzen-sortable:hover {
  background-color: rgba(148, 163, 184, 0.08);
}

/* Checkbox für Merge minimal hübscher */
.finanzen-select {
  width: 14px;
  height: 14px;
}

/* Hauptzeilen (Kundenzeilen) */
#finanzen-table tbody tr.finanzen-main-row > td {
  border-top-width: 2px;               /* dickere Linie zwischen verschiedenen Kunden */
}

/* Erste Zeile der Tabelle weiterhin "normal" */
#finanzen-table tbody tr.finanzen-main-row:first-child > td {
  border-top-width: 1px;
}

/* Wenn eine Hauptzeile eine "Weitere Identitäten"-Zeile unter sich hat:
   Unterkante entfernen, damit kein Strich zwischen Hauptzeile & dem Block erscheint */
#finanzen-table tbody tr.finanzen-main-row.finanzen-has-linked > td {
  border-bottom-width: 0 !important;
}

/* Unterzeilen: optisch an Hauptzeile "geklebt", keine extra Linie */
#finanzen-table tbody tr.finanzen-linked-row > td {
  border-top-width: 0 !important;
  padding-top: 4px;
  padding-bottom: 10px;
  background: rgba(148, 163, 184, 0.04); /* leichte Schattierung */
}











/* Delete-Button in warnfarben */
.finanzen-delete {
  background: var(--negative) !important;
}

.finanzen-delete:hover {
  filter: brightness(1.15);
}

/* Entsperr-Button in neutraler Farbe */
.finanzen-unlock {
  background: #6b7280 !important; /* Tailwind Gray-500 */
}

.finanzen-unlock:hover {
  filter: brightness(1.1);
}

/* Abstand zwischen Buttons */
.finanzen-container td button {
  margin-bottom: 4px;
  display: inline-block;
}
/* Nur Buttons in der Aktionen-Spalte stylen */
.finanzen-edit,
.finanzen-delete,
.finanzen-unlock {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s ease-in-out;
}

/* Hover-Effekt */
.finanzen-edit:hover,
.finanzen-delete:hover,
.finanzen-unlock:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Delete-Button in rot */
.finanzen-delete {
  background: var(--negative);
}

/* Entsperr-Button neutral grau */
.finanzen-unlock {
  background: #6b7280; /* Grau */
}

/* Abstand der Buttons untereinander */
#finanzen-table td .finanzen-edit,
#finanzen-table td .finanzen-delete,
#finanzen-table td .finanzen-unlock {
  display: block;
  margin-bottom: 4px;
}
.col-lg-6 {
	width: 70%; }


/* === SAKURA THEME – softer Kirschblüten-Himmel === */
:root[data-theme="sakura-desk"] body {
  background-color: #fff5f7;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(252, 231, 243, 1) 0, transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(254, 205, 211, 0.9) 0, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(254, 249, 195, 0.7) 0, transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

:root[data-theme="sakura-desk"] .card-main,
:root[data-theme="sakura-desk"] .card-soft {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(248, 187, 208, 0.9);
  box-shadow:
    0 12px 28px rgba(244, 114, 182, 0.20),
    0 0 0 1px rgba(251, 207, 232, 0.9);
}
/* === RAINY CITY LOFI THEME === */
:root[data-theme="rainy-city"] body {
  background-color: #050816;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(248, 250, 252, 0.08), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(248, 113, 113, 0.12), transparent 60%),
    linear-gradient(to bottom, #020617 0%, #020617 45%, #020617 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Karten wirken wie Fenster / Interior */
:root[data-theme="rainy-city"] .card-main,
:root[data-theme="rainy-city"] .card-soft {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(30, 64, 175, 0.7);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(30, 64, 175, 0.4);
  backdrop-filter: blur(14px);
}

/* Kleine Lichtpunkte / Akzente */
:root[data-theme="rainy-city"] .kpi-pill {
  background-color: rgba(248, 250, 252, 0.06);
  color: #f97316;
}
/* === FOREST FIREFLY THEME === */
:root[data-theme="forest-firefly"] body {
  background-color: #020814;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(34, 197, 94, 0.15), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(to bottom, #020617 0%, #020814 40%, #020617 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

:root[data-theme="forest-firefly"] .card-main,
:root[data-theme="forest-firefly"] .card-soft {
  background: rgba(6, 16, 12, 0.94);
  border-color: rgba(22, 101, 52, 0.75);
  box-shadow:
    0 18px 40px rgba(6, 12, 10, 0.95),
    0 0 0 1px rgba(34, 197, 94, 0.25);
  backdrop-filter: blur(14px);
}

/* KPI-Pills leicht grünlich */
:root[data-theme="forest-firefly"] .kpi-pill {
  background-color: rgba(22, 163, 74, 0.15);
  color: #bbf7d0;
}
/* ===================== */
/* NEURAL-NET UI BOOST   */
/* ===================== */

:root[data-theme="neural-net"] body {
  background-color: #020617;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(56,189,248,0.20), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(129,140,248,0.18), transparent 60%),
    linear-gradient(to bottom, #020617 0%, #020617 40%, #020617 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Karten – mehr Glow + leichtes Hover-Float */
:root[data-theme="neural-net"] .card-main,
:root[data-theme="neural-net"] .card-soft {
  background: rgba(10, 15, 30, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 118, 230, 0.5);
  backdrop-filter: blur(18px);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

:root[data-theme="neural-net"] .card-main:hover,
:root[data-theme="neural-net"] .card-soft:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(56, 189, 248, 0.9);
}

/* Tabs & Nav – Underline / Glow */
:root[data-theme="neural-net"] .pill-tabs .nav-link {
  position: relative;
  overflow: hidden;
}

:root[data-theme="neural-net"] .pill-tabs .nav-link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,#22d3ee,#6366f1,#22d3ee);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

:root[data-theme="neural-net"] .pill-tabs .nav-link:hover::after,
:root[data-theme="neural-net"] .pill-tabs .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Primary Button – Hologram Sweep */
:root[data-theme="neural-net"] .btn-primary {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: none;
  background-image: linear-gradient(130deg,#06b6d4,#22d3ee,#6366f1);
  box-shadow:
    0 12px 28px rgba(15,23,42,0.9),
    0 0 0 1px rgba(56,189,248,0.7);
}

:root[data-theme="neural-net"] .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(248,250,252,0.7) 40%,
    transparent 100%
  );
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

:root[data-theme="neural-net"] .btn-primary:hover::after {
  transform: translateX(140%);
  opacity: 1;
}

/* Kleine KPI-Pills als „Neuronen“ */
:root[data-theme="neural-net"] .kpi-pill {
  background: rgba(15,23,42,0.9);
  box-shadow: 0 0 18px rgba(34,211,238,0.35);
  border-radius: 999px;
}

/* Optionale subtile Scanlines über den Hintergrund */
:root[data-theme="neural-net"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    rgba(15,23,42,0.18) 1px,
    transparent 1px
  );
  background-size: 100% 3px;
  opacity: 0.25;
  mix-blend-mode: soft-light;
  z-index: -1;
}






/* =============================== */
/* ARTIKEL – EDITOR LAYOUT        */
/* =============================== */

.artikel-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  min-height: 0; /* wichtig für Flex/Scroll */
}

/* =============================== */
/* PREIS-BADGES – LESBAR          */
/* =============================== */

.field-value.badge {
  font-weight: 600;
  color: var(--text-main);

  background: color-mix(
    in srgb,
    var(--bg-card) 75%,
    var(--text-main) 5%
  );

  border: 1px solid var(--border-soft);
  padding: 2px 8px;
  border-radius: 999px;

  white-space: nowrap;
}
/* =============================== */
/* BESCHREIBUNG – mehr Höhe / Raum */
/* =============================== */

.editor-description textarea.form-control {
  min-height: 220px;   /* <<< das ist der wichtigste Punkt */
  resize: vertical;
  line-height: 1.6;
  font-size: 14px;
}

/* =============================== */
/* SIDEBAR                        */
/* =============================== */

.artikel-sidebar {
  position: sticky;
  top: 12px;
  height: fit-content;
  padding: 14px;
}

.product-meta {
  font-size: 12px;
  gap: 8px;
}

.product-field {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-soft);
}

.field-label {
  opacity: 0.7;
}

.field-value {
  font-weight: 500;
}

/* =============================== */
/* EDITOR GRUNDSTRUKTUR           */
/* =============================== */

.artikel-editor {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.artikel-editor-inner {
  overflow-y: auto;
  padding-right: 6px;
}

/* =============================== */
/* SECTIONS / CARDS               */
/* =============================== */

.editor-section {
  background: color-mix(in srgb, var(--bg-card) 85%, transparent);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

/* =============================== */
/* TITEL-BEREICH                  */
/* =============================== */

.title-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* gemeinsame Titel-Felder */
.artikel-title-field {
  background: var(--bg-card);
  color: var(--text-main);

  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;

  border-radius: 14px;
  padding: 12px 16px;

  border: 1px solid var(--border-soft);

  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    inset 0 0 0 1px color-mix(in srgb, var(--bg-card) 60%, transparent);

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.artikel-title-field:focus {
  outline: none;
  border-color: var(--primary);

  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary), transparent 70%),
    0 6px 18px rgba(0,0,0,0.18);
}

/* Placeholder theme-gerecht */
.artikel-title-field::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* =============================== */
/* LABELS                         */
/* =============================== */

.editor-block > label,
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* =============================== */
/* PRODUKT-HIGHLIGHTS (BULLETS)   */
/* =============================== */

.section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 5px;
}

.bullet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.bullet-grid > div {
  background: color-mix(in srgb, var(--bg-card) 75%, transparent);
  border-radius: 12px;
  padding: 6px 8px; 
}

.bullet-grid textarea {
  min-height: 50px;
}

/* =============================== */
/* TEXTAREAS ALLGEMEIN            */
/* =============================== */

textarea.form-control {
  background: color-mix(in srgb, var(--bg-card) 85%, transparent);
  color: var(--text-main);

  border-radius: 12px;
  border: 1px solid var(--border-soft);

  font-size: 13px;
  line-height: 1.35;
  resize: vertical;
}

textarea.form-control:focus {
  background: var(--bg-card);
}

/* =============================== */
/* ZEICHENZÄHLER                  */
/* =============================== */

.text-counter {
  font-size: 10px;
  margin-top: 4px;
  text-align: right;
  color: var(--text-muted);
  opacity: 0.6;
}

/* =============================== */
/* VARIANTEN-WECHSLER              */
/* =============================== */

.variant-switcher {
  margin-bottom: 12px;
}

.variant-switcher .form-select {
  border-radius: 12px;
  font-size: 14px;
}


@media print {
  body * {
    visibility: hidden;
  }

  #aufraeum-liste, #aufraeum-liste * {
    visibility: visible;
  }

  #aufraeum-liste {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  button {
    display: none;
  }
}
/* Floating Button */
#ai-chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  z-index: 99999;
}

/* Panel */
#ai-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: 340px;
  height: 460px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  animation: slideUp .25s ease;
}

.hidden {
  display: none !important;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Header */
.ai-chat-header {
  padding: 12px 14px;
  background: #1e293b;
  color: white;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* Messages */
#ai-chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Bubbles */
.ai-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: .85rem;
  line-height: 1.4;
}

.ai-msg.user {
  align-self: flex-end;
  background: #2563eb;
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-msg.bot {
  align-self: flex-start;
  background: #e5e7eb;
  color: #111827;
  border-bottom-left-radius: 4px;
}

/* Input */
.ai-chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #e5e7eb;
  gap: 8px;
}

.ai-chat-input input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d1d

}

#ai-chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white; /* oder transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 9999;
}

#ai-chat-fab img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
}
#ai-chat-fab:hover {
  transform: scale(1.08);
}

#ai-chat-fab {
  transition: transform 0.15s ease;
}
.fokus-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 16px;
}

.fokus-left {
  max-width: 75%;
}

.fokus-title {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;

  display: -webkit-box;
  -webkit-line-clamp: 3;        /* 👈 3 Zeilen */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fokus-meta {
  font-size: 0.85rem;
  color: #9ca3af;
  display: flex;
  gap: 12px;
}

.fokus-artikel {
  opacity: 0.9;
}

.fokus-menge {
  font-weight: 500;
}

.fokus-right {
  white-space: nowrap;
  font-weight: 600;
}




.cmp-card {
  border: 2px dashed #ddd;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  background: #faf7f2;
  transition: all 0.15s ease;
}

.cmp-card:hover {
  background: #fff;
  border-color: #b65a14;
}

.cmp-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.cmp-dates {
  font-size: 0.95rem;
  color: #555;
}

.cmp-a { border-left: 6px solid #6c757d; }
.cmp-b { border-left: 6px solid #198754; }

.fokus-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fokus-presets button {
  border: 1px solid #ccc;
  background: #f8f5f0;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.85rem;
  cursor: pointer;
}

.fokus-presets button:hover {
  background: #fff;
  border-color: #b65a14;
}




.ampel {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.ampel-rot   { background: #ef4444; }
.ampel-gelb  { background: #f59e0b; }
.ampel-grün  { background: #22c55e; }









