/* ========================================
   MILLENIUM Mobile-Computer-Service
   Corporate Website Stylesheet
   ======================================== */

/* 1. Definierte Farbpalette - Schwarz/Dunkel & Orange-Akzent */
:root {
    --millenium-dark: #010101; /* Fast Schwarz für Hintergründe/Seriosität */
    --millenium-accent: #00a0d2; /* Blau als Akzent/CTA-Farbe */
    --millenium-accent-darker: #0088B3; /* Dunkleres Blau für Hover-Effekt */
    --millenium-black: #1A1A1A; /* Dunkelgrau für Text (auf hellem Grund) */
    --drei-blue: #00a0d2; /* Drei CI Farbe */
}

/* Font-Fallback: Arial mit Poppins-Metriken (verhindert CLS bei Font-Swap) */
@font-face {
    font-family: 'Poppins-fallback';
    src: local('Arial');
    size-adjust: 110%;
    ascent-override: 105%;
    descent-override: 35%;
    line-gap-override: 10%;
}

/* Hintergrundfarbe für Body */
body {
    background-color: #f8f9fa;
    color: var(--millenium-black);
    font-family: 'Poppins', 'Poppins-fallback', sans-serif;
}

/* Sticky Header: bleibt im Dokumentfluss, kein Gap möglich */
header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--millenium-dark);
}

/* 2. Custom Button Style für Akzentfarbe */
.btn-accent {
    background-color: var(--millenium-accent);
    border-color: var(--millenium-accent);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}
.btn-accent:hover {
    background-color: var(--millenium-accent-darker);
    border-color: var(--millenium-accent-darker);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 160, 210, 0.4);
}

/* 3. Style für die Dark Sektionen (Header, Hero, Footer) */
.bg-dark-primary {
    background-color: var(--millenium-dark) !important;
    color: white;
}

/* 4. Navigation Links (Modernisiert und Höher) */
.navbar-nav {
    padding: 2.5rem 1rem !important;
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 700;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    text-transform: uppercase;
}
.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}
.navbar-nav .nav-link.active {
    color: var(--millenium-accent) !important;
    border-bottom: 2px solid var(--millenium-accent);
}

/* Dropdown Menu Styling */
.navbar-dark .dropdown-menu {
    background-color: var(--millenium-dark);
    border: 2px solid var(--millenium-accent);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.navbar-dark .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus,
.navbar-dark .dropdown-item.active {
    background-color: var(--millenium-accent);
    color: white;
}

.navbar-dark .dropdown-item i {
    color: var(--millenium-accent);
    width: 20px;
    transition: color 0.2s ease;
}

.navbar-dark .dropdown-item:hover i,
.navbar-dark .dropdown-item.active i {
    color: white;
}

.navbar-dark .dropdown-divider {
    border-color: rgba(0, 160, 210, 0.3);
    margin: 0.5rem 0;
}

/* Dropdown Toggle Arrow */
.navbar-dark .dropdown-toggle::after {
    color: var(--millenium-accent);
}

/* Social Media Icons im Footer */
.social-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
    margin-right: 15px;
}
.social-icon:hover {
    color: var(--millenium-accent);
}

/* 5. Hero-Sektion spezifisches Styling - Carousel */
#heroCarousel {
    padding-bottom: 0;
    min-height: 80vh;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
}

#heroCarousel .carousel-item {
    position: relative;
    min-height: 80vh;
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay für Hero-Bilder, um Textlesbarkeit zu verbessern */
#heroCarousel .carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Feste Content-Positionierung über allen Slides */
#heroCarousel .carousel-caption-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-shadow: 0px 0px 5px rgba(0,0,0,0.8);
    text-align: center;
}

/* Carousel Controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    z-index: 15;
    opacity: 1;
    width: 8%;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 0.8;
}

#heroCarousel h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
}
#heroCarousel p {
    color: rgba(255, 255, 255, 0.9);
}

/* 6. Card Styling für USPs und Services */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    border: none;
    position: relative;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.service-card.border-accent {
    border: 2px solid var(--millenium-accent) !important;
}

