/*
Theme Name: Einfach Gegönnt
Author: Felix Geiger Softwareentwicklung
Description: Goennung 2000
Version: 0.1
Text Domain: goennung

THIS IS A PROTECTED PIECE OF SOFTWARE UNDER GERMAN IP-LAW (UrhG).
YOU ARE NOT PERMITTED TO USE THIS SOFTWARE OUTSIDE OF THE LICENCED
WEBSITE (einfach-gegoennt.de). YOU ARE NOT ALLOWED TO COPY ANY PARTS OR MAKE DERIVED WORKS.

AGAIN, THIS IS NOT UP FOR GRABS. IF YOU WANT TO USE IT, BUY IT.
AUTHOR AND HOLDER OF COPYRIGHT IS KOMBÜSE 3711, kontakt@kombuese3711.de
*/

/**** RESETS FROM "CONDENSED ERIC MEYER" ****/
blockquote,body,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul{padding:0;margin:0}abbr,acronym,fieldset,img{border:0}table{border-collapse:collapse;border-spacing:0}ol,ul{list-style:none}address,caption,cite,code,dfn,em,strong,th,var{font-weight:400;font-style:normal}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:100%}q:after,q:before{content:''}

/**** CLEARFIX ****/
.clearfix:after{content:" ";visibility:hidden;display:block;height:0;clear:both}


/**** FONTS ****/

/* roboto-700 - latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: local(''),
    url('./fonts/roboto-v29-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('./fonts/roboto-v29-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* open-sans-700 - latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: local(''),
    url('./fonts/open-sans-v26-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('./fonts/open-sans-v26-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* Altinn-DIN https://github.com/Altinn/altinn-din */

