/* Overlays / Modals */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45); /* FIX: vorher #000 + opacity 1 => schwarzer Screen */
  z-index:2000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.overlay.is-open{ display:flex; }

.modal{
  width:min(420px,100%);
  background:#fff;
  border-radius:20px;
  padding:16px;
  box-shadow:0 12px 32px rgba(0,0,0,.25);
  color:var(--ink2);
}

.modal h3{ margin:0 0 8px; font-size:18px; }
.modal p{ margin:0 0 14px; font-size:15px; line-height:1.25; color:var(--ink); }

.modal .mrow{ display:flex; gap:10px; }

.modal button{
  flex:1;
  height:48px;
  border-radius:16px;
  border:0;
  font-weight:900;
  font-size:16px;
}

.modal .cancel{ background:#EEF2F7; color:var(--ink2); }
.modal .confirm{ background:var(--danger); color:#fff; }

/* Storno list */
.stornoList{ margin:12px 0; font-size:18px; }
.stornoLine{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
  border-bottom:1px solid rgba(0,0,0,0.08);
}
.stornoLine:last-child{ border-bottom:0; }

/* Trefferliste im Modal scrollfähig */
.msList{
  margin-top:10px;
  max-height:40vh;      /* wichtig: damit scrollbar möglich ist */
  overflow:auto;
}
