/*
 Theme Name:   GeneratePress Child Buena Vista Laboe
 Theme URI:    https://generatepress.com
 Author:       ideenwerft
 Author URI:   https://www.ideenwerft.com
 Description:  GeneratePress child theme
 Template:     generatepress
 Version:      1.0
*/

@import url('css/fonts.css');
@import url('css/lazyblocks.css');

/* ---------- VARIABLES ---------- */
:root {
    --primary-clr: #AA0031;
    --secondary-clr: #009F9D;
    --darker-primary-clr: #8c0028;
    --darker-secodary-clr: #008a88;
    --cta-clr: #AA0031;
	--darker-cta-clr: #8c0028;
    --font-body: 'Open Sans', sans-serif;
    --font-headline: 'Playfair Display', sans-serif;
}

/* ---------- BASICS ---------- */
body {
    overflow-x: hidden;
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 1.1rem;
  	color: #333;
}
#content {
    padding-bottom: 4rem;
}
.fullwidth {
    width: 100vw;
    margin: 0 calc(50% - 50vw);
}

/* .... GRIDS .... */
.grid {
    display: grid;
    grid-gap: 30px;
}
/* 2er */
@media (min-width:700px) {
    .grid-2 {
        grid-template-columns: repeat(2,1fr);
    }
}
@media (min-width:1000px) {
    .grid-2 {
        grid-template-columns: repeat(2,1fr);
    }
}
/* 3er */
@media (min-width:700px) {
    .grid-3 {
        grid-template-columns: repeat(2,1fr);
    }
    .grid-3 > div:nth-child(3) {
        grid-column:  span 2/span 2;
    }
}
@media (min-width:1000px) {
    .grid-3 {
        grid-template-columns: repeat(3,1fr);
    }
    .grid-3 > div:nth-child(3) {
        grid-column:  inherit;
    }
}
/* 4er */
@media (min-width:700px) {
    .grid-4 {
        grid-template-columns: repeat(2,1fr);
    }
}
@media (min-width:1000px) {
    .grid-4 {
        grid-template-columns: repeat(4,1fr);
    }
}


/* .... TEXT .... */
h1, h2, h3 {	
	font-weight: 400;
	color: var(--primary-clr);
}
h1 {
    font-family: var(--font-headline);
	font-size: 3rem;
    margin-bottom: 2rem;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-transform: uppercase;
}
h2 {
    margin-bottom: 1.6rem;
    font-family: var(--font-headline);
	font-size: 2.6rem;
    text-transform: uppercase;
}
h1 + h2 {
    margin-top: -1.5rem;
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    color: #666;
    font-weight: 400;
    font-size: 1.2rem;
}
h3 {
	margin-bottom: 1.25rem;
    font-family: var(--font-headline);
	font-size: 1.6rem;
    text-transform: uppercase;
}
p {
    margin-bottom: 1rem;
    line-height: 1.65rem;
}
main .entry-content h2, 
main .entry-content h3, 
main .entry-content h4, 
main .entry-content p, 
main .entry-content ul, 
main .entry-content ol {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
main .entry-content ul {
	padding-left: 20px;
}
main .entry-content li {
	margin-bottom: 15px;
}
main a {
	color: var(--cta-clr);
    font-weight: 600;
}
main a:hover {
	text-decoration: none;
	color: var(--darker-cta-clr);
}
b, strong {
    font-weight: 600;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.7rem;
        margin-bottom: 2rem;
    }
}


/* .... BUTTONS .... */
button,
a.button,
a.btn,
input[type=submit],
a.wp-block-button__link:not(.has-background),
a.wp-show-posts-read-more:link, 
a.wp-show-posts-read-more:visited {
    display: inline-block;
	padding: 7px 20px;
    margin-top: 10px;
    background: transparent;
    border: 2px solid var(--cta-clr);
    border-radius: 0;
    color: var(--cta-clr);
    font-weight: 600;
    text-transform: uppercase;
}
button:hover,
a.button:hover,
a.btn:hover,
button:focus,
a.button:focus,
a.btn:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
a.wp-show-posts-read-more:hover,
a.wp-show-posts-read-more:focus {
	background: var(--cta-clr) !important;
    color: #fff;
}