/* regular */
@font-face {
    font-family: 'Altinn';
    font-style: normal;
    font-weight: 400;
    src: local(''),
    url('./fonts/Altinn-DIN.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('./fonts/Altinn-DIN.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* italic */
@font-face {
    font-family: 'Altinn';
    font-style: italic;
    font-weight: 400;
    src: local(''),
    url('./fonts/Altinn-DIN-Italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('./fonts/Altinn-DIN-Italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* bold*/
@font-face {
    font-family: 'Altinn';
    font-style: normal;
    font-weight: 700;
    src: local(''),
    url('./fonts/Altinn-DIN-Bold.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('./fonts/Altinn-DIN-Bold.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}


html, body{
    font-family: 'Altinn', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #2F3234;
}

strong, .fontBold {
    font-weight: 700;

}

em, .fontItalic {
    font-style: italic;
}
/**** /FONTS ****/


/**** GLOBALS ****/
:root {
    --speed1: 0.1s;
    --speed2: 0.2s;
    --speed3: 0.3s;
    --primary: #7440c0;
    --on-primary: #fff;
    --elevate1: 0 .125rem .125rem 0 rgb(0 0 0 / .14), 0 .0625rem .3125rem 0 rgb(0 0 0 / .12), 0 .1875rem .0625rem -.125rem rgb(0 0 0 / .2);
    --elevate2: 0 .375rem .625rem 0 rgb(0 0 0 / .14), 0 .0625rem 1.125rem 0 rgb(0 0 0 / .12), 0 .1875rem .3125rem -.0625rem rgb(0 0 0 / .3);
    --elevate3: 0 .625rem 1rem 0 rgb(0 0 0 / .14), 0 .0625rem 1.9375rem 0 rgb(0 0 0 / .12), 0 .1875rem .5625rem 0 rgb(0 0 0 / .4);
}

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

a, a:visited {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.block { display: block; }
.flex { display: flex; }
.mobileOnly { display: none; }
@media screen AND (min-width: 800px) {
    .mobileOnly { display: none !important; }
}

.layoutContainer {
    max-width: 900px;
    margin: 0 auto;
}

.materialButton {
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
    font-family: inherit;
    outline: inherit;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    vertical-align: middle;
}

.materialButton {
    box-sizing: content-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    min-width: 2.5rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--on-primary) !important;
    padding: 0 1.5rem;
    background-color: var(--primary);
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    transition: var(--speed3) transform,var(--speed3) border-radius,var(--speed3) padding;
    user-select: none;
    gap: 1rem;

    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.materialButton.round:not(img,video) {
    border-radius: 2rem!important;
}

.materialButton:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: inherit;
    width: 100%;
    height: 100%;
    background-position: center;
    background-image: radial-gradient(circle,rgb(255 255 255 / .4) 1%,transparent 1%);
    opacity: 0;
    transition: none;
}

.materialButton:hover:after, .materialButton:focus:after {
    background-size: 15000%;
    opacity: 1;
    transition: var(--speed2) background-size linear;
}

.materialButton, .elevate {
    box-shadow: var(--elevate1)!important;
}
/**** /GLOBALS ****/


/**** CMS ***/
.fromCms ul {
    list-style: disc outside;
    margin-left: 1em;
}

.fromCms strong {
    font-weight: 700;
}

.fromCms p, .fromCms ul {
    margin-bottom: 1em;
}

.fromCms ul:last-child, .fromCms p:last-child {
    margin-bottom: 0;
}

.fromCms .video-wrapped {
    margin-left: auto;
    margin-right: auto;
}

.fromCms .wp-caption {
    max-width: 100%;
}

.fromCms .wp-caption img {
    display: block;
}

.fromCms .wp-caption-text {
    font-size: 80%
}

.fromCms a {
    text-decoration: underline;
}

.fromCms h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.fromCms h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
/**** /CMS ***/


/**** TILES ****/
#page {
    display: flex;
    justify-content: flex-start;
    align-self: flex-start;
    flex-wrap: wrap;
    /*background-color: #67fef0;*/
    transition: background-color 0.2s ease-out;
}

.tile {
    width: 25%;
    height: 50vh;
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
    /*overflow: hidden;*/
}

.tile:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background-color: #fff;
    opacity: 0;
}

.tile:nth-child(3n-1):before {
    opacity: 0.3;
}

.tile:nth-child(3n):before {
    opacity: 0.6;
}

.tile:first-child:before {
    opacity: 0;
}

.tile:nth-child(3n+1):before {
    opacity: 0;
}

.tileInner {
    position: relative;
    z-index: 2;
}
/**** /TILES ****/


/**** Nav ****/
.tile.header .tileInner, .tile.intro .tileInner  {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
}

.tile.intro .tileInner {
    justify-content: center;
    align-items: flex-end;
}

#menu-desktop-unten {
    text-align: right;
}

.tileNav {
    font-size: 2rem;
}

.tileNav a {
    text-transform: uppercase;
    font-weight: 600;
}

@media screen AND (min-width: 551px ) AND (max-width: 1250px) {
    .tileNav li {
        line-height: 1.5;
        font-size: 2.2vw;
        text-align: right;
    }

    .tileNav li a {
        font-size: inherit;
    }
}

.tileNav a:before {
    /*content: '»';*/
}

#mobileNav {
    display: none;
}

/* small nav */
.tile.intro .wrap {
    position: absolute;
    right: 0;
    bottom: 0;
}

#footerNav {
    margin-bottom: 1vh;
}

#footerNav ul {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 0.9rem;
}

#footerNav li:not(:first-of-type) {
    margin-left: 1vh;
}

/**** /HEADER ****/

/**** FRONTPAGE ****/
#headlerLogoLink {
    max-width: 160px;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

#headerClaim {
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    font-style: italic;
}

.tile.intro.mobile {
    display: none;
}

#frontIntro {
    margin-bottom: 3rem;

}

#frontIntro h2 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
    line-height: normal;
    margin-bottom: 0.6rem;
}

#frontPosts {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}



.frontTitle {
    font-size: 0;
    margin: 0;
}

.tile .tileInner {
    transition: all 0.2s ease-out;
}

