/* ================================================================= */
/*                          Allgemeine Stile                         */
/* ================================================================= */
@import url('../css/variables.css');


/* ================================================================= */
/*           Dunkle Schriftfarbe für mobile Unterseiten             */
/* ================================================================= */

/* ========== Links & Telefonnummer ========== */
.navbar-dark-text .navbar-links li a,
.navbar-dark-text .navbar-contact .phone-number,
.navbar-dark-text .navbar-contact .phone-number::after,
.navbar-dark-text .navbar-contact .phone-number:hover::after {
    color: #111 !important;
    background-color: transparent !important;
}

/* ========== Unterstreichung von Links ========== */
.navbar-dark-text .navbar-links li a::after {
    background-color: #111 !important;
}


/* ================================================================= */
/*        Button soll weiterhin blau bleiben mit weißer Schrift     */
/* ================================================================= */

/* ========== Termin-Button Farben ========== */
.navbar-dark-text .navbar-container>div button.termin {
    background-color: var(--logo-color) !important;
    color: #fff !important;
    border: none;
}


/* ================================================================= */
/*                        Button Hover-Zustand                       */
/* ================================================================= */

/* ========== Hover-Effekt des Buttons ========== */
.navbar-dark-text .navbar-container>div button.termin:hover {
    background-color: var(--logo-color) !important;
    color: #fff !important;
    opacity: 1;
}


/* ================================================================= */
/*                              Burger ICON                          */
/* ================================================================= */

/* ========== Hamburger-Linien ========== */
.navbar-dark-text .hamburger-inner,
.navbar-dark-text .hamburger-inner::before,
.navbar-dark-text .hamburger-inner::after,
.navbar-dark-text .hamburger.is-active .hamburger-inner,
.navbar-dark-text .hamburger.is-active .hamburger-inner::before,
.navbar-dark-text .hamburger.is-active .hamburger-inner::after {
    background-color: #111 !important;
}


/* ================================================================= */
/*                          Navbar Container                         */
/* ================================================================= */

/* ========== Gesamtstruktur ========== */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.hamburger {
    display: none;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90vw;
    max-width: 100rem;
    height: 9vh;
    margin: 0 auto;
}

.navbar-inner {
    width: 100%;
    height: 9vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0;
}

/* ========== Inhalt-Layout ========== */
.navbar-container>div {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}


/* ========== Telefonnummer & Button ========== */
.navbar-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-contact .phone-number {
    position: relative;
    cursor: pointer;
    padding: .5rem 0;
    font-size: 1rem;
    color: #fbfcff;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.navbar-contact .phone-number i {
    margin-right: 0.5rem;
}

.navbar-contact .phone-number::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #fbfcff;
    transition: width 0.3s ease;
}

.navbar-contact .phone-number:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    cursor: pointer;
    background-color: var(--logo-color);
    border: none;
    border-radius: var(--border-radius);
    color: #fbfcff;
}

.navbar-mobile-footer {
    display: none !important;
}

.nav-btn:hover {
    background-color: #0a3974;
    transition: background-color 0.3s ease-in-out;
}


/* ================================================================= */
/*                            Logo-Styles                            */
/* ================================================================= */
.navbar-container a img {
    max-height: 50px;
    height: auto;
    width: auto;
}


/* ================================================================= */
/*                          Navigations - Links                      */
/* ================================================================= */

/* ========== Link-Struktur ========== */
.navbar-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    margin: 0 15px;
    position: relative;
}

.navbar-links li a {
    text-decoration: none;
    color: #fbfcff;
    font-size: 1.1rem;
    line-height: 1em;
    padding: .5rem 1rem;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.navbar-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #fbfcff;
    transition: width 0.3s ease;
}

.navbar-links li a:hover::after {
    width: 100%;
}


/* ================================================================= */
/*                          Responsive Navbar                        */
/* ================================================================= */


/* ================================================================= */
/*                      Großbildschirme (ab 1600px)                  */
/* ================================================================= */
@media (min-width: 1600px) {
    .navbar-container {
        width: 90vw;
    }
}


/* ================================================================= */
/*                 Standard-Desktops (1200px - 1599px)               */
/* ================================================================= */
@media (max-width: 1599px) {
    .navbar-container {
        width: 90vw;
    }
}

