.notifications-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  animation: slideIn 0.3s ease;
}

.toast-error {
  background: #f8d7da;
  color: #842029;
  border-left: 4px solid #dc3545;
}

.toast-success {
  background: #d1e7dd;
  color: #0f5132;
  border-left: 4px solid #198754;
}

.toast-warning {
  background: #fff3cd;
  color: #664d03;
  border-left: 4px solid #ffc107;
}

.toast-info {
  background: #cff4fc;
  color: #055160;
  border-left: 4px solid #0dcaf0;
}

.toast-message {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-left: 10px;
  opacity: 0.6;
  color: inherit;
}

.toast-close:hover {
  opacity: 1;
}

/* Transition animations */

.toast-enter-active {
  animation: slideIn 0.3s ease;
}

.toast-leave-active {
  animation: slideOut 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Sticky Filter */

.sticky-filter {
  position: sticky;
  top: 55px;
  z-index: 1020;
  background-color: var(--bs-body-bg);
}

/* Colors */

:root {
  --list-green: #d2dcb7;
  --list-green-dark: #80a51a;
  --list-grey: #434343;
  --list-grey-light: #f9fbfa;
  --list-bg-light: #f8f8f8;
}

/* Buttons */

.btn-primary {
  --bs-btn-bg: var(--list-green-dark);
  --bs-btn-border-color: var(--list-green-dark);
  --bs-btn-color: var(--list-grey);

  --bs-btn-hover-bg: #6d8d16;
  --bs-btn-hover-border-color: #6d8d16;
  --bs-btn-hover-color: var(--list-grey);

  --bs-btn-active-bg: #5f7b14;
  --bs-btn-active-border-color: #5f7b14;
  --bs-btn-active-color: var(--list-grey);

  --bs-btn-disabled-bg: var(--list-green);
  --bs-btn-disabled-border-color: var(--list-green-dark);
  --bs-btn-disabled-color: var(--list-grey);
}

.text-info {
  color: var(--list-green-dark) !important;
}

/* Page title */

.page-title {
  text-align: center;
}

.page-title h1 {
  margin: 0;
  color: var(--list-green-dark);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.page-title h2 {
  margin: 0.25rem 0 0.75rem;
  color: var(--list-grey);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.title-line {
  width: 65%;
  height: 1px;
  margin: 0 auto 3rem;
  background-color: var(--list-grey);
}

/* Background helpers */

.bg-success {
  background-color: var(--list-green) !important;
}

.bg-success-dark {
  background-color: var(--list-green-dark) !important;
}

.bg-grey {
  background-color: var(--list-grey) !important;
}

.bg-grey-light {
  background-color: var(--list-grey-light) !important;
}

/* Rating */

.rating-star-active {
  color: var(--list-green-dark);
}

.rating-star-inactive {
  color: var(--list-grey);
}

/* Map */

.map-pin-theme {
  background-color: var(--list-green-dark) !important;
}

/** List **/

.list .card {
  background: transparent;
}

.list .item {
  position: relative;
  margin-bottom: 0.5rem;
  border: 1px solid #ddd;
  background-color: var(--list-bg-light);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
}

.list .header {
  min-height: 70px;
  padding: 0.75rem 1.5rem;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: var(--list-bg-light);
  cursor: default;
}

.list .header.list-group-item-action:hover,
.list .header.list-group-item-action:focus {
  background-color: var(--list-bg-light);
  color: inherit;
}

.list .header.is-expanded {
  background: var(--list-green) !important;
  border-bottom: 2px solid var(--list-green-dark) !important;
}

.list .header-main {
  min-width: 0;
  cursor: pointer;
}

.list .expand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  color: var(--list-grey);
}

.list .expand-icon i {
  font-size: 1.35rem;
}

.list .header-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.list .name {
  color: var(--list-grey);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
}

.list .subtitle {
  margin-top: 0.25rem;
  color: var(--list-grey);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.2;
}

.list .favorite-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0;
  color: var(--list-grey);
  text-decoration: none;
}

.list .favorite-btn:hover,
.list .favorite-btn:focus {
  color: var(--list-grey);
}

.list .favorite-btn i {
  font-size: 2rem;
}

.list .favorite-btn .bi-heart-fill {
  color: var(--list-green-dark);
}

.list .favorite-btn .bi-star-fill {
  color: var(--list-green-dark);
}

/* Details */

.list .details {
  position: relative;
  padding: 2rem;
  background-color: var(--list-bg-light) !important;
}

.list .detail-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 14px solid transparent;
  border-left: 14px solid transparent;
  border-top: 16px solid #839d2a;
}

