:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-2: #f8fbfd;
  --border: #d9e2ec;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #008ecf;
  --accent-2: #006fa3;
  --accent-soft: #e8f5fb;
  --danger: #dc2626;
  --sidebar-muted: #94a3b8;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: white;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: bold;
}

.brand-title {
  font-size: 17px;
  font-weight: bold;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--sidebar-muted);
  margin-top: 2px;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: var(--sidebar-muted);
  text-transform: uppercase;
  padding: 0 8px;
  margin-top: 4px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item,
.subnav-item {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: white;
  background: transparent;
  border: 0;
  border-radius: 12px;
  transition: 0.18s ease;
  margin: 0;
  text-decoration: none;
}

.nav-item {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.nav-item:hover,
.subnav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  background: rgba(0, 142, 207, 0.22);
  color: #e0f5ff;
  box-shadow: inset 0 0 0 1px rgba(0, 142, 207, 0.26);
}

.subnav-wrap {
  display: grid;
  gap: 6px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.subnav-item {
  padding: 10px 12px;
  font-size: 13px;
  color: #dbeafe;
}

.subnav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--sidebar-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sidebar-footer button {
  width: 100%;
}

.main-shell {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 247, 251, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

.topbar-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.content {
  padding: 24px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.photos-page {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.page-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.left-column,
.stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.map-column {
  min-width: 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.section-subtitle,
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.meta {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.toolbar-grid.single {
  grid-template-columns: 1fr;
}

.filter-mode-block {
  margin-top: 14px;
}

.filter-mode-label {
  display: block;
  margin-bottom: 8px;
}

.filter-mode-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-mode-side-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.filter-mode-current {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.map-wrap {
  position: sticky;
  top: 96px;
  z-index: 1;
  height: calc(100vh - 130px);
  min-height: 520px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow);
}

#map {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

#dropzone {
  margin-top: 10px;
  border: 2px dashed #a7ddf4;
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  background: var(--accent-soft);
  transition: 0.18s ease;
  color: var(--accent-2);
}

.dropzone-clickable {
  cursor: pointer;
}

#dropzone.dragover {
  border-color: var(--accent);
  background: #d8f0fa;
}

button,
input[type="file"],
input[type="text"],
input[type="password"],
select {
  width: 100%;
  margin-top: 10px;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
}

input[type="text"],
input[type="password"],
select {
  border: 1px solid var(--border);
  background: white;
}

button {
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: white;
  font-weight: 600;
}

button.secondary {
  background: #475569;
}

button.light {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

button.danger {
  background: var(--danger);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  white-space: pre-line;
}

.photo-list {
  display: grid;
  gap: 10px;
  max-height: 50vh;
  overflow: auto;
  padding-right: 4px;
}

.photo-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #fff;
  transition: 0.18s ease;
}

.photo-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.photo-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.photo-title {
  font-weight: bold;
  font-size: 14px;
}

.photo-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.banner {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.4;
}

.admin-panel {
  display: grid;
  gap: 18px;
  max-width: 1200px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

th {
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
}

.table-wrap table th:nth-child(1),
.table-wrap table td:nth-child(1) {
  width: 50%;
}

.table-wrap table th:nth-child(2),
.table-wrap table td:nth-child(2) {
  width: 25%;
}

.table-wrap table th:nth-child(3),
.table-wrap table td:nth-child(3) {
  width: 25%;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.rights-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--panel-2);
}

.checkbox-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text);
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-actions button {
  width: auto;
  margin-top: 0;
}

.login-card {
  max-width: 520px;
}

.notice-box {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 18px;
  color: var(--muted);
}

.preview-full-link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: bold;
}

.page-footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0 0;
}

@media (max-width: 1200px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    position: relative;
    top: 0;
    height: 60vh;
    min-height: 420px;
  }

  .rights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .topbar {
    position: sticky;
    top: 0;
  }
}

.table-thumb {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 1px solid #e5e7eb;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 16px;
  width: 320px;
  display: grid;
  gap: 10px;
}

.bulk-actions{display:flex;gap:10px}
	  
	  
	  .edit-photo-map {
  height: 620px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  margin: 0;
}

.edit-photo-map-note {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 13px;
  color: #6b7280;
} 
	  
.photo-popup {
  min-width: 220px;
  max-width: 260px;
}

.photo-popup-image {
  width: 220px;
  display: block;
  border-radius: 8px;
  margin-bottom: 8px;
}

.photo-popup-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.photo-popup-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}

.photo-popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.popup-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.popup-action-btn-primary {
  background: #2563eb;
  color: #ffffff !important;
}  

.popup-action-btn-secondary {
  background: #10b981;
  color: #ffffff;
}

