/* ===========================================================
   The Flying Ship — Hinweis-Modal (Urlaub, Krankheit, Sondersituation)
   =========================================================== */

.notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 24, 16, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.notice-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.notice-modal {
  position: relative;
  background: #faf6ee;
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notice-overlay.is-open .notice-modal {
  transform: scale(1) translateY(0);
}

.notice-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #2a1810;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.notice-close:hover,
.notice-close:focus {
  background: #fff;
  transform: rotate(90deg);
}

.notice-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #faf6ee center/cover no-repeat; /* Modal-Creme: kein dunkler Haarstrich an der Unterkante bei krummen Pixelhöhen */
}

.notice-image-empty {
  display: none;
}

.notice-body {
  padding: 1.75rem 2rem 2rem;
  overflow-y: auto;
  text-align: center;
  font-family: Georgia, serif;
}

.notice-body h2 {
  font-family: Cambria, Georgia, serif;
  font-size: 1.65rem;
  color: #b8341e;
  margin: 0 0 1.1rem;
  padding: 0 2rem; /* Platz für den Schließen-Knopf, sonst verdeckt er am Handy das Titelende */
  font-weight: 700;
  line-height: 1.15;
}

.notice-body .notice-text {
  color: #5a4a3a;
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-line;
  margin: 0;
}
.notice-body .notice-text strong {
  color: #b8341e;
  font-weight: 700;
}
.notice-body .notice-text a {
  color: #b8341e;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  padding: 0.5em 0; /* größere Tippfläche am Handy, verschiebt die Zeile nicht */
}
.notice-body .notice-text a:hover {
  color: #8f2614;
}

@media (max-width: 540px) {
  .notice-modal { border-radius: 12px; }
  .notice-body { padding: 1.25rem 1.25rem 1.5rem; }
  .notice-body h2 { font-size: 1.4rem; }
  .notice-body .notice-text { font-size: 0.95rem; }
}

/* Body-Lock: kein Scrollen während Modal offen */
body.notice-modal-open {
  overflow: hidden;
}
