.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.background-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.25;
}


/* Kachel-Container für Navigation */
.nav-tiles {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nav-tiles .card {
  background: #54585A;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 1rem;
  transition: box-shadow 0.2s;
  color: #ffffff;
}

.nav-tiles .card h5 {
  color: #ffffff;
}

.nav-tiles .card .text-muted {
  color: #d5d5d5 !important;
}

.nav-tiles .card:hover {
  box-shadow: 0 4px 16px rgba(2,2,0,0.5);
  background: #3e4142;
}

.nav-tiles img,
.nav-tiles svg {
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
}

/* Curtain Overlay */
.curtain {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0, .25);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.popupPage {
  background: #fff;
  backdrop-filter: blur(4px);
  color: #222;
  border-radius: 12px 12px 0 0;
  box-shadow: 5px 5px 5px rgba(0,0,0,0.18);
  padding: 0px;
  width: calc( 100vw - 4rem );
  height: calc( 100vh - 6rem );
  margin-top: 80px;
  position: relative;
}

.popupPage_head {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 18px;
  color: #fff;
  background: #54585A;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  padding: 5px 16px 5px 16px;
  text-align: left;
  vertical-align: middle !important;
}

.popupPage_title {
  font-size: 24px;
  text-align: left;
}

.popupPage_close {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
  float: right;
  margin-left: auto;
}

.popupPage_close:hover {
  color: #d9534f !important;
}

.popupPage_main {
  margin-top: 8px;
  padding: 10px;
  background: #fff;
  color: #222;
}

.popupPage a {
  color: #007bff;
  text-decoration: underline;
}

/* ...existing code... */
.opl-container {
  display: flex;
  gap: 2rem;
  min-height: 70vh;
}
.opl-list {
  flex: 1 1 350px;
  min-width: 350px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
}
.opl-list-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f8f9fa !important; /* Temporarily set to red for visibility */
  border-bottom: 1px solid #d5d5d5;
}
.opl-list-cards {
  overflow-y: auto;
  padding-bottom: 2rem;
}
.opl-card {
  background: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
  padding: 1rem 1.2rem 0.5rem 1.2rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s, box-shadow 0.2s;
}
.opl-card.active {
  border-color: #007bff;
  box-shadow: 0 4px 16px rgba(0,123,255,0.15);
}
.opl-card-id-title {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.opl-card-id {
  font-size: 0.95rem;
  font-weight: bold;
  color: #54585A;
  flex-shrink: 0;
  margin-top: 0;
}
.opl-card-title {
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  word-break: break-word;
  margin-top: 0;
}
.opl-card-desc {
  font-size: 0.98rem;
  color: #333;
  margin-bottom: 0.5rem;
}
.opl-card-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.2rem;
}
.opl-edit-link {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}
.opl-details {
  flex: 2 1 500px;
  min-width: 400px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem 2rem 2rem 1rem;
  margin-left: 1rem;
  height: 100%;
}
.opl-details-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #d5d5d5;
  padding-bottom: 0.5rem;
}
.opl-notes {
  margin-top: 1.5rem;
}
.opl-note {
  background: #fffbe6;
  border-radius: 0.7rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  margin-bottom: 1rem;
  padding: 1rem;
  position: relative;
}
.opl-note-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.3rem;
}
.opl-note-text {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}
.opl-note-actions {
  position: absolute;
  bottom: 0.7rem;
  right: 1rem;
  font-size: 0.9rem;
}
.opl-dialog-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,30,30,0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opl-dialog {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  min-width: 340px;
  max-width: 500px;
  width: 95vw;
  min-height: 200px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.opl-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #54585A;
  color: #fff;
  padding: 1rem 1.5rem;
  font-size: 1.15rem;
  border-bottom: 1px solid #d5d5d5;
}
.opl-dialog-title {
  font-weight: bold;
}
.opl-dialog-close {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.opl-dialog-close:hover {
  color: #d9534f;
}
.opl-dialog-main {
  padding: 1.5rem;
  overflow-y: auto;
  background: #f8f9fa;
  flex: 1;
}