@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap");


:root {
  --font-heading: "Ubuntu", Arial, sans-serif;
  --font-body: "Red Hat Display", Arial, sans-serif;
  --background: #f3f8fc;
  --surface: #ffffff;
  --current: #1479bf;
  --former: #b8d6ec;
  --hover: #2c3e50;
  --neutral: #ffffff;
  --border: #dce7ef;
  --text: #2c3e50;
  --muted: #667788;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
}

body { padding: 28px; }

.map-section {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(380px, 1.45fr);
  gap: 28px;
  align-items: stretch;
}

.info-panel,
.map-panel {
  background: var(--surface);
  border: 1px solid rgba(20, 121, 191, 0.10);
  border-radius: 22px;
}

.info-panel {
  padding: 34px;
  box-shadow: 0 12px 35px rgba(44, 62, 80, 0.08);
}

.map-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 650px;
  padding: 28px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--current);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2,
.eyebrow {
  font-family: var(--font-heading);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.02;
}

.intro {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.65;
}

.country-group + .country-group {
  margin-top: 28px;
}

.country-group h2 {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.35;
}

.legend {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border-radius: 3px;
}

.current-dot { background: var(--current); }
.former-dot { background: var(--former); }

.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.country-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: inherit;
  cursor: pointer;
  transition: 160ms ease;
}

.country-button:hover,
.country-button:focus-visible {
  color: white;
  background: var(--hover);
  border-color: var(--hover);
}

.map-instruction {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

#africa-map {
  width: 100%;
  height: auto;
  max-height: 650px;
  overflow: visible;
}

.country {
  fill: var(--neutral);
  stroke: var(--border);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  transition: fill 170ms ease, opacity 170ms ease;
}

.country.current { fill: var(--current); }
.country.former { fill: var(--former); }

.country.interactive {
  cursor: pointer;
}

.country.interactive:hover,
.country.interactive:focus-visible,
.country.interactive.is-active {
  fill: var(--hover);
  outline: none;
}

.country.is-muted {
  opacity: 0.38;
}

.back-button {
  border: 0;
  padding: 0;
  margin: 0 0 34px;
  background: transparent;
  color: var(--current);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.detail-link {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  color: white;
  background: var(--current);
  text-decoration: none;
  font-weight: 700;
}

.detail-link:hover { background: var(--hover); }

@media (max-width: 820px) {
  body { padding: 14px; }

  .map-section {
    grid-template-columns: 1fr;
  }

  .map-panel {
    order: 1;
    min-height: 430px;
    padding: 54px 14px 14px;
  }

  .info-panel {
    order: 2;
    padding: 26px;
  }

  .map-instruction {
    font-size: 0.78rem;
    max-width: calc(100% - 30px);
    white-space: normal;
    text-align: center;
  }
}


/* V2 – angelehnt an die Projektseite */
.info-panel {
  padding: 38px 36px;
}

#overview h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

#overview .intro {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 34px;
}

.country-group h2 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.country-group + .country-group {
  margin-top: 34px;
}

.country-list-rows {
  display: block;
}

.country-list-rows .country-button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 14px 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  transition: color 150ms ease, padding-left 150ms ease;
}

.country-list-rows .country-button:hover,
.country-list-rows .country-button:focus-visible,
.country-list-rows .country-button.is-active {
  background: transparent;
  color: var(--current);
  border-color: var(--border);
  padding-left: 6px;
}

#detail {
  display: none !important;
}

@media (max-width: 820px) {
  .info-panel {
    padding: 28px 24px;
  }

  #overview h1 {
    font-size: 2.15rem;
  }
}


/* V3 – Modul beginnt direkt mit den Ländergruppen */
#overview > h1,
#overview > .intro,
#overview .legend {
  display: none !important;
}

.info-panel {
  padding: 38px 36px;
}

.country-group h2 {
  box-sizing: border-box;
  color: rgb(20, 121, 191);
  font-family: "Ubuntu", sans-serif;
  font-feature-settings: normal;
  font-size: 36px;
  font-variation-settings: normal;
  font-weight: 700;
  hyphenate-limit-chars: 15;
  hyphens: auto;
  line-height: 45px;
  margin: 0 0 32px 0;
  text-transform: uppercase;

  border-top: 0 solid rgb(229, 231, 235);
  border-right: 0 solid rgb(229, 231, 235);
  border-bottom: 0 solid rgb(229, 231, 235);
  border-left: 0 solid rgb(229, 231, 235);
  border-image: none;
  padding-bottom: 0;
}

