/**
 * Theme Name:        Jusos Magdeburg
 * Description:       WordPress-Theme für die Jusos Magdeburg
 * Version:           0.2.0
 * Author:            Jusos Magdeburg
 * Tested up to:      7.0
 * Requires at least: 6.9
 * Requires PHP:      7.4
 */

@font-face {
    font-family: 'Anton';
    src: url('assets/anton-v25-latin-regular.woff2')
}

@font-face {
    font-family: 'Inter700';
    src: url('assets/inter-v13-latin-700.woff2')
}

@font-face {
    font-family: 'Inter';
    src: url('assets/inter-v13-latin-regular.woff2')
}

:root {
	--jusos-white: 255 255 255;
	--jusos-rot: #E30613;
	--jusos-hellrot: #FF626B;
	--jusos-pink: #FA1464;
	--jusos-sand: #F4EBEB;
	--jusos-grey: #F3EBEB;
	--jusos-darkgrey: #4F4F4F;
	--jusos-black: #353535;
	--header-size: 48px;
	--padding-large: 75px;
	--padding-regular: 20px;
	--padding-medium: 20px;
	--padding-mlarge: 40px;
	--heading-huge: 6rem;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter';
}

a {
    text-decoration: none;
    color: black;
}

a:visited {
    color: inherit;
}

a:hover {
    color: var(--jusos-rot);
}

::selection {
    color: white;
    background: var(--jusos-hellrot);
}

header {
    background: rgb(var(--jusos-white)/.8);
    height: var(--header-size);
    width: 100vw;
    font-family: 'Anton';
    font-size: 1.563rem;
    text-transform: uppercase;
    position: fixed;
    z-index: 2;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);
    backdrop-filter: blur(8px);
}

header > nav {
    display: none;
    background: rgba(255,255,255,0.75);
    height: 100vw;
}

header > nav > ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header > nav > ul, footer > div > div > ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

footer > div > div > ul {
    margin: 16px 0 0 0;
}

header > nav > ul > li {
    display: inline-block;
    color: var(--jusos-darkgrey);
    padding: 0 16px;
}

.header-mobile {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.header-mobile > a {
    margin-top: 5px;
    color: var(--jusos-hellrot);
}

.header-mobile > button {
    width: 48px;
    height: 48px;
    position: absolute;
    background: var(--jusos-pink);
    border: none;
    cursor: pointer;
    padding: 0;
    top: 0;
    right: 0;
}

.mobile-button-cross {
    display: none;
    margin: 4px 0 0 16px;
}

footer > div > div > ul > li {
    text-transform: uppercase;
    font-family: 'Anton';
    font-size: 1.8rem;
}

footer > div > div > ul > li > a {
    color: var(--jusos-darkgrey);
    line-height: 1.125;
}

header > nav > ul > li:hover {
    background: var(--jusos-grey);
}

header > nav > ul > li:nth-last-child(-n+2) > a {
    color: var(--jusos-hellrot);
}

footer {
    background-color: var(--jusos-grey);
    color: var(--jusos-black);
    line-height: 24px;
    padding: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main {
    color: var(--jusos-black);
}

.header-image {
    height: calc(100vh - var(--header-size));
    background-size: cover;
    background-position: 50%;
    padding-top: var(--header-size);
    margin-top: var(--header-size);
}

h1, h2, h3 {
    font-family: 'Anton';
    text-transform: uppercase;
    color: white;
}

h1 {
    margin: 0 24px;
    font-size: 2.5rem;
}

.editor-styles-wrapper h1 {
    color: var(--jusos-hellrot);
}

.h1-background {
    background: var(--jusos-hellrot);
    display: inline-block;
    margin: 20px 0 0 20px;
}

h2 {
    font-size: 2.5rem;
    background: var(--jusos-hellrot);
    padding: 0 10px;
    display: inline-block;
    line-height: 4rem;
}

h3 {
    font-size: 1.875rem;
    display: block;
    color: var(--jusos-darkgrey);
    padding: 0;
}

.jusos-logo {
    position: absolute;
    top: 75vh;
    right: 0;
}

.jusos-logo > img {
    width: 150px;
}

.page-header {
    display: none;
}

article {
    padding: 0 16px;
    line-height: 24px;
    width: calc(100vw - 32px);
    margin: auto;
}

/* VERANSTALTUNGEN */

.jusos-event {
    width: calc(100% - 20px);
    border: 1px solid var(--jusos-hellrot);
    margin: 10px 0;
    float: left;
    padding: 10px;
    height: 200px;
    overflow: scroll;
}

@media (min-width: 768px) {
    
    h1 {
        font-size: 5rem;
    }
    
    .h1-background {
    
    }
    
    footer {
        height: 250px;
    }
    
    footer > div {
        display: grid;
    }

    footer > div > div {
        grid-area: 1;
    }
    
    footer > div > div > ul > li {
        padding: 0 16px;
        height: 45px;
        line-height: 1;
    }
    
    article {
        width: calc(100vw - 64px);
    }
    
    .jusos-event {
        width: calc(100% - 32px);
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }
    
    .jusos-event:nth-child(odd) {
        margin-right: 10px;
    }

    .jusos-event:nth-child(even) {
        margin-left: 10px;
    }

}

@media (min-width: 1024px) {
    
    .jusos-logo {
        top: 306px;
    }
    
    .jusos-logo > img {
        width: 361.25px;
    }
    
    article {
        width: 75vw;
    }
    
}

@media (min-width: 1300px) {
    
    h1 {
        margin: 0 24px;
        font-size: 6rem;
    }
    
    .h1-background {
        margin: 40px 0 0 40px;
    }
    
    .header-mobile {
        display: none;
    }
    
    header > nav {
        display: block;
        background: none;
        height: inherit;
    }
    
    header > nav > ul {
        display: block;
    }
    
}
