/*
Theme Name: Granit Parts Template 4
Theme URI: http://www.granitpartner.de
Author: Granit Partner Team
Author URI: http://www.granit-parts.com
Description: Template WordPress Granit Parts
Version: 1.5.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Granit Parts 2023
*/

:root {
    --container: 1640px;
    --container-small: 1148px;
    --admin-bar: 32px;
    --red: 226, 0, 26;
    --logo-size: 102px;
    --medium-weight: 500;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body * {
    font-size: inherit;
    color: inherit;
    box-sizing: border-box;
}
body.mobile {
    padding-top: 0;
}
body.no-scroll:before {
    content: "";
    width: 100%;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
html {
    margin: 0;
    scroll-behavior: smooth;
}
.no-scroll {
    overflow: hidden;
}

.container {
    margin: auto;
    width: 100%;
    max-width: calc(var(--container) + 1rem);
    padding: 1rem;
}
.container-small {
    margin: auto;
    width: 100%;
    max-width: calc(var(--container-small) + 1rem);
    padding: 1rem;
}

h1,
.h1,
h1 *,
.h1 *,
h2,
.h2,
h2 *,
.h2 *,
h3,
.h3,
h3 *,
.h3 *,
h4,
.h4,
h4 *,
.h4 *,
h5,
.h5,
h5 *,
.h5 *,
h6,
.h6,
h6 *,
.h6 * {
    color: inherit;
    text-decoration: inherit;
    display: block;
    margin: 0 0 1rem 0;
}
h1,
.h1,
h1 *,
.h1 * {
    font-size: 2rem;
}
h2,
.h2,
h2 *,
.h2 * {
    font-size: 5rem;
}
h3,
.h3,
h3 *,
.h3 * {
    font-size: 4rem;
    margin: 0 0 2rem 0;
}
h4,
.h4,
h4 *,
.h4 * {
    font-size: 3rem;
}
h5,
.h5,
h5 *,
.h5 * {
    font-size: 2rem;
}
address {
    font-style: normal;
}
img {
    max-width: 100%;
    height: auto;
}
p {
    -moz-hyphens: auto;
    hyphens: auto;
    text-align: justify;
}
a {
    text-decoration: none;
}
figure figcaption {
    text-align: center;
}
figure.alignleft figcaption {
    text-align: left;
}
figure.aligncenter figcaption {
    text-align: center;
}
figure.alignright figcaption {
    text-align: right;
}

.mehr {
    border-radius: 0px !important;
}
.pull-right {
    float: right;
}
.margin-bottom-half {
    margin-bottom: 0.5rem !important;
}

/**********************
		Header
***********************/

header.without-nav {
    text-align: center;
}

header.without-nav .custom-logo-link {
    display: inline-block;
    margin: auto;
    padding: 1rem;
}

header.with-nav {
    z-index: 2;
    background: #fff;
    margin: 0 !important;
    padding: 0 !important;
}

header.with-nav nav {
    max-width: calc(var(--container)); /*+1em*/
    margin: auto;
    padding: 0 1rem 0 0;
    z-index: 3;
    background: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
}

header.with-nav .custom-logo-link img {
    padding: 0.5rem 0.5rem;
    max-height: var(--logo-size);
    width: auto;
    height: auto;
}

header.with-nav nav ul {
    margin: 0;
    padding: 0;
    float: right;
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    justify-content: flex-end;
    list-style: none;
    flex-wrap: wrap;
}

header.with-nav nav ul li a {
    display: block;
    padding: 1em;
    font-size: 1em;
    line-height: 1.2em;
    text-decoration: none;
    text-transform: uppercase;
}

/**********************
	Dropdown Menu
***********************/

header.with-nav nav ul,
header.with-nav nav li {
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 3;
}

header.with-nav nav > ul > li {
	display: inline-block;
	position: relative;
	z-index: 3;
}

header.with-nav nav > ul > li > a {
	display: block;
	padding: 10px;
	text-decoration: none;
	z-index: 4;
}

header.with-nav nav > ul > li .sub-menu {
	display: none;
	position: absolute;
	left: 1em;

	background: #fff;
	z-index: 5 !important;
	white-space: normal;
}

header.with-nav nav > ul > li:Hover .sub-menu {
	display: block;
}

header.with-nav nav > ul > li:last-child .sub-menu {
	right: 0;
	left: auto;
}

header.with-nav .sub-menu a,
header.with-nav .sub-menu a:hover {
	display: block;
	text-decoration: none;
	background: #fff;
	color:#000 !important;
}

/**********************
		Mobile
***********************/
header.mobile {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    position: relative;
}
header.mobile .custom-logo-link{
    flex: 1 1 100%;
    text-align: center;
}
header.mobile .custom-logo-link img {
    margin: 1rem;
    max-width: 50vw;
    height: auto;
}
header.mobile nav {
    display: none;
}
body.mobile .mobile-navigator{
    display: block;
}


/**********************
		Main
***********************/

main {
    flex: 1;
}
main > h1 {
    width: 100%;
    max-width: var(--container);
    margin: auto;
    margin-top: 10px;
    padding: 0.5rem;
}

.wp-block-cover {
    margin-bottom: 1rem;
}

.wp_map_canvas {
    height: 100%;
    min-height: 10vh;
    width: 100%;
}
.mobile .wp_map_canvas {
    min-height: 50vh;
}

main iframe {
    width: 100%;
    border: none;
}
/* Gaps must also be edited in css/admin.php */
.nogap.wp-block-column {
    margin: 0 !important;
    flex-basis: 25%;
    padding: 1.5rem;
}
.nogap.wp-block-columns {
    gap: 0;
}
.nogap.wp-block-column > * {
    margin: 0;
    font-weight: lighter;
}
.nogap.wp-block-column > * * {
    margin: 0;
}
.nogap.wp-block-column:nth-child(even) {
    flex-basis: 50%;
    padding: 0;
}
.gap-1 {
    margin-bottom: 1px !important;
}
.gap-1 .blocks-gallery-item {
    margin: 0px !important;
    margin-left: 1px !important;
}
.gap-1 .blocks-gallery-item:first-child {
    margin-left: 0px !important;
}

.padding {
    padding: 1rem;
}

.asp .wp-block-column * {
    margin: 0;
    padding: 0 1rem;
}
.asp .wp-block-column figure,
.asp .wp-block-column img {
    margin: 0.5rem 0;
    padding: 0;
    width: 100%;
}
.mobile .asp > * {
    margin-bottom: 2rem !important;
}
.container.wp-block-media-text .wp-block-media-text__content {
    padding: 1rem 0 1rem 1rem;
}
.container.wp-block-media-text.has-media-on-the-right
    .wp-block-media-text__content {
    padding: 1rem 1rem 1rem 0;
}
.mobile .container.wp-block-media-text .wp-block-media-text__content {
    padding: 0;
}
.mobile
    .container.wp-block-media-text.has-media-on-the-right
    .wp-block-media-text__content {
    padding: 0;
}
.sitemap {
    list-style: none;
    margin: 0;
    padding: 1rem;
}
.sitemap > li {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
}
.sitemap ul {
    margin: 1rem;
    padding: 0;
}
.sitemap ul * {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    text-transform: capitalize;
    text-decoration: none;
}

/**********************
		Social
***********************/

.social {
    padding: 1.5rem;
    text-align: center;
}

/**********************
		Popup
***********************/
#popup {
    position: fixed !important;
    margin: auto;
    padding-top: 5vh;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}
#popup img {
    max-width: 1200px;
    width: 100%;
    height: auto;
    box-shadow: 0 0 20px #000;
    /*border: 4px solid rgba(0,0,0,0.5);*/
    border-radius: 2px;
}
#popup a {
    position: absolute;
    top: 5vh;
    margin-left: -50px;
    font-size: 4vh;
    color: #fff;
    text-decoration: none;
    z-index: 99999;
}
/**********************
		Footer
***********************/
/* footer {
	background: rgb(var(--red));
	color: #fff;
	padding: 1em;
	text-align: center;
}
footer nav ul {
	margin: 0;
	position: absolute;
	right: 0;
	display: flex;
	flex-direction: row;
	align-content: space-between;
	list-style: none;
}
footer nav ul a {
	text-decoration: none;
	padding: 1em;
} */
footer {
    background: rgb(var(--red));
    color: #fff;
    /* padding: 1em; */
}
footer .cox {
    position: relative;
    margin: auto;
    width: 100%;
    max-width: calc(var(--container) + 1rem);
    padding: 1rem;
}
footer nav {
    position: absolute;
    right: 0;
}
footer nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    list-style: none;
    margin: 16px 0;
    padding: 0;
}
footer nav ul a {
    text-decoration: none;
    padding: 1em;
}
footer address {
    margin: 16px 0;
    text-align: center;
}
@media only screen and (max-width: 1200px) {
    footer {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-around;
    }
    footer nav {
        position: relative;
        right: 0;
    }
    footer nav ul {
        justify-content: center;
    }
}
@media only screen and (max-width: 800px) {
    footer {
        flex-direction: column-reverse;
    }
}
.mobile footer nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.mobile footer nav ul * {
    margin: 0;
    padding: 3px;
    display: block;
}
.mobile footer nav ul a {
    padding: 0.25em;
}