/* Drei Logo Styling für Zentrierung in der Kachel */
.card-drei .drei-logo-centered {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

/* 7. Akzent-Highlight für Reparaturbonus */
.highlight-accent {
    color: var(--millenium-accent);
}

/* Drei Partner Styling */
.bg-drei-blue {
    background-color: var(--drei-blue) !important;
}

/* Drei Partner Card Styling */
.card-drei {
    background-color: var(--drei-blue) !important;
    border-color: var(--drei-blue) !important;
}
.card-drei .highlight-drei {
    color: white !important;
}
.card-drei .btn-drei {
    background-color: white;
    color: var(--drei-blue);
    font-weight: 600;
    border-color: white;
    transition: all 0.3s ease;
}
.card-drei .btn-drei:hover {
    background-color: #e0f2f7;
    color: var(--drei-blue);
    border-color: #e0f2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 160, 210, 0.4);
}
.drei-logo-footer {
    height: 25px;
    width: auto;
    vertical-align: middle;
    margin-right: 5px;
}

/* FAQ Styling */
.accordion-button:not(.collapsed) {
    color: var(--millenium-dark);
    background-color: var(--millenium-accent) !important;
    border-color: var(--millenium-accent) !important;
    color: white !important;
    font-weight: bold;
}
.accordion-button::after {
    filter: invert(1);
}
.accordion-item {
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
}

/* Einsende-Reparatur Sektion Styling */
#einsende_reparatur {
    padding: 5rem 0;
}
#einsende_reparatur h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
}
.step-circle {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: var(--millenium-accent);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* LightWidget Container Styling */
#instagram-widget-container {
    padding: 3rem 0;
    text-align: center;
}
.lightwidget-iframe-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Custom Modal Styling */
.modal-content {
    border-radius: 1rem;
    border: none;
}
.modal-header {
    background-color: var(--millenium-dark);
    color: white;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom: none;
}
.modal-header .btn-close {
    filter: invert(1);
}
.form-label strong {
    color: var(--millenium-accent);
}
.form-check a {
    color: var(--millenium-accent);
    text-decoration: none;
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--millenium-dark);
    color: white;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    padding: 1.5rem 0;
}

.cookie-consent h3 {
    color: white;
}

.cookie-consent a {
    color: white;
    text-decoration: underline;
}

.cookie-consent a:hover {
    color: var(--millenium-accent);
}

.cookie-consent .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cookie-consent .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Cookie Settings Modal */
#cookieSettingsModal {
    z-index: 10000 !important;
}

#cookieSettingsModal .modal-backdrop {
    z-index: 9999 !important;
}

.cookie-category {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 3px solid var(--millenium-accent);
}

.form-check-input:checked {
    background-color: var(--millenium-accent);
    border-color: var(--millenium-accent);
}

.form-check-input:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.5;
}

/* Cookie Map Placeholder Responsive */
.cookie-consent-map h3 {
    font-size: 1.25rem;
}