.country-group + .country-group {
  margin-top: 52px;
}

.country-list-rows .country-button:first-child {
  border-top: 1px solid var(--border);
}

@media (max-width: 820px) {
  .country-group h2 {
    font-size: 28px;
    line-height: 35px;
    margin-bottom: 24px;
  }
}


/* V4 – Größenverhältnis nach Referenz:
   linker Kasten ca. 28 %, Karte ca. 72 % */
.map-section {
  grid-template-columns: minmax(260px, 28fr) minmax(0, 72fr);
  gap: 24px;
  align-items: stretch;
}

.info-panel {
  width: 100%;
  min-width: 0;
}

.map-panel {
  width: 100%;
  min-width: 0;
  min-height: 650px;
}

#africa-map {
  width: 100%;
  max-width: none;
  max-height: 690px;
}

@media (max-width: 820px) {
  .map-section {
    grid-template-columns: 1fr;
  }
}


/* V5 – größere Karte + Hinweis unter der Karte + Mobile: Karte zuerst */
.map-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 760px;
  padding: 14px 18px 18px;
  overflow: visible;
}

#africa-map {
  order: 1;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: 735px;
  flex: 1 1 auto;
}

.map-instruction {
  order: 2;
  position: static;
  transform: none;
  align-self: center;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.70rem;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .map-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .map-panel {
    order: 1;
    min-height: 0;
    padding: 10px 8px 12px;
  }

  .info-panel {
    order: 2;
  }

  #africa-map {
    width: 100%;
    max-height: none;
  }

  .map-instruction {
    margin-top: 0;
    font-size: 0.66rem;
    padding: 4px 8px;
    white-space: normal;
    text-align: center;
  }
}


/* V6 – Länderfenster / Kenia */
.country-modal[hidden] {
  display: none;
}

.country-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
}

.country-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 80, 0.28);
  backdrop-filter: blur(2px);
}

.country-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(44, 62, 80, 0.18);
}

.country-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.country-modal__eyebrow {
  margin: 0 42px 8px 0;
  color: var(--current);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.country-modal__dialog h2 {
  margin: 0 38px 20px 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.18;
}

.country-modal__dialog h3 {
  margin: 28px 0 8px;
  color: var(--current);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.35;
}

.country-modal__dialog p {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.65;
}


@media (max-width: 820px) {
  .country-modal {
    padding: 12px;
  }

  .country-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 26px 22px;
    border-radius: 16px;
  }

  .country-modal__dialog h2 {
    font-size: 1.55rem;
  }

  .country-modal__dialog p {
    font-size: 0.94rem;
  }
}


.country-modal__partners-note {
  color: var(--muted) !important;
  font-style: italic;
}


/* V8 – Popup-Typografie näher an therainworkers.org/wie-wir-arbeiten */
.country-modal__dialog {
  width: min(760px, 100%);
  padding: 46px 48px 50px;
  border-radius: 0;
  border: 0;
  box-shadow: 0 22px 70px rgba(44, 62, 80, 0.20);
}

