.modal-open { overflow: hidden; }
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
.modal {
  position: fixed; top: 0; left: 0; z-index: 1050;
  display: none; width: 100%; height: 100%;
  overflow: hidden; outline: 0;
}
.modal-dialog { position: relative; width: auto; margin: .5rem; pointer-events: none; }
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - (.5rem * 2));
}
.modal-dialog-centered::before {
  display: block;
  height: calc(100vh - (.5rem * 2));
  content: "";
}
@media (min-width: 576px) {
  .modal-dialog-centered {
    min-height: calc(100% - (1.75rem * 2));
  }
  .modal-dialog-centered::before {
    height: calc(100vh - (1.75rem * 2));
  }
}
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}
.modal.show .modal-dialog { transform: none; }
.modal-content, .modal-dialog { height: auto; }
.modal-content {
  background: #ffffff;
  position: relative; display: flex; flex-direction: column;
  width: 100%; pointer-events: auto; background-clip: padding-box;
  border: none; outline: 0;
  box-shadow: 0 10px 40px 0 rgba(0,0,0,0.2);
}
.margin-center-pos { margin-top: auto; margin-bottom: auto; }
.modal-backdrop {
  position: fixed; top: 0; left: 0; z-index: 1040;
  width: 100vw; height: 100vh; background-color: #000;
}
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show {
  opacity: .8 !important;
}
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  border-bottom: none;
}
@media (min-width: 992px) { .modal-header { padding: 2rem 2rem 1rem; } }
@media (max-width: 991px) { .modal-header { padding: 1rem; } }
.modal-header .close {
  position: absolute; top: 1rem; right: 1rem;
  margin: -1rem -1rem -1rem auto; padding: 1rem; opacity: .75;
}
.modal-header .close svg { fill: #353535; }
.modal-header .close:hover { opacity: 1; }
.modal-header .close:focus { outline: none; }
.modal-title { line-height: 1.5; width: 100%; margin: 0; text-align: center; }
.modal-body { position: relative; flex: 1 1 auto; }
@media (min-width: 992px) { .modal-body { padding: 1rem 2rem 2rem; } }
@media (max-width: 991px) { .modal-body { padding: 1rem; } }
.modal-footer { display: flex; align-items: center; justify-content: center; border-top: none; text-align: center; }

@media (min-width: 576px) {
  .modal-dialog { max-width: 600px; margin: 1.75rem auto; }
  .modal-sm { max-width: 300px; }
}
@media (min-width: 992px) { .modal-lg, .modal-xl { max-width: 800px; } }
@media (min-width: 1200px) { .modal-xl { max-width: 1140px; } }

/* ---- Termine: Akkordeon ---- */
.venue-list { border-top: 1px solid #ddd8c9; }
.venue { border-bottom: 1px solid #ddd8c9; }
.venue-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 18px 24px; cursor: pointer;
  font-size: 19px; text-align: left;
}
.venue-row .datum { color: #6b6759; font-weight: 400; font-size: 15px; margin-left: 8px; }
.chevron {
  flex-shrink: 0; width: 36px; height: 36px; background: #d4a800; border-radius: 3px;
  display: flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
.chevron svg { width: 14px; height: 14px; stroke: #4B3900; }
.venue.open .chevron { transform: rotate(90deg); }
.venue-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.panel-inner { padding: 0 24px 22px 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.panel-link { flex: 1 1 160px; text-decoration: none; text-align: center; padding: 12px 16px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.panel-link.aussteller { background: #d4a800; color: #4B3900; }
.panel-link.besucher { background: transparent; color: #4B3900; border: 1.5px solid #a9890a; }
.panel-link.verzeichnis { background: #d4a800; color: #4B3900; border: 1.5px solid #a9890a; }

/* ---- Aussteller: Liste ---- */
.aus-body-flex { display: flex; flex-direction: column; padding: 0 !important; }
.aus-searchbar { padding: 12px 24px; border-bottom: 1px solid #e5e5e2; flex-shrink: 0; }
.aus-searchbar input { width: 100%; height: 38px; padding: 0 12px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.aus-searchbar input:focus { outline: none; border-color: #888; }
.aus-list { overflow-y: auto; flex: 1; }
.aus-empty { padding: 40px 24px; text-align: center; color: #888; font-size: 14px; }
.aus-item { display: flex; gap: 14px; padding: 16px 24px; border-bottom: 1px solid #eee; }
.aus-item:last-child { border-bottom: none; }
.aus-logo { width: 40px; height: 40px; border-radius: 6px; background: #f4f4f2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.aus-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.aus-body { flex: 1; min-width: 0; }
.aus-name { font-weight: bold; font-size: 14px; margin: 0 0 2px; }
.aus-address { font-size: 13px; color: #555; margin: 0 0 6px; }
.aus-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: #555; margin: 0 0 6px; }
.aus-contact a { color: #1a5fb4; text-decoration: none; }
.aus-contact a:hover { text-decoration: underline; }
.aus-contact i { margin-right: 4px; color: #888; width: 14px; text-align: center; }
.aus-description { font-size: 13px; color: #555; line-height: 1.5; margin: 0 0 8px; }
.aus-tag { display: inline-block; background: #f0f0ee; color: #555; font-size: 12px; padding: 3px 10px; border-radius: 4px; margin-right: 6px; }

@media (min-width: 1100px) {
  .aus-searchbar { display: none; }
  .aus-modal { max-width: 960px; }
  .aus-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .aus-item { border-bottom: 1px solid #eee; border-right: 1px solid #eee; }
  .aus-item:nth-child(even) { border-right: none; }
}

/* Stacking: Aussteller-Modal über Termine-Modal */
#mbr-popup-ai { z-index: 2000 !important; }

.termine-pdf-link {
  position: relative;
  top: -.3rem;
/*
  right: 3.5rem;
  display: flex;
*/
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  background: #c00;
}
.termine-pdf-link:hover {
  background: #c19700;
}
.termine-pdf-link i {
  font-size: 14px;
}

.venue-list-simple { border-top: 1px solid #ddd8c9; }
.venue-simple-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #ddd8c9;
  text-decoration: none;
  color: inherit;
  font-size: 19px;
}
.venue-simple-row:hover {
  background: #f7f5ee;
}
.venue-simple-row .chevron {
  transform: rotate(0deg); /* zeigt nach rechts, da direkter Link statt Aufklapper */
}