/*
Theme Name: LowSaxLibrary
Theme URI: https://uol.de/bis
Author: Lars Heuer, Micha Kodalle
Author URI: https://uol.de/bis
Description: Theme für den Niedersächsischen Beirat für Bibliotheksangelegenheiten
Requires at least: 4.9.6
Requires PHP: 7.0
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lowsaxlibrary
Template: twentynineteen
Tags: 

This theme, like WordPress, is licensed under the GPL.

*/

/* -------------------------------------------------------------------------- */
/*                                    Fonts                                   */
/* -------------------------------------------------------------------------- */

/* ---------------------------- Open Sans Regular --------------------------- */
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    src: url("fonts/open-sans-v18-latin-regular.eot");
    src: local(""),
        url("fonts/open-sans-v18-latin-regular.eot?#iefix")
            format("embedded-opentype"),
        url("fonts/open-sans-v18-latin-regular.woff2") format("woff2"),
        url("fonts/open-sans-v18-latin-regular.woff") format("woff"),
        url("fonts/open-sans-v18-latin-regular.ttf") format("truetype"),
        url("fonts/open-sans-v18-latin-regular.svg#OpenSans") format("svg");
}

/* ------------------------------ Lora Regular ------------------------------ */
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/lora-v16-latin-regular.eot");
    src: local(""),
        url("fonts/lora-v16-latin-regular.eot?#iefix")
            format("embedded-opentype"),
        url("fonts/lora-v16-latin-regular.woff2") format("woff2"),
        url("fonts/lora-v16-latin-regular.woff") format("woff"),
        url("fonts/lora-v16-latin-regular.ttf") format("truetype"),
        url("fonts/lora-v16-latin-regular.svg#Lora") format("svg");
}

/* -------------------------------------------------------------------------- */
/*                                Main Theming                                */
/* -------------------------------------------------------------------------- */

:root {
    /* Define colors */
    --lowsaxlibrary-primary: #4b6590;
    --lowsaxlibrary-background: #f4f7f0;
    --lowsaxlibrary-link: #56565a;
    --lowsaxlibrary-primary-on-text: var(--lowsaxlibrary-background);
    --lowsaxlibrary-primary-text: #0d1c51;

    /* Define text */
    --lowsaxlibrary-text-font-body: Open Sans, Arial, Helvetica, sans-serif;
    --lowsaxlibrary-text-font-headline: Lora, Times New Roman, serif;
}

html {
    margin-top: 0 !important;
}

html,
body {
    height: 99.3%;
}

body {
    font-family: var(--lowsaxlibrary-text-font-body);
    background-color: var(--lowsaxlibrary-background);
    color: var(--lowsaxlibrary-primary-text);
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--lowsaxlibrary-link);
}

a:hover {
    text-decoration: underline;
}

#wrapper {
    border-left: 0px solid #eee;
    border-right: 0px solid #eee;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 0.7%;
    min-height: 100%;
    min-width: 800px;
    width: 60%;
    background-color: white;
}

#main {
    display: grid;
    grid-template-columns: 35% 65%;
    margin-top: 2em;
    font-family: var(--lowsaxlibrary-text-font-body);
}

/* --------------------------------- Header --------------------------------- */

#header {
    display: grid;
    grid-template-columns: 35% 65%;
    /* Replaced by search-bar */
    /* border-bottom: 15px solid var(--lowsaxlibrary-background); */
    height: 200px;
    font-family: var(--lowsaxlibrary-text-font-headline);
}

#logo {
    margin: 1.4em 1em 1em 4em;
}

#logo img {
    width: 180px;
}

#header #header-right {
    margin-top: 1.7em;
}

#header #header-right h1 {
    margin-right: 2em;
    font-size: 1.8em;
    font-weight: 400;
}

/* ------------------------------- Suchleiste ------------------------------- */

.search-bar {
    background-color: var(--lowsaxlibrary-primary);
    width: 100%;
    min-height: 5vh;
    height: 50px;
    max-height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 10px solid var(--lowsaxlibrary-background);
}

.search-submit {
    background-color: var(--lowsaxlibrary-primary) !important;
    color: var(--lowsaxlibrary-primary-on-text);
    padding: 0.3em 1em;
    border: 1px solid #fff;
    margin: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
}

.search-field {
    padding: 0.3em;
}

/* ------------------------------- Navigation ------------------------------- */

#menu ul {
    margin-left: 0;
    margin-right: 2em;
    margin-top: 5em;
    padding-left: 0;
    width: 76%;
}

#menu ul li {
    border-bottom: 1px solid #9daec5;
    list-style-type: none;
}

#menu ul li.sub {
    padding-left: 2em;
    font-size: 0.9em;
}

#menu ul li:first-child {
    border-top: 1px solid #9daec5;
}

#menu ul li a {
    display: block;
    padding-bottom: 0.7em;
    padding-left: 1em;
    padding-top: 0.7em;
    font-weight: 400;
    color: var(--lowsaxlibrary-primary);
}

#menu ul li.sub a {
    padding-bottom: 0.4em;
    padding-top: 0.4em;
}

