/* ==========================================================================
   YogaPänz – Einzugsgebiet: Textspalte und animierte Kartengrafik
   ========================================================================== */

.catchment__grid {
  display: grid;
  gap: var(--space-l);
  grid-template-areas:
    'intro'
    'map'
    'groups';
}

.catchment__intro {
  grid-area: intro;
}

.catchment__groups {
  grid-area: groups;
}

.map {
  grid-area: map;
}

.catchment__intro .lead {
  margin-bottom: 0;
}

.catchment__group + .catchment__group {
  margin-top: var(--space-m);
}

.catchment__group h3 {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-bottom: var(--space-xs);
}

.catchment__places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.catchment__places li {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream);
  font-size: var(--step--1);
  font-weight: 700;
}

.catchment__groups > p {
  margin: var(--space-m) 0 0;
}

.catchment__groups > p:first-child {
  margin-top: 0;
}

@media (min-width: 58rem) {
  .catchment__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-areas:
      'intro map'
      'groups map';
    align-items: start;
    gap: var(--space-l) var(--space-2xl);
  }

  .map {
    align-self: center;
  }
}

/* --- Karte ------------------------------------------------------------- */

.map {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--petal-sm);
  background: var(--cream);
}

@media (min-width: 48rem) {
  .map {
    aspect-ratio: 1000 / 720;
  }
}

.map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map__ground {
  fill: var(--cream);
}

.map__region {
  fill: var(--leaf-soft);
  fill-opacity: 0.55;
  stroke: var(--leaf-deep);
  stroke-width: 2;
  stroke-dasharray: 10 10;
}

.map__koeln {
  fill: var(--plum-tint);
}

.map__rail {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 4;
  stroke-dasharray: 16 10;
  opacity: 0.6;
}

.map__roads-outline path {
  fill: none;
  stroke: var(--line);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map__roads path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map__dot {
  fill: var(--paper);
  stroke: var(--plum);
  stroke-width: 3;
}

.map__dot--minor {
  stroke: var(--ink-soft);
  stroke-width: 2.5;
}

.map__label {
  font-family: var(--font-text);
  font-size: 23px;
  font-weight: 800;
  fill: var(--ink);
  stroke: var(--cream);
  stroke-width: 6px;
  stroke-linejoin: round;
  paint-order: stroke;
}

.map__label--minor {
  font-size: 19px;
  font-weight: 700;
  fill: var(--ink-soft);
}

.map__label--region {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--ink-muted);
  stroke: none;
}

.map__label--center {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  fill: var(--plum);
}

.map__label--studio {
  font-size: 20px;
  fill: var(--plum);
}

/* Auf kleinen Displays zeigt der Ausschnitt die wichtigsten Orte größer. */
@media (max-width: 47.999rem) {
  .map__label {
    font-size: 27px;
  }

  .map__label--minor,
  .map__dot--minor {
    display: none;
  }

  .map__label--center {
    font-size: 46px;
  }

  .map__label--studio {
    font-size: 24px;
  }
}

/* --- Studio-Marker ----------------------------------------------------- */

.map__studio-dot {
  fill: var(--plum);
  stroke: var(--paper);
  stroke-width: 4;
}

.map__lotus {
  fill: var(--leaf);
}

.map__pulse {
  fill: none;
  stroke: var(--plum);
  stroke-width: 3;
  transform-origin: 500px 350px;
  animation: map-pulse 3s ease-out infinite;
}

@keyframes map-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* --- Fahrzeuge --------------------------------------------------------- */

.map__vehicle {
  opacity: 0;
}

.map__wheel {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 1.5;
}

.map__frame,
.map__rider {
  fill: none;
  stroke: var(--plum);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map__head {
  fill: var(--cream);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.map__helmet {
  fill: var(--leaf);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.map__car-body {
  fill: var(--plum);
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.map__bus-body {
  fill: var(--leaf);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.map__window {
  fill: var(--cream);
  stroke: var(--ink);
  stroke-width: 1;
}

/* Ohne Skript und mit reduzierter Bewegung bleibt die Karte statisch. */
@media (prefers-reduced-motion: reduce) {
  .map__pulse {
    animation: none;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) and (scripting: none) {
  .map__vehicles {
    display: none;
  }
}
