.service-modal-dialog {
  width: calc(100vw - 60px);
  max-width: 1180px;
}

.service-modal {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: var(--rlenk-blue-dark);
  color: #fff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
}

.service-modal .row {
  min-height: 560px;
}

.service-modal .col-md-5 {
  width: 48%;
}

.service-modal .col-md-7 {
  width: 52%;
}

.service-modal .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  padding: 0.7rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.service-modal-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.service-modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 3rem 3.5rem;
}

.service-modal-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--rlenk-accent-hover);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-modal-content h3 {
  max-width: 540px;
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.08;
  text-wrap: balance;
}

.service-modal-content p {
  max-width: 560px;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.65;
}

.service-modal-content ul {
  margin: 0.8rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.service-modal-content li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.6rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.service-modal-content li::before {
  content: "\F26A";
  position: absolute;
  top: 0.05rem;
  left: 0;
  font-family: "bootstrap-icons";
  color: var(--rlenk-accent-hover);
}

/* Kleinere Desktops und Tablets */
@media (max-width: 991.98px) {
  .service-modal-dialog {
    width: calc(100vw - 30px);
    max-width: 900px;
  }

  .service-modal-content {
    padding: 2.5rem;
  }

  .service-modal-content h3 {
    font-size: 2.15rem;
  }
}

/* Mobil */
@media (max-width: 767.98px) {
  .service-modal-dialog {
    width: auto;
    margin: 15px;
  }

  .service-modal .row {
    min-height: auto;
  }

  .service-modal .col-md-5,
  .service-modal .col-md-7 {
    width: 100%;
  }

  .service-modal-image {
    height: 240px;
    min-height: 240px;
    max-height: 280px;
  }

  .service-modal-content {
    padding: 2rem 1.5rem;
  }

  .service-modal-content h3 {
    font-size: 1.75rem;
  }
}
/* ============================================================
   IMPRESSUM & DATENSCHUTZ
============================================================ */

.legal-modal-dialog {
  width: min(920px, calc(100vw - 40px));
  max-width: 920px;
}

.legal-modal {
  position: relative;
  max-height: calc(100vh - 60px);
  overflow: hidden;
  border: 1px solid rgba(103, 172, 240, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(37, 56, 75, 0.98),
      rgba(23, 38, 55, 0.98)
    );
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.legal-modal .btn-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  padding: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.legal-modal-header {
  padding: 2.5rem 3rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-modal-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--rlenk-accent-hover);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-modal-body {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding: 2rem 3rem 3rem;
  scrollbar-width: thin;
  scrollbar-color:
    rgba(103, 172, 240, 0.65)
    rgba(255, 255, 255, 0.08);
}

.legal-modal-body h3 {
  margin: 2rem 0 0.8rem;
  color: #fff;
  font-size: 1.2rem;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.legal-modal-body a {
  color: var(--rlenk-accent-hover);
}

.legal-modal-body a:hover {
  color: #fff;
}

@media (max-width: 767.98px) {
  .legal-modal-dialog {
    width: auto;
    margin: 15px;
  }

  .legal-modal {
    max-height: calc(100vh - 30px);
  }

  .legal-modal-header {
    padding: 2rem 1.5rem 1.25rem;
  }

  .legal-modal-body {
    max-height: calc(100vh - 165px);
    padding: 1.5rem;
  }

  .legal-modal-header h2 {
    font-size: 1.8rem;
  }
}
/* Modal immer über dem festen Header anzeigen */
.modal {
  z-index: 10050;
}

.modal-backdrop {
  z-index: 10040;
}
#modalWebService .service-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

#modalWebService .service-project-card {
  position: relative;
  min-height: 125px;
  overflow: hidden;
  border: 1px solid rgba(103, 172, 240, 0.3);
  border-radius: 14px;
  background: #102a42;
}

#modalWebService .service-project-card img {
  width: 100%;
  height: 100%;
  min-height: 125px;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#modalWebService .service-project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(
    transparent 15%,
    rgba(7, 21, 35, 0.94) 100%
  );
  color: #fff;
}

#modalWebService .service-project-overlay small {
  color: #67acf0;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

#modalWebService .service-project-overlay strong {
  padding-right: 26px;
  font-size: 0.9rem;
}

#modalWebService .service-project-overlay i {
  position: absolute;
  right: 14px;
  bottom: 15px;
  color: #67acf0;
}

#modalWebService .service-project-card:hover img {
  transform: scale(1.06);
}

@media (max-width: 575.98px) {
  #modalWebService .service-project-grid {
    grid-template-columns: 1fr;
  }
}
