/* Mobile Layout-Korrekturen fuer Startseite und Hero-Varianten. */
.srv-preview {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.srv-card {
  min-height: 0 !important;
  overflow: visible !important;
}

.home-branches {
  overflow: hidden;
}

.home-branches-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  min-height: 600px;
}

.home-branches-photo {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.home-branches-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.home-branches-content {
  background: var(--dark);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.home-branches-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem;
}

.home-branches-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-branches-badge {
  position: absolute;
  bottom: 3rem;
  right: 0;
  background: var(--accent);
  color: var(--dark);
  padding: 1rem 1.5rem;
  border-radius: 8px 0 0 8px;
  text-align: center;
}

@media (max-width: 760px) {
  body.page-presse .page-hero {
    height: 435px !important;
    min-height: 435px !important;
    padding: 76px 0 44px !important;
    align-items: flex-start !important;
  }

  body.page-presse .page-hero-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 18px !important;
  }

  body.page-presse .page-hero h1 {
    margin-top: 7px !important;
    position: relative !important;
    top: 7px !important;
  }
}

@media (max-width: 760px) {
  .section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .srv-preview {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .srv-card {
    width: 100% !important;
    padding: 1.35rem !important;
  }

  .home-branches-grid {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .home-branches-photo {
    min-height: 260px !important;
    max-height: 320px !important;
  }

  .home-branches-photo img {
    object-position: center center !important;
  }

  .home-branches-content {
    padding: 3rem 24px 3.3rem !important;
  }

  .home-branches-content h2 {
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  .home-branches-tags {
    gap: .55rem !important;
  }

  .home-branches-tags span {
    max-width: 100%;
    white-space: normal;
  }

  .home-branches-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .home-branches-actions a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .home-branches-badge {
    position: static !important;
    width: 100%;
    margin-top: 1.2rem;
    border-radius: 8px;
  }

  .ueber-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .ueber-grid .facts-grid {
    width: 100% !important;
    grid-template-columns: 1fr 1fr !important;
    overflow: visible !important;
  }
}