.list .detail-image {
  width: 195px;
  height: 195px;
  object-fit: cover;
  border-radius: 18px;
}

.list .detail-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 195px;
  height: 195px;
  margin: 0 auto;
  color: var(--list-grey);
  border: 9px solid var(--list-grey);
  border-radius: 18px;
  background-color: #fff;
}

.list .detail-image-placeholder i {
  font-size: 4rem;
}

.list .detail-title {
  margin-bottom: 1rem;
  color: var(--list-green-dark);
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.25;
}

.list .detail-subtitle {
  margin-bottom: 1.25rem;
  color: var(--list-grey);
  font-size: 1.45rem;
  font-weight: 300;
}

.list .detail-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list .detail-links a {
  color: var(--list-grey);
  font-size: 1.4rem;
  font-weight: 300;
  text-decoration: none;
}

.list .detail-links a:hover {
  color: var(--list-green-dark);
}

.list .actions {
  align-items: center;
}

.list .primary-action {
  min-width: 360px;
}

.list .documents-title {
  margin-bottom: 1rem;
  color: var(--list-green-dark);
  font-size: 1.2rem;
  font-weight: 400;
}

.list .document {
  height: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  background-color: #fff;
}

.list .document-title {
  margin-bottom: 0.5rem;
  color: var(--list-grey);
  font-size: 1rem;
  font-weight: 500;
}

.list .document-link {
  word-break: break-word;
}

/* Tablet */

@media (max-width: 991.98px) {
  .page-title h1 {
    font-size: 3rem;
  }

  .page-title h2 {
    font-size: 2.2rem;
  }

  .list .name {
    font-size: 1.7rem;
  }

  .list .subtitle {
    font-size: 1.25rem;
  }

  .list .detail-title {
    font-size: 1.25rem;
  }
}

/* Mobile */