.tile.post img {
    display: block;
    width: 100%;
    object-fit: contain;
    background-color: transparent;
    height: 100%;
}


/*.tile:hover .shortText {
    line-height: 1.1;
}*/

.frontPost:nth-of-type(3) .shortText {
    background-color: #fff;
    color: unset;
    padding: 0;
    margin-top: 0.4rem;
}



.tile .buttons {
    position: absolute;
    z-index: 3;
    height: 2.5rem;

    width: calc(100% - 4vh);
    left: 2vh;
    bottom: 1vh;
    display: none;
    align-items: center;
    justify-content: space-between;
}

.tile:hover .buttons {
    display: flex;
}

.tile .buttons a {
    margin: 0;
}

.tile .imageAndText {
    transition: all 0.2s ease-out;
    position: relative;
    z-index: 2;
    background-color: transparent;
    height: 46vh;
}

.tile.rotate .imageAndText {
    /*transition-delay: 0.2s;*/

}

.tile.rotate .imageAndText {
    /*background-color: #fff;*/
    transform: rotateY(
            90deg
    );
    z-index: 2;
}

.tile .postText {
    background-color: transparent;
    color: #000;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 2vh;
    font-size: 1.1rem;
    box-sizing: border-box;
    transform: rotateY(-90deg);
    transition: all 0.2s ease-out;
    z-index: 1;
    transition-delay: 0.2s;
}

.tile.rotate .postText {
    display: block;
    transform: rotateY(0deg);
    z-index: 3;
    /*transition-delay: 0s;*/
}

.tile.rotateDone .postText {
    transition-delay: 0s;
    z-index: 1;
}

.tile.rotateBack.rotateDone .postText {
    transform: rotateY(90deg);
}

.tile.rotateDone .tile.rotate .imageAndText {
    transition-delay: 2s;
}

.tile.rotateBack.rotateDone .imageAndText {
    transform: rotateY(
            0deg
    );
}

.tile.rotateBack.rotateDone .imageAndText {
    background-color: transparent;
}

#frontLoadMore {
    padding: 0.4rem 0;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
}
/**** /FRONTPAGE ****/


/**** LANDINGPAGE ****/
.tile.landingIntro.desktop {
    width: 50%;
    padding: 0;
}

.tile.landingIntro.mobile {
    display: none;
}

.tile.landingIntro:before {
	display: none;
}

.tile .landingText {
    background-color: #121212;
	color: #efefef;
    height: 100%;
    padding: 1rem;
    box-sizing: border-box;
    border-bottom: 1rem solid #121212;
}
/**** /LANDINGPAGE ****/




/**** SINGLE ****/
.tile.singlePost {
    overflow: visible;
}

.tile.singlePost .tileInner {
    width: 200%;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    padding: 2vh;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 3;
}

#singleTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: visible;
    font-size: 1.7rem;
    height: 3.4rem;
    line-height: 1em;
    flex-wrap: wrap;
    font-weight: 600;
}

.singlePost .imageAndText {
    padding-top: 2vh;
    min-height: 55vh;
    width: 100%;
    flex-grow: 1;
}

.singlePost .imageAndText img {
    margin-bottom: 2vh;
    height: 30vw;
}

.singlePost .shortText, .singlePost .longText {
    width: auto;
    height: auto;
    font-size: 1.2rem;
    line-height: 1.3;
    padding: 1vh;
    box-sizing: border-box;
}

.singlePost .longText a {
    text-decoration: underline;
}

#singleButtons {
    margin: 1vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5vh;
}

#singleButtons a.singleGoennungsButton {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5vh;
    box-sizing: border-box;
    padding: 1.4vh 2.5vh;
    font-size: 1.4rem;
    line-height: 1em;
    background-color: #15d798;
    color: #fff;
    text-transform: uppercase;
    border-radius: 2.7vh;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

#singleButtons a:not(:first-of-type) {
    margin-left: 2vh;
}
/**** /SINGLE ****/