/* .... FORM FIELDS .... */
input[type="text"],
input[type="search"],
button.wp-block-search__button {
    border: 1px solid var(--primary-clr);
    border-radius: 5px;
}
input[type="text"],
input[type="search"] {
    background: #fff;
}
input[type="text"]:focus,
input[type="search"]:focus {
    background: #eee;
}

/* .... OTHER .... */
img {
  	max-width: 100%;
  	height: auto; 
}
.wpcf7 .note {
	margin-top: 30px;
	font-style: italic;
	font-size: 0.9em;
    opacity: 0.7;
}
.iframewrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}
.iframewrap.footermap {
    padding-bottom: 25%;
}
.iframewrap iframe,
.iframewrap .awmp-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}
.awmp_map_wrapper {
    border-color: #ddd !important;
}

/* .... HEADER .... */
.inside-header {
    padding: 10px 20px;
}
@media (min-width:768px) {
    .inside-header {
        padding: 10px 40px;
    }
}
.site-logo {
    max-width: 70%;
}
.header-widget {
    display: flex;
}
.social a:link, 
.social a:visited {
    display: inline-block;
    margin: 0 7px;
    color: #fff;
    font-size: 25px;
}
.social a:hover, 
.social a:focus {
    opacity: 0.7;
    transform: scale(1.1);
}

.widget_polylang ul li {
    margin: 0;
    padding: 0 8px;
    line-height: 1em;
}
.widget_polylang a {
    color: #fff;
    font-size: 15px;
}
#hero img {
	width: 100%;
}
.main-navigation .menu-toggle {
    font-size: 22px;
}
.mobile-menu-control-wrapper .menu-toggle, 
.mobile-menu-control-wrapper .menu-toggle:hover, 
.mobile-menu-control-wrapper .menu-toggle:focus, 
.has-inline-mobile-toggle #site-navigation.toggled {
    background-color: transparent;
}

/* .... NAVIGATION .... */
.main-navigation, 
.main-navigation ul ul {
    background-color: transparent;
}
.main-navigation.slideout-navigation,
.main-navigation.is_stuck {
    background-color: var(--contrast-2);
}
.main-navigation .main-nav ul li a {
    padding-left: 25px;
    padding-right: 15px;
    font-size: 18px;
    line-height: 45px !important;
    font-weight: 500;
}
.main-navigation .main-nav ul li a, 
.main-navigation .menu-toggle, 
.main-navigation .menu-bar-items {
    color: #fff;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--cta-clr);
}
.main-navigation .main-nav ul li#menu-item-339 > a {
    color: #fff;
}


/* mobil */
#generate-slideout-menu.main-navigation .inside-navigation {
    justify-content: flex-start;
}
.slideout-navigation .main-nav {
    margin-bottom: 10px !important;
}
#generate-slideout-menu .slideout-widget {
    margin-bottom: 0 !important;
}
#generate-slideout-menu .social {
    margin-left: -12px;
}
#generate-slideout-menu .widget_polylang ul {
    display: flex;
}
#generate-slideout-menu .widget_polylang a {
    font-size: 18px;
}

@media (max-width: 600px) {
    .header-widget {
        display: none;
    }
}
@media (max-width: 991px) {
    .has-inline-mobile-toggle .header-widget, 
    .has-inline-mobile-toggle #site-navigation {
        flex-basis: inherit;
    }
    .has-inline-mobile-toggle .mobile-menu-control-wrapper {
        flex-grow: 1;
        justify-content: flex-end;
    }
    .main-navigation .menu-toggle {
        flex-grow: 0 !important;
    }
    .site-header .header-widget {
        margin-top: 0;
    }
}
@media (min-width:992px) and (max-width:1100px) {
    .site-logo {
        width: 250px;
    }    
    .main-navigation .main-nav ul li a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 17px;
    }
    .header-widget .social {
        margin-top: 0px;
        margin-right: 10px;
    }
}
@media (min-width:1200px) {
    .widget_polylang ul {
        display: flex;
        align-items: center;
        height: 100%;
    }
    .widget_polylang ul li:first-child {
        border-right: 1px solid #eee;
    }
}

