﻿.text-logo {
    position: relative;
    display: inline-block;
    font-family: var(--logo-font-family);
    font-style: italic;
    font-weight: 800;
    font-size: 1.875rem;
    color: var(--logo-primary-color);
}
.text-logo .t1 {
    color: var(--logo-primary-color);
}
.text-logo .t2 {
    color: var(--logo-secondary-color);
}
.text-logo .t3 {
    color: var(--logo-tertiary-color);
}

@media (max-width: 860px) {
    .text-logo {
        top: 13px;
        left: 0;
        font-size: 21px;
        color: var(--logo-primary-light-color);
    }
    .site-laendleanzeiger .text-logo {
        font-size: 18px;
    }
    .text-logo .t1 {
        color: var(--logo-primary-light-color);
    }
    .text-logo .t2 {
        color: var(--logo-secondary-light-color);
    }
    .text-logo .t3 {
        color: var(--logo-tertiary-light-color);
    }
}

#header {
    position: fixed;
    top: 0px;
    float: left;
    min-width: 320px;
    width: 100%;
    padding: 7px 0;
    background: #fff;
    box-shadow: 0 3.5px 15px #aaaaaa30;
    z-index: 999;
}

#header .rmd-container .columns {
    padding: 0 !important;
}

.searchbar .columns {
    padding: 0 1rem !important;
}

#header * {
    user-select: none;
}

#header #logo {
    position: relative;
}

#header ul#menu {
    float: right;
    display: flex;
    align-items: center;
    height: 45px;
}

    #header ul#menu .user-avatar-item {
        float: left;
        position: relative;
        padding: 10px !important;
        margin: -10px -10px -10px 0 !important;
        cursor: pointer;
    }

#header ul#menu li a {
    float: left;
    margin-left: 15px;
    color: #333;
}

#header ul#menu li .user-avatar-container {
    border: 2px solid #fbba10;
    border-radius: 50%;
    margin: -7px 0px -7px -7px;
    padding: 2px;
    width: 42px;
    height: 42px;
    object-fit: cover;
}

#header ul#menu li .user-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: inherit;
    object-position: inherit;
}

#header ul#menu li a .rmd-web-icon {
    display: flex;
    align-items: center;
}

#header ul#menu li a .rmd-web-icon svg {
    width: 26px !important;
}

.rmd-web-icon svg, .svg-container svg {
    fill: rgb(255, 255, 255) !important;
}

@media (min-width: 861px) {
    .rmd-web-icon svg, .svg-container svg {
        fill: rgb(51, 51, 51) !important;
    }
}

.svg-container:hover svg {
    fill: #00000090 !important;
}

.rmd-web-icon svg {
    transform: scale(0.85);
}

.rmd-web-icon.rmd-heart svg, .rmd-web-icon.rmd-mail svg {
    transform: scale(0.95);
}

#header ul#menu li a img {
    float: left;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 0px 0px 0px 10px;
}

#header ul#menu li .user-avatar-container img {
    margin-left: 0px !important;
}

#header ul#menu li a span, #header ul#menu li a p {
    float: left;
    font-size: .875rem;
    display: inline-block;
    line-height: 130%;
}

#header ul#menu li a:hover p {
    text-decoration: underline;
}

#header ul#menu li a .bubble {
    position: absolute;
    margin-left: 13px;
    margin-top: -32px;
    z-index: 1;
}

#header span.fa {
    font-size: 1.4rem;
    float: left;
    color: #333;
    display: none;
}

#header .fa-address-card {
    font-size: 1.4rem !important;
}

#header a.mobile,
#header .mobile-search-icon {
    float: right;
    margin-left: 18px;
    color: #fff;
    display: none;
}

#header a.mobile {
    /* the next 2 lines are very important for INP score */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#header .svg-container svg {
    fill: #fff;
}

.user-avatar-mobile {
    width: 44px;
    height: 44px;
    margin: 4px -4px 0 6px !important;
    padding: 4px;
    object-fit: cover;
}

.user-avatar-mobile img {
    width: 100%;
    height: 100%;
    object-fit: inherit;
    object-position: inherit;
    border: 2px solid #fff;
    border-radius: 50%;
}