/* ================================================================= */
/*            Mobile Anpassung für Breite 1390px und kleiner         */
/* ================================================================= */
@media (max-width: 1390px) {
    .navbar-links li a {
        font-size: 0.8rem; /* etwas kleiner */
        padding: 0.2rem 0.6rem; /* weniger Abstand */
    }

    .navbar-contact .phone-number {
        font-size: 0.75rem; /* Nummer etwas kleiner */
    }

    .navbar-container>div button.termin {
        padding: 10px 20px; /* Button kompakter */
        font-size: 0.8rem; /* Buttontext kleiner */
    }

    .navbar-container a img {
        max-height: 45px; /* Logo leicht kleiner */
    }

    .navbar-contact {
        gap: 0.6rem; /* Abstand Telefonnummer & Button leicht reduziert */
    }
}

/* ================================================================= */
/*         Tablets & kleine Laptops (768px - 1199px)                 */
/* ================================================================= */
@media (max-width: 1199px) {

    .navbar-inner {
        padding: 0 2vw;
    }

    .navbar-links li {
        margin: 0 10px;
    }

    .navbar-contact {
        gap: 0.8rem;
    }

    .navbar-contact .phone-number {
        font-size: 0.9rem;
    }

    .navbar-container>div button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}


/* ================================================================= */
/*               Ab 1130px wird das Burger-Menü aktiv                */
/* ================================================================= */
@media (max-width: 1130px) {

    /* ========== Mobile Navigation ========== */
    .navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        text-align: left;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        min-height: 81vh;
    }

    .navbar-links li:last-child {
        margin-top: auto;
    }

    .navbar-links.navbar-mobile-active {
        display: flex;
        max-height: 80dvh;
        flex-direction: column;
        transform: scaleY(1);
        opacity: 1;
        line-height: 1em;
        padding: 2.25rem 1rem;
        gap: 2rem;
        font-weight: 400;
        z-index: 1000;
    }

    .navbar-links.navbar-mobile-active a {
        color: black;
    }

    .navbar-links li {
        margin: 0;
    }

    .navbar-links a {
        padding: 10px 20px;
        color: #fff;
        font-size: 1.5rem !important;
    }

    .hamburger {
        display: block;
        z-index: 10;
    }

    .navbar-contact .phone-number {
        display: none;
    }

    .navbar-mobile-active .navbar-links {
        display: flex;
    }

    .navbar-container {
        width: 100vw;
        max-width: 100vw;
        padding: 0;
    }

    .navbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 9vh;
        gap: 10px;
        padding: 0 2vw;
    }

    .navbar-inner a img {
        max-height: 45px;
    }

    .navbar-contact {
        margin-left: auto;
    }

    /* ========== Mobiler Footer ========== */
    .navbar-mobile-footer {
        display: flex !important;
        padding: 2rem 1rem;
        text-align: center;
        border-top: 1px solid black;
    }

    .mobile-nav-footer {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .footer-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .footer-row .phone-number {
        font-size: 1.2rem;
        font-weight: 600;
        color: black;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-nav-footer p {
        font-size: 0.9rem;
        color: black;
        margin-top: 0.3rem;
        align-self: flex-start;
    }

    .social-media-icons {
        display: flex;
        gap: 0.1rem !important;
    }

    .social-media-icons a {
        color: #fbfcff;
        font-size: 0.5rem;
        transition: color 0.3s ease-in-out;
    }

    .social-media-icons a i {
        font-size: 1rem;
        margin-right: 0.3rem;
    }
    
    .social-media-icons a:last-child i {
        margin-right: 0;
    } 

    .social-media-icons a:hover {
        color: var(--logo-color);
    }
}


/* ================================================================= */
/*        Mobile Optimierung: Logo, Button & Hero-Text Styling       */
/* ================================================================= */
@media (max-width: 430px) {

    .navbar-container>div button.termin {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    .navbar-inner a img {
        max-height: 38px;
    }

    .hero-text {
        margin-top: 2.5rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .navbar-mobile-footer {
        padding: 0.8rem;
    }

    .footer-row .phone-number {
        font-size: 0.9rem;
    }

    .mobile-nav-footer p {
        font-size: 0.75rem;
    }

    .social-media-icons {
        gap: 0.2rem !important; /* oder dein Wunschwert */
    }

    .social-media-icons a i {
        font-size: 1rem !important;
    }

    .social-media-icons a {
        font-size: 1rem !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 375px) {
    .navbar-container>div button.termin {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .navbar-inner a img {
        max-height: 35px;
    }

    .hero-text {
        margin-top: 3rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .navbar-mobile-footer {
        padding: 0.5rem;
    }

    .mobile-nav-footer {
        gap: 0.3rem;
    }

    .footer-row {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 0.8rem;
    }

    .footer-row .phone-number {
        font-size: 0.8rem;
    }

    .mobile-nav-footer p {
        font-size: 0.7rem;
    }

    .social-media-icons {
        display: flex;
        justify-content: center;
        gap: 0.01rem;
        margin-top: 1rem;
    }
}
