/* ------------------------ */
/* Root Variabeln festlegen */
/* ------------------------ */
:root {
    --primary-color: #0066cc;
    --secondary-color: #003366;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --accent-color: #00cc99;
    --transparent-color: transparent;
}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    font-family: 'Roboto', sans-serif;
    padding-top: 76px;
}

.img-fluid {
    width: 100%;
    height: 250px;
    mix-blend-mode: screen;
}

.navbar-brand img {
    max-height: 50px;
}

.hero-section, .page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
    margin-top: -20px;
}

.btn-custom {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: #00b386;
    border-color: #00b386;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* ------------- */
/* Service-Cards */
/* ------------- */
.service-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background-color: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
    padding: 30px;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --------------------------------------- */
/* Hero Buttons mit stärkerem Hover-Effekt */
/* --------------------------------------- */
.hero-btn-alternative {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none !important;
    border: none !important;
    background-size: cover !important;
    background-position: center !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
    overflow: hidden;
    border-radius: 10px !important;
}

.hero-btn-alternative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    z-index: 1;
    transition: all 0.6s ease;
}

.hero-btn-werte-alternative {
    background: url('../../assets/images/werte.jpg') !important;
}

.hero-btn-leistungen-alternative {
    background: url('../../assets/images/leistungen.jpg') !important;
}

.hero-btn-kontakt-alternative {
    background: url('../../assets/images/kontakt2.jpg') !important;
}

.hero-btn-alternative .btn-content {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.hero-btn-alternative:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.hero-btn-alternative:hover::before {
    background: linear-gradient(rgba(0, 102, 204, 0.7), rgba(0, 51, 102, 0.8));
}

.hero-btn-alternative:hover .btn-content {
    transform: scale(1.1);
}

.btn-content {
    top: 90%;
}

/* ----------------------------- */
/* Aktiv Status für Hero Buttons */
/* ----------------------------- */
.hero-btn-alternative.active {
    pointer-events: none;
    cursor: default;
}

.hero-btn-alternative.active::before {
    background: linear-gradient(rgba(0, 102, 204, 0.85), rgba(0, 51, 102, 0.9)) !important;
    opacity: 1;
    border: 2px solid white;
    border-radius: 10px!important;
}

.hero-btn-alternative.active .btn-content {
    transform: scale(1.05);
}

.hero-btn-alternative.active h3 {
    position: relative;
    padding-bottom: 8px;
}

.hero-btn-alternative.active h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* -------------------------------------------------- */
/* Logo Slider Styles - Fullwidth und doppelt so groß */
/* -------------------------------------------------- */
.references-section {
    background-color: var(--light-color);
    padding: 80px 0;
    margin-top: 80px;
    width: 100%;
    overflow: hidden;
}

.references-title {
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 20px 30px;
    border-radius: 30px;
    margin-bottom: 40px;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px #000000;
    font-size: 1.1rem;
}

/* ------------------ */
/* Logo Slider Styles */
/* ------------------ */
.slider-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    height: 200px; /* Doppelt so hoch wie vorher (120px) */
    /* background-color: white; */
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.slider-track {
    display: flex;
    width: calc(400px * 26); /* 13 slides * 2 (for seamless loop), doppelt so breit */
    animation: slide 40s linear infinite;
    height: 100%;
}

.slide {
    width: 400px; /* Doppelt so breit wie vorher (200px) */
    height: 200px; /* Doppelt so hoch wie vorher (120px) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    background: rgba(0,0,0,0);
}

.slide:hover {
    transform: scale(1.05);
    background-color: var(--transparent-color);
}

.slider-img {
    max-width: 100%;
    max-height: 180px; /* Doppelt so hoch wie vorher (90px) */
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.slide:hover .slider-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    padding-bottom: 20px;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-400px * 13)); /* Doppelt so weit wie vorher */
    }
}

.paused {
    animation-play-state: paused;
}

.fullsize-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-position: center;
}

.values-list {
    list-style-type: none;
    padding-left: 0;
}

.values-list li {
    padding: 10px 0;
    padding-left: 40px;
    position: relative;
}

.values-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.contact-card {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

/* ------------------------------------- */
/* Responsive Anpassungen für den Slider */
/* ------------------------------------- */
@media (max-width: 768px) {
    .slider-container {
        height: 180px;
    }
    
    .slider-track {
        width: calc(300px * 26);
    }
    
    .slide {
        width: 300px;
        height: 180px;
    }
    
    .slider-img {
        max-height: 140px;
    }
    
    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-300px * 13));
        }
    }
}

/* ------------- */
/* Footer Styles */
/* ------------- */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
    padding-bottom: 80px;
    /* margin-top: 80px; */
}

.footer-links a {
    /* color: #ccc; */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    /* color: white; */
    text-decoration: underline;
}

/* Aktiver Link im Footer */
.footer-links a.footer-active {
    color: #fff !important; /* Strahlendes Weiß */
    /* text-decoration: underline; /* Permanent unterstrichen */
    cursor: default; /* Zeigt dem Nutzer, dass es nicht klickbar ist */
}

/* ------------------------------------------------ */
/* Zusätzliche Styles speziell für Leistungen-Seite */
/* ------------------------------------------------ */
.leistung-category {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    color: var(--secondary-color);
}

.leistung-card {
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    height: 100%;
}

.leistung-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

.leistung-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.fullsize-image-container {
    position: relative;
    margin: 60px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.fullsize-image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    font-size: 0.9rem;
    font-style: italic;
}

.video-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.video-icon-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.video-icon-bg i {
    font-size: 2.5rem;
    color: white;
}