/* Reservierungs-Button */
#menu-hauptnavigation .reservierung,
#menu-hauptnavigation-1 .reservierung,
.social .reservierung {
    background: var(--primary-clr);
    border-radius: 20px;
    line-height: 1.5em !important;
    padding: 6px 20px;
    font-size: 0.95em;
    margin: 0 -10px 0 10px;
}
#menu-hauptnavigation-1 .reservierung,
.social .reservierung {
    width: 133px;
    padding: 3px 14px;
    margin: -3px 0 0 0 ;
    font-size: 16px !important;
}
#menu-hauptnavigation a.reservierung:hover,
#menu-hauptnavigation a.reservierung:focus {
    background: var(--darker-primary-clr);
    color: #fff;
}



/* .... HERO .... */
#hero {
  position: relative;
}
#hero .flexbox {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: -ms-flexbox!important;
    display: flex!important;
    background: rgba(0,0,0,0.3);
}
#hero .flexbox .grid-container {
    display: flex;
    width: 100%;
    padding: 0 30px;
}
@media (min-width:769px) {
    #hero .flexbox .grid-container {
        padding: 0 40px;
    }
}

/* box vertical center */
#hero .flexbox.box-left,
#hero .flexbox.box-right,
#hero .flexbox.box-center {
    -ms-flex-align: center!important;
    align-items: center!important;
}
/* box left */
#hero .flexbox.box-left .grid-container {
    justify-content: flex-start;
}
/* box right */
#hero .flexbox.box-right .grid-container {
    justify-content: flex-end;
}
/* box center */
#hero .flexbox.box-center .grid-container {
    justify-content: center;
}

#hero img {
    display: block;
    width: 100%;
}
#hero > div:not(.box-below) .textbox {
  width: 400px;
  background: rgba(255,255,255,0.7);
}
@media (max-width:767px) {
  #hero div:not(.box-below) .textbox {
    display: none;
  }
}
#hero .text {
  padding: 20px;
  font-size: 1rem;
}
#hero h1,
#hero h2,
#hero h3,
#hero h4,
#hero .headline {
  margin: 0;
  padding: 7px 20px;    
  background: #fff;
  color: #555;
  font-weight: 400;
}
#hero h1 {
  font-size: 3rem;
}
#hero h2 {
  font-size: 2.6rem;
}
#hero h3 {
  font-size: 2.2rem;
}
#hero h4 {
  font-size: 2rem;
}
#hero .headline {
    font-size: 2.5rem;
}

/* textbox als Banner */
#hero .flexbox.box-below {
	position: relative;
	top: inherit;
	right: inherit;
	bottom: inherit;
	left: inherit;
	background: #55c1cc;
}
#hero .box-below .textbox {
	width: 100%;
	padding: 20px 0 20px;
    text-align: center;
}
#hero .box-below h3 {
	padding: 0;
	margin-bottom: 10px;
	background: none;
	text-align: center;
	font-size: 2rem;
}
#hero .box-below .text {
	padding: 0;
	background: transparent;
	color: #fff;
	font-size: 1.5rem;
}
#hero .box-below p {
	margin-bottom: 0;
}

/* flexbox logo als fallback */
#hero > div.flexbox-logo .textbox {
    width: 500px;
    max-width: 70%;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.65+0,0+68 */
background: -moz-radial-gradient(center, ellipse cover,  rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 68%, rgba(0,0,0,0) 100%) !important; /* FF3.6-15 */
background: -webkit-radial-gradient(center, ellipse cover,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 68%,rgba(0,0,0,0) 100%) !important; /* Chrome10-25,Safari5.1-6 */
background: radial-gradient(ellipse at center,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 68%,rgba(0,0,0,0) 100%) !important; /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=1 ) !important; /* IE6-9 fallback on horizontal gradient */
    padding: 30px;
}