@media (max-width: 767.98px) {
  .page-title h1 {
    font-size: 2.4rem;
  }

  .page-title h2 {
    font-size: 1.8rem;
  }

  .title-line {
    width: 90%;
    margin-bottom: 2rem;
  }

  .list .header {
    min-height: 60px;
    padding: 0.6rem 0.75rem;
  }

  .list .expand-icon {
    width: 30px;
  }

  .list .name {
    font-size: 1.35rem;
  }

  .list .subtitle {
    font-size: 1.05rem;
  }

  .list .header-image {
    width: 45px;
    height: 45px;
  }

  .list .favorite-btn {
    min-width: 36px;
    min-height: 36px;
    width: 36px;
    height: 36px;
  }

  .list .favorite-btn i {
    font-size: 1.35rem;
  }

  .list .details {
    padding: 2.5rem 1.25rem;
  }

  .list .detail-image,
  .list .detail-image-placeholder {
    width: 160px;
    height: 160px;
  }

  .list .detail-title {
    margin-top: 1rem;
    font-size: 1.15rem;
  }

  .list .detail-subtitle {
    font-size: 1.15rem;
  }

  .list .detail-links a {
    font-size: 1.15rem;
  }

  .list .primary-action {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .list .header {
    min-height: 52px;
    padding: 0.45rem 0.6rem;
  }

  .list .name {
    font-size: 1.2rem;
  }

  .list .subtitle {
    font-size: 0.95rem;
  }

  .list .expand-icon i {
    font-size: 1rem;
  }

  .list .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .list .actions .btn {
    width: 100%;
  }

  .list .favorite-btn {
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
  }

  .list .favorite-btn i {
    font-size: 1.2rem;
  }
}

/** Filter accordion **/

.accordion {
  --bs-accordion-btn-color: var(--list-grey);
  --bs-accordion-btn-bg: var(--list-bg-light);
  --bs-accordion-active-color: var(--list-grey);
  --bs-accordion-active-bg: var(--list-green);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(128, 165, 26, 0.25);
  --bs-accordion-border-color: #ddd;
}

.accordion-button {
  color: var(--list-grey);
  background-color: var(--list-bg-light);
}

.accordion-button:not(.collapsed) {
  color: var(--list-grey);
  background-color: var(--list-green);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(128, 165, 26, 0.25);
}

/** Agenda **/

.list .agenda-item {
  background-color: var(--list-bg-light);
}

.list .agenda-item .header {
  background-color: var(--list-bg-light);
}

.list .agenda-item.agenda-current .header,
.list .agenda-item .agenda-header-current {
  background-color: var(--list-green) !important;
  border-bottom: 2px solid var(--list-green-dark) !important;
}

.list .agenda-item.agenda-current .details {
  background-color: var(--list-bg-light) !important;
}

.list .agenda-item.agenda-meeting .header,
.list .agenda-item .agenda-header-meeting {
  background-color: #d0d0d0 !important;
  border-bottom: 2px solid #d0d0d0 !important;
}

.list .agenda-item.agenda-pause .header,
.list .agenda-item .agenda-header-pause {
  background-color: #eeeeee !important;
  color: var(--list-grey) !important;
}

.list
  .agenda-item:not(.agenda-current):not(.agenda-meeting):not(.agenda-pause)
  .header {
  background-color: var(--list-bg-light) !important;
}

.list
  .agenda-item:not(.agenda-current):not(.agenda-meeting):not(.agenda-pause)
  .header.is-expanded {
  background-color: var(--list-bg-light) !important;
  border-bottom: 0 !important;
}

.list .agenda-time {
  flex-shrink: 0;
  min-width: 190px;
  color: var(--list-grey);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.list .agenda-current .agenda-time {
  color: var(--list-grey);
}

.list .agenda-item .name {
  color: var(--list-grey);
}

.list .agenda-current .name {
  color: var(--list-grey);
}

.list .agenda-meeting .name {
  color: var(--list-grey);
}

.list .agenda-pause .name {
  color: var(--list-grey);
}

.list .agenda-item .favorite-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 60px;
  min-height: 60px;
  padding: 0;

  color: var(--list-grey);
  text-decoration: none;
}

.list .agenda-item .favorite-btn:hover,
.list .agenda-item .favorite-btn:focus {
  color: var(--list-grey);
}

.list .agenda-item .favorite-btn i {
  font-size: 2rem;
}

.list .agenda-item .favorite-btn .bi-heart-fill,
.list .agenda-item .favorite-btn .bi-bell-fill,
.list .agenda-item .favorite-btn .bi-star-fill {
  color: var(--list-green-dark);
}

.list .expand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
}

.list .agenda-title {
  min-width: 0;
  flex: 1 1 0;
}

