/*
 * Header/footer of the 2026 layout (biografien2026.erinnerungsort.hs-duesseldorf.de),
 * modelled after the new WordPress site (Soledad theme) of the Erinnerungsort.
 * Plain CSS (not built by mix), loaded after bootstrap.css.
 */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/2026/montserrat-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/2026/open-sans-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/2026/raleway-latin.woff2') format('woff2');
}

:root {
    --eo26-accent: #5fa1db;
    --eo26-accent-dark: #1e73be;
    --eo26-link-hover: #0066bf;
    --eo26-text: #313131;
    --eo26-border: #dedede;
    --eo26-head-font: 'Montserrat', sans-serif;
    --eo26-body-font: 'Open Sans', sans-serif;
    --eo26-nav-height: 53px;
    --eo26-sticky-height: 30px;
}

body.layout-2026 {
    background-color: #fff !important;
}

body.layout-2026 > .container {
    padding-top: 40px;
}

body.eo26-menu-open {
    overflow: hidden;
}

/* ---------- shared ---------- */

.eo26-header,
.eo26-footer {
    font-family: var(--eo26-body-font);
    color: var(--eo26-text);
}

.eo26-header ul,
.eo26-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eo26-header a,
.eo26-header a:hover,
.eo26-header a:focus,
.eo26-footer a,
.eo26-footer a:hover,
.eo26-footer a:focus {
    text-decoration: none;
}

.eo26-header button {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.eo26-header svg,
.eo26-footer svg {
    display: block;
    width: 100%;
    height: 100%;
}

.eo26-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- social icons ---------- */

.eo26-social {
    display: flex;
    gap: 10px;
}

.eo26-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: #fff;
    transition: opacity .2s;
}

.eo26-social a:hover,
.eo26-social a:focus {
    color: #fff;
    opacity: .75;
}

/* ---------- top bar ---------- */

.eo26-topbar {
    background-color: var(--eo26-accent);
}

.eo26-topbar .eo26-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 44px;
}

/* ---------- logo bar ---------- */

.eo26-midbar .eo26-inner {
    display: flex;
    align-items: center;
    max-width: 1170px;
    padding: 77px 70px 95px;
}

.eo26-logo {
    display: block;
}

.eo26-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.eo26-brand .eo26-logo img {
    max-width: min(425px, 100%);
}

.eo26-tagline {
    margin: 20px 0 0;
    padding-left: 13px;
    font-family: 'Raleway', var(--eo26-body-font);
    font-size: 26px;
    font-weight: 600; /* synthetic bold of the 400 face, as on the WordPress site */
    line-height: 1.5;
    color: #111;
    white-space: nowrap;
}

.eo26-burger,
.eo26-search-mobile,
.eo26-nav-head,
.eo26-nav-search,
.eo26-overlay {
    display: none;
}

/* ---------- menu (desktop) ---------- */

.eo26-nav {
    background-color: var(--eo26-accent);
    font-family: var(--eo26-head-font);
}

.eo26-nav > .eo26-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eo26-menu {
    display: flex;
    flex-wrap: wrap;
}

.eo26-item {
    position: relative;
}

.eo26-level-1 {
    display: flex;
    align-items: center;
}

.eo26-level-1 > .eo26-link {
    display: block;
    padding: 0 15px;
    line-height: var(--eo26-nav-height);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    transition: color .2s;
}

.eo26-level-1:first-child > .eo26-link {
    padding-left: 0;
}

.eo26-level-1.eo26-has-children > .eo26-link {
    padding-right: 5px;
}

.eo26-level-1 > .eo26-sub-toggle {
    width: 9px;
    height: 9px;
    margin-right: 15px;
    color: #fff;
}

.eo26-level-1.eo26-current > .eo26-link,
.eo26-level-1.eo26-current > .eo26-sub-toggle {
    color: #000;
}

.eo26-level-1:hover > .eo26-link,
.eo26-level-1:focus-within > .eo26-link,
.eo26-level-1.is-open > .eo26-link,
.eo26-level-1:hover > .eo26-sub-toggle,
.eo26-level-1:focus-within > .eo26-sub-toggle,
.eo26-level-1.is-open > .eo26-sub-toggle {
    color: var(--eo26-accent-dark);
}

/* dropdowns */

