/* ============================================= */
/* STYLING FÜR PROJEKTKARTEN                     */
/* ============================================= */
.project-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

.project-card .project-image {
    border-bottom: 1px solid #eee;
    background-color: #fff;
}
/********** Template CSS **********/
:root {
    --primary: #3A868F;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #252525;
}

/* ============================================= */
/* STYLING FÜR COOKIE BANNER                     */
/* ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(35, 39, 42, 0.95); /* Dunkler Hintergrund mit leichter Transparenz */
    color: #f1f1f1;
    padding: 1rem 2rem;
    z-index: 10000;
    backdrop-filter: blur(5px); /* Moderner "Frostglas"-Effekt */

    display: none; /* Wird per JS auf 'flex' gesetzt */
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: bold;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Anpassung für kleine Bildschirme */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
}

/* ============================================= */
/* STYLING FÜR KARRIERESEITE                     */
/* ============================================= */
#jobAccordion .accordion-item {
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

#jobAccordion .accordion-item:hover {
    box-shadow: 0 .25rem 1rem rgba(0,0,0,.1);
}

#jobAccordion .accordion-header .accordion-button {
    background-color: #fff;
    color: var(--dark);
    font-weight: 500;
    padding: 1.25rem 1.5rem;
}

#jobAccordion .accordion-header .accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

#jobAccordion .accordion-header .accordion-button:not(.collapsed) small {
    color: rgba(255, 255, 255, 0.85) !important;
}

#jobAccordion .accordion-header .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(58, 134, 143, 0.25);
}

#jobAccordion .accordion-header .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#jobAccordion .accordion-header .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.social-share-links a {
    color: #555;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}
.social-share-links a:hover {
    color: var(--primary);
}
/* ============================================= */
/* STYLING FÜR SOCIAL MEDIA LINKS                */
/* ============================================= */

/* --- Stile für den Desktop-Header --- */
.header-social-links {
    display: flex;
    align-items: center;
    margin-right: 25px;
}

.header-social-links a {
    color: #555;
    font-size: 1.1rem;
    margin: 0 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.header-social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* --- Stile für das mobile Overlay-Menü --- */
.overlay-social-links {
    /* Standardmäßig auf Desktop versteckt */
    display: none; 
    justify-content: center;
    align-items: center;
    margin-top: 40px; /* Abstand zu den Menüpunkten */
    gap: 25px; /* Abstand zwischen den Icons */
}

.overlay-social-links a {
    color: white;
    font-size: 1.8rem; /* Größer für bessere Klickbarkeit */
    transition: color 0.3s ease, transform 0.3s ease;
}

.overlay-social-links a:hover {
    color: var(--primary);
    transform: scale(1.1);
}


/* --- Media Query für die Umschaltung --- */
/* Auf Bildschirmen kleiner als 992px ... */
@media (max-width: 992px) {
    /* ...verstecke die Links im Header... */
    .header-social-links {
        display: none;
    }

    /* ...und zeige stattdessen die Links im Menü. */
    .overlay-social-links {
        display: flex;
    }
}

/* ============================================= */
/* STYLING FÜR IMPRESSUM & DATENSCHUTZ           */
/* ============================================= */
.legal-page-content {
    padding-top: 6rem; /* Abstand zum fixierten Header */
    padding-bottom: 4rem;
}

.legal-page-content h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.legal-page-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary); /* Verwendet Ihre Haupt-Akzentfarbe */
}

.legal-page-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page-content p, 
.legal-page-content li {
    line-height: 1.7;
    color: #555;
}

.legal-page-content strong {
    color: #333;
}

.legal-page-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-page-content a:hover {
    color: #00418d;
}

