/*
Theme Name: Reinigungsdienst-k.ch
Theme URI: 
Author: Armin Oppliger
Author URI: https://useit.ch/
Description: 
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reinigungsdienst-k-ch
Tags: 
*/


/* Global */
a {
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}
a:focus,
input:focus,
button:focus {
    outline: none;
}


/* Header — fixed, hide on scroll down */
header.wp-block-template-part,
header.site-header,
.header-wrapper {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    transition: transform 0.3s;
    box-shadow: 0 0 7px rgba(217,26,93,0.9);
}

body.header-nav-hidden header.wp-block-template-part,
body.header-nav-hidden header.site-header,
body.header-nav-hidden .header-wrapper {
    transform: translateY(-100%);
}

header .wp-block-site-logo img,
header .custom-logo {
    height: auto;
    transition: width 0.3s ease;
}

body:not(.header-at-top) header .wp-block-site-logo,
body:not(.header-at-top) header .wp-block-site-logo img,
body:not(.header-at-top) header .custom-logo {
    width: 200px !important;
    max-width: 200px;
}

main {
    margin-top: var(--header-height, 0) !important;
}

main figure.wp-block-post-featured-image {
    margin-top: -51px !important;
}
main figure.wp-block-post-featured-image img {
    max-height: 300px;
    object-position: top center;
}

/* Navigation */
nav li a {
    padding: 5px 10px;
    border-bottom: 1px solid #fff;
    transition: all 0.5s ease-in-out;
}
nav li a:hover,
nav li.current-menu-item a {
    background: #00AEEF;
    color: #fff !important;
    border-bottom-color: #d91a5d;
}

/* Contact Form */
.wpcf7-form input[type=text],
.wpcf7-form input[type=tel],
.wpcf7-form input[type=email] {
	font-family: var(--wp--preset--font-family--exo-2);
	border: 2px solid #d91a5d;
  	padding: 5px 3%;
  	width: 94%;
}
.wpcf7-form textarea {
	font-family: var(--wp--preset--font-family--exo-2);
	border: 2px solid #d91a5d;
  	padding: 5px 3%;
  	width: 94%;
	height:100px;
}
.wpcf7-form input[type=submit] {
	font-size: 1.06rem;
  	font-family: var(--wp--preset--font-family--exo-2);
  	padding: 5px 10px;
  	border: 2px solid #d91a5d;
  	transition: all 0.5s ease-in-out;
  	background: #fff;
  	color: #d91a5d;
  	font-weight: 700;
	cursor: pointer;
}
.wpcf7-form input[type=submit]:hover {
	background: #00AEEF;
	border-color: #00AEEF;
	color: #fff;
}
.wpcf7 form .wpcf7-response-output {
	margin: 0;
	background: #ffb900;
  	color: #fff;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #46b450;
}

/* Footer */
.footer-wrapper {

}

/* Mobile header navigation (≤599px) */
.mobile-nav {
    display: none;
    position: relative;
    z-index: 1004;
}

.mobile-nav__toggle {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-nav__bar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 2px;
    margin-left: -14px;
    background-color: #d91a5d;
    transition: all 400ms cubic-bezier(0.84, 0.06, 0.52, 1.8);
}

.mobile-nav__bar--1 {
    transform: translateY(-7px);
}

.mobile-nav__bar--3 {
    transform: translateY(7px);
}

.mobile-nav.is-open .mobile-nav__bar--1 {
    transform: rotate(40deg);
}

.mobile-nav.is-open .mobile-nav__bar--3 {
    transform: rotate(-40deg);
}

.mobile-nav.is-open .mobile-nav__bar--2 {
    opacity: 0;
}

.mobile-nav__layer,
.mobile-nav__panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.mobile-nav__layer--1 {
    z-index: 1001;
    background: #f3f3f3;
    transition: all 500ms cubic-bezier(0.62, 0.04, 0.3, 1.56);
    transition-delay: 50ms;
}

.mobile-nav__layer--2 {
    z-index: 1002;
    background: #fff;
    transition: all 600ms cubic-bezier(0.62, 0.04, 0.3, 1.56);
    transition-delay: 100ms;
}

.mobile-nav__panel {
    z-index: 1003;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    transition: all 600ms cubic-bezier(0.62, 0.04, 0.3, 1.56);
    transition-delay: 100ms;
}

.mobile-nav.is-open .mobile-nav__layer,
.mobile-nav.is-open .mobile-nav__panel {
    width: 70%;
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 80px 20px 40px;
    text-align: left;
}

.mobile-nav__item {
    margin: 0 0 1.2em;
    padding: 0;
}

.mobile-nav__item:last-child {
    margin-bottom: 0;
}

.mobile-nav__link {
    display: inline-block;
    color: #d91a5d;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.04em;
}

.mobile-nav__label {
    display: inline;
    background-image: linear-gradient(transparent, transparent), linear-gradient(#d91a5d, #d91a5d);
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 2px, 0 2px;
    padding-bottom: 2px;
    transition: background-size 0.4s ease, color 0.4s ease;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible,
.mobile-nav__item.current-menu-item .mobile-nav__link {
    color: #00aeef;
}

html.mobile-nav-open {
    overflow: hidden;
}

html.mobile-nav-open body {
    overflow: hidden;
}

@media (max-width: 599px) {
    header nav.wp-block-navigation {
        display: none !important;
    }

    header .header-wrapper .alignfull {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 15px !important;
        padding-right: 10px !important;
    }

    header .wp-block-site-logo {
        flex: 1 1 auto;
    }

    .mobile-nav {
        display: block;
        flex: 0 0 auto;
    }
}

@media (min-width: 600px) {
    .mobile-nav {
        display: none !important;
    }
}
@media (max-width: 665px) {
    .footer-cols {
        flex-direction: column;
    }
    footer figure.wp-block-image{
        float: none !important;
        margin-left: 0 !important;
    }
}
@media (max-width: 449px) {
    header img.custom-logo {
        width: 200px;
    }
}