/* [mm_refmap] — Interaktive Referenz-Weltkarte (About Us)
   Farben 1:1 aus Figma "References Map" (268:20788):
   Sektion #002C49 · Land #3A5A79 · Gruen #4FA747 · Linien/Flaechen #133D67 · Labels #92A3B4 */

.mmo-refmap {
  --rm-navy: #002C49;
  --rm-land: #3A5A79;
  --rm-green: #4FA747;
  --rm-line: #133D67;
  --rm-muted: #92A3B4;
  max-width: 1328px;
  margin: 0 auto;
  padding: 14px 0 8px;
  font-family: 'Inter Tight', Inter, -apple-system, 'Segoe UI', sans-serif;
  color: #fff;
}

/* Header */
.mmo-refmap .mmo-refmap__eyebrow {
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.1px;
  line-height: 16px;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.mmo-refmap__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.mmo-refmap .mmo-refmap__title {
  font-family: inherit;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  margin: 0;
  max-width: 780px;
}
.mmo-refmap .mmo-refmap__title .mmo-refmap__num { color: var(--rm-muted); }
/* Blinkender Typewriter-Cursor waehrend die Headline getippt wird */
.mmo-refmap .mmo-refmap__title.is-typing::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: .82em;
  margin-left: 8px;
  background: var(--rm-green);
  vertical-align: -0.06em;
  animation: mmoRefmapCaret .9s steps(2, start) infinite;
}
@keyframes mmoRefmapCaret { to { visibility: hidden; } }
.mmo-refmap .mmo-refmap__desc {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.34;
  font-weight: 500;
  color: #fff;
  margin: 8px 0 0;
  max-width: 350px;
}

/* Filter-Pills */
.mmo-refmap__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.mmo-refmap button.mmo-refmap__pill {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 64px;
  border: 2px solid var(--rm-line);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.mmo-refmap button.mmo-refmap__pill:hover { border-color: var(--rm-green); background: transparent; color: #fff; }
.mmo-refmap button.mmo-refmap__pill.is-active { background: var(--rm-green); border-color: var(--rm-green); color: #fff; }

/* Karte */
.mmo-refmap__mapshell { position: relative; overflow: hidden; }
.mmo-refmap__map { width: 100%; height: 520px; }
.mmo-refmap__map image.jvm-marker { cursor: pointer; transition: filter .15s ease; }
.mmo-refmap__map image.jvm-marker:hover { filter: brightness(1.18); }

/* jsvectormap UI ans Design anpassen */
.mmo-refmap .jvm-zoom-btn {
  background: var(--rm-line);
  color: #fff;
  border: 0;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 6px;
  left: 0;
  font-size: 16px;
}
.mmo-refmap .jvm-zoom-btn:hover { background: #1B4A7A; }
.mmo-refmap .jvm-zoom-btn.jvm-zoomin { top: 0; }
.mmo-refmap .jvm-zoom-btn.jvm-zoomout { top: 40px; }
.jvm-tooltip.mmo-refmap-tooltip,
.jvm-tooltip {
  background: #fff;
  color: #002C49;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
}

/* Laender-Panel (Klick auf Pin) — schwebende Karte ueber der Weltkarte.
   Geschlossen: visibility hidden + KEIN Schatten — der Blur-Schatten des nur
   rausgeschobenen Panels ragte sonst als dunkler Schleier in den Kartenrand. */
/* Abdunklung nur in der mobilen Blatt-Ansicht. Auf dem Desktop bleibt die Karte
   bedienbar, damit man direkt das naechste Land anklicken kann. */
.mmo-refmap__backdrop {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 38, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
  z-index: 4;
}
.mmo-refmap__backdrop.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease;
}
.mmo-refmap__panel {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 366px;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #17466F 0%, var(--rm-line) 44%);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  transform: translateX(calc(100% + 26px));
  visibility: hidden;
  box-shadow: none;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .28s;
  overflow: hidden;
  z-index: 5;
}
.mmo-refmap__panel.is-open {
  transform: none;
  visibility: visible;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
/* Das Panel bekommt beim Oeffnen den Fokus (Tastatur/Screenreader) und soll
   dabei keinen Rahmen zeigen. */
.mmo-refmap__panel:focus { outline: none; }

/* Kopfbereich: bleibt stehen, Liste darunter scrollt */
.mmo-refmap__handle { display: none; }
.mmo-refmap__panelhead {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.mmo-refmap__paneltitles { flex: 1 1 auto; min-width: 0; }
.mmo-refmap .mmo-refmap__paneltitle {
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-transform: none;
  margin: 0 0 5px;
}
.mmo-refmap__panelmeta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--rm-muted);
  margin: 0;
}

/* Schliessen: doppelte Klasse + !important, sonst gewinnt `.elementor-kit-6 button`
   (gruene Flaeche, Pillenform, 15/30 Innenabstand) und `[type="button"]:hover`
   (pink) aus dem Theme. */
.mmo-refmap button.mmo-refmap__panelclose {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: -1px -1px 0 0;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .06) !important;
  color: var(--rm-muted) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
/* :focus faengt nur das Theme ab (dessen `button:focus` faerbt pink) und bleibt
   optisch der Ruhezustand. Hervorgehoben wird erst bei Tastaturbedienung. */
.mmo-refmap button.mmo-refmap__panelclose:focus {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: var(--rm-muted) !important;
  outline: none;
}
.mmo-refmap button.mmo-refmap__panelclose:hover,
.mmo-refmap button.mmo-refmap__panelclose:focus-visible {
  background: rgba(255, 255, 255, .15) !important;
  border-color: rgba(255, 255, 255, .3) !important;
  color: #fff !important;
}
.mmo-refmap button.mmo-refmap__panelclose:focus-visible {
  outline: 2px solid var(--rm-green);
  outline-offset: 2px;
}
.mmo-refmap button.mmo-refmap__panelclose svg { display: block; }

/* Scrollbereich */
.mmo-refmap__panelbody {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.mmo-refmap__panelbody::-webkit-scrollbar { width: 8px; }
.mmo-refmap__panelbody::-webkit-scrollbar-track { background: transparent; }
.mmo-refmap__panelbody::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2);
  border-radius: 99px;
}

/* Projekt-Karten */
.mmo-refmap__panellist { display: grid; gap: 10px; }
.mmo-refmap__proj {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  padding: 13px 14px;
  transition: background-color .15s ease, border-color .15s ease;
}
.mmo-refmap__proj:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(79, 167, 71, .45);
}
.mmo-refmap .mmo-refmap__projtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 4px;
}
.mmo-refmap__projsize { font-size: 13px; font-weight: 500; color: #BCD2E5; }
/* Trennstrich als Linie statt als Sonderzeichen */
.mmo-refmap__projsize::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 11px;
  margin-right: 8px;
  background: rgba(255, 255, 255, .24);
  vertical-align: -1px;
}
.mmo-refmap .mmo-refmap__projrudder {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--rm-muted);
  margin: 0 0 11px;
}
.mmo-refmap__projfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.mmo-refmap__projtag {
  display: inline-block;
  background: rgba(79, 167, 71, .16);
  border: 1px solid rgba(79, 167, 71, .34);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.5;
  padding: 2px 10px;
  color: #A9DDA2;
}
.mmo-refmap__projstats { display: inline-flex; gap: 6px; }
.mmo-refmap__projstat {
  background: rgba(0, 20, 38, .4);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  padding: 2px 8px;
  color: var(--rm-muted);
  white-space: nowrap;
}

