/**
 * /planung-service — Layout an Unternehmensprofil (ahf-profil-page).
 * Scope: body.nav-planung-service
 */

body.nav-planung-service #main {
  max-width: none;
}

.ahf-planung-hero {
  width: 100%;
  max-width: 62rem;
  margin: 0 0 1.4rem auto;
}

.ahf-planung-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ahf-planung-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 0.35rem;
}

.ahf-planung-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1.1rem 1.2rem;
  background: var(--ahf-profil-card, #fff);
  border: 1px solid var(--ahf-profil-line, #e4eaec);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 40, 48, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ahf-planung-card:hover,
.ahf-planung-card:focus-within {
  border-color: #1b978d;
  box-shadow: 0 4px 18px rgba(27, 151, 141, 0.14);
}

.ahf-planung-card--accent {
  border-top: 3px solid var(--ahf-profil-accent, #1b978d);
  background: linear-gradient(180deg, #f3faf9 0%, var(--ahf-profil-card, #fff) 55%);
}

.ahf-planung-card__media {
  width: 7.5rem;
  height: 7.5rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(27, 151, 141, 0.25);
  background: #fff;
}

.ahf-planung-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ahf-planung-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ahf-profil-head, #2a2a2a);
  line-height: 1.3;
}

.ahf-planung-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ahf-profil-muted, #5a6570);
}

.ahf-planung-page .ahf-profil-section p a {
  color: var(--ahf-profil-accent, #1b978d);
  font-weight: 600;
  text-decoration: none;
}

.ahf-planung-page .ahf-profil-section p a:hover {
  text-decoration: underline;
}

.ahf-planung-page .ahf-contact-band {
  width: calc(100% + 400px) !important;
  margin-bottom: 2.5rem;
}

.ahf-planung-page .ahf-contact-band__inner {
  container-type: inline-size;
}

@container (max-width: 60rem) {
  .ahf-planung-page .ahf-contact-band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ahf-planung-page .ahf-contact-company {
    grid-column: 1 / -1;
    min-height: 0;
    margin-top: 0;
    padding: var(--ahf-band-pad) 0 0;
    border-top: 1px solid #d0d6da;
    border-left: 0;
  }
}

@container (max-width: 38rem) {
  .ahf-planung-page .ahf-contact-band__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .ahf-planung-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ahf-planung-page .ahf-contact-band {
    width: 100% !important;
  }
}

@media (max-width: 575px) {
  .ahf-planung-grid {
    grid-template-columns: 1fr;
  }
}
