/* =========================================================
   AL-YAQEEN – KOMPLETTER NEUER HEADER
========================================================= */


/* =========================================================
   RESET
========================================================= */

.ayq-header,
.ayq-header * {
    box-sizing: border-box;
}

.ayq-header {
    width: 100%;
    position: relative;
    z-index: 9999;

    font-family: Arial, Helvetica, sans-serif;
}



/* =========================================================
   TOP INFO BAR
========================================================= */

.ayq-topbar {
    width: 100%;
    height: 42px;

    background: #000;

    border-bottom: 1px solid #eeeeee;
}

.ayq-topbar-inner {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.ayq-topbar-emergency {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #fff;

    font-size: 1px;

    white-space: nowrap;
}

.ayq-topbar-phone {
    color: #fd0122;

    font-size: 20px;

    line-height: 1;
    
}

.ayq-topbar-emergency strong {
    color: #fd0122;

    font-size: 17px;
    font-weight: 800;
}

.ayq-topbar-title {
    margin-left: 5px;

    color: #fd0122;
    font-size: 17px;

    font-weight: 800;
}

.ayq-topbar-separator {
    color: #777777;
}

.ayq-topbar-text {
    color: #fff;
}


/* =========================================================
   HAUPT HEADER
========================================================= */

.ayq-main-header {
    width: 100%;
    height: 85px;

    background: #000000;
}

.ayq-main-inner {
    width: 100%;
    height: 100%;

    padding: 0 32px;

    display: flex;
    align-items: center;

    margin: 0 auto;
}


/* =========================================================
   LOGO
========================================================= */

.ayq-logo {
    width: 80px;
    height: 80px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    text-decoration: none;
}

.ayq-logo img {
    width: 80px;
    height: 80px;

    display: block;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
========================================================= */

.ayq-navigation {
    flex: 1;

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 38px;
}

.ayq-navigation a {
    position: relative;

    padding: 8px 0;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.25s ease;
}

.ayq-navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: #c89b3c;

    transition:
        width 0.25s ease;
}

.ayq-navigation a:hover {
    color: #c89b3c;
}

.ayq-navigation a:hover::after {
    width: 100%;
}


/* =========================================================
   RECHTER BEREICH
========================================================= */

.ayq-header-right {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 25px;
}


/* =========================================================
   SPRACHE
========================================================= */

.ayq-language {
    position: relative;
}

.ayq-language-button {
    height: 46px;

    padding: 0 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 0;

    background: transparent;

    color: #ffffff;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
}

.ayq-language-button:hover {
    color: #c89b3c;
}

.ayq-language-arrow {
    font-size: 10px;
}


/* =========================================================
   LANGUAGE DROPDOWN
========================================================= */

.ayq-language-dropdown {
    position: absolute;

    top: calc(100% + 2px);
    right: 0;

    width: 175px;
    padding: 5px 0;

    display: none;

    background: #ffffff;
    border: 1px solid #c89b3c;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    z-index: 100000;
}
.ayq-language:hover .ayq-language-dropdown {
    display: block;
}

.ayq-language-dropdown a {
    min-height: 40px;

    padding: 0 14px;

    display: flex !important;
    align-items: center;

    gap: 10px;
    color: #173f32 !important;
    background: #ffffff !important;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.ayq-language-dropdown a:hover {
    background: #f5f5f5;

    color: #c89b3c;
}


/* =========================================================
   FLAGGEN
========================================================= */

.ayq-flag {
    width: 22px;
    height: 14px;

    flex-shrink: 0;

    display: inline-block;

    border-radius: 2px;

    overflow: hidden;
}



/* Deutschland */

.ayq-flag-de {
    background:
        linear-gradient(
            to bottom,
            #000000 0 33%,
            #dd0000 33% 66%,
            #ffce00 66% 100%
        );
}


/* Frankreich */

.ayq-flag-fr {
    background:
        linear-gradient(
            to right,
            #0055a4 0 33%,
            #ffffff 33% 66%,
            #ef4135 66% 100%
        );
}



/* =========================================================
   TÜRKEI 🇹🇷
========================================================= */

.ayq-flag-tr {
    position: relative;
    background: #e30a17;
    overflow: hidden;
}

/* Halbmond */
.ayq-flag-tr::before {
    content: "";
    position: absolute;

    width: 9px;
    height: 9px;

    top: 3px;
    left: 5px;

    background: #ffffff;
    border-radius: 50%;
}

/* Ausschnitt im Halbmond */
.ayq-flag-tr::after {
    content: "";
    position: absolute;

    width: 7px;
    height: 7px;

    top: 4px;
    left: 7px;

    background: #e30a17;
    border-radius: 50%;
}

.ayq-flag-tr .flag-star {
    position: absolute;
    left: 12px;
    top: 3px;
    color: #ffffff;
    font-size: 6px;
    line-height: 1;
}

/* =========================================================
   SAUDI-ARABIEN 🇸🇦
========================================================= */

.ayq-flag-sa {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #006c35;

    overflow: hidden;
}

.ayq-flag-sa::before {
    content: "لا إله إلا الله";

    position: absolute;

    top: 2px;
    left: 1px;
    right: 1px;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 4px;
    font-weight: 700;

    text-align: center;
    white-space: nowrap;
}

.ayq-flag-sa::after {
    content: "━━━━";

    position: absolute;

    bottom: 2px;
    left: 4px;

    color: #ffffff;

    font-size: 5px;
    font-weight: 700;

    letter-spacing: -1px;
}


/* England */

.ayq-flag-gb {
    background: #183b8c;
}
/* Espagnol */

.ayq-flag-es {
    background:
        linear-gradient(
            to bottom,
            #AA151B 0%,
            #AA151B 25%,
            #F1BF00 25%,
            #F1BF00 75%,
            #AA151B 75%,
            #AA151B 100%
        );
}



/* =========================================================
   AGENTUR
========================================================= */

.ayq-agency {
    min-width: 76px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.25s ease;
}

.ayq-agency:hover {
    color: #c89b3c;
}

.ayq-agency-icon {
    font-size: 21px;

    line-height: 1;
}


/* =========================================================
   HAUPT BUTTON
========================================================= */

.ayq-header-button {
    min-width: 190px;
    height: 48px;

    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-radius: 28px;

    background: #ffffff;

    color: #111111;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.ayq-header-button strong {
    font-size: 24px;
    font-weight: 400;

    line-height: 1;
}

.ayq-header-button:hover {
    background: #c89b3c;

    color: #173f32;
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.ayq-mobile-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.ayq-mobile-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    margin: 5px auto;

    background: #ffffff;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.ayq-mobile-menu {
        display: none;

        width: 100%;

        padding: 18px 20px 22px;

        background: #000000;

        border-top: 1px solid #333333;
    }

    .ayq-mobile-menu.open {
        display: block;
    }


    .ayq-mobile-menu nav {
        display: flex;
        flex-direction: column;
    }

    .ayq-mobile-menu nav a {
        padding: 14px 5px;

        border-bottom: 1px solid rgba(255,255,255,0.12);

        color: #ffffff;

        font-size: 15px;
        font-weight: 700;

        text-decoration: none;
    }

    .ayq-mobile-menu nav a:hover {
        color: #c89b3c;
    }


    .ayq-mobile-buttons {
        display: flex;

        flex-direction: column;

        gap: 10px;

        margin-top: 18px;
    }

    .ayq-mobile-buttons a {
        padding: 13px;

        border: 1px solid #c89b3c;

        color: #ffffff;

        text-align: center;

        font-size: 13px;
        font-weight: 700;

        text-decoration: none;
    }




/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .ayq-navigation {
        gap: 24px;
    }

    .ayq-navigation a {
        font-size: 13px;
    }

    .ayq-header-right {
        gap: 15px;
    }

    .ayq-header-button {
        min-width: 165px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    
    .ayq-topbar {
        height: 36px;
    }

    .ayq-topbar-emergency {
        font-size: 10px;
    }

    .ayq-topbar-emergency strong {
        font-size: 13px;
    }

    .ayq-topbar-phone {
        font-size: 13px;
    }

    .ayq-topbar-title,
    .ayq-topbar-separator,
    .ayq-topbar-text {
        display: none;
    }


    .ayq-main-header {
        height: 76px;
    }

    .ayq-main-inner {
        padding: 0 12px;

        justify-content: space-between;
    }


    .ayq-logo {
        width: 80px;
    }

    .ayq-logo img {
        width: 72px;
        height: 68px;
    }


    .ayq-navigation,
    .ayq-header-right {
        display: none;
    }


    .ayq-mobile-toggle {
        display: block;
    }


    /* MOBILE MENU */

    .ayq-mobile-menu {
        width: 100%;

        padding: 20px;

        box-sizing: border-box;

        background: #50151d;

        border-top: 1px solid #333333;
    }

    .ayq-mobile-menu nav {
        display: flex;
        flex-direction: column;
    }

    .ayq-mobile-menu nav a {
        padding: 15px 5px;

        border-bottom: 1px solid rgba(255,255,255,0.12);

        color: #ffffff;

        font-size: 15px;
        font-weight: 700;

        text-decoration: none;
    }

    .ayq-mobile-menu nav a:hover {
        color: #c89b3c;
    }


    .ayq-mobile-buttons {
        display: flex;
        flex-direction: column;

        gap: 10px;

        margin-top: 20px;
    }

    .ayq-mobile-buttons a {
        padding: 13px;

        border: 1px solid #c89b3c;

        color: #ffffff;

        text-align: center;

        font-size: 13px;
        font-weight: 700;

        text-decoration: none;
    }

}


/* =========================================================
   KLEINE MOBILE GERÄTE
========================================================= */

@media (max-width: 560px) {

    .ayq-topbar-emergency strong {
        font-size: 12px;
    }

    .ayq-main-header {
        height: 72px;
    }

    .ayq-logo {
        width: 74px;
    }

    .ayq-logo img {
        width: 66px;
        height: 64px;
    }

}

/* =========================================================
   MOBILE – SPRACHE SICHTBAR
========================================================= */

@media (max-width: 850px) {

    .ayq-header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        margin-left: auto !important;
        margin-right: 6px !important;
    }

    .ayq-language {
        display: block !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        
    }

    .ayq-language-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 58px !important;
        height: 38px !important;

        padding: 0 !important;

        color: #ffffff !important;
        background: transparent !important;

        visibility: visible !important;
        opacity: 1 !important;
        margin-right: 60px !important;
    }

    .ayq-language-button .ayq-flag {
        display: inline-block !important;
    }

    .ayq-language-button span {
        visibility: visible !important;
    }

    .ayq-language-dropdown {
        display: none !important;

        position: absolute !important;

        top: 44px !important;
        right: 0 !important;

        width: 160px !important;

        background: #ffffff !important;

        z-index: 99999 !important;
    }

    .ayq-language.open .ayq-language-dropdown {
        display: block !important;
    }

    .ayq-agency,
    .ayq-header-button {
        display: none !important;
    }

}



