/* Services Component Styles */

/* Services Section */
.services {
    position: relative;
    padding: 4.5rem 0;
    background: #ef9d2e !important; /* Fester Farbwert statt Variable */
    transition: padding 0.3s ease-in-out;
    z-index: 1;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.service-card-full {
    grid-column: 1 / -1;
}

/* Anpassung für mobile Ansicht */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card-square {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .service-card-square,
    .service-card-full {
        grid-column: 1;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .service-card-square {
        width: calc(100% - 10px);
        margin: 0 auto;
    }
    
    .services .card-body {
        padding: 1.25rem;
    }
    
    .services .card-title {
        font-size: 1.2rem;
    }
    
    .services .card-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .card-video-bg,
    .card-image-bg {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .services .card {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
}

/* Card Styles */
.services-grid .card {
    border: none;
    background: rgba(255, 255, 255, 0.98);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Button Styles */
.services .card-icon {
    position: relative;
    margin-bottom: 1.5rem;
    z-index: 2;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-grid .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.services-grid .btn:hover {
    color: white;
}

.services-grid .btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
    z-index: -1;
}

.services-grid .btn:hover::after {
    height: 100%;
}

/* Card Layouts */
.service-card {
    position: relative;
}

.service-card-full {
    grid-column: 1 / -1;
}

.service-card-square {
    aspect-ratio: 1;
}

/* Card Components */
.services .card {
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.services .card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--logo-orange);
}

.services .card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Spezielle Styles für die mittleren Cards */
.services .service-card-square .card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    padding: 2rem;
}

.services .service-card-square .card-title {
    margin: 0;
    min-height: 2.6em;
    display: flex;
    align-items: center;
}

.services .service-card-square .card-text {
    margin: 0;
    flex-grow: 1;
}

.services .service-card-square .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--logo-orange);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.services .service-card-square .btn-primary:hover {
    background-color: var(--logo-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.services .card-icon {
    position: relative;
    margin-bottom: 1.5rem;
    z-index: 2;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services .card:hover .card-icon::after {
    opacity: 0.8;
}

.services .card-icon i {
    font-size: 32px;
    color: white;
    line-height: 1;
    text-align: center;
}

.services .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
}

.services .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--logo-orange);
    border-radius: 3px;
}

.services .card-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.services .btn-primary {
    background-color: var(--logo-orange);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    align-self: flex-start;
}

.services .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: var(--logo-orange);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: -1;
}

.services .btn-primary:hover {
    background-color: transparent;
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.services .btn-primary:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Card Styles für Video-Integration */
.service-card-square {
    aspect-ratio: 1;
}

.service-card-square .card {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.card-image-bg {
    opacity: 0.15;
}

/* Card Styles für Video-Integration */
.service-card-square .card {
    aspect-ratio: 1;
}

/* Gemeinsame Card-Body Styles */
.service-card .card-body {
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    height: 100%;
}

.service-card .card-title,
.service-card .card-text {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

/* Spezifische Styles für breite Cards */
.service-card-full .card-body {
    background: rgba(0,0,0,0.4);
    padding: 3rem;
}

/* Spezifische Styles für quadratische Cards */
.service-card-square .card-body {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card-square {
        aspect-ratio: auto;
        width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 3rem 0;
    }

    .service-card-square {
        aspect-ratio: auto;
        min-height: 250px;
        max-height: none;
        width: 100%;
        box-sizing: border-box;
    }

    .services .card-body {
        padding: 1.5rem;
    }
    
    .services-grid {
        overflow-x: hidden; /* Verhindert horizontales Scrollen */
        padding: 0 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .service-card {
        max-width: 100%;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }
    
    .services .card {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        box-shadow: none !important;
    }
    
    .services .card:hover {
        box-shadow: none !important;
        transform: none;
    }
}
/* Icon Styles */
.services .card-icon {
    width: 70px;
    height: 70px;
    background: var(--logo-orange);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.services .card-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--logo-orange);
    border-radius: inherit;
    opacity: 0.5;
    filter: blur(8px);
    z-index: -1;
    transition: opacity 0.4s ease;
}

.services .card:hover .card-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.services .card:hover .card-icon::after {
    opacity: 0.7;
}

.services .card-icon i {
    font-size: 32px;
    color: white;
    line-height: 1;
    text-align: center;
}
