/* =========================================
   style.new-globals.css — CI 2026
   Globale Bootstrap-Komponenten
   Scope: .theme-new (alle Selektoren prefixed)
   Dark-Mode: [data-bs-theme="dark"] .theme-new
   ========================================= */

/* Body muss bis zum Viewport-Ende reichen, sonst sieht man html-Default-Background
   als weissen Streifen unter dem Footer (besonders bei content-armen Seiten wie /quicksearch im leeren Zustand). */
html { background: inherit; }
body.theme-new { min-height: 100vh; }

/* ════════════════════════════════════════
   MODAL
   ════════════════════════════════════════ */

.theme-new .modal-content {
  border: 1px solid var(--skw-border);
  border-radius: 6px;
  box-shadow: var(--skw-shadow-md);
  overflow: hidden;
}

/* Badges innerhalb von Modal (Add-Sealed/Add-Karten Grid) noch enger - Bootstrap-Padding-Vars werden ueberstimmt */
.theme-new .modal .badge,
.theme-new .modal-body .badge,
.theme-new .sealed-grid-item .badge,
.theme-new .katalog-item .badge {
  font-size: 0.6rem !important;
  padding: 1px 5px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.03em !important;
}

/* Add-Modal-Grid-Items kompakter (kein extra-Schatten/Border, nur subtiler Hover) */
.theme-new .sealed-grid-item,
.theme-new .katalog-item {
  border-radius: 6px !important;
  border: none !important;
  box-shadow: none !important;
}
.theme-new .sealed-grid-item:hover,
.theme-new .katalog-item:hover {
  box-shadow: 0 2px 8px rgba(15, 15, 35, 0.12) !important;
  transform: translateY(-1px) !important;
}

.theme-new .modal-header {
  background: var(--skw-surface);
  border-bottom: 1px solid var(--skw-border);
  padding: 10px 14px;
}

.theme-new .modal-title {
  font-family: var(--skw-font);
  font-weight: 700;
  font-size: var(--skw-fs-h3);
  letter-spacing: -0.01em;
  color: var(--skw-ink);
}

.theme-new .modal-body {
  background: var(--skw-surface);
  padding: 14px;
}

.theme-new .modal-footer {
  background: var(--skw-surface);
  border-top: 1px solid var(--skw-border);
  padding: 8px 14px;
  gap: 6px;
}

/* Gestrichelte Trennlinie in Modal-Footern (Sammlung Detail) */
.theme-new .modal-footer-divider {
  border-top: 1.5px dashed var(--skw-border);
  margin: 10px 0 8px;
}

.theme-new .btn-close {
  opacity: 0.5;
  transition: opacity var(--skw-dur-fast) var(--skw-ease);
}
.theme-new .btn-close:hover { opacity: 1; }

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .modal-content {
  background: var(--skw-surface);
  border-color: var(--skw-border);
}
[data-bs-theme="dark"] .theme-new .modal-header,
[data-bs-theme="dark"] .theme-new .modal-body,
[data-bs-theme="dark"] .theme-new .modal-footer {
  background: var(--skw-surface);
}
[data-bs-theme="dark"] .theme-new .btn-close {
  filter: invert(1) grayscale(1);
}


/* ════════════════════════════════════════
   DROPDOWN
   ════════════════════════════════════════ */

.theme-new .dropdown-menu {
  font-family: var(--skw-font);
  background: var(--skw-surface);
  border: 1px solid var(--skw-border);
  border-radius: var(--skw-radius-lg);
  box-shadow: var(--skw-shadow-md);
  padding: 6px;
  min-width: 180px;
}

.theme-new .dropdown-item {
  font-size: var(--skw-fs-small);
  font-weight: 500;
  color: var(--skw-text);
  border-radius: var(--skw-radius-sm);
  padding: 8px 12px;
  transition: background var(--skw-dur-fast) var(--skw-ease);
}

.theme-new .dropdown-item:hover,
.theme-new .dropdown-item:focus {
  background: var(--skw-surface-2);
  color: var(--skw-ink);
}

.theme-new .dropdown-item.active,
.theme-new .dropdown-item:active {
  background: var(--skw-accent);
  color: #fff;
}

.theme-new .dropdown-divider {
  border-top: 1px solid var(--skw-border);
  margin: 4px 8px;
}

