/* formerly in base.html */
.highlight {
  animation: highlight-border var(--highlight-duration, 3s) ease forwards;
  border-radius: 6px;
}

/* Permanenter Ring – kein Fade-out (Einstellung "immer") */
.highlight-permanent {
  box-shadow: 0 0 0 3px var(--highlight-color, #28a745);
  border-radius: 6px;
}

@keyframes highlight-border {
  0%   { box-shadow: 0 0 0 3px var(--highlight-color, #28a745); }
  100% { box-shadow: none; }
}

.text-truncate-folder {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card.h-100, .card.full-height {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 576px) {
  .card-body {
    padding: 1rem 0.5rem;
  }
}

.card.bed-card {
  background-color: #b5e7b0;   /* zartes Frühlingsgrün */
  border: 1px solid #7dc47d;
  color: #235324;
}

.card.bed-card.archived-bed-card {
  background-color: #e5f7e1;   /* noch blasseres Grün für archivierte Beete */
  color: #8b9a86;
  border: 1px solid #bdd3b6;
}

.card.folder-card {
  background-color: #e2e3e5;
  border: 1px solid #adb5bd;
  color: #343a40;
}

.card.depth-0  { background-color: #edeef0; color: #222; }  /* minimal dunkler als #f8f9fa */
.card.depth-1  { background-color: #e2e4e8; color: #222; }
.card.depth-2  { background-color: #d6dade; color: #222; }
.card.depth-3  { background-color: #c8cdd2; color: #222; }
.card.depth-4  { background-color: #b7bcc2; color: #222; }
.card.depth-5  { background-color: #a5aaaf; color: #222; }
.card.depth-6  { background-color: #979ba0; color: #222; }
.card.depth-7  { background-color: #8b8e93; color: #222; }
.card.depth-8  { background-color: #7d8186; color: #222; }
.card.depth-9  { background-color: #72757a; color: #222; }
.card.depth-10 { background-color: #66696c; color: #222; }
.card.depth-11 { background-color: #5c5f63; color: #fff; }
.card.depth-12 { background-color: #515356; color: #fff; }
.card.depth-13 { background-color: #46494b; color: #fff; }
.card.depth-14 { background-color: #3c3e40; color: #fff; }
.card.depth-15 { background-color: #323335; color: #fff; }
.card.depth-16 { background-color: #29292b; color: #fff; }
.card.depth-17 { background-color: #202123; color: #fff; }
.card.depth-18 { background-color: #18181a; color: #fff; }
.card.depth-19 { background-color: #111113; color: #fff; } /* fast schwarz */

.compact-card {
  padding: 0.25rem 0.7rem !important;
  font-size: 1rem;
  border-radius: 0.8rem;
  min-height: 38px;
}

.bulk-entry-bed-scrollbox {
  max-height: 320px;
  max-width: 1200px;  /* Jetzt wirklich breit für große Bildschirme/Laptops */
  min-width: 180px;
  width: 85%;
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(60, 60, 80, 0.06);
  scrollbar-width: thin;
  scrollbar-color: #ced4da #f8fafc;
}
.bulk-entry-bed-scrollbox::-webkit-scrollbar {
  width: 8px;
  background: #f8fafc;
}
.bulk-entry-bed-scrollbox::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 8px;
}

.list-group, .list-group-flush, .list-group-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.img-thumbnail {
  background-color: transparent;
  border: none;
}

/* Hintergrund für das Overlay (der Bereich hinter und um das Bild) */
.pswp__bg {
  background: #343a40 !important; /* Bootstrap's "dark" Grau */
}
/* Hintergrund um das Bild herum (der sichtbare "Rahmen") */
.pswp__container {
  background: transparent !important; /* macht den Container durchsichtig */
}
/* Optional: Rahmenfarbe um das Bild selbst ändern */
.pswp__img {
  background: #232e1a !important;  /* oder dein Wunschfarbton */
}

/* ===== Tabs Styles für Ordneransicht ===== */

.nav-tabs .nav-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  height: auto;
}

.nav-tabs .nav-item {
  margin-bottom: 0;
  margin-right: 0.3rem;
}

.nav-tabs .nav-link.active {
  border-color: #0d6efd #0d6efd white;
  background-color: white;
  color: #0d6efd;
  border-bottom-color: transparent !important;
  position: relative;
  z-index: 2;
}


/* ===== Help & Onboarding (help.html) ===== */

.container.help-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.help-header { margin-bottom: 12px; }
.help-header h1 { margin: 0 0 6px; }
.help-header .subtitle { color: #666; margin: 0 0 10px; }

.help-page .card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.video-wrap { position: relative; width: 100%; }
.help-video { width: 100%; height: auto; border-radius: 12px; }

.help-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Touren */
.tour-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 2px;
}

.tour-hints { color: #666; margin: 8px 18px; }

.help-page details summary {
  cursor: pointer;
  font-weight: 600;
  margin: 6px 0;
}

.help-page .hint {
  color: #777;
  font-size: .9rem;
  margin-top: 8px;
}

/* (Optional) Intro.js Theme-Feintuning könnte hier rein */