/* ====== Optimierter Gesamt-CSS ====== */

/* Webfont Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #dde1e4;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-top: 30px;
}


/* Topbar */
.topbar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo Container */
.logo-container {
    text-align: center;
    background-color: #3c4750;
    padding: 10px 0;
}

    .logo-container img {
        all: unset;
        max-width: 400px;
        height: auto;
        margin: 10px auto;
        display: block;
    }

@media (max-width: 1000px) {
    .logo-container img {
        margin: 5px auto !important; /* oben/unten 5px, zentriert horizontal */
        display: block !important; /* block für margin: auto */
        max-width: 250px !important; /* kleinere Breite */
        height: auto !important; /* Seitenverhältnis beibehalten */
    }
}
}

/* Slider */
.carousel-custom {
    max-width: 1600px;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 2px solid #e7d9c6;
    border-radius: 8px;
    position: relative;
}

    .carousel-custom .carousel-item img {
        object-fit: cover;
        height: 600px;
        width: 100%;
        margin-top: 10px;
    }

@media (max-width: 1000px) {
    .carousel-custom .carousel-item img {
        object-fit: contain !important;
        height: auto !important;
        max-height: 300px !important;
    }
}

/* Galerie */
.gallery-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #dde1e4;
    margin-top: 0px !important;
}

.gallery-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 1px;
    border: 2px solid #e7d9c6;
    transition: transform 0.2s ease;
}

    .gallery-thumb:hover {
        transform: scale(1.03);
    }

@media (max-width: 1000px) {
    .gallery-thumb {
        height: 120px !important;
    }

    .gallery-section .row-cols-5 > * {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Kacheln */
.kachel-seite {
    max-width: 1600px;
    margin: 0 auto;
    background-color: #dde1e4;
}
    
    .kachel-seite .row {
        justify-content: center !important;
        margin-top: 0px !important;
    }

    .kachel-seite .col {
        display: flex;
        justify-content: center;
    }

    .kachel-seite img {
        max-width: 250px;
        height: auto;
        border: 2px solid #e7d9c6;
        border-radius: 10px;
        transition: transform 0.2s ease;
    }

        .kachel-seite img:hover {
            transform: scale(1.03);
        }

@media (max-width: 1000px) {
    .kachel-seite .col {
        flex: 0 0 100% !important;
        max-width: 70% !important;
    }

}


/* Service Bereich mit scrollen*/

@media (max-width: 1000px) {
    #leistungen-ziel .row {
        flex-direction: column !important;
        text-align: center !important;
    }

        #leistungen-ziel .row .col-md-6 {
            width: 100% !important;
            max-width: 100% !important;
            padding: 10px 15px !important;
            order: initial !important; /* Reihenfolge zurücksetzen für Klarheit */
        }

    #leistungen-ziel img.img-fluid {
        max-width: 250px !important;
        height: auto !important;
        margin: 0 auto 15px auto !important;
        display: block !important;
    }

    #leistungen-ziel h3 {
        font-size: 1.2rem !important;
        margin-top: 10px !important;
    }

    #leistungen-ziel p {
        font-size: 0.95rem !important;
    }
}


/* About Section */

.about .custom-list li {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 80px !important;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e7d9c6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.3s ease;
}


/* Services Section */
/* Desktop & Tablet */
.services .custom-list li {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100px !important;
    padding: 20px 25px !important;
    background-color: white;
    border-radius: 10px;
    border: 2px solid #e7d9c6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    transition: transform 0.3s ease;
    word-break: break-word;
}

/* Mobilgeräte: kleineres Padding & Schriftgröße */
@media (max-width: 768px) {
    .services .custom-list li {
        padding: 15px 20px !important;
        font-size: 0.95rem !important;
    }
}



.warum-kozera-section {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.warum-kozera-section h2 {
    font-weight: 800;
    color: #3c4750 !important;
    margin-bottom: 20px;
}

.warum-kozera-section p {
    font-size: 1.1rem;
    color: #333333;
    max-width: 900px;
    margin: 0 auto 15px auto;
    line-height: 1.6;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .warum-kozera-section {
        padding: 40px 15px !important;
    }

    .warum-kozera-section h2 {
        font-size: 1.5rem !important;
    }

    .warum-kozera-section p {
        font-size: 1rem !important;
    }
}


/* Custom List (z. B. Services) */
.custom-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

    .custom-list li {
        background-color: white;
        padding: 20px;
        border-radius: 10px;
        border: 2px solid #e7d9c6;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        font-weight: 500;
        font-size: 1rem;
        transition: transform 0.3s ease;
    }

        .custom-list li:hover {
            transform: translateY(-5px);
        }

        .custom-list li span {
            display: block;
            color: #3c4750;
        }

@media (max-width: 1000px) {
    .custom-list {
        grid-template-columns: 1fr !important;
    }
}

/* Footer */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    text-align: center;
}

@media (max-width: 1000px) {
    .footer-content {
        flex-direction: column !important;
    }
}

/* Pagination */
.page-item .page-link {
    background-color: #ddd;
    color: black;
    border-color: #ccc;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background-color: #3c4750 !important;
    color: white !important;
    font-weight: bold;
}

.page-item .page-link:hover {
    background-color: #bbb;
    color: white;
}

/* Scroll Animation */
.scroll-target .fade-in-left,
.scroll-target .fade-in-right {
    opacity: 0;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.scroll-target .fade-in-left {
    transform: translateX(-50px);
}

.scroll-target .fade-in-right {
    transform: translateX(50px);
}

.scroll-target .visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Video Slider */
.video-thumb-preview {
    border: 2px solid #e7d9c6;
    border-radius: 10px;
    padding: 8px;
    box-shadow: inset 0 0 0 8px #eeecec, 4px 6px 4px rgba(0, 0, 0, 0.25);
    background: #eeecec;
}

.video-slider-pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    border-radius: 5px;
    background-color: #ddd;
    cursor: pointer;
}

    .video-slider-pagination span.active {
        background-color: #3c4750;
        color: white;
        font-weight: bold;
    }

@media (max-width: 1000px) {
    .video-slider .video-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .video-thumb-preview video {
        width: 100% !important;
        height: auto !important;
    }
}


    .footer-legal-section {
        background-color: #3c4750 !important;
        color: white !important;
        padding: 60px 20px;
    }

        .footer-legal-section h1,
        .footer-legal-section p,
        .footer-legal-section a {
            color: white !important;
        }

    .footer-custom {
        background-color: #3c4750 !important;
    }



    .cookie-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #3c4750 !important;
        color: white !important;
        padding: 15px;
        font-size: 0.9rem;
        text-align: center;
        z-index: 9999;
    }

        .cookie-banner button {
            margin-left: 10px;
            background-color: white !important;
            color: #3c4750 !important;
            font-weight: bold;
        }

}