.legal-page-content .cta-button-container {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================= */
/* STYLING FÜR KONTAKTFORMULAR                   */
/* ============================================= */
.contact-form-section {
    background: var(--dark-color); /* Wiederverwendung Ihrer dunklen Farbe */
    padding: 4rem 0;
}

#lead-form {
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================= */
/* STYLING FÜR SPRACHUMSCHALTER                  */
/* ============================================= */
.lang-switcher {
    margin-right: 20px;
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.2rem;
    color: #888;
    transition: color 0.2s ease;
}

.lang-switcher button.active {
    color: var(--primary); /* Verwendet Ihre Hauptfarbe */
}

.lang-switcher button:hover {
    color: var(--primary);
}

.lang-switcher span {
    color: #ccc;
    margin: 0 0.2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid #555;
     color: #23272A;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #aaa;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-bottom-color: var(--primary-color); /* Ihre Haupt-Akzentfarbe */
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group-checkbox {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.form-group-checkbox label {
    color: #ccc;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
}

.form-group-checkbox input[type="checkbox"] {
    display: none;
}

.form-group-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.form-group-checkbox input[type="checkbox"]:checked + label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-group-checkbox label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 4px;
    top: 2px;
    font-size: 14px;
    color: var(--dark-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-group-checkbox input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.form-group-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cta-button {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.cta-button:hover {
    background: #0056b3; /* Etwas dunkleres Blau für Hover */
}

/* Flip Card Basis */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
    width: 100%;
    height: 350px; /* Feste Höhe für den Flip-Effekt */
}

/* Innenbereich der Karte */
.flip-card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    position: relative;
}

/* Flip-Effekt */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front- und Rückseite */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

/* Vorderseite */
.flip-card-front {
    background: white;
}

/* Rückseite */
.flip-card-back {
    background: #3A868F;
    color: white;
    transform: rotateY(180deg);
}

/* 📌 Anpassungen für Mobile Ansicht */
@media (max-width: 768px) {
    .flip-card {
        height: auto; /* Dynamische Höhe für Mobilgeräte */
    }

    .flip-card-inner {
        min-height: 350px; /* Erhöht die Mindesthöhe */
    }

    .flip-card-front,
    .flip-card-back {
        padding: 15px;
    }

    .flip-card-back p {
        font-size: 14px;
        padding: 5px;
    }
}


/* Footer Styling */
.footer {
    text-align: center;
    font-size: 14px;
}

/* Social Media Icons */
.social-icon {
    color: white;
    font-size: 18px;
    margin: 0 8px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.social-icon:hover {
    color: var(--primary);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .footer {
        font-size: 12px;
    }
}

/* Impressum Styling */
.impressum-section {
    background-color: var(--light);
    padding: 60px 0;
}

.impressum-info {
    font-size: 16px;
    line-height: 1.6;
}

.impressum-info p {
    margin-bottom: 10px;
}

/* 📌 Mobile Optimierung */
@media (max-width: 768px) {
    .impressum-section {
        padding: 40px 0;
    }

    .impressum-info {
        font-size: 14px;
    }
}

/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    z-index: 9999;
}

.cookie-banner p {
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 5px 15px;
    font-size: 14px;
}

/* 📌 Mobile Optimierung */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .cookie-buttons {
        margin-top: 10px;
    }
}







.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5%;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

/* Hamburger Menu Button */
.hamburger-menu {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    transition: transform 0.3s ease-in-out;
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

/* Fullscreen Sidebar Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 5000; /* Ensures menu is in front of everything */
}

/* Show menu when active */
.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Close button */
.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.close-menu:hover {
    color: #ffcc00;
}

/* Navigation links inside the menu */
.overlay-menu nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.overlay-menu nav ul li {
    margin: 20px 0;
}

.overlay-menu nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.overlay-menu nav ul li a:hover {
    color: #ffcc00;
}

/* Prevent overlap of content */
.spacerheader {
    height: 50px;
}


.spacercontent {
    height: 210px;
}






.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Header ***/
#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#header-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 60px;
    text-indent: 0;
    margin-bottom: 15px;
    border: 2px solid #FFFFFF;
    border-radius: 60px;
    overflow: hidden;
}

#header-carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 4px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}



/*** Img Border ***/
.img-border {
    color: #3A868F !important;
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
    border-radius: 6px;
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    border-radius: 6px;
}


/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: none;
    border: 1px solid #DEE2E6;
}


/*** Feature ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Project ***/
.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover a {
    opacity: 1;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-carousel .owl-dot {
    width: 35px;
    height: 35px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 35px;
    transition: .5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}
