/*
 Theme Name: Goethe 275
 Theme URI: https://www.goethe-275.de
 Description: Custom child theme
 Author: Goethe 275
 Template: generatepress
 Version: 1.0
*/

/* FONTS */
@font-face {
    font-display: swap;
    font-family: 'Scada';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/scada-v15-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Scada';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/scada-v15-latin-italic.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Scada';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/scada-v15-latin-700.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Scada';
    font-style: italic;
    font-weight: 700;
    src: url('fonts/scada-v15-latin-700italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/pt-serif-v18-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'PT Serif';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/pt-serif-v18-latin-italic.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/pt-serif-v18-latin-700.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'PT Serif';
    font-style: italic;
    font-weight: 700;
    src: url('fonts/pt-serif-v18-latin-700italic.woff2') format('woff2');
}

/* GENERAL */
body, html {
    font-family: 'Scada';
}
body, button, input, select, textarea {
    font-size: 20px;
    line-height: 1.5;
}
body.home {
    background-color: #F5EBE1;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 85%;
}
body.home img.wp-post-image {
    display: none;
}
@media (max-width: 768px) {
    body.home {
        background-image: none;
    }
    body.home img.wp-post-image {
        display: block;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Scada';
}
h1 {
    font-weight: 700;
}
.page-id-87 h2, .page-id-87 h3 {
    font-family: 'PT Serif';
}
.page-id-87 h2 {
    font-size: 4rem;
}
.page-id-87 h3 {
    margin-bottom: 0;
}

/* HEADER */
.site-logo {
    position: fixed;
    left: 0;
    top: var(--wp-admin--admin-bar--height, 0);
}
.main-title {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }
    .site-header {
        position: absolute;
        top: var(--wp-admin--admin-bar--height, 0);
        background: #fff;
        width: 100%;
        z-index: 2;
    }
    .has-inline-mobile-toggle .inside-header {
        padding-top: 0;
        padding-bottom: 0;
    }
    .site-logo {
        position: absolute;
        top: 0;
    }
    .site-header .header-image {
        width: 50px;
    }
    body.home .featured-image {
        margin-top: 0;
    }
    .main-title {
        display: block;
        font-size: 30px;
        margin-left: 30px;
    }

    .menu-toggle {
        font-size: 30px;
        padding: 0 0 0 20px;
    }
    .mobile-menu-control-wrapper .menu-toggle, .mobile-menu-control-wrapper .menu-toggle:hover, .mobile-menu-control-wrapper .menu-toggle:focus, .has-inline-mobile-toggle #site-navigation.toggled {
        background: none;
    }
}

/* NAVIGATION */
.main-navigation a {
    font-size: 20px;
}

/* CONTENT */
@media (max-width: 1520px) and (min-width: 769px) {
    .site.grid-container {
        margin-left: 180px;
    }
}

.site-content p,
.site-content ul,
.site-content table {
    font-family: 'PT Serif';
}

/* CATEGORY */
body.archive,
body.single {
    background: var(--accent-3);
}
body.archive header.page-header {
    margin-bottom: 0;
    padding-bottom: 0;
}
body.archive h1 {
    color: var(--accent-4);
    font-size: 10rem;
}

#archive-wrapper main article .inside-article {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

@media (max-width: 768px) {
    body.archive h1 {
        font-size: 4rem;
    }

    #archive-wrapper main article .inside-article {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
}

/* SINGLE */
@media (max-width: 768px) {
    .separate-containers .inside-article>.featured-image {
        margin-bottom: 20px;
    }
}

/* FOOTER */
.site-info {
    background-image: url('images/footer.png');
    background-repeat: no-repeat;
    background-size: auto 100%;
}
body.home .site-info {
    background-color: rgba(255,255,255,0.5);
}
footer .inside-site-info {
    padding-top: 10px;
    padding-bottom: 10px;
}
.copyright-bar {
    display: none;
}
.footer-bar ul {
    display: flex;
    font-size: 0.8rem;
}
.footer-bar ul li {
    margin: 0 20px 0 0;
    padding: 0 23px 0 0;
    white-space: nowrap;
}
.footer-bar ul li:after {
    position: absolute;
    right: 0;
    top: calc(50% - 8px);
    content: "";
    height: 16px;
    width: 0;
    border-left: 1px solid #aaa;
}
  .footer-bar ul li:last-of-type:after {
    border: none;
}

@media (max-width: 768px) {
    .site-info {
        background-size: 28px;
        background-position: 0 5px;
    }
    body .footer-bar {
        margin: 0;
    }
    .footer-bar ul {
        display: block;
    }
    .footer-bar ul li {
        margin: 0;
        padding: 0;
    }
    .footer-bar ul li:after {
        content: none;
    }
}

/* BLOCK - TABLE */
.wp-block-table table,
.wp-block-table td,
.wp-block-table th {
    border: none;
}
.wp-block-table table,
.wp-block-table table.has-fixed-layout {
    width: auto;
}
.wp-block-table table td {
    padding: 2px 30px 2px 0;
}