.popup-action-btn-disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #d1d5db;
} 

/* Leaflet Controls niemals vom Portal-Button-Styling übernehmen lassen */
.leaflet-control button,
.leaflet-control input,
.leaflet-control select {
  width: auto;
  margin-top: 0;
  border-radius: initial;
  padding: initial;
  font-size: initial;
}

.leaflet-control button {
  background: initial;
  color: initial;
  font-weight: initial;
  border: initial;
}

.leaflet-control-layers-toggle {
  width: 36px !important;
  height: 36px !important;
}

.mobile-sidebar-toggle {
    display: none;
    width: auto;
    margin: 0;
    padding: 8px 11px;
    border-radius: 10px;
    background: #0f172a;
    color: white;
    border: 0;
    cursor: pointer;
}

@media (max-width: 900px) {

    .mobile-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        width: 290px;
        height: 100dvh;
        z-index: 4000;
        transform: translateX(-100%);
        transition: transform .25s ease;
        overflow-y: auto;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .topbar {
        padding-left: 16px;
    }
}
/* =========================================================
   The Tool – zentrale Sidebar / Branding
   ========================================================= */
:root {
  --tool-sidebar-width: 286px;
  --tool-sidebar-collapsed-width: 82px;
  --tool-sidebar-bg-top: #071d4c;
  --tool-sidebar-bg-bottom: #0b2d6c;
  --tool-sidebar-accent: #129cff;
  --tool-sidebar-accent-2: #0865dc;
  --tool-sidebar-text: #f7fbff;
  --tool-sidebar-muted: #9eb5da;
}

.app-shell {
  grid-template-columns: var(--tool-sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns .22s ease;
}

body.tool-sidebar-collapsed .app-shell {
  grid-template-columns: var(--tool-sidebar-collapsed-width) minmax(0, 1fr);
}

.sidebar {
  width: var(--tool-sidebar-width);
  padding: 18px 14px 16px;
  gap: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(18, 156, 255, .18), transparent 30%),
    linear-gradient(180deg, var(--tool-sidebar-bg-top) 0%, var(--tool-sidebar-bg-bottom) 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 14px 0 36px rgba(5, 23, 58, .12);
  transition: width .22s ease, padding .22s ease, transform .25s ease;
}

body.tool-sidebar-collapsed .sidebar {
  width: var(--tool-sidebar-collapsed-width);
  padding-left: 10px;
  padding-right: 10px;
}

.tool-brand-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.tool-brand {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  padding: 4px;
}

.tool-brand:focus-visible,
.tool-sidebar-collapse:focus-visible,
.nav-item:focus-visible,
.subnav-item:focus-visible {
  outline: 3px solid rgba(91, 185, 255, .48);
  outline-offset: 2px;
}

.tool-brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 119, 255, .24));
}

.tool-brand-copy {
  min-width: 0;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .15s ease, transform .2s ease, width .2s ease;
}

.tool-brand-title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.tool-sidebar-collapse {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #dceaff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background .16s ease, transform .22s ease;
}

.tool-sidebar-collapse:hover {
  background: rgba(255,255,255,.13);
}

body.tool-sidebar-collapsed .tool-sidebar-collapse {
  transform: rotate(180deg);
}

body.tool-sidebar-collapsed .tool-brand-copy,
body.tool-sidebar-collapsed .tool-nav-label,
body.tool-sidebar-collapsed .tool-user-copy {
  width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

body.tool-sidebar-collapsed .tool-brand-row {
  justify-content: center;
}

body.tool-sidebar-collapsed .tool-brand {
  flex: 0 0 50px;
  padding: 2px;
}

body.tool-sidebar-collapsed .tool-sidebar-collapse {
  position: absolute;
  left: 57px;
  top: 28px;
  width: 24px;
  height: 24px;
  font-size: 18px;
  border-radius: 8px;
}

.sidebar-nav-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.20) transparent;
  padding: 2px 1px 8px;
}

.sidebar-nav-area::-webkit-scrollbar { width: 5px; }
.sidebar-nav-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,.20); border-radius: 99px; }

.nav-list { gap: 7px; }
.nav-accordion .nav-group { margin: 0; }

.nav-item,
.subnav-item {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 13px;
  color: #eaf3ff;
}

.nav-item {
  position: relative;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.tool-nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #9fd4ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.tool-nav-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity .15s ease, width .2s ease;
}

.nav-item:hover,
.subnav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.nav-item.active,
.nav-group.open > .nav-toggle {
  background: linear-gradient(135deg, rgba(18,156,255,.24), rgba(8,101,220,.20));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(112,194,255,.19), 0 8px 20px rgba(0,52,130,.12);
}