.theme-new .dropdown-header {
  font-size: var(--skw-fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--skw-text-muted);
  padding: 6px 12px 4px;
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .dropdown-menu {
  background: var(--skw-surface);
  border-color: var(--skw-border);
}
[data-bs-theme="dark"] .theme-new .dropdown-item {
  color: var(--skw-text);
}
[data-bs-theme="dark"] .theme-new .dropdown-item:hover {
  background: var(--skw-surface-2);
}


/* ════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════ */

.theme-new .alert {
  font-family: var(--skw-font);
  font-size: var(--skw-fs-small);
  border-radius: var(--skw-radius-lg);
  border: 1px solid transparent;
  padding: 12px 16px;
}

.theme-new .alert-success {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.25);
  color: #065f46;
}
.theme-new .alert-danger {
  background: rgba(244, 63, 94, 0.10);
  border-color: rgba(244, 63, 94, 0.25);
  color: #9f1239;
}
.theme-new .alert-warning {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400e;
}
.theme-new .alert-info {
  background: rgba(99, 102, 241, 0.10);
  border-color: rgba(99, 102, 241, 0.25);
  color: #3730a3;
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .alert-success { background: rgba(16,185,129,0.15); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
[data-bs-theme="dark"] .theme-new .alert-danger  { background: rgba(244,63,94,0.15);  color: #fda4af; border-color: rgba(244,63,94,0.3); }
[data-bs-theme="dark"] .theme-new .alert-warning { background: rgba(245,158,11,0.15); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
[data-bs-theme="dark"] .theme-new .alert-info    { background: rgba(99,102,241,0.15); color: #c4b5fd; border-color: rgba(99,102,241,0.3); }


/* ════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════ */

.theme-new .pagination {
  gap: 4px;
  font-family: var(--skw-font);
}

.theme-new .page-link {
  font-size: var(--skw-fs-small);
  font-weight: 600;
  color: var(--skw-text-muted);
  border: 1.5px solid var(--skw-border);
  border-radius: var(--skw-radius-sm) !important;
  padding: 6px 12px;
  background: var(--skw-surface);
  transition: all var(--skw-dur-fast) var(--skw-ease);
}

.theme-new .page-link:hover {
  background: var(--skw-surface-2);
  border-color: var(--skw-border-strong);
  color: var(--skw-ink);
}

.theme-new .page-item.active .page-link {
  background: var(--skw-accent);
  border-color: var(--skw-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.theme-new .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .page-link {
  background: var(--skw-surface);
  border-color: var(--skw-border);
  color: var(--skw-text-muted);
}
[data-bs-theme="dark"] .theme-new .page-link:hover {
  background: var(--skw-surface-2);
}


/* ════════════════════════════════════════
   TABS (.nav-tabs)
   ════════════════════════════════════════ */

.theme-new .nav-tabs {
  border-bottom: 2px solid var(--skw-border);
  gap: 4px;
  font-family: var(--skw-font);
}

.theme-new .nav-tabs .nav-link {
  font-size: var(--skw-fs-small);
  font-weight: 600;
  color: var(--skw-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 14px;
  margin-bottom: -2px;
  background: transparent;
  transition: color var(--skw-dur-fast) var(--skw-ease), border-color var(--skw-dur-fast) var(--skw-ease);
}

.theme-new .nav-tabs .nav-link:hover {
  color: var(--skw-ink);
  border-bottom-color: var(--skw-border-strong);
  background: transparent;
}

.theme-new .nav-tabs .nav-link.active {
  color: var(--skw-accent);
  border-bottom-color: var(--skw-accent);
  background: transparent;
  font-weight: 700;
}

.theme-new .tab-content {
  padding-top: 20px;
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .nav-tabs { border-color: var(--skw-border); }
[data-bs-theme="dark"] .theme-new .nav-tabs .nav-link { color: var(--skw-text-muted); }
[data-bs-theme="dark"] .theme-new .nav-tabs .nav-link.active { color: var(--skw-accent); }


/* ════════════════════════════════════════
   ACCORDION (FAQ)
   ════════════════════════════════════════ */

.theme-new .accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--skw-font);
}

.theme-new .accordion-item {
  background: var(--skw-surface);
  border: 1px solid var(--skw-border) !important;
  border-radius: var(--skw-radius-lg) !important;
  overflow: hidden;
}

.theme-new .accordion-button {
  font-family: var(--skw-font);
  font-weight: 600;
  font-size: var(--skw-fs-body);
  color: var(--skw-ink);
  background: var(--skw-surface);
  padding: 16px 20px;
  border-radius: var(--skw-radius-lg) !important;
  box-shadow: none !important;
  transition: background var(--skw-dur-fast) var(--skw-ease);
}

.theme-new .accordion-button:not(.collapsed) {
  color: var(--skw-accent);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: none !important;
}

/* Custom +/− icon */
.theme-new .accordion-button::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--skw-text-muted);
  background-image: none !important;
  width: auto;
  height: auto;
  transform: none !important;
  transition: color var(--skw-dur-fast) var(--skw-ease);
}

.theme-new .accordion-button:not(.collapsed)::after {
  content: '−';
  color: var(--skw-accent);
}

.theme-new .accordion-body {
  font-size: var(--skw-fs-body);
  color: var(--skw-text-muted);
  line-height: 1.65;
  padding: 4px 20px 18px;
  background: var(--skw-surface);
}

.theme-new .accordion-collapse {
  border-top: 1px solid var(--skw-border);
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .accordion-item { background: var(--skw-surface); }
[data-bs-theme="dark"] .theme-new .accordion-button { background: var(--skw-surface); color: var(--skw-text); }
[data-bs-theme="dark"] .theme-new .accordion-button:not(.collapsed) { background: rgba(99,102,241,0.08); }
[data-bs-theme="dark"] .theme-new .accordion-body { background: var(--skw-surface); color: var(--skw-text-muted); }


/* ════════════════════════════════════════
   TOOLTIP + POPOVER
   ════════════════════════════════════════ */

.theme-new .tooltip {
  --bs-tooltip-bg: var(--skw-surface-2);
  --bs-tooltip-color: var(--skw-text);
}

.theme-new .tooltip-inner {
  font-family: var(--skw-font);
  font-size: 12px;
  font-weight: 500;
  background: var(--skw-surface-2);
  color: var(--skw-text);
  border: 1px solid var(--skw-border);
  box-shadow: var(--skw-shadow-sm);
  border-radius: var(--skw-radius-sm);
  padding: 6px 10px;
  max-width: 240px;
}

.theme-new .popover {
  font-family: var(--skw-font);
  border: 1px solid var(--skw-border);
  border-radius: var(--skw-radius-lg);
  box-shadow: var(--skw-shadow-md);
  background: var(--skw-surface);
}

.theme-new .popover-header {
  font-weight: 700;
  font-size: var(--skw-fs-small);
  background: var(--skw-surface-2);
  border-bottom: 1px solid var(--skw-border);
  border-radius: var(--skw-radius-lg) var(--skw-radius-lg) 0 0;
  padding: 10px 14px;
}

.theme-new .popover-body {
  font-size: var(--skw-fs-small);
  color: var(--skw-text-muted);
  padding: 12px 14px;
}


/* ════════════════════════════════════════
   JQUERY-UI DATEPICKER
   ════════════════════════════════════════ */

.theme-new .ui-datepicker {
  font-family: var(--skw-font);
  font-size: var(--skw-fs-small);
  border: 1px solid var(--skw-border);
  border-radius: var(--skw-radius-lg);
  box-shadow: var(--skw-shadow-md);
  background: var(--skw-surface);
  padding: 8px;
  width: auto;
  min-width: 280px;
}

.theme-new .ui-datepicker-header {
  background: transparent;
  border: none;
  font-weight: 700;
  color: var(--skw-ink);
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-new .ui-datepicker-prev,
.theme-new .ui-datepicker-next {
  border-radius: var(--skw-radius-sm);
  cursor: pointer;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  top: 4px;
}
.theme-new .ui-datepicker-prev:hover,
.theme-new .ui-datepicker-next:hover {
  background: var(--skw-surface-2);
}

.theme-new .ui-datepicker-calendar th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--skw-text-muted);
  padding: 6px 4px;
}

.theme-new .ui-datepicker-calendar td {
  padding: 2px;
}

.theme-new .ui-datepicker-calendar td a,
.theme-new .ui-datepicker-calendar td span {
  display: block;
  text-align: center;
  padding: 5px;
  border-radius: var(--skw-radius-sm);
  font-size: var(--skw-fs-small);
  color: var(--skw-text);
  text-decoration: none;
  transition: background var(--skw-dur-fast);
}

.theme-new .ui-datepicker-calendar td a:hover {
  background: var(--skw-surface-2);
}

.theme-new .ui-datepicker-calendar .ui-state-active {
  background: var(--skw-accent) !important;
  color: #fff !important;
  border-radius: var(--skw-radius-sm);
}

.theme-new .ui-datepicker-calendar .ui-state-highlight {
  border: 1.5px solid var(--skw-accent);
  color: var(--skw-accent);
  font-weight: 700;
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .ui-datepicker {
  background: var(--skw-surface);
  border-color: var(--skw-border);
}
[data-bs-theme="dark"] .theme-new .ui-datepicker-calendar td a { color: var(--skw-text); }
[data-bs-theme="dark"] .theme-new .ui-datepicker-calendar td a:hover { background: var(--skw-surface-2); }


/* ════════════════════════════════════════
   COOKIE BANNER (#cookie-banner)
   ════════════════════════════════════════ */

.theme-new #cookie-banner {
  font-family: var(--skw-font);
  background: #0F0F23;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.theme-new #cookie-banner p,
.theme-new #cookie-banner span {
  font-size: var(--skw-fs-small);
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.55;
}

.theme-new #cookie-banner a {
  color: var(--skw-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.theme-new #cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.theme-new #cookie-banner .btn-cookie-accept {
  background: var(--skw-accent);
  color: #fff;
  border: none;
  border-radius: var(--skw-radius);
  padding: 8px 16px;
  font-family: var(--skw-font);
  font-weight: 700;
  font-size: var(--skw-fs-small);
  cursor: pointer;
  transition: background var(--skw-dur-fast);
}
.theme-new #cookie-banner .btn-cookie-accept:hover {
  background: var(--skw-accent-h);
}

.theme-new #cookie-banner .btn-cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--skw-radius);
  padding: 8px 14px;
  font-family: var(--skw-font);
  font-size: var(--skw-fs-small);
  cursor: pointer;
}
.theme-new #cookie-banner .btn-cookie-decline:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
}

/* ════════════════════════════════════════
   PROFIL-ICON im Header (CI-Indigo statt Bootstrap-Yellow)
   Echtes HTML: i.bi-person-check-fill.text-warning  /  i.bi-person-circle
   ════════════════════════════════════════ */
.theme-new .navbar .bi-person-check-fill,
.theme-new .navbar .bi-person-check-fill.text-warning {
  color: var(--skw-accent) !important;
}
.theme-new .navbar .bi-person-circle {
  color: var(--skw-accent) !important;
}
.theme-new .navbar .dropdown-toggle:hover .bi-person-check-fill,
.theme-new .navbar a:hover .bi-person-circle {
  color: var(--skw-accent-h) !important;
}

/* ════════════════════════════════════════
   NEWS-WIDGET (.skw-news-widget)
   Sidebar-/Box-Widget mit den 3 neuesten Blog-Artikeln.
   Eingebunden via {% include '_news_widget.html' %}.
   ════════════════════════════════════════ */
/* skw-news-widget hat zusaetzlich Bootstrap-Klassen .card h-100 p-3 —
   Background/Border/Radius/Padding kommen von Bootstrap, damit es
   identisch zu den anderen Dashboard-Cards (Donut/Verlauf) aussieht. */
.theme-new .skw-news-widget {
  font-family: var(--skw-font);
  display: flex;
  flex-direction: column;
}

.theme-new .skw-news-widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--skw-border);
}
.theme-new .skw-news-widget-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--skw-text-muted);
}
.theme-new .skw-news-widget-all {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--skw-accent);
  text-decoration: none;
}
.theme-new .skw-news-widget-all:hover { color: var(--skw-accent-h); text-decoration: underline; }