.eo26-submenu {
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    min-width: 250px;
    padding: 8px 0 !important;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.eo26-submenu .eo26-submenu {
    top: -8px;
    left: 100%;
}

.eo26-item:hover > .eo26-submenu,
.eo26-item:focus-within > .eo26-submenu,
.eo26-item.is-open > .eo26-submenu {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.eo26-submenu .eo26-item {
    display: flex;
    align-items: center;
}

.eo26-submenu .eo26-link {
    display: block;
    flex: 1;
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--eo26-accent);
    transition: color .2s;
}

.eo26-submenu .eo26-item + .eo26-item {
    border-top: 1px solid #efefef;
}

.eo26-submenu .eo26-item:hover > .eo26-link,
.eo26-submenu .eo26-item:focus-within > .eo26-link,
.eo26-submenu .eo26-item.is-open > .eo26-link {
    color: var(--eo26-link-hover);
}

.eo26-submenu .eo26-sub-toggle {
    width: 10px;
    height: 10px;
    margin-right: 15px;
    color: var(--eo26-accent);
    transform: rotate(-90deg);
}

/* ---------- search ---------- */

.eo26-search {
    --eo26-search-offset: calc((var(--eo26-nav-height) - 18px) / 2);
    position: relative;
}

.eo26-search-toggle {
    display: block;
    width: 18px;
    height: 18px;
    color: var(--eo26-text);
}

.eo26-search .eo26-search-form {
    position: absolute;
    z-index: 1000;
    top: calc(100% + var(--eo26-search-offset));
    right: 0;
    width: 300px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s, visibility .2s;
}

.eo26-search.is-open .eo26-search-form {
    visibility: visible;
    opacity: 1;
}

.eo26-search-form {
    display: flex;
}

.eo26-search-form input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--eo26-border);
    border-right: 0;
    border-radius: 0;
    font-family: var(--eo26-body-font);
    font-size: 13px;
    color: var(--eo26-text);
    outline: none;
}

.eo26-search-form input:focus {
    border-color: var(--eo26-accent);
}

.eo26-search-form button {
    flex: 0 0 38px;
    height: 38px;
    padding: 10px !important;
    background: var(--eo26-accent) !important;
    color: #fff !important;
}

/* ---------- sticky bar (desktop) ---------- */

.eo26-sticky {
    position: fixed;
    z-index: 1020;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 1px 10px rgba(0, 0, 0, .15);
    font-family: var(--eo26-head-font);
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform .3s, visibility .3s;
}

.eo26-sticky.is-visible {
    visibility: visible;
    transform: none;
}

.eo26-sticky > .eo26-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: none;
    padding: 0;
}

.eo26-sticky .eo26-logo img {
    max-height: 40px;
}

.eo26-sticky .eo26-level-1 > .eo26-link {
    padding: 0 0 0 15px;
    line-height: var(--eo26-sticky-height);
    color: var(--eo26-accent);
}

.eo26-sticky .eo26-level-1.eo26-has-children > .eo26-link {
    padding-right: 2px;
}

.eo26-sticky .eo26-level-1 > .eo26-sub-toggle {
    margin-right: 0;
    color: var(--eo26-accent);
}

.eo26-sticky .eo26-level-1.eo26-current > .eo26-link,
.eo26-sticky .eo26-level-1.eo26-current > .eo26-sub-toggle,
.eo26-sticky .eo26-level-1:hover > .eo26-link,
.eo26-sticky .eo26-level-1:focus-within > .eo26-link,
.eo26-sticky .eo26-level-1.is-open > .eo26-link,
.eo26-sticky .eo26-level-1:hover > .eo26-sub-toggle,
.eo26-sticky .eo26-level-1:focus-within > .eo26-sub-toggle,
.eo26-sticky .eo26-level-1.is-open > .eo26-sub-toggle {
    color: var(--eo26-link-hover);
}

.eo26-sticky .eo26-submenu {
    top: calc(100% + 15px);
}

.eo26-sticky .eo26-submenu .eo26-submenu {
    top: -8px;
}

.eo26-sticky .eo26-search {
    --eo26-search-offset: calc((var(--eo26-sticky-height) - 18px) / 2 + 15px);
}

/* ---------- mobile: logo bar and off-canvas menu ---------- */

