.afd-svg-map {
  --afd-hellblau: #00a2df;
  --afd-blau: #006699;
  --afd-dunkel: #173557;
  width: 100%;
  max-width: 610px;
  margin: -86px auto 0;
}

.afd-svg-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.afd-svg-map .afd-map-link,
.afd-svg-map .afd-map-link:visited,
.afd-svg-map .afd-map-link:hover,
.afd-svg-map .afd-map-link:focus {
  text-decoration: none;
  outline: none;
}

.afd-svg-map .map-region {
  fill: url("#afd-map-grey");
  stroke: rgba(23, 53, 87, 0.52);
  stroke-width: 0.8;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 1;
  transition: fill 180ms ease, stroke 180ms ease, transform 180ms ease, filter 180ms ease;
}

.afd-svg-map .map-region[data-type="stadtverband"] {
  fill: #006699;
  stroke: #173557;
}

.afd-svg-map .afd-map-link:hover .map-region,
.afd-svg-map .afd-map-link:focus .map-region {
  filter: brightness(1.03);
  transform: scale(1.016);
  stroke-width: 1.35;
}

.afd-svg-map .afd-map-link:hover .map-region[data-type="stadtverband"],
.afd-svg-map .afd-map-link:focus .map-region[data-type="stadtverband"] {
  fill: #173557;
  stroke: #00a2df;
}

.afd-svg-map .afd-map-link:hover .map-region[data-type="aufbau"],
.afd-svg-map .afd-map-link:focus .map-region[data-type="aufbau"] {
  fill: #e7eef5;
  stroke: #173557;
}

.afd-svg-map .afd-map-label {
  fill: #14283d;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
  opacity: 1;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 0.6;
  stroke-linejoin: round;
}

.afd-svg-map .afd-map-label[data-type="stadtverband"] {
  fill: #ffffff;
  stroke: rgba(23, 53, 87, 0.42);
}

.afd-svg-map.is-visible .map-region {
  animation: afd-map-region-in 520ms ease both;
}

.afd-svg-map.is-visible .afd-map-label {
  animation: afd-map-label-in 520ms ease both;
}

.afd-map-panel {
  --afd-hellblau: #00a2df;
  --afd-blau: #006699;
  --afd-dunkel: #173557;
  --afd-text: #4a5560;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-left: 9px solid var(--afd-dunkel);
  border-image: linear-gradient(180deg, var(--afd-dunkel) 0%, var(--afd-blau) 48%, var(--afd-hellblau) 100%) 1;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 18px 36px rgba(23, 53, 87, 0.12);
  color: var(--afd-text);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  padding: 24px 22px 24px 28px;
  min-height: 500px;
}

.afd-map-panel::before {
  content: none;
}

.afd-panel-kicker {
  color: var(--afd-hellblau);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.afd-map-panel h3 {
  color: var(--afd-dunkel);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 8px;
  min-height: 76px;
}

.afd-panel-status {
  color: var(--afd-blau);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 18px;
  min-height: 24px;
}

.afd-panel-image-wrap {
  aspect-ratio: 4 / 5;
  background: #f4f7fa;
  border: 4px solid var(--afd-dunkel);
  border-radius: 14px;
  margin: 0 0 16px;
  max-width: 195px;
  overflow: hidden;
  width: 100%;
}

.afd-panel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.afd-panel-text {
  color: var(--afd-text);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 18px;
  min-height: 72px;
}

.afd-panel-lists {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 0 20px;
}

.afd-panel-list-column h4 {
  color: var(--afd-dunkel);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px;
}

.afd-panel-list-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.afd-panel-list-column li {
  color: var(--afd-text);
  font-size: 14px;
  line-height: 1.22;
  margin: 0 0 7px;
  padding-left: 14px;
  position: relative;
}

.afd-panel-list-column li::before {
  background: var(--afd-hellblau);
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 0.55em;
  width: 5px;
}

.afd-panel-hint {
  border-top: 1px solid rgba(23, 53, 87, 0.16);
  color: var(--afd-dunkel);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: auto;
  padding-top: 16px;
}

.afd-panel-body.is-changing {
  animation: none;
}

.afd-panel-body.is-changing .afd-panel-kicker,
.afd-panel-body.is-changing h3,
.afd-panel-body.is-changing .afd-panel-status,
.afd-panel-body.is-changing .afd-panel-image-wrap,
.afd-panel-body.is-changing .afd-panel-text,
.afd-panel-body.is-changing .afd-panel-lists,
.afd-panel-body.is-changing .afd-panel-hint {
  animation: afd-panel-item-in 280ms ease both;
}

.afd-panel-body.is-changing h3 {
  animation-delay: 35ms;
}

.afd-panel-body.is-changing .afd-panel-status {
  animation-delay: 70ms;
}

.afd-panel-body.is-changing .afd-panel-image-wrap {
  animation-delay: 105ms;
}

.afd-panel-body.is-changing .afd-panel-text {
  animation-delay: 140ms;
}

.afd-panel-body.is-changing .afd-panel-lists {
  animation-delay: 175ms;
}

.afd-panel-body.is-changing .afd-panel-hint {
  animation-delay: 210ms;
}

.afd-svg-map.is-visible .afd-map-link:nth-child(1) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(1) { animation-delay: 20ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(2) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(2) { animation-delay: 80ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(3) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(3) { animation-delay: 140ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(4) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(4) { animation-delay: 200ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(5) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(5) { animation-delay: 260ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(6) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(6) { animation-delay: 320ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(7) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(7) { animation-delay: 380ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(8) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(8) { animation-delay: 440ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(9) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(9) { animation-delay: 500ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(10) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(10) { animation-delay: 560ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(11) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(11) { animation-delay: 620ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(12) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(12) { animation-delay: 680ms; }
.afd-svg-map.is-visible .afd-map-link:nth-child(13) .map-region,
.afd-svg-map.is-visible .afd-map-label:nth-child(13) { animation-delay: 740ms; }

@keyframes afd-map-region-in {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes afd-map-label-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes afd-panel-item-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .afd-svg-map.is-visible .map-region,
  .afd-svg-map.is-visible .afd-map-label {
    animation: none;
  }

  .afd-svg-map .map-region {
    transition: fill 120ms ease, stroke 120ms ease;
  }

  .afd-panel-body.is-changing {
    animation: none;
  }
}
