/*
Theme Name: Glashausmontage
Theme URI: glashausmontage.de
Author: 48DESIGN GmbH
Author URI: https://www.vierachtdesign.com/
Description: custom made for MC Building
Requires at least: 5.9
Tested up to: 6.1
Requires PHP: 5.6
Version: 1.0.1
Text Domain: glashausmontage
Tags: 48design
*/

/*
menu based on: https://blog.logrocket.com/create-responsive-mobile-menu-with-css-no-javascript/
stages based on: https://codepen.io/Inside/pen/WromBx
*/

/* Variables */
:root {
    --text: #222;
    --light: #f9f9f9;
    --dark: #36383F;
    --gray: #85888C;
    --highlight: #bac90d;
    --danger: #fcc;
    
    --blur-color: rgba(255,255,255, 0.95);
    --blur: 5px;
    --border-radius: 5px;
}

/* Header */
.header {
    background-color: var(--blur-color);
    backdrop-filter: blur(var(--blur));
    box-shadow: 1px 1px 10px 0px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    width: 100%;
    height: 100px;
    z-index: 3;
}
.header .header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;
    
}
/* Logo */
.logo {
    display: inline-block;
    color: var(--light);
    /*font-size: 60px;*/
    margin-left: 30px;
}

#header-claim {
    padding-left: 3em;
    font-size: 1.5em;
    transition: all 250ms ease-in-out;
}

@media (max-width: 1780px) {
    #header-claim span::before{
        content: "\a";
        white-space: pre;
    }
}

@media (max-width: 1625px) {
    #header-claim {
        padding-left: 2em;
        font-size: 1.25em;
    }
}

@media (max-width: 930px) {
    #header-claim {
        font-size: 1em;
    }
}

@media (max-width: 860px) {
    #header-claim {
        font-size: 0.85em;
        padding-left: 1em;
    }
}

@media (max-width: 410px) {
    #header-claim {
        display: none;
    }
}

/* Nav menu */
.nav {
    width: 100%;
    /*height: 100%;*/
    position: fixed;
    background-color: var(--light);
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.menu a {
    display: block;
    padding: 30px;
    color: var(--dark);
}
.menu a:hover{
    background-color: var(--gray);
}
.menu .current-menu-item a {
    color: var(--highlight);
}
.nav {
    max-height: 0;
    transition: max-height .5s ease-out;
}

/* Sub nav */
.menu-item-has-children .sub-menu {
    background-color: var(--light);
    width: 100%;
    z-index: 1;
    padding: 20px 0 ;
    display: none;
}
.sub-menu a {
    color: var(--dark);
    text-decoration: none;
    padding: 0;
    margin: 10px;
}
.menu-item-has-children .sub-menu,
.menu-item-has-children:hover .sub-menu {
    display: block;
    position: relative;
    top: 0;
    margin-top: -10px;
}

/* Menu Icon */
.hamb {
    cursor: pointer;
    float: right;
    padding: 40px 20px;
} /* Style label tag */

.hamb-line {
    background: var(--dark);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;

} /* Style span tag */

.hamb-line::before,
.hamb-line::after{
    background: var(--dark);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before{
    top: 5px;
}
.hamb-line::after{
    top: -5px;
}

.side-menu {
    display: none;
} /* Hide checkbox */

/* Toggle menu icon */
.side-menu:checked ~ nav{
    height: 100vh;
    max-height: calc(100% + 150px);
}
.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}

@media (max-width: 810px) {
    .header {
        max-height: 100px;
    }
    .nav {
        top: 100px;
    }
    .nav {
        justify-content: center;
        align-items: flex-start;
    }
    .nav .menu-item {
        width: 100vw;
    }
}

@media (min-width: 810px) {
    .nav {
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;
    }
    /* Sub nav */
    .menu-item-has-children .sub-menu {
        padding: 20px 0 ;
        display: none;
        background-color: var(--light);
    }
    .menu-item-has-children .sub-menu a {
        color: #fff;
    }
    .menu li{
        float: left;
    }
    .menu a:hover {
        background-color: transparent;
        color: var(--gray);
        
    }
    
    .hamb{
        display: none;
    }
}

/* content */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #fff;
    background: center / cover no-repeat var(--post-image) fixed;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    color: var(--text);
}
a {
    text-decoration: none;
}

a[target="_blank"] {
    color: var(--highlight)
}

ul {
    list-style: none;
}

main {
    margin: 2em auto;
    max-width: 75%;
}

p {
    margin: 1em 0;
    line-height: 1.5em;
}

p:first-child {
    margin-top: 0;
}
p:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 1.2em;
    margin-top: 2em;
}

h5 {
    font-size: 0.9em;
    margin-bottom: 0.5em;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

footer,
article {
    background-color: var(--blur-color);
    backdrop-filter: blur(var(--blur));
	box-shadow: 0 5px 10px rgba(0, 0, 0, .4);
    border-radius: var(--border-radius);
    padding: 2em;
    animation: fadeInAnimation ease 1.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

article #main-image {
    display: flex;
    align-items: flex-end;
    min-height: 25vh;
    width: 100%;
    border-radius: var(--border-radius);
    background: center / cover no-repeat var(--post-image);
    background-attachment: fixed;
}

article #main-headline {
    position: relative;
    color: var(--light);
    margin: 1em;
    padding: 0.3em 0.66em;
    z-index: 1;
}
article h1#main-headline {
    font-size: 2.5em;
}
article h2#main-headline {
    font-size: 2em;
}
article #main-headline:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--highlight);
    border-radius: var(--border-radius);
    opacity: 0.95;
    z-index: -1;
}

button {
    background-color: var(--highlight);
	border: 0;
    border-radius: var(--border-radius);
	color: #ffffff;
	cursor: pointer;
	font-weight: 700;
	margin: 1em 0 0 0;
	padding: 1em 2.5em;
}

button:hover {
    opacity: 0.8;
}

button[disabled],
button[disabled]:hover {
    cursor: not-allowed;
    opacity: 1;
    background: var(--gray);
}

/* footer and socket */
footer {
    margin: 0 auto;
    max-width: 75%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0;
}

footer .menu,
footer > * {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .menu {
    width: 100%;
}

footer .menu a {
    padding: 1em;
}

@media (min-width: 1500px) {
    .header {
        padding: 0 12%;
    }
}

@media (max-width: 768px) {
    main {
        margin: 1em auto;
    }

    main,
    footer {
        max-width: 95%;
    }
    
    article h1#main-headline {
        font-size: 2em;
        margin: 0.5em;
        padding: 0.2em 0.4em;
    }

    button {
        width: 100%;
        padding: 2em;
    }

    footer .menu {
        justify-content: space-evenly;
    }

    article {
        padding: 0.75em;
    }
}

@media (max-width: 410px) {
    article h1#main-headline {
        font-size: 1.25em;
    }
}