#menu ul li.current_page_item > a,
#menu ul li.current-menu-item > a,
#menu ul li.current_page_ancestor > a {
    font-weight: 600;
    background-color: var(--lowsaxlibrary-primary);
    color: var(--lowsaxlibrary-primary-on-text);
}

#menu ul li a:hover {
    background-color: var(--lowsaxlibrary-primary);
    color: var(--lowsaxlibrary-primary-on-text);
}

#menu ul li a:hover {
    text-decoration: none;
    color: var(--lowsaxlibrary-primary-on-text);
}

ul.sub-menu {
    display: none;
}

li.current_page_item > ul.sub-menu,
li.current_page_ancestor > ul.sub-menu {
    display: block;
}

ul.sub-menu {
    margin-top: 0em !important;
    width: 100% !important;
}

ul.sub-menu li {
    font-size: 0.9em;
}

ul.sub-menu li:last-child {
    border-bottom: none !important;
}

ul.sub-menu li a {
    padding-bottom: 0.4em !important;
    padding-left: 2em !important;
    padding-top: 0.4em !important;
}

ul.sub-menu li ul.sub-menu li a {
    padding-left: 4em !important;
}

ul.sub-menu li ul.sub-menu li ul.sub-menu li a {
    padding-left: 6em !important;
}

/* ------------------------------ OffCanvasMenu ----------------------------- */

/* Don't display the overlay and the menu icon on normal screen sizes  */
.off-canvas-overlay,
.toggle-menu {
    display: none;
}

/* ------------------------- Content (Pages, Posts) ------------------------- */

#content {
    margin-bottom: 3em;
    margin-right: 8em;
}

#content h2 {
    font-family: var(--lowsaxlibrary-text-font-headline);
    font-weight: 400;
    color: var(--lowsaxlibrary-primary-text);
}

#content h3 {
    margin-bottom: 0em;
    margin-top: 2em;
    font-family: var(--lowsaxlibrary-text-font-headline);
    font-size: 1.25em;
    font-weight: 400;
    color: var(--lowsaxlibrary-primary-text);
}

#content p {
    line-height: 1.6em;
}

#content a {
    font-weight: 600;
    color: var(--lowsaxlibrary-primary);
}

#content ul,
.itemlist,
.itemlist2 {
    margin-top: 1.7em;
    padding-left: 1.2em;
}

#content ul,
.itemlist {
    margin-top: 1.7em;
}

#content ol li ul,
#content ul li ul {
    margin-bottom: 1.3em;
    margin-top: 0.3em;
}

.itemlist2 {
    margin-top: 0.8em;
}

#content ul,
.linklist,
.itemlist,
.itemlist2 {
    padding-left: 0em;
}

#content ul li,
.linklist li,
.itemlist li,
.itemlist2 li {
    padding-left: 1.4em;
    background-image: url(images/link_arrow.png);
    background-position: 2px 6px;
    background-repeat: no-repeat;
    background-size: 15px 11px;
    color: #0d1c51;
    list-style-type: none;
}

.itemlist li {
    margin-bottom: 0.6em;
}

.itemlist2 li {
    margin-bottom: 0.3em;
}

.itemlist2 li a {
    font-weight: 300 !important;
}

/* ------------------------------ Contact Info ------------------------------ */

.contact-info {
    margin-top: 1.8em;
}

.contact-info .function {
    margin-bottom: 0.2em;
    font-weight: 600;
}

.contact-info .contact-section {
    margin-top: 0.3em;
}

.contact-section a.normal {
    font-weight: 300 !important;
}

.list-row {
    margin-top: 0.2em;
}

/* --------------------------------- Footer --------------------------------- */

#footer {
    bottom: 0;
    left: 0;
    position: fixed;
    height: 1.8em;
    width: 100%;
    background-color: #4b6590;
    color: #f4f7f0;
}

#footer #footer-content {
    margin-left: 20%;
    margin-right: 20%;
    min-width: 800px;
    padding-left: 2em;
    padding-top: 0.3em;
    width: 60%;
    font-size: 0.9em;
    text-align: center;
}

#footer a {
    color: #f4f7f0;
}

.entry-footer {
    font-size: 0.9em;
}

.footer-divider {
    padding: 0 1em;
    color: white;
}

/* ---------------------------------- SVGs ---------------------------------- */

.byline svg,
.posted-on svg {
    position: relative;
    top: 0.2em;
    margin-right: 0.4em;
}

.byline svg,
.posted-on svg,
.comments-link svg,
.edit-link svg {
    position: relative;
    top: 0.2em;
    margin-right: 0.4em;
}

/* --------------------------- Minor Style changes -------------------------- */

.byline .author {
    padding-left: 0.4em;
    padding-right: 0.8em;
}

.cat-links {
    display: block;
}

.cat-links .screen-reader-text {
    padding-left: 1.55em;
    padding-right: 0.4em;
}

.comments-link {
    display: block;
    display: none;
    margin-top: 0.6em;
}

.edit-link {
    display: block;
    margin-top: 0.2em;
}

article.post {
    border-bottom: 1px solid #4b6590;
    margin-bottom: 2em;
    padding-bottom: 2em;
}