.nav-item.active .tool-nav-icon,
.nav-group.open > .nav-toggle .tool-nav-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--tool-sidebar-accent), var(--tool-sidebar-accent-2));
  box-shadow: 0 6px 14px rgba(0,116,255,.24);
}

.subnav-wrap {
  margin: 5px 0 5px 25px;
  padding: 3px 0 3px 15px;
  border-left: 1px solid rgba(157,204,255,.22);
  gap: 3px;
}

.subnav-item {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 13px;
  color: #bcd0ee;
}

.subnav-item.active {
  background: rgba(18,156,255,.18);
  color: #fff;
  box-shadow: inset 3px 0 0 #35adff;
}

body.tool-sidebar-collapsed .nav-item {
  justify-content: center;
  padding-left: 9px;
  padding-right: 9px;
}

body.tool-sidebar-collapsed .nav-accordion .nav-toggle::after,
body.tool-sidebar-collapsed .subnav-wrap {
  display: none !important;
}

body.tool-sidebar-collapsed .nav-item,
body.tool-sidebar-collapsed .tool-brand,
body.tool-sidebar-collapsed .sidebar-user,
body.tool-sidebar-collapsed .tool-logout {
  overflow: visible;
}

body.tool-sidebar-collapsed .nav-item:hover::before,
body.tool-sidebar-collapsed .tool-logout:hover::before {
  content: attr(aria-label);
}

.sidebar-footer {
  gap: 9px;
  padding-top: 13px;
}

.sidebar-user {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
}

.tool-user-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #22a9ff, #0865dc);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.tool-user-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  color: #fff;
  overflow: hidden;
}

.tool-user-copy strong,
.tool-user-copy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-user-copy span {
  color: var(--tool-sidebar-muted);
  font-size: 11px;
}

.sidebar-footer .tool-logout {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.065);
  color: #dbeafe;
  box-shadow: none;
}

.sidebar-footer .tool-logout:hover {
  background: rgba(255,255,255,.11);
}

body.tool-sidebar-collapsed .sidebar-user {
  justify-content: center;
  padding-left: 4px;
  padding-right: 4px;
}

body.tool-sidebar-collapsed .tool-logout {
  padding: 0;
}

.mobile-sidebar-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tool-sidebar-accent), var(--tool-sidebar-accent-2));
  box-shadow: 0 8px 20px rgba(0,112,230,.22);
}

@media (max-width: 900px) {
  .app-shell,
  body.tool-sidebar-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar,
  body.tool-sidebar-collapsed .sidebar {
    width: min(310px, calc(100vw - 54px));
    padding: 18px 14px 16px;
  }

  .tool-sidebar-collapse { display: none; }

  body.tool-sidebar-collapsed .tool-brand-copy,
  body.tool-sidebar-collapsed .tool-nav-label,
  body.tool-sidebar-collapsed .tool-user-copy {
    width: auto;
    max-width: none;
    opacity: 1;
    pointer-events: auto;
  }

  body.tool-sidebar-collapsed .nav-item { justify-content: flex-start; }
  body.tool-sidebar-collapsed .subnav-wrap { display: none; }
  body.tool-sidebar-collapsed .nav-group.open .subnav-wrap { display: block !important; }

  body.sidebar-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 3500;
    background: rgba(3, 13, 35, .56);
    backdrop-filter: blur(2px);
  }

  body.sidebar-open .mobile-sidebar-toggle {
    left: auto;
    right: 12px;
  }
}

/* =========================================================
   The Tool – Sidebar V2: Toggle unten + sauberer Accordion
   ========================================================= */
.tool-brand-row {
  padding-right: 2px;
}

.tool-brand {
  flex: 1 1 auto;
}

.sidebar-footer .tool-sidebar-collapse {
  position: static;
  width: 100%;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.065);
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
  transform: none;
}

.sidebar-footer .tool-sidebar-collapse:hover {
  background: rgba(255,255,255,.11);
}

.tool-sidebar-collapse-icon {
  width: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: transform .22s ease;
}

body.tool-sidebar-collapsed .sidebar-footer .tool-sidebar-collapse {
  position: static;
  width: 100%;
  height: 42px;
  padding: 0;
  transform: none;
}

body.tool-sidebar-collapsed .tool-sidebar-collapse-icon {
  transform: rotate(180deg);
}

body.tool-sidebar-collapsed .tool-brand-row {
  justify-content: center;
}

body.tool-sidebar-collapsed .tool-brand {
  flex: 0 0 50px;
}

@media (max-width: 900px) {
  .sidebar-footer .tool-sidebar-collapse {
    display: none;
  }
}
