.k2-header-pin::before,
#et-secondary-nav a[href$="/anfahrt/"]::before {
    content: "";
    display: inline-block;
    width: 23px;
    height: 23px;
    flex: none;
    background-color: currentColor;
    -webkit-mask: url("karten-pin.svg") center / contain no-repeat;
    mask: url("karten-pin.svg") center / contain no-repeat;
}

@media (max-width: 1024px) {
    #page-container #top-header #et-info,
    #page-container #top-header #et-info a {
        color: #fff !important;
    }
    #main-header .logo_container > a {
        position: relative;
        left: -22px;
    }
    /* Divi copies secondary navigation into the hamburger menu. */
    #et_mobile_nav_menu .et_mobile_menu li:has(> a:is([href="/anfahrt"], [href="/anfahrt/"], [href="https://klosterruine.de/anfahrt"], [href="https://klosterruine.de/anfahrt/"])) {
        display: none;
    }
    #main-header #et_mobile_nav_menu.k2-mit-route {
        display: flex;
        align-items: flex-start;
        gap: 16px;
    }
    #main-header a.k2-header-pin {
        margin-top: -6px;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        color: #795138;
        border-radius: 5px;
    }
    #main-header a.k2-header-pin:focus-visible { outline: 2px solid currentColor; }
}
/* Extend the classic Divi mobile header through landscape tablets. */
@media (min-width: 981px) and (max-width: 1024px) {
    #main-header #top-menu-nav,
    #top-header #et-secondary-menu { display: none; }
    #main-header #et_mobile_nav_menu { display: block; }
    #main-header #et-top-navigation { padding-top: 24px; }
}
@media (min-width: 1025px) {
    /* Divi's sticky header sets even nested links to its main navigation colors. */
    #main-header #top-menu .sub-menu a { color: #fff !important; }
    #main-header #top-menu .sub-menu a[aria-current="page"] {
        text-decoration: underline;
        text-underline-offset: 0.2em;
    }
    #page-container #top-header > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 0;
        min-height: 34px;
    }
    /* Divi's clearfix would otherwise occupy a third flex position. */
    #page-container #top-header > .container::after { display: none; }
    .et_fullwidth_secondary_nav.et_fullwidth_nav #page-container #top-header > .container { padding-right: 32px; }
    #page-container #top-header #et-info {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 0;
    }
    #top-header #et-info-phone { margin: 0; }
    #page-container #top-header #et-info a,
    #page-container #top-header #et-secondary-nav > li > a {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0;
        color: #fff !important;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.35;
    }
    #page-container #top-header a:hover,
    #page-container #top-header a:focus-visible {
        opacity: 1;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    #page-container #top-header a:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
    #et-secondary-nav a[href$="/anfahrt/"] { gap: 6px; }
    #et-secondary-nav a[href$="/anfahrt/"]::before { width: 16px; height: 16px; }
}
/* Keep Jobs on the same line as the other links just above the breakpoint. */
@media (min-width: 1025px) and (max-width: 1200px) {
    #main-header { --k2-logo-breite: clamp(170px, 17vw, 204px); }
    #main-header .logo_container #logo { max-width: var(--k2-logo-breite) !important; object-fit: contain; }
    #main-header #et-top-navigation { padding-left: calc(var(--k2-logo-breite) + 20px) !important; }
    #main-header #top-menu > li:not(:last-child) { padding-right: 10px; }
}
@media (max-width: 420px) {
    #main-header .container:has(.k2-header-pin) .logo_container #logo {
        max-width: calc(100% - 98px) !important;
        object-fit: contain;
    }
}

.k2-restaurantzeiten#oeffnungszeiten { scroll-margin-top: 7rem; }