/**** PREV/NEXT TILE ****/
.tile.prevNext {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.desktopNextPrev {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
}

#nextProduct {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    line-height: 1;
}

.desktopNextPrev a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* background-color: #fff; */
    font-size: 1.6rem;
}

#prevProduct a {
    padding-right: 1rem;
}

.desktopNextPrev .arrow {
    display: inline-block;
    height: auto;
    width: 20px;
    margin: 0;
}

#prevProduct .arrow {
    margin-right: 0.6em;
}

#nextProduct .arrow {
    margin-left: 0.6em;
}
/**** /PREV/NEXT TILE ****/


/**** SHARE BUTTON ****/
.tile .buttons .shareWrap {
    height: 4vh;
    position: relative;

    /*display: none;*/

}

.tile .buttons .shareWrap > span {
    color: #fff;
    height: 4vh;
    padding: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 4vh;
    border-radius: 50%;
}

.tile .buttons .shareWrap.active > span:before {
    content: '';
    width: 0;
    height: 0;
    border-left: 2vh solid transparent;
    border-right: 2vh solid transparent;
    border-top: 2vh solid #3b5998;
    position: absolute;
    left: 0;
    top: -2vh;
}

.tile .buttons .shareWrap ul {
    position: absolute;
    top: calc(-100% - 1vh);
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    left: -4vh;

    display: none;
}

.tile .buttons .shareWrap.active ul {
    display: flex;
}

.tile .buttons .shareWrap li {
    width: 4vh;
    height: 4vh;
}

.tile .buttons .shareWrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #fff;
    transition: color 0.2s ease-out;
    font-size: 1.4rem;
}

.tile .buttons .shareWrap a:hover {
    color: rgba(0,0,0,0.5);
}

.shareWrap .insta a {
    background-color: #0E68CE;
}

.shareWrap .pinterest a {
    background-color: #e60023;
}

.shareWrap .fb a {
    background-color: #3b5998;
}

.shareWrap .copy a {
    background-color: #0ecda6;
}

/*.shareWrap .mail a {
    background-color: #cd860e;
}

.tile .buttons {
    display: flex;
}

.tile .buttons .shareWrap ul {
    display: flex;
}*/

/**** /SHARE BUTTON ****/


/**** PAGES ****/
body.page .singlePost .imageAndText {
    overflow-y: auto;
}

body.page #singleTitle {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
/**** /PAGES ****/


/**** FOOTER ****/
#pageFooter .tileInner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    position: relative;
}

#bottomAffNotice {
    padding: 1vh;
    text-align: center;
    font-size: 10px;
}

/**** /FOOTER ****/


/**** LARGE DESKTOP ****/
@media screen AND (min-width: 1500px) {
    .tile .postText {
        font-size: 1.2rem;
    }
}
/**** /LARGE DESKTOP ****/


/**** SMALL DESKTOP ****/
@media screen AND (max-width: 1136px) {

    .layoutContainer {
        max-width: unset;
        width: auto;
        box-sizing: border-box;
        padding-left: 2vw;
        padding-right: 2vw;
    }

    #topHeader .layoutContainer:before {
        left: 3vw;
    }

    #topHeader:before {
        /*left: -2vw;*/
    }

}
/**** /SMALL DESKTOP ****/

/**** SMALL DESKTOP EXCLUSIVELY  ****/
@media screen AND (min-width: 600px) AND (max-width: 1360px) {
    .tile .materialButton {
        font-size: 0.7rem;
        padding: 0 1.1rem;
    }

    .tile a.    detailsButton {
        margin-left: 0.2rem;
        margin-right: 0.2rem;
    }
}
/**** /SMALL DESKTOP EXCLUSIVELY  ****/



