﻿/*
Theme Name: Porsche Ferienprogramm
Author: Felix Geiger Softwareentwicklung
Description: Theme für http://www.porsche-ferien.de
Version: 0.1
Text Domain: pfp

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 (porsche-ferien.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 FELIX GEIGER, kontakt@felixgeiger.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:''}


/**** FONTS ****/


/* porsche-next-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Porsche Next';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/PorscheNextWLa-Regular.woff2') format('woff2');
}
/* porsche-next-regular-italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Porsche Next';
    font-style: italic;
    font-weight: 400;
    src: url('./fonts/PorscheNextWLa-RegularItalic.woff2') format('woff2');
}

/* porsche-next-semibold - latin */
@font-face {
    font-display: swap;
    font-family: 'Porsche Next';
    font-style: normal;
    font-weight: 600;
    src: url('./fonts/PorscheNextWLa-SemiBold.woff2') format('woff2');
}

/* porsche-next-regular-italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Porsche Next';
    font-style: italic;
    font-weight: 600;
    src: url('./fonts/PorscheNextWLa-SemiBoldItalic.woff2') format('woff2');
}


body{
    font-family: Porsche Next, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 1.2;
    background-color: #fff;
    color: #000;
}

strong, .bold {
    font-weight: 600;
}
/**** /FONTS ****/


/**** COLORS ****/
body {
    --text_blue : #2F6CA0;
    --primary: #FF5C00;
    --turquoise: #37B4B9;
    --green: #90b62f;
    --yellow: #f1a417;
    --purple: #7559a1;
    --darkgreen: #4d914f;
    --pink: #cc1eae;
    --red: #bc311b;
}

.text-blue { color: var(--text_blue); }

.primary { color: var(--primary); }

.bg-primary { background-color: var(--primary); }

.turquoise { color: var(--turquoise); }
.bg-turquoise { background-color: var(--turquoise); }
.bg-green { background-color: var(--green) }
.bg-yellow { background-color: var(--yellow) }
.bg-purple { background-color: var(--purple) }
.bg-darkgreen { background-color: var(--darkgreen) }
.bg-pink { background-color: var(--pink) }
/**** /COLORS ****/

/**** GLOBALS ****/
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; }
.mobile-only { display: none; }
@media screen AND (min-width: 601px) {
    .mobile-only { display: none !important; }
}
@media screen AND (max-width: 600px) {
    .desktop-only { display: none !important; }
}

.layout-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
}

.no-padding {
    padding: 0 !important;
}

.no-margin {
    margin: 0 !important;
}

.left-align {
    display: flex;
    justify-content: flex-start;
}

.right-align {
    display: flex;
    justify-content: flex-end;
}

.middle-align {
    display: flex;
    align-items: center;
}

.spaced-align {
    display: flex;
    justify-content: space-between;
}

.top-align {
    display: flex;
    align-items: flex-start;
}
.bottom-align {
    display: flex;
    align-items: flex-end;
}

a.front-cta-button, .front-cta-button {
    display: inline-block;
    height: 29px;
    line-height: 29px;
    padding: 0 15px;
    border-radius: 60px;
    font-size: 1em;
    font-weight: 600;
    background-color: var(--primary);
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease-out;
}

a.front-cta-button:hover, .front-cta-button:hover {
    transform: scale(1.05);
}
/**** /GLOBALS ****/


/**** HEADER ****/
#topHeader {
    padding: 23px 0px 18px 0px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
}

#header-inner {
    padding-left: 30px;
    padding-right: 30px;

}

#header-logo-wrapper a {
    display: block;
    width: auto;
    height: 66px;
}

#header-logo-wrapper img {
    display: block;
    width: auto;
    height: 100%
}

#desktop-menu .menu-item {
    display: block;
    height: 29px;
    line-height: 29px;
    padding: 0 15px;
    border-radius: 60px;
    font-size: 18px;
    font-weight: 600;

}

.nav-menu.with-colors .menu-item.current-menu-item {
    color: #fff;
}

