/* ================================================
   READ MORE SECTION
   ================================================ */
section.service-detail-benefits.section.last-section>div>div {
    max-width: unset !important;
}

section.service-detail-benefits.section.last-section>div>div>div {
    display: flex;
}

section.read-more-section.section>div>div {
    max-width: unset;
}

.read-more-toggle-wrapper {
    text-align: left;
}
.read-more-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.read-more-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary, #1b6097), transparent);
  opacity: 0.2;
}

/* Content Wrapper */
.read-more-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Individual Block */
.read-more-block {
  margin-bottom: 36px;
}

.read-more-block:last-child {
  margin-bottom: 0;
}

.read-more-block h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary, #1b6097);
  line-height: 1.4;
}

.read-more-block p {
  /* font-family: 'Lora', serif; */
  font-size: 1.05rem;
  line-height: 1.85;
  color: #4a4a5a;
  margin-bottom: 14px;
}

.read-more-block p:last-child {
  margin-bottom: 0;
}

/* Collapsible Content */
.read-more-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
  position: relative;
}

.read-more-collapsible.expanded {
  max-height: 3000px;
  opacity: 1;
}

/* Fade-out gradient when collapsed */
.read-more-content:not(:has(.expanded)) .read-more-collapsible::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #f8fafc);
  z-index: 1;
  pointer-events: none;
}

/* Toggle Button Wrapper */
.read-more-toggle-wrapper {
  text-align: left;
  margin-top: 32px;
  position: relative;
}

.read-more-toggle-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d0d5dd, transparent);
  z-index: 0;
}

/* Toggle Button */
.read-more-toggle-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: #ffffff;
  color: var(--primary, #1b6097);
  border: 2px solid var(--primary, #1b6097);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(27, 96, 151, 0.08);
}

.read-more-toggle-btn:hover {
  background: var(--primary, #1b6097);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(27, 96, 151, 0.25);
  transform: translateY(-2px);
}

.read-more-toggle-btn .toggle-icon {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.read-more-toggle-btn:hover .toggle-icon {
  transform: translateY(3px);
}

/* ================================================
   READ MORE RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
  .read-more-section {
    padding: 60px 0;
  }

  .read-more-block h3 {
    font-size: 1.15rem;
    padding-left: 12px;
  }

  .read-more-block p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .read-more-toggle-btn {
    padding: 12px 28px;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .read-more-section {
    padding: 48px 0;
  }

  .read-more-block {
    margin-bottom: 28px;
  }

  .read-more-block h3 {
    font-size: 1.05rem;
  }

  .read-more-block p {
    font-size: 0.92rem;
  }

  .read-more-toggle-btn {
    padding: 10px 24px;
    font-size: 0.88rem;
    width: 100%;
    justify-content: center;
  }
}


/* ================================================
   MOBILE FOOTER BAR
   ================================================ */

.mobile-footer-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1), 0 -1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 6px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Shared col styles */
.mobile-footer-bar .mobile-footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Icon wrapper */
.mf-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.25s ease;
  font-size: 1.2rem;
}

/* Label */
.mf-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: all 0.25s ease;
}

/* --- Leistungen Column (left) --- */
.mobile-footer-bar .mobile-footer-col:first-child {
  color: var(--primary, #1b6097);
}

.mobile-footer-bar .mobile-footer-col:first-child .mf-icon-wrap {
  background: rgba(27, 96, 151, 0.08);
  color: var(--primary, #1b6097);
}

.mobile-footer-bar .mobile-footer-col:first-child:active .mf-icon-wrap {
  background: rgba(27, 96, 151, 0.18);
  transform: scale(0.92);
}

/* --- CTA Column (right) --- */
.mobile-footer-bar .mobile-footer-cta {
  color: #ffffff;
}

.mobile-footer-bar .mobile-footer-cta .mf-icon-wrap {
  background: var(--primary, #1b6097);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(27, 96, 151, 0.35);
}

.mobile-footer-bar .mobile-footer-cta .mf-label {
  color: var(--primary, #1b6097);
  font-weight: 700;
}

.mobile-footer-bar .mobile-footer-cta:active .mf-icon-wrap {
  transform: scale(0.92);
  box-shadow: 0 1px 6px rgba(27, 96, 151, 0.3);
}

/* Divider between columns */
.mobile-footer-bar .mobile-footer-col:first-child::after {
  content: '';
  position: absolute;
  right: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, transparent, #d1d5db, transparent);
}


/* ================================================
   MOBILE SERVICES POPUP - OVERLAY
   ================================================ */

.mobile-services-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-services-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* ================================================
   MOBILE SERVICES POPUP - SHEET
   ================================================ */

.mobile-services-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.18);
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-services-popup.active {
  transform: translateY(0);
}

/* Drag handle */
.mobile-services-popup-handle {
  width: 40px;
  height: 4px;
  background: #d1d5db;
  border-radius: 4px;
  margin: 12px auto 0;
}

/* Popup Header */
.mobile-services-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 16px;
  border-bottom: 1px solid #f2f4f7;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2;
}

.ms-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ms-header-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary, #1b6097), var(--primary-light, #2d7ab8));
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.9rem;
}

.mobile-services-popup-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 0;
}