/**** TABLET ****/
@media screen AND (max-width: 550px) {

    .mobileOnly {
        display: block;
    }

    .desktopOnly {
        display: none;
    }

    #page {
        display: block;
    }

    .tile {
        width: 100%;
        height: auto;
    }

    /* header */
    #topHeader {
        height: auto;
        margin: 0;
    }

    #topHeader .tileInner {
        align-items: center;
    }

    #headerTop {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #headlerLogoLink {
        margin: 0 0 0 1rem;
        max-width: 27vw;
        flex-shrink: 0;
    }

    #headerClaim {
        text-align: left;
        font-size: 0.9rem;
        margin-left: 2rem;
        margin-bottom: 0;
    }

    #mobileNav {
        display: block;
        margin-top: 2vh;
        width: 100%;
    }

    .mobileNav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        width: 100%;
        margin-bottom: -0.6rem;
    }

    .mobileNav li {
        padding: 0 1rem;
        margin-bottom: 0.2rem;
        font-size: 1.2rem;
    }

    #headerLeft {
        height: 30vw;
    }

    #headerLeft {
        height: 30vw;
        align-items: flex-end;
        margin-bottom: 1rem;
    }



    /* frontpage */
    .frontTitle {
        height: auto;
        display: block;
        margin-bottom: 0.4rem;
        overflow: visible;
        line-height: 1.2;
    }

    .tile .imageAndText {

        min-height: unset;
        padding-bottom: 1rem;
        height: auto;
    }

    .frontPost img {
        display: block;
        width: 100%;
        height: auto;
        /*margin-bottom: 0.4rem;*/
    }

    .frontPost .shortText {
        height: auto;
        padding: 1rem;
    }

    .tile.intro {
        display: none;
    }

    .tileImage {
        margin-bottom: 1em;
    }

    .tile .buttons {
        display: flex;
        position: relative;
        left: 0;
        width: 100%;
        bottom: 0;
        justify-content: space-between;
    }

    .tile .buttons a {
        margin: 0;
    }


    .tile .buttons .shareWrap {
        height: 5vh;
    }

    .tile .buttons .shareWrap > span {
        width: 5vh;
        height: 5vh;
    }

    .tile .mobileWrap {
        position: relative;
    }

    .tile .postText {
        padding: 0 0.4rem;
        top: 0;
        height: 100%;
    }

    #frontpageMobileClaim {
        padding: 0.5em 1em;
        font-size: 1.4rem;
        text-align: center;
        line-height: 1.2;
    }

    #frontpageMobileClaim h1 {
        font-weight: 600;
    }

    /* single */
    body.single .tile.singlePost {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #singleTitle {
        line-height: normal;

        margin: 0.3em;
        height: auto;
        width: auto;
    }

    body.single .imageAndText {
        padding-bottom: 0.4rem;
        padding-top: 0;
    }


    .singlePost .imageAndText img {

        height: auto;
    }

    body.single .tile.filler {
        display: none;
    }

    body.single .tile.post .tileInner {
        width: auto;
        position: relative;
        top: 0;
        left: 0;
        padding: 0;
        height: auto;

        background-color: transparent !important;
    }

    #singleButtons {
        height: 7vh;
        margin: 3vh 0 0 0;
        padding: 0 1vh;
        box-sizing: border-box;
    }

    #singleButtons a.singleGoennungsButton {
        height: 7vh;
    }

    #prevProduct, #nextProduct {
        display: none;
    }

    /* page */
    .tile.singlePost .tileInner {
        width: auto;
        height: auto;
        position: relative;
    }

    body.page .singlePost .imageAndText {
        overflow-y: unset;
    }

    body.page .singlePost .fromCms {
        font-size: 1rem;
    }

    .fromCms a, .fromCms p {
        word-break: break-word;
    }

    /* landingpage */
    .tile.landingIntro.desktop {
        display: none;
    }

    .tile.landingIntro.mobile {
        display: block;
        width: 100%;
        padding: 0;
    }

    /* footer */
    #pageFooter .shareWrap {
        position: static;
    }

    #mobileFooterNav {
        padding: 2vw;
    }

    #mobileFooterNav .li {
        margin-bottom: 0;
    }



}
/**** /PHONE ****/









