/* MeerHeimatLiebe 2.5.2-r63
   Maritime Schliess-Symbole und animierte Schleswig-Holstein-Flagge. */

:root {
  --mhl-close-gold: #f1c85d;
  --mhl-close-ice: #eefaff;
  --mhl-close-blue: #54c7e8;
  --mhl-close-deep: rgba(5, 43, 61, 0.94);
}

/* Der sichtbare Inhalt aller Schliess-Schaltflaechen wird vereinheitlicht. */
button.mhl-nautical-close {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 2.55rem !important;
  height: 2.55rem !important;
  min-width: 2.55rem !important;
  min-height: 2.55rem !important;
  padding: 0 !important;
  border: 1px solid rgba(92, 204, 230, 0.45) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  color: var(--mhl-close-ice) !important;
  background: radial-gradient(circle at 35% 28%, rgba(31, 111, 139, 0.52), var(--mhl-close-deep) 72%) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 0.32rem 0.8rem rgba(0, 19, 30, 0.22) !important;
  isolation: isolate;
}

button.mhl-nautical-close > :not(.mhl-close-symbol) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mhl-close-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  pointer-events: none;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 0.22rem rgba(84, 199, 232, 0.3));
}

.mhl-close-symbol svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mhl-nautical-close[data-mhl-close-icon="helm"] .mhl-close-symbol {
  color: var(--mhl-close-gold);
  animation: mhl-close-helm 8s ease-in-out infinite;
}

.mhl-nautical-close[data-mhl-close-icon="anchor"] .mhl-close-symbol {
  color: var(--mhl-close-ice);
  animation: mhl-close-anchor 4.8s ease-in-out infinite;
}

.mhl-nautical-close[data-mhl-close-icon="starfish"] .mhl-close-symbol {
  color: var(--mhl-close-gold);
  animation: mhl-close-starfish 6.2s ease-in-out infinite;
}

button.mhl-nautical-close::after {
  content: "";
  position: absolute;
  inset: 0.24rem;
  z-index: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: inherit;
  opacity: 0.7;
  pointer-events: none;
}

button.mhl-nautical-close:hover,
button.mhl-nautical-close:focus-visible {
  border-color: rgba(122, 225, 246, 0.88) !important;
  background: radial-gradient(circle at 35% 28%, rgba(38, 139, 172, 0.68), rgba(5, 43, 61, 0.98) 74%) !important;
  box-shadow: 0 0 0 0.2rem rgba(84, 199, 232, 0.12), 0 0.45rem 1rem rgba(0, 19, 30, 0.28) !important;
}

button.mhl-nautical-close:hover .mhl-close-symbol,
button.mhl-nautical-close:focus-visible .mhl-close-symbol {
  animation-duration: 1.15s;
}

button.mhl-nautical-close:active .mhl-close-symbol {
  transform: scale(0.84) rotate(-12deg);
}

/* Kleine, wehende Landesflagge direkt neben dem Markentitel. */
.site-header .brand-copy {
  position: relative;
}

.mhl-sh-flag {
  --mhl-flag-h: 1.02rem;
  position: relative;
  display: inline-block;
  width: 1.72rem;
  height: var(--mhl-flag-h);
  margin-left: 0.48rem;
  vertical-align: 0.02em;
  border-radius: 0.12rem 0.22rem 0.22rem 0.12rem;
  overflow: hidden;
  background: linear-gradient(to bottom,
    #1d75aa 0 33.333%,
    #f7fbff 33.333% 66.666%,
    #d64f59 66.666% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 0.16rem 0.48rem rgba(0,0,0,0.22);
  transform-origin: left center;
  animation: mhl-sh-flag-wave 3.6s ease-in-out infinite;
  pointer-events: none;
}

.mhl-sh-flag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255,255,255,0.28) 0%,
    transparent 20%,
    rgba(255,255,255,0.2) 43%,
    transparent 64%,
    rgba(0,0,0,0.12) 100%);
  background-size: 190% 100%;
  animation: mhl-sh-flag-light 3.6s ease-in-out infinite;
}

.mhl-sh-flag::after {
  content: "";
  position: absolute;
  left: -0.19rem;
  top: -0.12rem;
  width: 0.12rem;
  height: calc(var(--mhl-flag-h) + 0.34rem);
  border-radius: 999px;
  background: linear-gradient(#d7e6ec, #78939f 55%, #d7e6ec);
  box-shadow: 0 0 0.25rem rgba(255,255,255,0.18);
}

@keyframes mhl-close-helm {
  0%, 100% { transform: rotate(-7deg) scale(1); }
  45% { transform: rotate(13deg) scale(1.04); }
  70% { transform: rotate(4deg) scale(0.98); }
}

@keyframes mhl-close-anchor {
  0%, 100% { transform: translateY(-0.04rem) rotate(-3deg); }
  50% { transform: translateY(0.09rem) rotate(3deg); }
}

@keyframes mhl-close-starfish {
  0%, 100% { transform: rotate(-7deg) scale(0.96); }
  50% { transform: rotate(9deg) scale(1.06); }
}

@keyframes mhl-sh-flag-wave {
  0%, 100% { transform: perspective(5rem) rotateY(-4deg) skewY(-1deg) scaleX(0.98); }
  35% { transform: perspective(5rem) rotateY(8deg) skewY(1.5deg) scaleX(1.03); }
  68% { transform: perspective(5rem) rotateY(-2deg) skewY(-1.2deg) scaleX(0.99); }
}

@keyframes mhl-sh-flag-light {
  0%, 100% { background-position: 0% 50%; opacity: 0.72; }
  50% { background-position: 100% 50%; opacity: 1; }
}



@media (prefers-reduced-motion: reduce) {
  .mhl-close-symbol,
  .mhl-sh-flag,
  .mhl-sh-flag::before {
    animation: none !important;
  }
}