/* =========================================================
   TOP INFO BAR
   ========================================================= */

.top-info-bar {
    width: 100%;

    min-height: 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 7px 40px;

    box-sizing: border-box;

    background: #222222;
    color: var(--header-white);

    border-bottom:solid 2px #075c45;
}


/* Kontakt links */

.top-info-contact {
    display: flex;
    align-items: center;
    margin-left: 105px;

    gap: 25px;
}

.top-info-contact a {
    color: #fff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 2px;

    transition: color 0.2s ease;
}

.top-info-contact a:hover {
    color: goldenrod;
}


/* Aktionen */

.top-info-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.top-info-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 7px 14px;

    box-sizing: border-box;

    color: #fff;

    border: 1px solid gold;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.top-info-actions a:hover {
    background: gold;
    color: #000;
     border: 1px solid #fff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .header-inner {
        padding: 0 35px;

        grid-template-columns: 120px 1fr 120px;
    }

    .main-navigation {
        gap: 25px;
    }

    .main-navigation a {
        font-size: 15px;
    }

    .header-logo,
    .header-logo img,
    .header-logo .brand-logo {
        width: 75px;
        height: 75px;
    }

    .language-switcher-button {
        width: 110px;
    }

    .top-info-bar {
        padding-left: 25px;
        padding-right: 25px;
        
    }

    .top-info-contact {
        gap: 18px;
        margin-left: 0;
    }

    .top-info-actions a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 14px;
    }
}