.nav-menu.with-colors .menu-item:nth-child(1).current-menu-item {
    background-color: var(--primary);
}
.nav-menu.with-colors .menu-item:nth-child(2).current-menu-item {
    background-color: var(--green);
}
.nav-menu.with-colors .menu-item:nth-child(3).current-menu-item {
    background-color: var(--turquoise);
}
.nav-menu.with-colors .menu-item:nth-child(4).current-menu-item {
    background-color: var(--yellow);
}
.nav-menu.with-colors .menu-item:nth-child(5).current-menu-item {
    background-color: var(--purple);
}
.nav-menu.with-colors .menu-item:nth-child(6).current-menu-item {
    background-color: var(--darkgreen);
}
.nav-menu.with-colors .menu-item:nth-child(7).current-menu-item {
    background-color: var(--pink);
}
/**** HEADER ****/


/**** PAGES ****/
#page-header {
    margin-top: 80px;
    margin-bottom: 30px;
}

#page-main-heading {
    font-size: 38px;
    font-weight: 600;
}


.editor-content p {
    /*margin-bottom: 2.22222222rem;*/
    margin-bottom: 1.11111111rem;
    word-break: break-word;
}

.editor-content p:last-child {
    margin-bottom: 0rem;
}

.editor-content h1, .editor-content h2 { font-size: 1.333333333333333rem; font-weight: 700; line-height: 1.375 }
.editor-content h3 { font-size: 1.111rem; font-weight: 700; line-height: 1.375 }

.editor-content h1, .editor-content h2, .editor-content h3 {
    /*margin-bottom: 0.707rem;*/
    margin-bottom: 1.1111rem;
}

.editor-content strong {
    font-weight: bold;
}

.editor-content em {
    font-style: italic;
}

.editor-content ul {
    list-style: square outside;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.editor-content ol {
    list-style: decimal inside;
    margin-bottom: 1rem;
}
.editor-content a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: from-font;
}

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

.editor-content img.alignleft {
    float: left;
    margin-right: 20px;
}

.editor-content img.aligncenter {
    display: block;
    margin: 0 auto;
}

.editor-content img.alignright {
    float: right;
    margin-left: 20px;
}

/* clearfix if a float-aligned image is used */
.editor-content:after {
    content: '';
    clear: both;
    float: none;
    display: block;
}

/**** /PAGES ****/


/**** FRONTPAGE ****/
#frontpage-hero {
    margin-bottom: 40px;
}

#front-top-intro {
    margin-top: 20px;
    max-width: 800px;
}

#front-filters {
    margin-top: 50px;
    margin-bottom: 50px;
    user-select: none;
}

#front-filters > p {
    margin-right: 20px;
}

#front-filters select {
    appearance: none;
    height: 40px;
    line-height: 40px;
    padding-left: 20px;
    margin-right: 10px;
    background-color: #fff;
    border-radius: 60px;
    background-image: url(./images/icon-select.svg);
    background-position: calc(100% - 17px) center;
    background-repeat: no-repeat;
    font-family: inherit;
}

#week-select {
    padding-right: 47px;
}

#age-select {
    padding-right: 47px;
}

/* table */
#header-row, .data-row {
    padding: 18px 30px 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease-out;
}

.data-row:hover {
    background-color: rgba(142, 182, 36, 0.2);
}

#front-results .cell {
    flex-shrink: 0;
    flex-wrap: wrap;
}

#front-results .cell.name {
    /* width: 39.09%; */
    width: 36.2%;
    padding-right: 2em;
    box-sizing: border-box;
}

#front-results .data-row .cell.name {
    font-weight: 600;
}

#front-results .cell.place {
    /*width: 25.45%;*/
    width: 32%;
}

#front-results .cell.date {
    /*width: 23.63%;*/
    width: 17%;
}

#front-results .data-row .cell.status:before {
    content: '';
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 50%;
    background-color: grey;
    margin-right: 16px;
}

#front-results .data-row .cell.status.open:before {
    background-color: var(--green);
}
#front-results .data-row .cell.status.closed:before {
    background-color: var(--red);
}
#front-results .data-row .cell.status.waitlist:before {
    background-color: var(--yellow);
}

#front-no-results {
    display: none;
    padding: 30px;
    font-weight: 600;
}
/**** /FRONTPAGE ****/


/**** AUTH-FORM ****/
#auth-form-wrap {
    margin-top: 60px;
}

#auth-form {
    margin-top: 10px;
}

