/* Services Page Styles */
.page-title {
    font-size: 3rem;
    text-align: center;
    margin: 3rem 0;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* Scroll-Padding für die ganze Seite */
html {
    scroll-padding-top: 120px; /* Erhöhter Wert für bessere Sichtbarkeit */
}

.service-section {
    margin: 8rem 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
    scroll-margin-top: 120px; /* Erhöhter Wert für bessere Sichtbarkeit */
}

.service-section h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-section h2::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(
        145deg,
        rgba(var(--background-color-rgb), 0.8),
        rgba(var(--background-color-rgb), 0.6)
    );
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: linear-gradient(
        145deg,
        rgba(var(--background-color-rgb), 0.9),
        rgba(var(--background-color-rgb), 0.7)
    );
}

.service-content::before {
    display: none;
}

[data-theme="dark"] .service-content {
    background: linear-gradient(
        145deg,
        rgba(30, 30, 30, 0.8),
        rgba(20, 20, 20, 0.6)
    );
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .service-content:hover {
    background: linear-gradient(
        145deg,
        rgba(35, 35, 35, 0.9),
        rgba(25, 25, 25, 0.7)
    );
}

[data-theme="light"] .service-content {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.9),
        rgba(245, 245, 245, 0.8)
    );
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .service-content:hover {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 1),
        rgba(250, 250, 250, 0.9)
    );
}

.service-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.6s ease;
    filter: brightness(0.9) contrast(1.1);
}

.service-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-content:hover .service-image {
    transform: scale(1.05);
}

.service-content:hover .service-image-overlay {
    opacity: 1;
}

.service-text {
    padding: 2rem;
}

.service-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-features li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-features li:hover {
    background: rgba(var(--accent-color-rgb), 0.1);
    color: var(--text-color);
    transform: translateX(5px);
}

.service-features li i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.service-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.service-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-button.primary {
    background: var(--accent-color);
    color: var(--background-color);
}

.service-button.secondary {
    background: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
}

.service-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.2);
}

.service-button i {
    transition: transform 0.3s ease;
}

.service-button:hover i {
    transform: translateX(3px);
}

.services-section {
    position: relative;
    background-color: var(--background-dark);
    min-height: 100vh;
    overflow: hidden;
}

/* Hintergrund-Effekte */
.services-section::before {
    content: '';
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: 
        linear-gradient(125deg, transparent 0%, rgba(var(--primary-color-rgb), 0.03) 40%, transparent 60%),
        radial-gradient(circle at 10% 0%, rgba(var(--primary-color-rgb), 0.03) 0%, transparent 60%),
        radial-gradient(circle at 90% 90%, rgba(var(--primary-color-rgb), 0.03) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 0;
}

/* Animierte Linien im Hintergrund */
.services-section::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    background-image: 
        repeating-linear-gradient(45deg, 
            rgba(var(--primary-color-rgb), 0.01) 0%, 
            rgba(var(--primary-color-rgb), 0.01) 1px,
            transparent 1px, 
            transparent 60px
        );
    animation: backgroundMove 60s linear infinite;
    z-index: 0;
}

@keyframes backgroundMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Light Mode Anpassungen */
[data-theme="light"] .services-section::before {
    background: 
        linear-gradient(125deg, transparent 0%, rgba(var(--primary-color-rgb), 0.02) 40%, transparent 60%),
        radial-gradient(circle at 10% 0%, rgba(var(--primary-color-rgb), 0.02) 0%, transparent 60%),
        radial-gradient(circle at 90% 90%, rgba(var(--primary-color-rgb), 0.02) 0%, transparent 60%);
}

/* Inhalt über dem Hintergrund */
.services-container {
    position: relative;
    z-index: 1;
}

.services {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background-color: var(--background-dark);
}

/* Moderner Hintergrundeffekt */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(var(--primary-color-rgb), 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(var(--primary-color-rgb), 0.05) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 1;
}

.services::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(
        45deg,
        transparent 48%,
        rgba(var(--primary-color-rgb), 0.03) 50%,
        transparent 52%
    );
    background-size: 200% 200%;
    animation: gradientMove 15s linear infinite;
    z-index: 1;
}

@keyframes gradientMove {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.services-content {
    position: relative;
    z-index: 2;
}

.services-title {
    text-align: center;
    margin-bottom: 4rem;
}

.services-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.services-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

/* Light Mode Anpassungen */
[data-theme="light"] .services {
    background-color: var(--background-light);
}

[data-theme="light"] .services::before {
    opacity: 0.5;
}

/* Light Mode Styles */
[data-theme="light"] .service-features li:hover {
    background: rgba(var(--accent-color-rgb), 0.08);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .service-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-image-container {
        order: -1;
    }

    .service-section {
        margin: 4rem 0;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .service-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .service-image-container {
        margin-bottom: 1rem;
    }

    .service-cta {
        flex-direction: column;
    }

    .service-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .page-title {
        font-size: 2rem;
        margin: 30px 0;
        text-align: center;
    }

    .service-section {
        margin-bottom: 40px;
    }

    .service-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .service-content {
        flex-direction: column;
    }

    .service-image-container {
        width: 100%;
        margin-bottom: 20px;
        height: 200px;
    }

    .service-description {
        width: 100%;
        padding: 15px;
    }

    .service-description h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .service-description p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-item h4 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .page-title {
        font-size: 1.8rem;
        margin: 25px 0;
    }

    .service-section h2 {
        font-size: 1.4rem;
    }

    .service-image-container {
        height: 180px;
    }

    .service-description {
        padding: 10px;
    }

    .service-description h3 {
        font-size: 1.2rem;
    }

    .service-description p {
        font-size: 0.9rem;
    }

    .feature-item {
        padding: 12px;
    }

    .feature-item h4 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }
}