.theme-new .skw-news-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theme-new .skw-news-widget-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px;
  border-radius: var(--skw-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background var(--skw-dur-fast);
}
.theme-new .skw-news-widget-item:hover {
  background: var(--skw-surface-2);
}

.theme-new .skw-news-widget-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--skw-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-new .skw-news-widget-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-new .skw-news-widget-thumb-placeholder {
  color: var(--skw-text-muted);
  font-size: 1.1rem;
}

.theme-new .skw-news-widget-text {
  flex: 1;
  min-width: 0;
}
.theme-new .skw-news-widget-headline {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--skw-ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.theme-new .skw-news-widget-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  color: var(--skw-text-muted);
}
.theme-new .skw-news-widget-date {
  font-variant-numeric: tabular-nums;
}
.theme-new .skw-news-widget-tag {
  display: inline-block;
  padding: 1px 6px;
  background: var(--skw-surface-2);
  border: 1px solid var(--skw-border);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--skw-text-muted);
  text-transform: lowercase;
}

/* Dark-Mode */
[data-bs-theme="dark"] .theme-new .skw-news-widget {
  background: var(--skw-surface);
  border-color: var(--skw-border);
}
[data-bs-theme="dark"] .theme-new .skw-news-widget-thumb-placeholder {
  background: var(--skw-surface-2);
}