@media (max-width: 1023px) {
    .eo26-topbar .eo26-inner {
        min-height: 48px;
    }

    .eo26-topbar .eo26-social a {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .eo26-midbar {
        border-bottom: 1px solid var(--eo26-border);
    }

    .eo26-midbar .eo26-inner {
        justify-content: center;
        min-height: 48px;
        padding: 4px 50px;
    }

    .eo26-brand .eo26-logo img {
        max-height: 40px;
    }

    .eo26-tagline,
    .eo26-sticky {
        display: none;
    }

    .eo26-burger {
        position: absolute;
        top: 50%;
        left: 15px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 20px;
        height: 15px;
        transform: translateY(-50%);
    }

    .eo26-burger span {
        display: block;
        height: 2px;
        background: var(--eo26-text);
    }

    /* search icon on the right, form drops down below the logo bar */
    .eo26-search-mobile {
        position: static;
        display: block;
    }

    .eo26-search-mobile .eo26-search-toggle {
        position: absolute;
        top: 50%;
        right: 15px;
        color: var(--eo26-text);
        transform: translateY(-50%);
    }

    .eo26-search-mobile .eo26-search-form {
        top: calc(100% + 1px);
        left: 0;
        width: auto;
    }

    .eo26-search-nav {
        display: none;
    }

    /* off-canvas panel */
    .eo26-nav {
        position: fixed;
        z-index: 1040;
        top: 0;
        bottom: 0;
        left: 0;
        width: 330px;
        max-width: 85vw;
        overflow-y: auto;
        background: #fff;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform .3s, visibility .3s;
    }

    .eo26-nav.is-open {
        visibility: visible;
        transform: none;
    }

    .eo26-overlay {
        position: fixed;
        z-index: 1030;
        inset: 0;
        display: block;
        background: rgba(0, 0, 0, .5);
    }

    .eo26-overlay[hidden] {
        display: none;
    }

    .eo26-nav > .eo26-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .eo26-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 20px;
    }

    .eo26-nav-head .eo26-logo img {
        max-width: 220px;
        max-height: 60px;
    }

    .eo26-nav-close {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        color: var(--eo26-text);
    }

    .eo26-nav-search {
        display: block;
        margin-bottom: 15px;
    }

    .eo26-menu {
        flex-direction: column;
    }

    .eo26-item,
    .eo26-submenu .eo26-item {
        flex-wrap: wrap;
        border-top: 0;
        border-bottom: 1px solid #efefef;
    }

    .eo26-submenu .eo26-item + .eo26-item {
        border-top: 0;
    }

    .eo26-item:last-child {
        border-bottom: 0;
    }

    .eo26-level-1 > .eo26-link,
    .eo26-level-1:first-child > .eo26-link,
    .eo26-submenu .eo26-link {
        flex: 1;
        padding: 12px 0;
        line-height: 1.4;
        text-align: left;
        color: var(--eo26-text);
    }

    .eo26-level-1 > .eo26-link {
        font-size: 13px;
        font-weight: 600;
    }

    .eo26-level-1:hover > .eo26-link,
    .eo26-level-1:focus-within > .eo26-link,
    .eo26-level-1.is-open > .eo26-link,
    .eo26-level-1.eo26-current > .eo26-link,
    .eo26-submenu .eo26-item:hover > .eo26-link,
    .eo26-submenu .eo26-item:focus-within > .eo26-link,
    .eo26-submenu .eo26-item.is-open > .eo26-link {
        color: var(--eo26-accent);
    }

    .eo26-level-1 > .eo26-sub-toggle,
    .eo26-submenu .eo26-sub-toggle,
    .eo26-level-1:hover > .eo26-sub-toggle,
    .eo26-level-1:focus-within > .eo26-sub-toggle,
    .eo26-level-1.eo26-current > .eo26-sub-toggle {
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 13px !important;
        color: var(--eo26-text);
        transform: none;
        transition: transform .2s;
    }

    .eo26-item.is-open > .eo26-sub-toggle {
        transform: rotate(180deg);
    }

    /* submenus are static and only shown when toggled */
    .eo26-submenu,
    .eo26-submenu .eo26-submenu {
        position: static;
        display: none;
        flex-basis: 100%;
        min-width: 0;
        padding: 0 0 0 15px !important;
        box-shadow: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .eo26-item:hover > .eo26-submenu,
    .eo26-item:focus-within > .eo26-submenu {
        display: none;
    }

    .eo26-item.is-open > .eo26-submenu {
        display: block;
    }

    .eo26-submenu .eo26-item:last-child {
        border-bottom: 0;
    }
}

/* ---------- footer ---------- */

.eo26-footer {
    margin-top: 40px;
    padding: 30px 0;
    background-color: var(--eo26-accent);
    color: #fff;
    text-align: center;
}

.eo26-footer .eo26-social {
    justify-content: center;
    margin-bottom: 20px;
}

.eo26-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 30px;
    margin-bottom: 15px !important;
}

.eo26-footer-links a {
    padding: 0;
    font-family: var(--eo26-head-font);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.eo26-footer-links a:hover,
.eo26-footer-links a:focus {
    color: var(--eo26-accent-dark);
}

.eo26-copyright {
    margin: 0;
    font-size: 12px;
    opacity: .85;
}
