/* Verhindert horizontales Scrollen */
body {
    overflow-x: hidden;
}

/* Wrapper ohne Hintergrund & Padding */
.lms-card-wrapper {
    display: flex;
    justify-content: center;
}

/* Karte */
.lms-card-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Header */
.lms-card-header {
    text-align: center;
    margin-bottom: 80px;
}

.lms-subline {
    color: #777;
    font-size: 16px;
    margin: 0 0 10px;
}

.lms-headline {
    font-size: 34px;
    font-weight: 700 !important;
    color: #111;
    margin: 0;
}

/* Zentrierte, kleinere Gruppentitel */
.lms-group-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    text-align: center;
    color: #222;
    margin-top: 50px;
    margin-bottom: 10px;
}

/* Grid Layout */
.lms-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* Einzelne Leistung */
.lms-service-item {
    text-align: center;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lms-service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.lms-service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    justify-content: center;
    align-items: center;
}

.lms-service-title {
    font-size: 18px;
    font-weight: 650;
    color: #222;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .lms-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lms-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lms-headline {
        font-size: 26px;
    }
}

/* Vergrößerte Service-Kachel */
.lms-service-item--active {
    position: fixed;
    top: 15%;
    left: 25%;
    right: 25%;
    bottom: 15%;
    max-height: 70vh;
    max-width: 50vw;
    z-index: 9999;
    background: #fff;
    padding-top: 0px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: scale(1.05);
    transition: all 0.7s ease;
}

.lms-service-item--active .lms-service-icon img {
    width: 200px;
    height: 200px;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .lms-service-item--active {
        top: 5%;
        left: 5%;
        right: 5%;
        bottom: 5%;
        max-height: 90vh;
        max-width: 90vw;
        padding: 25px;
      }

    .mobile-break {
        display: inline !important;
    }
	
	.lms-popup-title {
        font-size: 24px !important;
    }

    .lms-service-item--active .lms-service-icon img {
        width: 100px;
        height: 100px;
    }
  }

  /* Icon */
.lms-service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Dummy-Details */
.lms-service-details {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-top: 20px;
}

/* Titel im Overlay */
.lms-service-item--active .lms-service-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #111;
	display: none;
}

/* Standard (Desktop): kein Zeilenumbruch */
.mobile-break {
    display: none;
}

.lms-services-cta {
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: center;
}

.lms-cta-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600 !important;
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    border-radius: 30px;
    background: linear-gradient(
        45deg,
        hsla(336, 100%, 53%, 1) 0%,
        hsla(327, 100%, 69%, 1) 42%,
        hsla(304, 100%, 80%, 1) 77%,
        hsla(300, 100%, 90%, 1) 100%
    );
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.lms-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    background: linear-gradient(45deg, hsla(336, 100%, 43%, 1) 0%, hsla(327, 100%, 59%, 1) 42%, hsla(304, 100%, 70%, 1) 77%, hsla(300, 100%, 80%, 1) 100%) !important;
}