/* .... badge (noch nicht im Template integriert) .... */
#hero .badge {
    position: absolute; 
    padding: 0;
    color: #fff;
    white-space: normal;
    hyphens: auto;
    line-height: 1.6rem;
    font-size: 1.2rem;
}
#hero .badge-right {
    top: -10px;
    right: 5%;
    transform: rotate(8deg);
}
#hero .badge-left {
    top: -10px;
    left: 5%;
    transform: rotate(-8deg);
}
#hero .badge-rightbottom {
    bottom: -40px;
    right: 5%;
    transform: rotate(8deg);
}
#hero .badge-leftbottom {
    bottom: -40px;
    left: 5%;
    transform: rotate(-8deg);
}
#hero .badge p {
    margin: 0;
    line-height: 1.8rem;
}
#hero .badge span,
#hero .badge a:link, 
#hero .badge a:visited {    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    width: 140px;
    height: 140px;
    border-radius: 70px;
    background: #56ada0;
    color: #fff;
    padding: 1.2rem;
}

@media (min-width:768px) {
    #hero .badge {
        line-height: 1.8rem;
        font-size: 1.35rem;
    }
    #hero .badge span,
    #hero .badge a:link, 
    #hero .badge a:visited {  
        width: 150px;
        height: 150px;
        border-radius: 75px;
    }
}
@media (min-width:1600px) {
    #hero .badge-right {
        top: -20px;
        right: 15%;
    }
    #hero .badge-left {
        top: -20px;
        left: 15%;
    }
    #hero .badge-rightbottom {
        right: 15%;
    }
    #hero .badge-leftbottom {
        left: 15%;
    }
}


/* ... BREADCRUMB .... */
#breadcrump {
    margin-left: 40px;
    font-size: 0.85rem;
}


/* .... CONTENT .... */



/* .... BLOG SINGLE .... */
.single h1.entry-title {
    margin-bottom: 1rem;
}
.single .featured-image img {
    width: 100%;
}
.single .entry-meta {
    font-size: 1rem; 
}
.single .entry-meta a {
    line-height: 1.4em;
}
.single .entry-meta .posted-on {
    font-size: 1.1rem;
}
/* post navigation */
.single .post-navigation {
    margin-top: 70px !important;
    overflow: visible;
}
.single .post-navigation > div {
    position: relative;
    margin-bottom: 20px;
}
.single .post-navigation > div.nav-next {
    text-align: right;
}
.single .post-navigation .gp-icon {
    position: absolute;
    top: -4px;
    margin: 0 !important;
    font-size: 1.5rem;
    color: var(--cta-clr);
}
.single .post-navigation .icon-arrow-left {
    left: -25px;
}
.single .post-navigation .icon-arrow-right {
    right: -25px;
}
@media (min-width:769px) {
    .single .featured-image {
        max-width: 45%;
    }
    .single .post-navigation {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 30px;
        overflow: visible;
    }
    .single .post-navigation .gp-icon {
        top: -4px;
    }
}