.country-modal__eyebrow {
  margin: 0 48px 10px 0;
  color: #1479bf;
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.country-modal__dialog h2 {
  margin: 0 48px 30px 0;
  color: #1479bf;
  font-family: "Ubuntu", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 45px;
  hyphens: auto;
}

.country-modal__dialog h3 {
  margin: 38px 0 14px;
  color: #1479bf;
  font-family: "Ubuntu", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  hyphens: auto;
}

.country-modal__dialog p {
  margin: 0 0 18px;
  color: #2c3e50;
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

.country-modal__close {
  top: 22px;
  right: 24px;
  color: #1479bf;
  font-family: "Red Hat Display", sans-serif;
  font-size: 2rem;
  font-weight: 400;
}

.country-modal__close:hover,
.country-modal__close:focus-visible {
  color: #2c3e50;
}

.country-modal__partners-note {
  color: #667788 !important;
}

@media (max-width: 820px) {
  .country-modal {
    padding: 8px;
  }

  .country-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    padding: 34px 24px 38px;
    border-radius: 0;
  }

  .country-modal__eyebrow {
    font-size: 13px;
  }

  .country-modal__dialog h2 {
    margin-right: 30px;
    margin-bottom: 24px;
    font-size: 30px;
    line-height: 38px;
  }

  .country-modal__dialog h3 {
    margin-top: 30px;
    font-size: 24px;
    line-height: 31px;
  }

  .country-modal__dialog p {
    font-size: 16px;
    line-height: 1.6;
  }

  .country-modal__close {
    top: 16px;
    right: 18px;
  }
}


/* V9 – Popup Headline-Styling nach Referenz */
.country-modal__eyebrow {
  color: #7db9e8;
  font-family: "Ubuntu", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-modal__dialog h2 {
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .country-modal__eyebrow {
    font-size: 14px;
    line-height: 1.45;
  }
}


/* V10 – kompakte Kenia-Ansicht mit externer Detailseite */
.country-modal__dialog {
  width: min(680px, 100%);
}

.country-modal__dialog p:last-of-type {
  margin-bottom: 28px;
}

.country-modal__cta {
  display: inline-block;
  padding: 12px 20px;
  background: #1479bf;
  color: #ffffff;
  text-decoration: none;
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 160ms ease, transform 160ms ease;
}

.country-modal__cta:hover,
.country-modal__cta:focus-visible {
  background: #2c3e50;
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .country-modal__dialog {
    width: 100%;
  }

  .country-modal__cta {
    width: 100%;
    text-align: center;
  }
}


/* V11 – eckiges Grunddesign; CTA bewusst als Pill wie Referenz */

/* Alle bisherigen Card-/Panel-Rundungen entfernen */
.info-panel,
.map-panel,
.map-instruction,
.country-modal__dialog,
.country-button {
  border-radius: 0 !important;
}

/* Popup-CTA nach Referenz: hellblauer Pill-Button */
.country-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px !important;
  background: #70b3dc;
  color: #ffffff;
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 160ms ease;
}

.country-modal__cta:hover,
.country-modal__cta:focus-visible {
  background: #1479bf;
  transform: none;
}

@media (max-width: 820px) {
  .country-modal__cta {
    width: auto;
    min-height: 40px;
    padding: 10px 22px;
    font-size: 15px;
  }
}


/* V12 – Ländername beim Hover */
.country-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  display: none;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #dce7ef;
  color: #2c3e50;
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(44, 62, 80, 0.10);
}

.country-tooltip.is-visible {
  display: block;
}

@media (hover: none) {
  .country-tooltip {
    display: none !important;
  }
}


/* V13 – Mobile: lange Gruppenüberschriften sicher innerhalb des Kastens */
@media (max-width: 820px) {
  .info-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .country-group {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .country-group h2 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.28;
  }

  .country-list,
  .country-list-rows,
  .country-list-rows .country-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Noch schmalere Smartphones */
@media (max-width: 390px) {
  .country-group h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .info-panel {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* V14 – robuster iframe-/Container-Responsive-Fix */
.map-section {
  container-type: inline-size;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(300px, 31fr) minmax(0, 69fr);
  gap: 24px;
}

.info-panel,
.map-panel,
.country-group,
.country-list,
.country-list-rows {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Eckiges Grunddesign */
.info-panel,
.map-panel,
.map-instruction,
.country-modal__dialog,
.country-button {
  border-radius: 0 !important;
}

/* Gruppenüberschriften reagieren auf tatsächliche Modulbreite */
.country-group h2 {
  max-width: 100%;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

/* Karte groß halten */
.map-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 700px;
  padding: 14px 18px 18px;
}

#africa-map {
  order: 1;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: 700px;
  flex: 1 1 auto;
}

.map-instruction {
  order: 2;
  position: static;
  transform: none;
  align-self: center;
  margin-top: 2px;
  padding: 5px 10px;
  font-size: 0.70rem;
  line-height: 1.25;
  white-space: nowrap;
}

/* Popup */
.country-modal[hidden] {
  display: none;
}

.country-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
}

.country-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 80, 0.28);
  backdrop-filter: blur(2px);
}

.country-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow-y: auto;
  background: #ffffff;
  border: 0;
  padding: 46px 48px 50px;
  box-shadow: 0 22px 70px rgba(44, 62, 80, 0.20);
}