/* Projekt-Tabelle */
.mmo-refmap__tablemeta {
  display: flex;
  justify-content: space-between;
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.1px;
  line-height: 16px;
  text-transform: uppercase;
  margin: 44px 0 16px;
}
.mmo-refmap__tablewrap { overflow-x: auto; }
.mmo-refmap table.mmo-refmap__table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}
.mmo-refmap table.mmo-refmap__table th {
  background: var(--rm-line);
  color: var(--rm-muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 0;
}
.mmo-refmap table.mmo-refmap__table th:first-child { border-radius: 8px 0 0 8px; padding-left: 24px; }
.mmo-refmap table.mmo-refmap__table th:last-child { border-radius: 0 8px 8px 0; }
.mmo-refmap table.mmo-refmap__table td {
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid var(--rm-line);
  background: transparent;
}
.mmo-refmap table.mmo-refmap__table td:first-child { padding-left: 24px; }
.mmo-refmap tr.is-hidden { display: none; }
.mmo-refmap__empty { color: var(--rm-muted); }
/* Platzhalter, wenn zu einem Schiff keine Groessenangabe vorliegt */
.mmo-refmap__na { color: var(--rm-muted); }

/* Load More */
.mmo-refmap__more { text-align: center; margin-top: 28px; }
.mmo-refmap button.mmo-refmap__loadmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid #9ECAFF;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.mmo-refmap button.mmo-refmap__loadmore:hover { background: rgba(158, 202, 255, .12); color: #fff; }
.mmo-refmap button.mmo-refmap__loadmore svg { display: block; transition: transform .2s ease; }
.mmo-refmap button.mmo-refmap__loadmore.is-less svg { transform: rotate(180deg); }
.mmo-refmap__more.is-done { display: none; }

/* Tablet: Panel schmaler, damit die Karte daneben lesbar bleibt */
@media (min-width: 768px) and (max-width: 991px) {
  .mmo-refmap__panel { width: 320px; top: 12px; right: 12px; bottom: 12px; }
  .mmo-refmap__panelhead { padding: 16px 16px 12px; }
  .mmo-refmap__panelbody { padding: 12px 16px 16px; }
}

/* Mobil: Das Panel wird ein Blatt am unteren Bildschirmrand.
   Bewusst am Fenster ausgerichtet statt in der Karte — die Karte ist hier nur
   rund 300 px hoch, ein Panel darin koennte kaum ein Projekt zeigen. */
@media (max-width: 767px) {
  .mmo-refmap__map { height: 300px; }
  .mmo-refmap__head { margin-bottom: 24px; }
  .mmo-refmap .mmo-refmap__desc { max-width: none; }

  .mmo-refmap__backdrop {
    display: block;
    position: fixed;
    z-index: 998;
    background: rgba(0, 16, 32, .62);
  }
  .mmo-refmap__panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: min(76vh, 520px);
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(calc(100% + 30px));
    z-index: 999;
  }
  .mmo-refmap__panel.is-open {
    transform: none;
    box-shadow: 0 -14px 40px rgba(0, 0, 0, .45);
  }
  .mmo-refmap__handle {
    display: block;
    flex: 0 0 auto;
    width: 40px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .26);
  }
  .mmo-refmap__panelhead { padding: 12px 16px 12px; }
  .mmo-refmap .mmo-refmap__paneltitle { font-size: 18px; }
  .mmo-refmap__panelbody {
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }
  .mmo-refmap button.mmo-refmap__panelclose { width: 38px !important; height: 38px !important; }
  .mmo-refmap__proj { padding: 12px 13px; }
  .mmo-refmap__tablemeta { margin-top: 36px; }
}

/* Seite anhalten, solange das Blatt offen ist (nur mobil gesetzt) */
body.mmo-refmap-lock { overflow: hidden; }