#header .btn-place-new-ad {
    float: right;
    margin-top: 3px;
    margin-left: 25px;
    padding: 10px 15px;
    background-color: #e06720;
    border-radius: 0.5rem;
    font-family: var(--primary-font-family);
    font-size: 14px;
    font-weight: 500;
}

#header .btn-place-new-ad:hover {
    background-color: #ed7c34;
}

.btn-place-new-ad .svg-icon {
    position: relative;
    width: 1rem;
    height: 1rem;
    margin-right: 0;
}

.btn-place-new-ad .svg-icon svg {
    top: -1px;
    left: -3px;
    width: 1rem;
    height: 1rem;
    fill: #fff;
}

.warningcolor {
    color: var(--primary-color) !important;
}
.successcolor {
    color: var(--primary-color) !important;
}

#header .mobile.message .bubble {
    visibility: hidden;
}

#header ul#menu li ul {
    display: none;
    width: 220px;
    position: absolute;
    background: #fff;
    margin-left: -19px;
    margin-top: 38px;
    border-top: 1px solid #00000010;
    box-shadow: 0px 7px 30px #AAAAAA30;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
}

#header ul#menu li ul li {
    float: left;
    width: 100%;
    padding: 0px;
    margin: 0px;
}

#header ul#menu li ul li a {
    float: left;
    width: 100%;
    font-size: .8125rem;
    padding: 6px 10px;
    margin: 0px;
}

#header ul#menu li ul li a span {
    margin: 0 10px 0 0;
    width: 15px;
    text-align: center;
}

#header ul#menu li ul li a:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

#header ul#menu li ul li a:hover {
    transition: all ease-in-out 0.1s;
}

#header ul#menu li ul li a:hover .icon-box .rmd-web-icon svg {
    --rmd-icon-color: #fff;
    --rmd-icon-opacity: 1;
    fill: #fff !important;
}   

#header ul#menu li ul li:last-child a:hover, #header ul#menu li ul li:last-child a:hover span {
    background: #ed576b;
    color: #fff;
}

#header ul#menu li:hover ul {
    display: block;
}


#fix-page-height {
    float: left;
    width: 100%;
    height: 59px;
}

.icon-title-container {
    display: flex;
    align-items: center;
    justify-content: start;
}

.icon-title-container .nav-acc-title {
    margin-bottom: 2px;
}

.icon-title-container .icon-box {
    display: flex;
    justify-content: center;
    height: 25px;
    width: 58px;
}

.svg-container.mobile-container svg {
    fill: #fff !important;
}

/*.rmd-person {
    margin-left: -8px;
}*/

.rmd-person .svg-icon {
    margin: -2px 0 0;
}

/* -- Header icons -- */
.mobile .svg-container {
    padding-top: 2px;
}

.header-icon-box {
    margin-top: 2px;
}

.header-icon-box .rmd-courier svg {
    margin: 0px -4px 0px 0px;
    width: 29px;
    height: 23px;
}

.header-icon-box .rmd-heart svg {
    width: 24px;
    height: 24px;
}

.header-icon-box .rmd-mail svg {
    width: 25px;
    height: 27px;
}

.header-icon-box .rmd-notifications svg {
    width: 21px;
    height: 25px;
}

/* -- Header with side-navigation -- */
@media (max-width: 860px) {
        #header ul#menu li a span {
        font-size: 1.4rem;
        margin-top: 8px;
    }

    #header ul#menu li ul a span {
        /* font-size: 1.4rem; */
        font-size: .875rem;
        margin-top: 0px;
    }
}

