/* === Grundlayout & Sticky Footer === */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    scroll-behavior: smooth;
    color: #333;
}

.page-wrapper {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

/* === Verbesserte Hero-Sektion === */
.hero {
    background-image: url('/images/hero-bg.jpg'); /* Ändere zu SVG für bessere Qualität */
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 1080px; /* Etwas höher für bessere Darstellung */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay für besseren Kontrast */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* Weniger Deckkraft für bessere Bergdarstellung */
    z-index: 1;
}

.hero-logo {
    position: relative;
    z-index: 2;
    max-width: 80%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    max-width: 100%;
    max-height: 300px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem 3rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 1.5s ease-out forwards;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 90%;
    margin: 0 auto;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out forwards;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    animation: slideInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-content .btn {
    animation: slideInUp 1s ease-out 0.4s forwards;
    opacity: 0;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px 25px;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
}

.hero-content .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background-color: #0b5ed7;
}

/* === Willkommens-Sektion === */
.welcome-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.welcome-section h1 {
    color: #343a40;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.welcome-section p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.welcome-section .btn {
    padding: 10px 25px;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.welcome-section .btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* === Optimierte Dienstleistungen === */
.services-section {
    padding: 4rem 0;
    background-color: #fff;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.services-section h2 {
    margin-bottom: 2.5rem;
    position: relative;
    font-weight: 600;
    color: #212529;
    text-align: center;
    font-size: 2.2rem;
}

.services-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    border-radius: 3px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-3 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Service Box Styling */
.service-box {
    margin: 15px 0;
    border: none;
    border-radius: 12px;
    padding: 0;
    background-color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.service-box:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.15);
}

.service-box .service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -30px auto 15px;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    border: 2px solid white;
    color: #0d6efd;
}

.service-box:hover .service-icon {
    background-color: #0d6efd;
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.image-placeholder {
    background-color: #f5f5f5;
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.image-placeholder::before {
    content: "\f03e";
    font-family: "Font Awesome 6 Free";
    font-size: 2rem;
    color: #ccc;
}

.service-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: all 0.5s ease;
}

.service-box:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.service-content {
    padding: 20px 25px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-box h4 {
    color: #343a40;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
    transition: color 0.3s ease;
}

.service-box:hover h4 {
    color: #0d6efd;
}

.service-box h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0d6efd;
    transition: width 0.3s ease;
}

.service-box:hover h4::after {
    width: 50px;
}

.service-box ul {
    color: #6c757d;
    margin: 0;
    padding-left: 20px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-box ul li {
    margin-bottom: 8px;
    position: relative;
}

.service-box .service-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.service-box .learn-more {
    color: #0d6efd;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    transition: all 0.3s ease;
}

.service-box .learn-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-box:hover .learn-more i {
    transform: translateX(5px);
}

.service-box .learn-more:hover {
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 6px;
}

/* Service Box Animationen */
@keyframes serviceCardIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-animate {
    animation: serviceCardIn 0.5s forwards;
    opacity: 0;
    animation-play-state: paused;
}

.service-animate-delay-1 { animation-delay: 0.1s; }
.service-animate-delay-2 { animation-delay: 0.2s; }
.service-animate-delay-3 { animation-delay: 0.3s; }
.service-animate-delay-4 { animation-delay: 0.4s; }

/* === Partner-Sektion === */
.partners-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    position: relative;
}

.partners-section h2 {
    margin-bottom: 2.5rem;
    position: relative;
    font-weight: 600;
    color: #212529;
    text-align: center;
    font-size: 2.2rem;
}

.partners-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    border-radius: 3px;
}

.partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.partner-item {
    flex: 0 0 auto;
    width: 200px;
    height: 100px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* === Call to Action === */
.cta-section {
    padding: 3rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #343a40;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.cta-section p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn-animated {
    animation: pulse 2s infinite;
    padding: 10px 30px;
    font-size: 1.1rem;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-animated:hover {
    animation-play-state: paused;
    background-color: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

/* === Kontakt-Sektion === */
.contact-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    position: relative;
}
        
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
        
.contact-info {
    background-color: #0d6efd;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
}
        
.contact-info-item {
    display: flex;
    margin-bottom: 1.5rem;
}
        
.contact-info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 30px;
}
        
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}
        
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}
        
.social-link:hover {
    background-color: white;
    color: #0d6efd;
}
        
.btn-submit {
    background-color: #0d6efd;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
}
        
.btn-submit:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* === Footer === */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 2rem 0 1rem;
    width: 100%;
    margin-top: auto;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-logo {
    flex: 0 0 100%;
    max-width: 250px;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background: #0d6efd;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: #0d6efd;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #adb5bd;
}

.footer-bottom a {
    color: #0d6efd;
    text-decoration: none;
}

/* === Animationen === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === Scroll Reveal Animation === */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bild-Lazy-Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.loaded {
    opacity: 1;
}

/* === Responsive Anpassungen === */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .partner-item {
        width: 180px;
        height: 90px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .service-box {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    
    .hero-content {
        padding: 1.5rem 2rem;
        max-width: 90%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .services-section h2, 
    .partners-section h2,
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .service-box {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .partner-item {
        width: 150px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 250px;
    }
    
    .hero-content {
        padding: 1rem 1.5rem;
        max-width: 95%;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .welcome-section,
    .services-section,
    .partners-section,
    .cta-section,
    .contact-section {
        padding: 2rem 0;
    }
    
    .service-box .service-icon {
        width: 50px;
        height: 50px;
        margin: -25px auto 10px;
    }
    
    .partner-item {
        width: 130px;
        height: 70px;
        padding: 10px;
    }
    
    .btn-animated {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .footer-col {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 375px) {
    .hero-content {
        padding: 0.8rem 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .service-box {
        margin-bottom: 1.5rem;
    }
    
    .partner-item {
        width: 120px;
        height: 60px;
    }
}