/* Zuordnung von WordPress-Blockwrappern zu den Komponenten-Klassen. */

/* Icon-Block (kjp/icon): das <i> bleibt im Kreis exakt zentriert wie im Quellmarkup. */
.feature-icon-circle > .wp-block-kjp-icon,
.download-icon-circle > .wp-block-kjp-icon,
.method-icon > .wp-block-kjp-icon,
.career-icon > .wp-block-kjp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Galerie: Core-Figure und Bild füllen den Rahmen wie zuvor das direkte img. */
.gallery-portrait-item > .wp-block-image,
.gallery-landscape-item > .wp-block-image {
  margin: 0;
  height: 100%;
}

.gallery-portrait-item > .wp-block-image > img,
.gallery-landscape-item > .wp-block-image > img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Notfallnummern-Vorlage (Werte aus der Quelle notfallnummern_section.html) */
.emergency-section {
  padding: 100px 20px;
}

.emergency-container {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.emergency-container > * {
  margin-block-start: 0;
}

.emergency-header {
  text-align: center;
  margin-bottom: 50px;
}

.emergency-title {
  font-size: 2.5em;
  margin-bottom: 12px;
}

.emergency-subtitle {
  font-size: 1.1em;
  color: #4a5568;
  margin: 0;
}

.emergency-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.emergency-list > * {
  margin: 0;
}

.emergency-card {
  width: 100%;
  background-color: #fdf5ef;
  border-radius: 14px;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  margin: 0;
}

.emergency-card .wp-block-buttons {
  margin: 0;
}

.emergency-card .wp-block-button__link {
  min-width: 200px;
  justify-content: center;
  white-space: nowrap;
}

.emergency-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.emergency-label {
  font-size: 1.15em;
  font-weight: 600;
  color: #213242;
  margin: 0;
}

.emergency-note {
  font-size: 0.9em;
  color: #5a6670;
  margin: 0;
}

.emergency-divider {
  width: 120px;
  border: none;
  height: 2px;
  background-color: #e0e0e0;
  margin: 50px auto 40px;
}

.emergency-appointment-box {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 20px 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  margin: 0;
}

.appointment-frame {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  margin: 0;
}

.appointment-frame .wp-block-image {
  margin: 0;
  height: 100%;
}

.appointment-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.appointment-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 28px;
  margin: 0;
}

.appointment-content > * {
  margin: 0;
}

.appointment-text {
  font-size: 1.15em;
  font-weight: 600;
  color: #213242;
  margin: 0;
}

.appointment-content .wp-block-buttons {
  margin: 0;
  flex-shrink: 0;
}

.appointment-content .wp-block-button__link {
  min-width: 200px;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .emergency-title {
    font-size: 2em;
  }

  .emergency-section {
    padding: 60px 16px;
  }

  .emergency-card {
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
    text-align: center;
  }

  .emergency-card-text {
    align-items: center;
  }

  .emergency-card .wp-block-buttons {
    width: 100%;
    justify-content: center;
  }

  .emergency-label {
    font-size: 1em;
  }

  .emergency-appointment-box {
    flex-direction: column;
    text-align: center;
  }

  .appointment-content {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .appointment-content .wp-block-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Erstgespräch-Karte (Referenz: weiße Karte, Schatten, Icon-Feld links) */
.erstgespraech-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 46px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  margin: 32px 0;
}

.erstgespraech-icon-box {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  box-shadow: none;
  margin: 0;
}

.erstgespraech-icon-box i {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: #f08d49;
}

.erstgespraech-headline {
  flex: 0 0 36%;
  margin: 0;
}

.erstgespraech-headline h2 {
  margin: 0;
}

.erstgespraech-text {
  flex: 1 1 0;
  margin: 0;
  color: #202c39;
}

.erstgespraech-text p {
  margin: 0;
}

.erstgespraech-text p + p {
  margin-top: 1em;
}

@media (max-width: 991px) {
  .erstgespraech-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
  }

  .erstgespraech-headline {
    flex: 0 0 auto;
  }
}