.cookie-consent-map p {
    font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-consent-content {
        padding: 1rem 0;
    }

    .cookie-consent h3 {
        font-size: 1rem;
    }

    .cookie-consent .small {
        font-size: 0.85rem;
    }

    /* Cookie Map Placeholder - smaller text on mobile */
    .cookie-consent-map .text-center {
        padding: 1rem !important;
    }

    .cookie-consent-map h3 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem !important;
    }

    .cookie-consent-map p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem !important;
    }

    .cookie-consent-map .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .cookie-consent-map .fa-3x {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Fix horizontal overflow on mobile (clip statt hidden, bricht sticky nicht) */
    body {
        overflow-x: clip;
    }

    /* Navbar Mobile Adjustments */
    .navbar-nav {
        padding: 1rem !important;
    }

    /* Navbar: relative für Overlay-Positionierung */
    .navbar {
        position: relative;
        min-height: 70px;
    }

    /* Mobile: Menü als Overlay statt Push */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--millenium-dark);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        padding: 0 1rem;
    }

    /* Hero Carousel Mobile Adjustments */
    #heroCarousel {
        min-height: 60vh;
        overflow: hidden;
    }

    #heroCarousel .carousel-item {
        min-height: 60vh;
        height: 60vh;
    }

    /* Hero Carousel Caption adjustments for mobile */
    #heroCarousel .carousel-caption-content .col-lg-10 {
        margin-top: 66px;
    }

    #heroCarousel h1 {
        font-size: 1.75rem;
    }

    #heroCarousel .lead {
        font-size: 1rem;
    }

    /* Hero section h1 responsive font size */
    section.bg-dark-primary h1,
    section.hero-gradient h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    section.bg-dark-primary .display-4,
    section.hero-gradient .display-4 {
        font-size: 1.5rem !important;
    }

    /* Smaller carousel controls on mobile */
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 15%;
    }

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

    /* Ensure container doesn't cause overflow */
    .container {
        overflow-x: hidden;
    }

    /* Adjust row negative margins that might cause overflow */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Text Helper Classes */
.text-dark-primary {
    color: var(--millenium-dark);
}

/* Footer Styles */
footer .text-white-50 {
    color: rgba(255, 255, 255, 0.65) !important;
}

footer .hover-accent {
    transition: color 0.2s ease;
}

footer .hover-accent:hover {
    color: var(--millenium-accent) !important;
}

footer .footer-links li {
    transition: transform 0.2s ease;
}

footer .footer-links li:hover {
    transform: translateX(3px);
}

footer .btn-outline-light:hover {
    background-color: var(--millenium-accent);
    border-color: var(--millenium-accent);
    transform: translateY(-2px);
}

/* Drei Partner Page - Equal Height Cards */
.drei-services-grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drei-services-grid .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.drei-services-grid .card-body h3 {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drei-services-grid .card-body p {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Hero Section mit Gradient für bessere UX-Unterscheidung vom Menü */
.hero-gradient {
    background: linear-gradient(135deg, var(--millenium-dark) 0%, #2a2a2a 50%, var(--millenium-dark) 100%) !important;
    position: relative;
}

.hero-gradient::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--millenium-accent) 50%, transparent 100%);
}

/* ========================================
   Reviews Carousel (3 nebeneinander)
   ======================================== */
.reviews-carousel {
    position: relative;
    padding: 0 50px;
}

.reviews-carousel__inner {
    overflow: hidden;
}

.reviews-carousel__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.reviews-carousel__slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
}

/* Review Card */
.review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.review-card__google {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.7;
}

.review-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.review-card__text {
    flex: 1;
    margin-bottom: 1rem;
}

.review-card__text p {
    font-style: italic;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.review-card__author {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.review-card__author strong {
    color: var(--millenium-dark);
    font-size: 0.9rem;
}

/* Carousel Navigation Buttons */
.reviews-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--millenium-accent);
    background: #fff;
    color: var(--millenium-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.reviews-carousel__btn:hover {
    background: var(--millenium-accent);
    color: #fff;
}

.reviews-carousel__btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.reviews-carousel__btn--prev {
    left: 0;
}

.reviews-carousel__btn--next {
    right: 0;
}

/* Tablet: 2 Karten */
@media (max-width: 991.98px) {
    .reviews-carousel__slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

/* Mobile: 1 Karte */
@media (max-width: 575.98px) {
    .reviews-carousel {
        padding: 0 40px;
    }

    .reviews-carousel__slide {
        flex: 0 0 100%;
    }

    .reviews-carousel__btn {
        width: 36px;
        height: 36px;
    }
}

/* CTA Section Styling - Orange Hintergrund für visuellen Break vor Footer */
.cta-section {
    background-color: var(--millenium-accent) !important;
    color: white !important;
}

.cta-section .btn-outline-light {
    border-color: white;
    color: white;
    font-weight: 600;
}

.cta-section .btn-outline-light:hover {
    background-color: white;
    color: var(--millenium-accent);
    border-color: white;
}