/* -- Header Mobile View -- */
@media (max-width: 860px) {

    #header ul#menu {
        display: none;
    }

    #header ul#menu li a p {
        display: none;
    }

    #menu {
        display: none;
    }

    #header {
        background: var(--primary-bg-color);
        border-bottom: 0px;
        height: 52px;
        padding: 0px;
        z-index: 50;
    }

    #header span.fa {
        color: #fff;
        display: inline;
        padding: 15px 0;
        cursor: pointer;
        margin-top: 0px;
    }

    #header span.fa-bars {
        padding: 15px 10px 15px 0;
        margin-left: 0px !important;
        width: 35px;
    }

    #header a {
        position: relative;
    }

    #header a.mobile,
    #header .mobile-search-icon {
        display: inline-block;
    }

    #header .mobile-container {
        display: flex;
        height: 52px;
        align-items: center;
    }

    #header a.mobile .shoppingCart {
        width: 20px;
    }

    #header a.mobile .shoppingCart svg path {
        fill: #fff;
    }

    #header a.plus {
        margin: 10px 5px 0 0;
    }

    #header a.plus span {
        margin: 0px;
        float: none;
        display: inline-block;
        width: 30px;
        height: 30px;
        background: #fff;
        line-height: 31px;
        font-size: 1rem;
        padding: 0px;
        text-align: center;
        vertical-align: middle;
        border-radius: 50%;
    }

    #header .btn-place-new-ad {
        display: none;
    }

    #header .mobile.plus {
        margin-left: 15px;
    }

    #header .mobile.message {
        margin-left: 0px;
    }

    #header .mobile.message .bubble {
        margin-left: -15px;
        margin-top: 5px;
        visibility: visible;
        float: left;
    }

    #header .mobile .bubble {
        margin-left: -15px;
        margin-top: 5px;
        visibility: visible;
        float: left;
        position: absolute;
        right: -12px;
        top: 0;
    }

    #fix-page-height {
        height: 52px;
    }

    .next-prev, .searchbar, .dealer-left-panel {
        transition: top 0.35s;
    }

    .next-prev.nav-up, .searchbar.nav-up, .dealer-left-panel.nav-up {
        top: -100px !important;
        transition: top 0.35s;
    }

    #header {
        transform: none;
        transition: transform 350ms ease 0s;
    }

    #header.nav-up {
        transform: translateY(-100%);
        transition: transform 350ms ease 0s;
    }
}

.login-container:focus {
    background: transparent;
    outline: none;
}

.login-container .rmd-person {
    float: left;
    margin-right: 5px;
    margin-top: 15px;
}

.login-container .rmd-person sg {
    fill: #fff;
}

.svg-container {
    object-fit: contain;
    display: flex;
    position: relative;
}

.section-bottom-nav {
    display: none;
}

#home-categories li:first-child a.cat0 {
    margin-top: -10px;
}

@media (max-width: 860px) {
    #header .mobile.message {
        display: none;
    }
}

/* theme switcher */
.theme-switcher {
    position: relative;
    display: inline-block;
}

.theme-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background-color: #f0f0f0;
    width: 42px;
    height: 42px;
    /* the next 2 lines are very important for INP score */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .theme-toggle:hover {
        background-color: #ebebeb;
    }

    .theme-toggle .icon-theme {
        margin: 0 auto;
    }

.theme-options {
    display: none;
    position: absolute;
    top: 100%;
    left: -24px;
    flex-direction: column;
    min-width: 160px;
    margin-top: 4px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
}

    .theme-options.visible {
        display: flex;
    }

    .theme-options::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 0;
        width: 100%;
        height: 10px;
        background: transparent;
    }

.theme-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    /* the next 2 lines are very important for INP score */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .theme-button:hover {
        background-color: #f0f9ff;
    }

    .theme-button.active {
        background-color: #e6ecf0;
        font-weight: bold;
    }

    .theme-button:first-child {
        border-top-right-radius: 8px;
        border-top-left-radius: 8px;
    }

    .theme-button:last-child {
        border-bottom-right-radius: 8px;
        border-bottom-left-radius: 8px;
    }

.icon-theme {
    margin: 0;
}

.theme-switcher-desktop {
    display: none;
}

.theme-switcher-desktop .theme-switcher {
    position: relative;
    display: inline-block;
}

.theme-switcher-desktop .theme-switcher:hover .theme-options {
    display: flex;
}

.theme-switcher-mobile {
    display: none;
}

@media (max-width: 860px) {
    .theme-switcher-mobile {
        position: relative;
        float: right;
        margin: 8px -12px 0 0;
    }

    .theme-switcher-mobile .theme-toggle {
        width: 36px;
        height: 36px;
    }
}

.icon-theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: #333;
}