article.post:last-child {
    border-bottom: 0 !important;
}

.page-single-post-footer {
    margin-top: 3em;
}

/* ---------------------------- ContentType Post ---------------------------- */

.entry-header {
    width: max-content;
}

/* Set the updated time apart from created time  */
.updated {
    padding-left: 1rem;
}

/* ----------------------- Color Theme Swatches in Hex ---------------------- */

.Westwood-Library-1-hex {
    color: #dba000;
}

.Westwood-Library-2-hex {
    color: #0d1c51;
}

.Westwood-Library-3-hex {
    color: #f4f7f0;
}

.Westwood-Library-4-hex {
    color: #9daec5;
}

.Westwood-Library-5-hex {
    color: #4b6590;
}

/* -------------------------------------------------------------------------- */
/*                                   Plugins                                  */
/* -------------------------------------------------------------------------- */

/* ---------------------------- Download Manager ---------------------------- */
.wpdm-download-link {
    font-weight: normal !important;
    color: #ffffff !important;
}

h3.package-title {
    margin-top: 0 !important;
    font-family: Open Sans !important;
    font-size: 1.1em !important;
}

/*  */
.w3eden {
    max-width: 100%;
    min-width: 25vw;
}

.w3eden h1 {
    font-size: 1.4em !important;
}

.w3eden .ml-3 {
    margin-left: 2em;
}

/* ----------------------- Simple WordPress Membership ---------------------- */

.swpm-post-not-logged-in-msg a {
    display: none;
}

.swpm-post-not-logged-in-msg a.swpm-login-link {
    display: block !important;
    position: relative;
    top: 22px;
    height: 30px;
    font-size: 1.2em;
    background-color: white;
}

.swpm-forgot-pass-link,
.swpm-join-us-link,
.swpm-edit-profile-link,
.swpm-forgot-pass-link {
    display: none;
}

.swpm-login-link {
    display: block;
    margin-top: 0.7em;
}

/* -------------------------------- 404 Page -------------------------------- */

.not-found {
    margin-top: 3rem;
    width: max-content;
}

/* -------------------------------------------------------------------------- */
/*                        Mobile View (max-width: 880px)                      */
/* -------------------------------------------------------------------------- */

@media only screen and (max-width: 880px) {
    body {
        background-color: #fff;
    }

    #wrapper {
        border-radius: 0;
        margin: 0;
        min-width: 200px;
        width: 100%;
    }

    #header {
        display: block;
        border-bottom: 0;
        height: 80px;
        text-align: center;
        background-color: #d40000;
        color: #f4f7f0;
    }

    #header-right {
        margin-top: 0 !important;
    }

    #logo {
        display: none;
    }

    #logo img {
        width: 120px;
    }

    #header h1 {
        margin: 0em 1em 0.5em 1em;
        padding-top: 0.7em;
        font-size: 1.2em !important;
    }

    #main {
        display: block;
    }

    #menu {
        margin-top: -5em;
    }

    #menu ul {
        width: 100%;
    }

    #content {
        margin-left: 1em;
        margin-right: 1em;
        width: 90%;
    }

    #content p {
        font-size: 0.9em;
    }

    #content li {
        font-size: 0.9em;
    }

    /* ------------------------------- Search Bar ------------------------------- */

    .search-bar {
        display: none !important;
    }

    /* --------------------------- Headlines (H2,...) --------------------------- */

    #content h2 {
        margin-bottom: -0.2em;
        margin-top: 2em;
        font-size: 1.2em;
    }

    .entry-header .entry-title {
        max-width: 85vw;
        padding-bottom: 0.5em;
        width: 90vw;
        text-align: start;
        text-wrap: wrap;
    }

    /* --------------------------------- Footer --------------------------------- */

    #footer {
        margin-top: 1em;
    }

    .footer-site-name,
    .footer-date {
        display: none;
    }

    .footer-divider:nth-child(3) {
        display: none !important;
    }

    #footer-content {
        margin: 0 !important;
        max-width: 98vw;
        min-width: 50vw !important;
        padding: 0.2em 0 !important;
        width: 100% !important;
    }

    /* -------------------------------- OffCanvas ------------------------------- */

    .off-canvas-menu {
        left: -300px;
        position: fixed;
        top: 0;
        z-index: 2;
        height: 100%;
        height: -webkit-fill-available;
        width: 250px;
        background-color: #ffffff;
        transition: left 0.3s ease-in-out;
    }

    .off-canvas-open {
        left: 0 !important;
    }

    .toggle-menu {
        display: block;
        left: 10px;
        position: fixed;
        top: 10px;
        padding: 15px 0;
        color: #fff;
        cursor: pointer;
    }

    .off-canvas-overlay.active {
        display: block;
        left: 0;
        position: fixed;
        top: 0;
        z-index: 1;
        height: 100vh;
        width: 100vw;
        background-color: rgba(0, 0, 0, 0.5);
    }

    /* ------------------------------ 404 Not Found ----------------------------- */

    .not-found {
        width: fit-content;
        padding: 1em;
        margin: 0;
    }
}