/**********************
		Forms
***********************/
label {
    display: block;
    font-size: inherit;
    padding-top: 1rem;
}
input,
textarea,
select {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    border-color: #000;
    border-width: 1px;
}
input[type="checkbox"] {
    display: initial;
    width: initial;
}

/********************
	Produkte
********************/
.produkte {
}
.entry {
    width: 90%;
}
.map {
    flex-grow: 3 !important;
}
/*********************
    News
*********************/
.news-flex {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}
.entry {
    flex-basis: 60%;
}
.news-img {
    flex-basis: 40%;
}
.news-img img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 500px;
}
.wp-block-columns {
    gap: 1em;
}
.hidden {
    display: none !important;
}
.category-border{
    border: 3px solid #707070;
}
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.flex-post-articles{
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    gap: 1rem;
}
.flex-article{
    transition: 0.3s ease-in-out;
    border: 2px solid #3e3e3e;
    padding: 2rem 1rem;
    flex: 1 1 calc(50% - 1rem);
}
.flex-post{
    display: flex;
    flex-direction: column;
    height: 100%;
}
.flex-post div{
    flex: 0 1 100%;
    max-height: 700px;
}
.flex-post-image{
    display: flex;
    justify-content: center;
}
.flex-post-image img{
    width: 100%;
    height: 300px;
    object-fit: contain;
}
@media screen and (max-width: 650px){
    .flex-article{
        flex: 1 1 100%;
    }
}
@media screen and (min-width: 700px){
    .flex-article{
        flex: 1 1 calc(50% - 1rem);
    }
}
@media screen and (min-width: 960px){
    .flex-article{
        flex: 1 1 calc(33% - 2rem);
    }
}
@media screen and (min-width: 1280px){
    .flex-article{
        flex: 1 1 calc(25% - 3rem);
    }
}
/* Mobile Nav */
.mobile-navigator {
    width: 100%;
    position: absolute;
    z-index: 10;
}

