/* ==========================================================================
   Standortseite
   ========================================================================== */

.locations-details {
  padding: clamp(64px, 7vw, 104px) 24px;
  background-color: #f1f7f6;
}

.locations-details__inner {
  width: min(100%, var(--mh-content-width));
  margin: 0 auto;
}

/* ==========================================================================
   Einzelner Standort
   ========================================================================== */

.location-detail {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 24px;

  margin-bottom: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);

  border-radius: 32px;
  background-color: var(--mh-white);
  box-shadow: 0 18px 45px rgb(0 89 93 / 8%);
}

.location-detail:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Standortüberschrift
   ========================================================================== */

.location-detail__district,
.location-detail__title {
  grid-column: 1 / -1;
}

.location-detail__district {
  display: inline-flex;
  justify-self: start;

  margin: 0;
  padding: 8px 18px;

  border-radius: 999px;
  background-color: var(--mh-yellow);
  color: var(--mh-dark-teal);

  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.location-detail__title {
  margin: 0;
  color: var(--mh-dark-teal);

  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.08;
}

/* ==========================================================================
   Standortdaten
   ========================================================================== */

.location-detail__facts {
  grid-column: 1;
  grid-row: 3;

  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-self: start;

  margin: 0;
}

.location-detail__fact {
  padding: 16px 18px;

  border-radius: 14px;
  background-color: #edf5f4;
}

.location-detail__fact h3 {
  margin: 0 0 5px;
  color: var(--mh-dark-teal);

  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.location-detail__fact p,
.location-detail__fact address {
  margin: 0;
  color: var(--mh-text);

  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.5;
}

.location-detail__fact a {
  color: var(--mh-dark-teal);
  font-weight: 700;

  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.location-detail__fact a:hover,
.location-detail__fact a:focus-visible {
  color: var(--mh-green);
}

/* ==========================================================================
   Beschreibung
   ========================================================================== */

.location-detail__description {
  grid-column: 2;
  grid-row: 3;

  color: var(--mh-text);
}

.location-detail__description p {
  margin: 0 0 1.1em;
  line-height: 1.7;
}

.location-detail__description p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Pädagogische Schwerpunkte
   ========================================================================== */

.location-detail__focus {
  grid-column: 1 / -1;
  grid-row: 4;

  margin-top: 8px;
  padding: 24px 26px;

  border-left: 5px solid var(--mh-yellow);
  border-radius: 0 18px 18px 0;
  background-color: #f8f9e8;
  color: var(--mh-text);
}

.location-detail__focus h3 {
  margin: 0 0 10px;
  color: var(--mh-dark-teal);

  font-size: 1.15rem;
  line-height: 1.3;
}

.location-detail__focus h3:not(:first-child) {
  margin-top: 28px;
}

.location-detail__focus p {
  margin: 0 0 1em;
  line-height: 1.65;
}

.location-detail__focus p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Call-to-Action
   ========================================================================== */

.location-detail__cta {
  grid-column: 1 / -1;
  grid-row: 5;
  justify-self: start;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  margin-top: 4px;
  padding: 12px 22px;

  border-radius: var(--mh-radius-sm);
  background-color: var(--mh-green);
  color: var(--mh-white);

  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.location-detail__cta:hover,
.location-detail__cta:focus-visible {
  background-color: var(--mh-primary-dark);
  color: var(--mh-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 800px) {
  .locations-details {
    padding: 56px 16px;
  }

  .location-detail {
    display: block;

    margin-bottom: 32px;
    padding: 28px 20px;

    border-radius: 28px;
  }

  .location-detail__district {
    margin-bottom: 18px;
  }

  .location-detail__title {
    margin-bottom: 28px;
  }

  .location-detail__facts {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 32px;
  }

  .location-detail__description {
    margin-top: 0;
  }

  .location-detail__focus {
    margin-top: 32px;
    padding: 20px;
  }

  .location-detail__cta {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .locations-details {
    padding-inline: 12px;
  }

  .location-detail {
    padding: 24px 16px;
    border-radius: 22px;
  }

  .location-detail__district {
    padding: 7px 14px;
    font-size: 0.75rem;
  }

  .location-detail__title {
    font-size: 1.85rem;
  }

  .location-detail__fact {
    padding: 14px 16px;
  }

  .location-detail__focus {
    border-left-width: 4px;
    border-radius: 0 14px 14px 0;
  }

  .location-detail__cta {
    width: 100%;
  }
}