#auth-form input {
    font: inherit;
    border: 1px solid rgba(0, 0, 0, 0.25);
    padding: 0.3rem 1rem;
    border-radius: 4px;
}

#auth-form button {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 60px;
    color: #fff;
    border: 0 none;
    margin-left: 1rem;
}
/**** /AUTH-FORM ****/


/**** FOOTER ****/
#page-footer {
    margin-top: 90px;
    padding-top: 13px;
    padding-bottom: 13px;
}

#page-footer > .layout-container {
    padding: 0 30px;
}

#page-footer-inner {
    position: relative;
    min-height: 1rem;
}

#footer-stjg-logo {
    position: absolute;
    right: 0;
    bottom: -1px;
}

#footer-nav {
    font-size: 16px;
    line-height: 1.65;
}

#footer-nav .menu-item:not(:last-of-type):after {
    content: '|';
    display: inline-block;
    margin: 0 10px;
}
/**** /FOOTER ****/


/**** PHONE ****/
@media screen AND (max-width: 600px) {

    /* globals */
    .mobile-only {
        display: inherit;
    }

    .layout-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    /* fonts */
    body {
        font-size: 16px;
    }

    #page-main-heading {
        font-size: 26px;
    }

    /* header */
    #topHeader {
        padding-top: 17px;
        padding-bottom: 15px;
    }

    #header-inner {
        padding-left: 27px;
        padding-right: 29px;
        align-items: center;
    }

    #header-logo-wrapper a {
        height: 50px;
    }

    /* nav */
    #burger-button {
        display: block;
        padding: 10px;
        margin-right: -10px;
    }

    #mobile-nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgb(0 0 0 / 0%);
        height: 100%;
        transform: translate(200vw, 0);
        transition: background-color 0.1s ease-out;
    }

    #mobile-nav-wrapper.active {
        display: block;
        transform: translate(0);
        background-color: rgb(0 0 0 / 20%);
    }

    #mobile-nav-inner {
        background: #FFFFFF;
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
        border-radius: 0px 0px 20px 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 10px;
        transform: translate(0px, -100%);
        transition: transform 0.2s ease-out;
        transition-delay: 0.15s;
    }

    .active #mobile-nav-inner {
        transform: translate(0);
    }

    #mobile-nav {
        width: 100%;
        margin-top: 14px;
    }

    #mobile-nav-close-wrap {
        padding: 9px;
    }

    #mobile-menu li {
        min-height: 50px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border-radius: 4px;
    }

    /* frontpage */
    #frontpage-hero {
        margin-bottom: 30px;
    }

    #frontpage-hero img {
        height: 226px;
        width: 100%;
        object-position: center;
        object-fit: cover;
        display: block;
    }

    #front-filters {
        margin-top: 40px;
        margin-bottom: 20px;
        justify-content: space-between;
    }

    #front-filters > p {
        display: none;
    }

    #week-select {
        padding-right: 2rem;
    }

    #age-select {
        margin-right: 0 !important;
        padding-right: 2rem;
    }

    #front-results #header-row {
        display: none;
    }

    #front-results .data-row {
        padding: 0;
        flex-direction: column;
    }

    #front-results .data-row:hover {
        background-color: transparent;
    }

    #front-results .data-row > .cell {
        width: 100%;
        padding: 0;
        font-size: 18px;
        line-height: 28px;
    }

    #front-results .data-row .cell.name {
        font-size: 30px;
        line-height: 36px;
        margin-bottom: 10px;
        padding-top: 20px;
    }

    #front-results .data-row .mobile-place {
        font-weight: 600;
    }

    #front-results .data-row .cell.status {
        margin-top: 10px;
    }

    #front-results .data-row .cell.status:before {
        margin-right: 8px;
    }

    #front-results .cta-button-wrap {
        margin-top: 10px;
        padding-bottom: 20px;
        width: 100%;
    }

    #front-results .cta-button {
        display: inline-block;
        padding: 10px 25px;
        border-radius: 60px;
        color: #fff;
    }

    /* static pages */
    #page-header {
        margin-top: 40px ;
    }

    /* footer */
    #page-footer > .layout-container {
        padding: 0 20px;
    }

    #footer-nav {
        font-size: 14px;
    }

    #footer-stjg-logo {
        width: 80px;
    }

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