/* =========================================================
   MOBILE – BIS 850px
   ========================================================= */

@media (max-width: 850px) {

    .header-inner {
        height: 82px;

        padding: 0 18px;

        display: grid;

        grid-template-columns: 1fr auto auto;

        align-items: center;

        gap: 10px;
    }


    /* Logo */

    .header-logo {
        grid-column: 1;

        position: static;

        width: 80px;
        height: 80px;
    }

    .header-logo img,
    .header-logo .brand-logo {
        width: 80px;
        height: 80px;
    }


    /* Desktop-Navigation aus */

    .main-navigation {
        display: none !important;
    }


    /* Hamburger */

    .mobile-menu-toggle {
        grid-column: 3;

        display: flex;

        width: 40px;
        height: 40px;

        margin: 0;
        padding: 6px;

        box-sizing: border-box;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 5px;

        border: 1px solid var(--header-gold);
        border-radius: 5px;

        background: transparent;

        cursor: pointer;

        z-index: 10002;
    }

    .mobile-menu-toggle span {
        display: block;

        width: 24px;
        height: 2px;

        background: var(--header-green-dark);

        border-radius: 2px;

        transition:
            transform 0.25s ease,
            opacity 0.25s ease,
            background 0.25s ease;
    }

    .mobile-menu-toggle:hover span {
        background: var(--header-gold);
    }
}


@media (max-width: 850px) {

    .top-info-bar {
        min-height: auto;
        padding: 6px 10px;
        display: block;
    }

    .top-info-contact {
        width: 100%;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px 12px;
    }

    .top-info-contact .ayq-topbar-title {
        display: none;
    }

    .top-info-contact a {
        font-size: 12px;
        line-height: 18px;
        white-space: nowrap;
        display: none;
    }

    /* E-Mail in die zweite Zeile */
    .top-info-contact a:nth-of-type(3) {
        flex-basis: 100%;
        text-align: center;
    }

    /* Die drei Buttons gehören auf Mobile ins Mobile-Menü */
    .top-info-actions {
        display: none;
    }

}