.mobile-services-close {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: none;
  background: var(--gray-100, #f3f4f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500, #6b7280);
  font-size: 1rem;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 10;
  touch-action: manipulation;
}

.mobile-services-close i {
  pointer-events: none;
}

.mobile-services-close:active {
  background: var(--gray-200, #e5e7eb);
  transform: scale(0.9);
}


/* ================================================
   SERVICES GRID (3-column card layout)
   ================================================ */

.mobile-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 20px 12px;
}

.ms-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 14px;
  text-decoration: none;
  border-radius: 16px;
  background: var(--gray-50, #fafafa);
  border: 1px solid var(--gray-200, #e5e7eb);
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.ms-card:active {
  transform: scale(0.95);
  background: #f0f4f8;
  border-color: var(--primary, #1b6097);
}

/* Card icon — each has unique hue via CSS var */
.ms-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.15rem;
  background: hsl(var(--card-hue, 210), 60%, 95%);
  color: hsl(var(--card-hue, 210), 55%, 42%);
  transition: all 0.25s ease;
}

.ms-card:active .ms-card-icon {
  background: hsl(var(--card-hue, 210), 60%, 88%);
  transform: scale(1.08);
}

.ms-card-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-700, #374151);
  text-align: center;
  line-height: 1.3;
  hyphens: auto;
  -webkit-hyphens: auto;
}


/* ================================================
   POPUP FOOTER
   ================================================ */

.ms-popup-footer {
  padding: 8px 20px 20px;
}

.ms-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary, #1b6097), var(--primary-dark, #144a75));
  color: #ffffff;
  text-decoration: none;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(27, 96, 151, 0.3);
}

.ms-view-all:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(27, 96, 151, 0.25);
}

.ms-view-all i {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.ms-view-all:active i {
  transform: translateX(3px);
}


/* ================================================
   MOBILE FOOTER RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
  .mobile-footer-bar {
    display: flex;
  }

  body {
    padding-bottom: 76px;
  }

  .floating-buttons {
    bottom: 88px;
  }
}

@media (max-width: 380px) {
  .mobile-services-grid {
    gap: 8px;
    padding: 16px 14px 10px;
  }

  .ms-card {
    padding: 14px 6px 12px;
  }

  .ms-card-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .ms-card-label {
    font-size: 0.65rem;
  }
}

@media (min-width: 1025px) {
  .mobile-footer-bar,
  .mobile-services-overlay,
  .mobile-services-popup {
    display: none !important;
  }
}


/* ================================================
   STANDORTE MEGA MENU - Full Width
   ================================================ */

/* Override default mega-menu sizing to full viewport width */
.has-standorte-mega .standorte-mega {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  transform: translateY(15px);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.18);
  background: unset;
  box-shadow: unset;
  overflow: visible;
}

.nav-item.has-standorte-mega:hover .standorte-mega {
  transform: translateY(0);
}

/* Inner wrapper */
.standorte-mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  /* padding: 28px 32px 0; */
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ================================================
   STANDORTE GRID - 6 columns of district cards
   ================================================ */

.standorte-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 20px 15px 0px 15px;
}

/* Individual district card */
.standort-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.standort-card:hover {
  background: #ffffff;
  border-color: var(--primary, #1b6097);
  box-shadow: 0 4px 16px rgba(27, 96, 151, 0.12);
  transform: translateY(-2px);
}

/* Pin icon */
.standort-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(27, 96, 151, 0.08), rgba(27, 96, 151, 0.15));
  color: var(--primary, #1b6097);
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

.standort-card:hover .standort-icon {
  background: linear-gradient(135deg, var(--primary, #1b6097), var(--primary-light, #2d7ab8));
  color: #ffffff;
  transform: scale(1.1);
}

/* District name */
.standort-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700, #374151);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.standort-card:hover .standort-name {
  color: var(--primary, #1b6097);
}

/* ================================================
   STANDORTE MEGA FOOTER CTA
   ================================================ */

.standorte-mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border-top: 1px solid rgba(27, 96, 151, 0.1);
  border-radius: 0 0 16px 16px;
}

.standorte-footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--gray-600, #4b5563);
}

.standorte-footer-info i {
  font-size: 1.1rem;
  color: var(--primary, #1b6097);
}

.standorte-footer-info strong {
  color: var(--primary-dark, #144a75);
}

.standorte-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary, #1b6097);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(27, 96, 151, 0.25);
}

.standorte-footer-btn:hover {
  background: var(--primary-dark, #144a75);
  box-shadow: 0 6px 20px rgba(27, 96, 151, 0.35);
  transform: translateY(-1px);
}

.standorte-footer-btn i {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.standorte-footer-btn:hover i {
  transform: translateX(4px);
}

/* ================================================
   STANDORTE MEGA MENU - RESPONSIVE
   ================================================ */

@media (max-width: 1200px) {
  .standorte-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991px) {
  .standorte-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .standorte-mega-inner {
    padding: 20px 20px 0;
  }

  .standort-card {
    padding: 10px 12px;
  }

  .standort-name {
    font-size: 0.78rem;
  }

  .standorte-mega-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 14px 20px;
  }
}

@media (max-width: 576px) {
  .standorte-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .standort-card {
    padding: 10px;
    gap: 8px;
  }

  .standort-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.7rem;
  }

  .standort-name {
    font-size: 0.75rem;
  }

  .standorte-mega-footer {
    margin-top: 16px;
    padding: 12px 16px;
  }

  .standorte-footer-info {
    font-size: 0.78rem;
  }

  .standorte-footer-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
}
