/* Navbar */

.nav-bar-item,
.nav-bar-item-phone {
  white-space: nowrap;
}

.nav-bar-item-phone:hover {
  color: #fff !important;
}

@media (max-width: 1199.98px) {
  .navbar .navbar-collapse {
    background-color: #2d6760;
  }
}

/* theme.css styles the collapsed menu only below 992px; the menu now collapses below 1200px */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar > .container {
    flex-wrap: nowrap;
  }

  .navbar-toggler {
    margin-left: auto;
  }

  .navbar .navbar-collapse {
    position: fixed;
    top: 68px;
    background-color: #2d6760 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .nav-bar-item-phone {
    margin-left: 0;
    margin-top: 50px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-nav.gap-xl-x1 {
    gap: 1rem !important;
  }

  .nav-bar-item,
  .nav-bar-item-phone {
    font-size: 18px !important;
  }

  .nav-bar-item-phone {
    margin-left: 0.5rem;
  }
}

/* Team */

.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  justify-items: center;
}

.team-member {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 478px;
  border: 2px solid #2d6760;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 72, 56, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(18, 72, 56, 0.14);
}

.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
}

.team-info {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
}

.team-name {
  margin-bottom: 0.25rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.2;
  white-space: nowrap;
}

.team-info .mt-2 {
  margin-top: 1rem !important;
}

@media (prefers-reduced-motion: reduce) {
  .team-member,
  .team-member:hover {
    transition: none;
    transform: none;
  }
}

@media (min-width: 992px) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Prices */

.price-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.price-card {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  align-items: center;
  max-width: 260px;
  padding: 1.5rem 1rem;
  border: 2px solid #2d6760;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.price-duration {
  color: #2f2f2f;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.price-amount {
  color: #2d6760;
  font-size: 2rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-amount small {
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 767.98px) {
  .price-cards {
    justify-content: center;
  }

  .price-card {
    flex-basis: 130px;
    padding: 1.25rem 0.5rem;
  }

  .price-amount {
    font-size: 1.6rem;
  }
}

/* Map */

.google-map {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-top: 1rem;
  border-radius: 16px;
}

/* Body text is easier to read left-aligned than centered on small screens */
@media (max-width: 991.98px) {
  section p.lh-xl {
    text-align: left;
  }
}

/* Headings shrink on phones so the longest word still fits on one line */
@media (max-width: 767.98px) {
  h1.fs-5 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  h1.title-long {
    font-size: clamp(1.4rem, 7vw, 3rem) !important;
  }

  h4 {
    font-size: clamp(1.1rem, 5.2vw, 1.4rem);
  }
}

/* Last resort against overflow from single words wider than the line, e.g. URLs */
@media (max-width: 575.98px) {
  h1, h2, h3, h4,
  p, li {
    overflow-wrap: break-word;
  }

  footer a {
    overflow-wrap: anywhere;
  }
}

/* "Über mich" drawers */

.drawer-body {
  margin: 0 1rem;
}

@media (min-width: 768px) {
  .drawer-body {
    margin: 0 50px;
  }
}

/* Fixed call / booking bar on phones */

.mobile-cta {
  display: none;
}

@media (max-width: 767.98px) {
  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }

  .mobile-cta-btn {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-cta-call {
    border: 2px solid #2d6760;
    color: #2d6760;
  }

  .mobile-cta-book {
    background: #2d6760;
    color: #fff;
  }

  .mobile-cta-btn:hover,
  .mobile-cta-btn:focus {
    text-decoration: none;
  }

  .mobile-cta-call:hover,
  .mobile-cta-call:focus {
    color: #2d6760;
  }

  .mobile-cta-book:hover,
  .mobile-cta-book:focus {
    color: #fff;
  }

  body:has(.mobile-cta) {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
}
