/* Hafenpark – Feiertags-Hinweis (Modal). Keine externen Ressourcen, Schrift wird von der Seite geerbt. */
.hp-hm-overlay {
  --hp-blue: #004f9f;       /* TODO: an das Blau der Website anpassen */
  --hp-blue-dark: #003a78;
  --hp-text: #1d2733;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 20, 45, 0.7);
  font-family: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hp-hm-overlay.is-open { opacity: 1; }
.hp-hm-overlay *, .hp-hm-overlay *::before, .hp-hm-overlay *::after { box-sizing: border-box; }

.hp-hm-dialog {
  position: relative;
  display: flex;
  flex-direction: column;            /* Mobil: Bild oben */
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  background: #fff;
  color: var(--hp-text);
  border-radius: 6px;
  border-top: 6px solid var(--hp-blue);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(12px);
  transition: transform 0.25s ease;
  -webkit-overflow-scrolling: touch;
}
.hp-hm-overlay.is-open .hp-hm-dialog { transform: none; }

.hp-hm-media {
  flex: 0 0 auto;
  background: #eef3f9;
}
.hp-hm-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 38vh;
  object-fit: cover;
  object-position: center;
}

.hp-hm-body { padding: 20px 22px 24px; }
.hp-hm-title {
  margin: 0 44px 12px 0;
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--hp-blue);
}
.hp-hm-body p { margin: 0 0 12px; font-size: 1rem; line-height: 1.55; }
.hp-hm-body p.hp-hm-sign { margin-bottom: 0; font-weight: 600; color: var(--hp-blue-dark); }

.hp-hm-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--hp-blue);
  color: #fff;
  font: 400 28px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.hp-hm-close:hover { background: var(--hp-blue-dark); }
.hp-hm-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--hp-blue-dark); }

.hp-hm-ok {
  margin-top: 18px;
  min-height: 44px;
  padding: 10px 26px;
  border: 0;
  border-radius: 4px;
  background: var(--hp-blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.hp-hm-ok:hover { background: var(--hp-blue-dark); }
.hp-hm-ok:focus-visible { outline: 3px solid var(--hp-blue-dark); outline-offset: 2px; }

@media (min-width: 700px) {
  .hp-hm-body { padding: 24px 32px 28px; }
  .hp-hm-title { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-hm-overlay, .hp-hm-dialog { transition: none; }
}