/* Hero Section */
.hero {
    /* background-color: var(--secondary-color); */
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                      url("../src/imgs/bg/15.webp"); 
    background-size: cover;   /* Logo an Container anpassen */
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px;
    gap: 40px;
    padding-top: 60px;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(-50px); 
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.hero-left.animate-left {
    opacity: 1;
    transform: translateX(0);
}

.hero-left-buttons {
    margin-top: auto;
    display: flex;
    align-items: center;
}

/* Using global h1 styles */

.hero-left p {
    font-size: 1.1em;
    margin: auto;
    color: var(--secondary-color);
    text-align: justify;
}

.hero-right {
    flex: 1;
    
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    /* Uses global card styles */
    padding: 30px 20px;
    text-align: center;
    user-select: none;
    /* Add hover-scale class in HTML */
}

.stat-card i {
    font-size: 3em; 
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Active state: sichtbar und an Ort und Stelle */
/* .hero-right.animate-right {
    opacity: 1;
    transform: translateX(0);
} */

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-weight: 500;
}

.partner-logos {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 20px;
}

.logo-placeholder {
    width: 120px;
    height: 60px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

/* Top References Section */
.top-references {
    margin-top: 60px;
    text-align: center;
    width: 100%;
    max-width: 1500px;
    opacity: 0;
    transform: translateY(50px); 
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.top-references.animate-bottom {
    opacity: 1;
    transform: translateX(0);
}

.top-references h3 {
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.top-references-grid {
    display: flex;
    justify-content: center;
    gap: 10%;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.top-reference-item {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: rgba(255, 255, 255, 0.95); */
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    border-radius: 12px;
    padding: 20px;
    width: 250px;
    height: 100px;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

.top-reference-item img {
    max-width: 300px;
    max-height: 200px;
    height: 75px;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s ease;
    z-index: 1;
}

.top-reference-item img:hover {
    transform: scale(1.1);
}

.kununu-awards-card {
    grid-column: 1 / -1;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kununu-awards-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
}

.kununu-award {
    max-height: 140px;
    width: auto;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    flex: 1;
    margin: 0 10px;
}

.kununu-award.active {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .top-references {
        margin-top: 40px;
    }
    
    .top-references-grid {
        gap: 20px;
    }
    
    .top-reference-item {
        width: 200px;
        height: 70px;
        padding: 15px;
    }
    
    .top-reference-item img {
        max-width: 160px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .top-references {
        margin-top: 30px;
    }
    
    .top-references-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .top-reference-item {
        width: 280px;
        height: 70px;
        padding: 15px;
    }
    
    .top-reference-item img {
        max-width: 240px;
        max-height: 50px;
    }
}

.reward-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

/* Services Section */
.services {
    background-color: var(--tertiary-color);
    color: var(--tertiary-color);
    padding: 80px 20px;
    text-align: center;
    max-width: 100%;
}

/* Using global h2 styles */
.services h2 {
    margin-bottom: 30px;
}

.services p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-left p{
        text-align: unset;
    }
    
    .hero-left h1 {
        font-size: 2.2em;
    }

    .hero-left-buttons{
        margin-top: 1rem;
                justify-content: center;
    }

    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logos {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo-placeholder {
        width: 100px;
        height: 50px;
    }
    
    .reward-badge {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 1.8em;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2em;
    }

}

/* About Us styles moved to aboutus.css */
/* Services Section duplicate removed - see line 239 */

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-left h1 {
        font-size: 2.2em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logos {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo-placeholder {
        width: 100px;
        height: 50px;
    }
    
    .reward-badge {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 1.8em;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2em;
    }

}