.nav-icon {
    width: 35px;
    height: 30px;
    margin: 20px;
    position: absolute;
    cursor: pointer;
    display: inline-block;
    right: 0;
    top: 20px;
    margin-top: 0px;
    z-index: 20;
}
.nav-icon span {
    background-color: #000;
    position: absolute;
    border-radius: 2px;
    -webkit-transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
    -o-transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
    transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
    width: 100%;
    height: 4px;
    -webkit-transition-duration: 500ms;
    -o-transition-duration: 500ms;
    transition-duration: 500ms;
}
.open {
    top: 30px;
}
.open span {
    background-color: white;
}
.nav-icon span:nth-child(1) {
    top: 0px;
    left: 0px;
}
.nav-icon span:nth-child(2) {
    top: 13px;
    left: 0px;
    opacity: 1;
}
.nav-icon span:nth-child(3) {
    bottom: 0px;
    left: 0px;
}
.nav-icon:not(.open):hover span:nth-child(1) {
    width: 100%;
    height: 4px;
    display: block;
    top: -2px;
    left: 0px;
    -webkit-transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
    -o-transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
    transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
}
.nav-icon:not(.open):hover span:nth-child(2) {
    width: 100%;
    height: 4px;
    display: block;
    top: 13px;
    left: 0px;
    -webkit-transition: 0.4s cubic-bezier(0.8, 0.5, 0.2, 1.4);
    -o-transition: 0.4s cubic-bezier(0.8, 0.5, 0.2, 1.4);
    transition: 0.4s cubic-bezier(0.8, 0.5, 0.2, 1.4);
}
.nav-icon:not(.open):hover span:nth-child(3) {
    width: 100%;
    height: 4px;
    display: block;
    bottom: -2px;
    left: 0px;
    -webkit-transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
    -o-transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
    transition: 0.3s cubic-bezier(0.8, 0.5, 0.2, 1.4);
}
.nav-icon.open span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 13px;
}
.nav-icon.open span:nth-child(2) {
    opacity: 0;
}
.nav-icon.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 13px;
}
.mobile-menu {
    -webkit-transform: translate(-150%);
    -ms-transform: translate(-150%);
    transform: translate(-150%);
    -webkit-transition-delay: 2s;
    -o-transition-delay: 2s;
    transition-delay: 2s;
    -webkit-transition: -webkit-transform 0.5s ease-in-out;
    transition: -webkit-transform 0.5s ease-in-out;
    -o-transition: transform 0.5s ease-in-out;
    transition: transform 0.5s ease-in-out;
    transition: transform 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out;
    position: absolute;
    width: 50%;
    z-index: 1;
    /*background: var(--main-color);*/
    height: 100vh;
}
.open-li {
    display: block !important;
    width: 100%;
    height: 100vh;
    /*background-color: var(--main-color);*/
    -webkit-transform: translate(0);
    -ms-transform: translate(0);
    transform: translate(0);
    z-index: 10;
}
/* Mobile Menu */
#mobile-menu a {
    text-decoration: none;
    font-size: 1.2rem !important;
    /*text-transform: uppercase;*/
}
#mobile-menu ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 80%;
    max-width: 1364px;
    list-style-type: none;
    margin: auto;
    margin-top: 72px;
    padding: 0;
}
#mobile-menu > ul > li {
    margin-bottom: 20px;
    margin-left: 40px;
}
#mobile-menu-li .menu-item-has-children {
    display: inline;
    font-size: 1.6rem;
    position: relative;
}
#mobile-menu-li .menu-item-has-children > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    height: 0.75em;
    width: 0.75em;
    color: white;
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-size: contain;
    -webkit-transform: translateX(-40px);
    -ms-transform: translateX(-40px);
    transform: translateX(-40px);
    -webkit-transition: -webkit-transform 500ms ease;
    transition: -webkit-transform 500ms ease;
    -o-transition: transform 500ms ease;
    transition: transform 500ms ease;
    transition: transform 500ms ease, -webkit-transform 500ms ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 18 25'%3E%3Cpath d='M18,12.5l-2.6-2.6l0,0L5.2,0H0l12.5,12.5L0,25h5.2l9.8-9.8l0,0L18,12.5L18,12.5L18,12.5z'%3E%3C/path%3E%3C/svg%3E");
}
#mobile-menu a {
    font-family: "Yantramanav", sans-serif;
    font-weight: var(--medium-weight);
}
#mobile-menu a:hover {
    color: white;
    font-family: "Yantramanav", sans-serif;
    font-weight: var(--medium-weight);
}
#mobile-menu .sub-menu {
    position: relative;
    left: 0;
    margin: 0px;
    margin-top: 20px;
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.open-sub a::before {
    -webkit-transform: translateX(-2.25em) rotate(90deg) !important;
    -ms-transform: translateX(-2.25em) rotate(90deg) !important;
    transform: translateX(-2.25em) rotate(90deg) !important;
}
.open-sub ul.sub-menu {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
}
#mobile-menu .sub-menu li {
    padding: 5px;
}
#mobile-menu .sub-menu a {
    color: white;
    font-family: "Yantramanav", sans-serif;
    font-size: 16px !important;
    text-transform: none;
    cursor: pointer;
}