.list .agenda-title .name,
.list .agenda-title .subtitle {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.list .agenda-item.agenda-pause .header {
  display: flex;
  align-items: center;
}

/* Agenda Mobile */

@media (max-width: 767.98px) {
  .list .agenda-item .header > .d-flex {
    flex-wrap: wrap;
  }

  .list .agenda-item .header-main {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
  }

  /* Chevron */

  .list .agenda-item .expand-icon {
    flex: 0 0 30px;
    width: 30px;
    margin-right: 0 !important;
  }

  /* Zeit direkt neben dem Chevron */

  .list .agenda-time {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 1.05rem;
  }

  /* Titel in eigener Zeile */

  .list .agenda-title {
    flex: 0 0 calc(100% - 30px);
    width: calc(100% - 30px);
    min-width: 0;
    margin-left: 30px;
    margin-top: 0.35rem;
  }

  .list .agenda-title .name {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Icons darunter */

  .list .agenda-item .header > .d-flex > .d-flex.ms-3 {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 0.5rem;
    margin-left: 0 !important;
    justify-content: flex-end;
  }
}

@media (max-width: 575.98px) {
  .list .agenda-item .header {
    padding: 0.75rem;
  }

  .list .agenda-item .header > .d-flex {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0;
    width: 100%;
  }

  .list .agenda-item .header-main {
    display: contents !important;
  }

  .list .agenda-item .expand-icon {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    margin: 0 !important;
  }

  .list .agenda-item .expand-icon i {
    font-size: 1rem;
  }

  .list .agenda-item .agenda-time {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0 !important;
    font-size: 0.9rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .list .agenda-item .agenda-title {
    grid-column: 2 / 4;
    grid-row: 2;
    width: auto;
    min-width: 0;
    margin: 0.35rem 0 0 0 !important;
  }

  .list .agenda-item .agenda-title .name {
    display: block;
    width: 100%;
    font-size: 1.2rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .list .agenda-item .header > .d-flex > .d-flex.ms-3 {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    margin: 0 !important;
    gap: 0;
  }

  .list .agenda-item .favorite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
  }

  .list .agenda-item .favorite-btn i {
    font-size: 1.2rem;
  }
}

/** List Toolbar **/

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;

  gap: 10px;
}

.map-location-selector {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
}

.map-location-dropdown {
  min-width: 320px;
}

.map-location-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 15px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: var(--list-grey);
  cursor: pointer;
}

.map-location-option:last-child {
  border-bottom: 0;
}

.map-location-option:hover {
  background: #f5f5f5;
}

.map-location-option.active {
  font-weight: 600;
}

.map-location-option .bi-check {
  color: var(--list-green-dark);
  font-size: 1.2rem;
}

/* Suche */

.list-search {
  display: flex;
  align-items: center;
  width: 500px;
  max-width: 500px;
  flex: 0 1 500px;
  margin: 0;
  border: 1px solid #c8c8c8;
  background: #fff;
  padding: 0 12px;
}

.list-search i {
  color: #666;
}

.list-search input {
  flex: 1;
  height: 46px;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: transparent;
}

.list-search button {
  border: 0;
  background: transparent;
}

/* Filter / Sortierung */

.toolbar-dropdown-wrapper {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
}

.toolbar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #aaa;
  color: inherit;
  cursor: pointer;
}

.toolbar-button:hover {
  background: #f5f5f5;
}

/* Dropdown */

.filter-dropdown,
.sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 2000;
  min-width: 320px;
  background: #fff;
  border: 1px solid #aaa;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sort-dropdown {
  min-width: 280px;
}

/* Filter Groups */

.filter-group {
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.filter-group-title {
  margin-bottom: 10px;
  font-weight: 600;
}

/* Checkbox */

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
}

.filter-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Filter Actions */

.filter-actions {
  display: flex;
  gap: 10px;
  padding: 12px 15px;
  border-top: 1px solid #ddd;
  background: #fff;
}

.filter-actions .btn {
  flex: 1;
}

.filter-apply-button {
  white-space: nowrap;
}

/* Sorting */

.sort-dropdown button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  cursor: pointer;
}

.sort-dropdown button:hover {
  background: #f5f5f5;
}

.sort-dropdown button.active {
  font-weight: 600;
}

/* Active Filters */

.active-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--list-green-dark);
  border-radius: 20px;
  background-color: var(--list-green);
  color: var(--list-grey);
  cursor: pointer;
}

.filter-chip:hover {
  background-color: var(--list-green-dark);
  color: var(--list-grey);
}

/* =========================================
   TABLET / MOBILE
   ========================================= */

@media (max-width: 991.98px) {
  .list-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
  }

  .list-search {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .map-location-selector {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .map-location-selector .toolbar-button {
    width: 100%;
  }

  .toolbar-dropdown-wrapper {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .toolbar-dropdown-wrapper .toolbar-button {
    width: 100%;
  }

  .filter-dropdown,
  .sort-dropdown,
  .map-location-dropdown {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    width: auto;
    min-width: 0;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
  }
}

.modal-title {
  color: var(--list-green-dark);
}

.navbar-logo-matchmapp {
  width: 60px;
  height: auto;
}

.navbar-logo-rdt {
  height: 40px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .navbar-logo-matchmapp {
    width: 45px;
  }

  .navbar-logo-rdt {
    height: 30px;
  }
}

.agenda-date-header {
  padding: 1rem 1.25rem 0.6rem;
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--list-green-dark);
}

.agenda-date-header:first-child {
  margin-top: 0;
}

.navbar-profile-link {
  color: var(--list-grey);
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
}

.navbar-profile-link:hover {
  color: var(--list-green-dark);
}
