/* Global Styles */
 :root {
     --primary-nav-color: #6f6e57;
 }
html {
    scroll-padding-top: 110px; /* Kompensiert die fixed Navigation + Job Banner */
}

/* Desktop: slower marquee speed for readability */
@media (min-width: 992px) {
    .job-banner .scrolling-text {
        animation-duration: 32s !important;
    }
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Job Banner Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.job-banner {
    position: fixed;
    top: 64px; /* Under navigation */
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.job-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.job-banner:hover .scrolling-text {
    animation-play-state: paused;
}

/* Mobile Job Banner */
@media (max-width: 768px) {
    .job-banner {
        top: 60px;
        font-size: 0.9rem !important;
    }

    .scrolling-text {
        font-size: 0.9rem !important;
    }
}

/* Hero Section */
.hero {
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    padding-top: 0px;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    margin-top: -40px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0px;
    margin-top: 0px;
}

/* Team Section */
.team-member {
    text-align: center;
    padding: 20px;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

/* Team Photo Hover Effects */
.team-photo-container:hover .photo-overlay {
    opacity: 1 !important;
}

.team-photo-container:hover .team-photo {
    transform: scale(1.05);
}

/* Job Posting Styling */
.job-posting-image {
    margin: 0 auto;
}

/* Mobile Team Layout */
@media (max-width: 768px) {
    .team-member {
        margin-bottom: 2rem;
    }

    .team-photo-container {
        margin: 0 auto;
        max-width: 250px;
    }

    .team-photo-container img,
    .team-photo-container .job-posting-image {
        width: 250px !important;
        height: 250px !important;
    }

    .photo-overlay {
        width: 250px !important;
        height: 250px !important;
    }

    .job-posting-image {
        font-size: 1rem !important;
    }

    .job-posting-image i {
        font-size: 2.5rem !important;
    }
}/* Services Section */
.service-card {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100% !important;
    height: 270px !important;
    object-fit: cover;
    object-position: top;
    border-radius: 5px;
    margin-bottom: 15px;
    min-height: 270px !important;
}

/* Testimonials Section */
.testimonial-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.client-name {
    font-style: italic;
    color: #666;
}

/* Contact Section */
.social-media a {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
}

.social-media a:hover {
    color: #007bff;
}

/* Navigation */
.navbar {
    background-color: rgba(137, 135, 108, 0.9) !important;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar {
        background-color: #89876c!important; /* Exakt gleiche Farbe wie die roten Buttons */
    }

    /* Container für zentrierten Text */
    /* .navbar .container {
        position: relative;
    } */

    /* Text horizontal zentriert zwischen Logo und Hamburger-Menü */
    .navbar .container::after {
        content: "Mucke & Mähne";
        color: white;
        font-size: 1.2rem;
        font-weight: bold;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
        pointer-events: none;
        z-index: 1;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        opacity: 1;
        visibility: visible;
    }

    /* Text komplett verstecken wenn Menü aufgeklappt ist */
    .navbar-toggler[aria-expanded="true"] + .navbar-collapse .container::after,
    .navbar-collapse.show .container::after,
    .navbar-collapse.collapsing .container::after {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Fallback: Text über body class verstecken */
    body:has(.navbar-toggler[aria-expanded="true"]) .navbar .container::after {
        opacity: 0;
        visibility: hidden;
    }
}

/* Mobile Optimierungen für verschiedene Bildschirmgrößen */

/* Extra kleine Geräte (Phones, 576px und kleiner) */
@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2rem;
        margin-top: -15px;
        margin-bottom: 1rem;
    }

    .hero img {
        max-width: 85% !important;
        margin-bottom: 0px !important;
        margin-top: 0px !important;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hero .btn {
        margin-top: 1.5rem;
        padding: 15px 25px;
        font-size: 1rem;
    }

    .hero .alert {
        font-size: 100% !important;
        max-width: 95% !important;
        margin: 0 auto 1rem auto !important;
        padding: 0.75rem !important;
    }

    .team-member img {
        width: 120px;
        height: 120px;
    }

    .team-member h4 {
        font-size: 1.2rem;
    }

    .team-member p {
        font-size: 0.9rem;
    }

    /* Container Padding für sehr kleine Bildschirme */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Navigation Schriftgröße */
    .navbar-nav .nav-link {
        font-size: 1.1rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* Kleine Geräte (Landscape Phones, 576px bis 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero h1 {
        font-size: 2.2rem;
        margin-top: -18px;
        margin-bottom: 1.2rem;
    }

    .hero img {
        max-width: 75% !important;
    }

    .hero .btn {
        margin-top: 1.8rem;
        padding: 18px 28px;
    }

    .hero .alert {
        max-width: 450px !important;
    }

    .team-member img {
        width: 140px;
        height: 140px;
    }
}

/* Standard Mobile (768px bis 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.5rem;
        margin-top: -20px;
        margin-bottom: 1.5rem;
    }

    .hero img {
        max-width: 70% !important;
    }

    .hero .btn {
        margin-top: 2rem;
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }
}

/* Tablets (992px bis 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero img {
        max-width: 65%;
    }
}

/* Fallback für sehr alte Breakpoint-Syntax */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        margin-top: -20px;
        margin-bottom: 1.5rem;
    }

    .hero img {
        max-width: 70% !important;
    }

    .hero .btn {
        margin-top: 2rem;
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }
}