/* .... Youtube DSGVO .... */
a.youtube-dsgvo {
    position:relative;
    display:block; 
}
a.youtube-dsgvo img {
    width: 100%;
}
a.youtube-dsgvo .text-wrap {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: 
    rgba(25,25,25,.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    z-index: 10;
    opacity: 0;
}
a.youtube-dsgvo:hover .text-wrap {
    opacity: 1;
}
a.youtube-dsgvo .text-wrap p {
    font-size: 16px;
    color: #fff;
}
.youtube-dsgvo {
	font-size: 16px;
}

/* .... FORMULARE .... */
.wpcf7 {
    width: 100%;
    margin-top: 3rem;
}
.wpcf7 fieldset {
    width: 100%;
    max-width: 900px;
    margin-bottom: 30px;
    padding: 30px 30px 20px;
    background: #f3f3f3;
}
.wpcf7 fieldset legend {
    width: auto;
    margin: 0;
    padding: 4px 25px;
    background: var(--primary-clr);
    color: #fff;
    font-weight: 600;
    text-align: center;
}
.wpcf7 .row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}
.wpcf7 .row > div {
    width: 49%;
}
.wpcf7 .row.checkbox > div {
    width: 100%;
}
.wpcf7 label {
    display: block;
    margin-bottom: 5px;
    font-size: 1em;
    font-weight: 500;
    color: var(--secondary-clr);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"] ,
.wpcf7 input[type="submit"] {
    width: 100%;
}
.wpcf7 input[type="text"],
.wpcf7 [type="email"],
.wpcf7 textarea {
    border: none;
    background-color: #fff;
    border: 2px solid #ddd;
}
.wpcf7-list-item {
    margin: 0;
}
.wpcf7 .dsgvo-check .wpcf7-list-item {
    margin-left: 0;
}
.wpcf7 .dsgvo-check a {
    padding-right: 0;
}
.wpcf7 .datenschutz-link:before,
.wpcf7 .datenschutz-link:after {
    display: none;
}
.wpcf7 .submit-button {
    width: 30%;
}
.wpcf7 .pflichtfelder span {
    font-size: .8em;
    opacity: .7;
}
.wpcf7-not-valid {
    border: 1px solid #c00 !important;
}

@media (max-width: 768px) {
    .wpcf7 .row {
        display: block;
    }
    .wpcf7 .row > div {
        width: 100%
    }
    .wpcf7 {
        padding-bottom: 2em;
    }
}
@media (max-width: 500px) {
    .wpcf7 .submit-button {
        width: 100%;
    }
}



/* .... 404 .... */
.error404.separate-containers .site-main {
    margin: 70px 20px;
}
.error404 h1,
.error404 p,
.error404 form,
.search h1,
.search p,
.search form {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.error404 form,
.search form {
    margin-top: 50px;
    max-width: 500px;
}


/* .... FOOTER .... */
.site-footer {
    position: relative;
    border-top: 10px solid var(--secondary-clr);
}
.site-footer::before {
    display: block;
    content: '';
    width: 260px;
    height: 150px;
    margin: -60px auto 20px;
    background: url(/wp-content/themes/gp-buenavista/gfx/logo-footer.png) no-repeat;
    background-size: contain;   
}
.site-footer .contact > div > div {
    display: flex;
}
.site-footer .contact i.fad {
    width: 20px;
    margin-right: 10px;
    line-height: 1.8rem;
    color: var(--secondary-clr);
}
.site-footer .contact a:link,
.site-footer .contact a:visited {
    color: #444;
}
.copyright-bar {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}
.copyright-bar .must-have {
    order: -1;
}
#menu-musthaves {
    display: flex;
    padding: 0;
    margin: 0 0 15px;
    list-style: none;
}
#menu-musthaves li {
    margin: 0 10px 0 0;
}

@media (min-width:500px) {
    .site-footer .contact {
        display: flex;
        justify-content: center;
    }
    .site-footer .contact > div {
        margin: 0 20px;
    }
}

@media (min-width:700px) {
    .copyright-bar {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    .copyright-bar .must-have {
        order: inherit;
    }
    #menu-musthaves {
        margin: 0;
    }
    #menu-musthaves li {
        margin: 0 5px;
    }
}


/* .... PRINT STYLES .... */
@media print {
    #hero,
	.main-navigation,
	#mobile-menu-control-wrapper,
	.site-navigation,
	.primary-menu,
	.must-have,
    .iframewrap {
        display: none;
    }
	body, h1, h2, h3, h4, p, ul, li, a {
		color: #444 !important;
	}
    .infoboxen {
        display: block;
    }
    .infoboxen .box {
        float:none;
        display: block;
        width: 100%;
        border: 1px solid #ccc;
    }
}