.country-modal__close {
  position: absolute;
  top: 22px;
  right: 24px;
  border: 0;
  background: transparent;
  color: #1479bf;
  font-family: "Red Hat Display", sans-serif;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.country-modal__eyebrow {
  margin: 0 48px 10px 0;
  color: #7db9e8;
  font-family: "Ubuntu", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-modal__dialog h2 {
  margin: 0 48px 30px 0;
  color: #1479bf;
  font-family: "Ubuntu", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 45px;
  text-transform: uppercase;
  hyphens: auto;
}

.country-modal__dialog p {
  margin: 0 0 18px;
  color: #2c3e50;
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

.country-modal__dialog p:last-of-type {
  margin-bottom: 28px;
}

.country-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px !important;
  background: #70b3dc;
  color: #ffffff;
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 160ms ease;
}

.country-modal__cta:hover,
.country-modal__cta:focus-visible {
  background: #1479bf;
}

/* Tooltip */
.country-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  display: none;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #dce7ef;
  color: #2c3e50;
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(44, 62, 80, 0.10);
}

.country-tooltip.is-visible {
  display: block;
}

/* Reagiert auf tatsächliche Breite des eingebetteten Moduls */
@container (max-width: 1050px) {
  .map-section {
    grid-template-columns: minmax(255px, 35fr) minmax(0, 65fr);
    gap: 18px;
  }

  .info-panel {
    padding: 30px 26px;
  }

  .country-group h2 {
    font-size: 25px;
    line-height: 1.28;
    margin-bottom: 24px;
  }

  .map-panel {
    min-height: 590px;
  }
}

@container (max-width: 760px) {
  .map-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .map-panel {
    order: 1;
    min-height: 0;
    padding: 10px 8px 12px;
  }

  .info-panel {
    order: 2;
    width: 100%;
    padding: 28px 24px;
    overflow: hidden;
  }

  #africa-map {
    width: 100%;
    max-height: none;
  }

  .country-group h2 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(22px, 5.7vw, 28px);
    line-height: 1.28;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .map-instruction {
    font-size: 0.66rem;
    padding: 4px 8px;
    white-space: normal;
    text-align: center;
  }

  .country-modal {
    padding: 8px;
  }

  .country-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    padding: 34px 24px 38px;
  }

  .country-modal__eyebrow {
    font-size: 14px;
  }

  .country-modal__dialog h2 {
    margin-right: 30px;
    margin-bottom: 24px;
    font-size: 30px;
    line-height: 38px;
  }

  .country-modal__dialog p {
    font-size: 16px;
    line-height: 1.6;
  }
}

@container (max-width: 420px) {
  .info-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .country-group h2 {
    font-size: 22px;
    line-height: 1.3;
  }
}

@media (hover: none) {
  .country-tooltip {
    display: none !important;
  }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}


/* V15 – Klickzustand: neutrale Länder bleiben vollständig sichtbar */
.country.is-muted {
  opacity: 0.48;
}

/* Neutrale Länder niemals abdunkeln */
.country.neutral {
  opacity: 1 !important;
}


/* V16 – Farbcodierung der Kategorien auch in den Überschriften */
.country-group--former h2,
.former-heading {
  color: #b8d6ec !important;
}


/* V17 – Kenia Popup Eyebrow passend zur Farbe ehemaliger Projektregionen */
.country-modal__eyebrow {
  color: #b8d6ec !important;
  font-weight: 700 !important;
}

/* V20: Hide buttons when no full country page exists */
.country-modal__cta[hidden] { display: none !important; }
#modal-description p { white-space: normal; }

/* V23: Größere Afrika-Karte auf breiten Screens, responsive und ohne Zuschnitt.
   Auf schmalen Modulen bleibt die Karte vollständig sichtbar. */
@container (min-width: 761px) {
  .map-panel { padding: 12px 10px 18px; }
  #africa-map {
    width: 100%;
    height: auto;
    max-height: 900px;
    flex: 0 1 auto;
    object-fit: contain;
  }
}
@container (max-width: 760px) {
  .map-panel { padding: 8px 4px 12px; }
  #africa-map {
    width: 100%;
    height: auto;
    max-height: none;
    flex: 0 0 auto;
    display: block;
  }
}

/* V24: Desktop map slightly smaller than V23; mobile remains unchanged. */
@container (min-width: 761px) {
  #africa-map {
    width: 90%;
    max-height: 810px;
    align-self: center;
  }
}