/* ------------------------------------------------- */
/* Image für den Body-Hintergrund                    */
/* zu benutzen als <body class="background-picture"> */
/* ------------------------------------------------- */
.background-picture {
    background-image: url('../../assets/images/overlay/overlay_bnc.png');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    /* Fallback-Farbe */ 
    /* background-color: var(--secondary-color); */
}

/* --------------------------------- */
/* Overlay Picture mit CSS-Variablen */
/* --------------------------------- */
.overlay-picture {
    position: relative;
    overflow: hidden;
    --overlay-opacity: 1;
    --overlay-size: cover;
    --overlay-position: center center;
    --overlay-repeat: no-repeat;
    --overlay-attachment: fixed;
}

.overlay-picture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: var(--overlay-size);
    background-attachment: var(--overlay-attachment);
    background-repeat: var(--overlay-repeat);
    background-position: var(--overlay-position);
    z-index: 1;
    opacity: var(--overlay-opacity);
    pointer-events: none;
}

/* Verschiedene Overlay Bilder */
.overlay-picture.picture1::before { background-image: url('../../assets/images/overlay/overlay_bnc.png'); }
.overlay-picture.picture2::before { background-image: url('../../assets/images/overlay/overlay_servercable.png'); }
.overlay-picture.picture3::before { background-image: url('../../assets/images/overlay/overlay_motherboard.png'); }

/* Utility-Klassen für schnelle Anpassungen */
.overlay-contain { --overlay-size: contain; }
.overlay-cover { --overlay-size: cover; }
.overlay-repeat { --overlay-repeat: repeat; --overlay-size: auto; }
.overlay-no-repeat { --overlay-repeat: no-repeat; }
.overlay-scroll { --overlay-attachment: scroll; }
.overlay-fixed { --overlay-attachment: fixed; }
.overlay-local { --overlay-attachment: local; }

/* Opazitäts-Klassen */
.overlay-10 { --overlay-opacity: 0.1; }
.overlay-20 { --overlay-opacity: 0.2; }
.overlay-30 { --overlay-opacity: 0.3; }
.overlay-40 { --overlay-opacity: 0.4; }
.overlay-50 { --overlay-opacity: 0.5; }
.overlay-60 { --overlay-opacity: 0.6; }
.overlay-70 { --overlay-opacity: 0.7; }
.overlay-80 { --overlay-opacity: 0.8; }
.overlay-90 { --overlay-opacity: 0.9; }
.overlay-100 { --overlay-opacity: 1; }

/* Blend-Modes für interessante Effekte */
.overlay-picture.multiply::before { mix-blend-mode: multiply; }
.overlay-picture.screen::before { mix-blend-mode: screen; }
.overlay-picture.overlay::before { mix-blend-mode: overlay; }
.overlay-picture.lighten::before { mix-blend-mode: lighten; }
.overlay-picture.darken::before { mix-blend-mode: darken; }

/* Positionierungs-Klassen */
.overlay-top { --overlay-position: top center; }
.overlay-bottom { --overlay-position: bottom center; }
.overlay-left { --overlay-position: left center; }
.overlay-right { --overlay-position: right center; }
.overlay-center { --overlay-position: center center; }

/* Hero, Page-header, Footer Section mit Überlagerung */
.hero-section.overlay-picture,
.page-header.overlay-picture,
.footer.overlay-picture {
    position: relative;
}

/* Sicherstellen, dass der Inhalt über dem Bild liegt */
.hero-section.overlay-picture .container,
.page-header.overlay-picture .container,
.footer.overlay-picture .container {
    position: relative;
    z-index: 2;
}

/* -------------------------- */
/* Overlay speziell für Cards */
/* -------------------------- */
.card.overlay-picture {
    border: none; /* Optional: Border entfernen für besseren Look */
}

.card.overlay-picture .card-body {
    position: relative;
    z-index: 2;
}

/* -------------------- */
/* Für Rows mit Overlay */
/* -------------------- */
.row.overlay-picture {
    position: relative;
    padding: 2rem 0; /* Optional: Padding für besseren Abstand */
}

.row.overlay-picture > [class*="col-"] {
    position: relative;
    z-index: 2;
}

/* -------------------------------------------------------------------------- */
/* Alternativer Ansatz: Overlay nur auf bestimmte Bereiche innerhalb von Rows */
/* -------------------------------------------------------------------------- */
.row .overlay-picture {
    position: relative;
    border-radius: 10px; /* Optional: Abgerundete Ecken */
    overflow: hidden; /* Damit das Overlay die Ecken respektiert */
    padding: 2rem;
    margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* Partner- und Komponenten-Logos: Grid-basierte Lösung für bessere Kontrolle */
/* -------------------------------------------------------------------------- */
.partner-grid,
.components-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.partner-grid-two,
.components-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.partner-grid-item,
.components-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 140px; /* Feste Höhe für alle Items */
}

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

.partner-grid-logo,
.components-grid-logo {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-grid-item:hover .partner-grid-logo,
.components-grid-item:hover .components-grid-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive für Grid */
@media (max-width: 992px) {
    .partner-grid,
    .components-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-grid-two,
    .components-grid-two {
        grid-template-columns: 1fr;
    }
    
    .partner-grid-item,
    .components-grid-item {
        height: 130px;
    }
}

@media (max-width: 576px) {
    .partner-grid,
    .components-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partner-grid-item,
    .components-grid-item{
        height: 120px;
        padding: 20px;
    }
    
    .partner-grid-logo,
    .components-grid-logo {
        max-height: 70px;
    }
}

/* -------------------------------- */
/* Clickable Card Flexdesign Styles */
/* -------------------------------- */
.card-clickable {
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.card-clickable comp-description {
    font-size: 1.5rem;
    padding: 20px;
    float: right;
}

/* Footer Titles Fix */
.footer-h3 {
    font-size: 1.25rem;
}
