/*
 Theme Name:   Rein Wiechers Architekten
 Theme URI:    https://generatepress.com
 Description:  GP Childtheme für den Onlineauftritt reinwiechers.de
 Author:       pixelhof webdesign, Stefanie Fuchs
 Author URI:   https://pixelhof.de
 Template:     generatepress
 Version:      0.1
*/


/*========================== TYPO: Scale 1.21 ================================*/
/*
:root {
    --h1:clamp(2.5rem, 2.016vw + 1.532rem, 3.125rem);
    --h1-line-height:calc(1px + 2ex + 1px);

    --h2:clamp(2.063rem, 1.815vw + 1.192rem, 2.625rem);
    --h2-line-height:calc(4px + 2ex + 3px);

    --h3:clamp(1.75rem, 1.21vw + 1.169rem, 2.125rem);
    --h3-line-height:calc(4px + 2ex + 3px);

    --h4:clamp(1.375rem, 1.21vw + 0.794rem, 1.75rem);
    --h4-line-height:calc(4px + 2ex + 4px);
	
	--h5:clamp(1.188rem, 0.806vw + 0.8rem, 1.438rem);
    --h5-line-height:calc(4px + 2ex + 4px);
}
*/
/*
:root {
    --h1:1.875rem;
    --h1-line-height:calc(4px + 2ex + 3px);

    --h2:1.875rem;
    --h2-line-height:calc(4px + 2ex + 3px);
}
*/
/*========================== ALLGEMEINE STYLES ================================*/


/* turns off grey box around the mobile menu icon */
.mobile-menu-control-wrapper .menu-toggle, 
.mobile-menu-control-wrapper .menu-toggle:hover {
	background-color: transparent;
}

/* im Blogbeitrag und Themen-Beitrag wird den Headlines, die auf p, ul oder ol folgen, ein Oben-Abstand von 3rem verpasst */
.single-post :is(p,ul,ol)+:is(h2,h3,h4), .single-thema :is(p,ul,ol)+:is(h2,h3,h4) {
    margin-top: 3rem;
}

/* remove bottom margin on last paragraph or list in container */
/*[class^="gb-element-"] p:last-child:last-of-type, 
[class^="gb-element-"] ul:last-child:last-of-type {
  margin-bottom: 0px;
}*/

/* GB button line height override */
a.gb-text {
	line-height: 1.5em;
}

/* page and post hyperlinks */
.content-area :is(p, li ) a {
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 0px;
}
.content-area :is(p, li ) a:hover {
  color: var(--contrast);
}

/* sidebar categories list style */
.wp-block-categories {
  list-style: none;
  margin-left: unset;
}

/* drop sidebar below content on tablet */
@media (max-width: 1024px) {
  .site-content {
    flex-direction: column;
  }
	.site-content .content-area {
		width: 100%;
	}
	/** right-sidebar on tablet ist nur 50% breit und sitzt zentriert **/
	.site-content .is-right-sidebar {
       width: 50%;
	   margin-right: auto;
	   margin-left: auto;
  }
}
/** right-sidebar on mobile ist wieder 100% breit **/
@media (max-width:767px) {
	.site-content .is-right-sidebar {
    width: 100%;
  }
    
}

/*========================== SEITEN-SPEZIFISCHE STYLES ================================*/

/****** Header wird mit feiner Linie abgegrenzt, nicht auf Projektseiten *******/
body header.site-header {
	border-bottom: 1px solid var(--base-2);
}

/* Sticky Nav */
header#masthead {
    position: sticky;
    top: 0;
    z-index: 1;
	background-color: var(--tint);
}

/* Navigation (56px hoch) soll bis zu einer bestimmten Position scrollen */
[id] {
    scroll-margin-top: 56px;
}
/* mobile und tablet: hier ist die nav nur 56px hoch */
@media (max-width: 1024px) {
	[id] {
    scroll-margin-top: 56px;
    }
}

@media (max-width: 1024px) {
  .main-navigation .menu-toggle {
    line-height: 39px;
  }
}

/*HTML:not(.generate-back-to-top), body:not(.generate-back-to-top) {
    scroll-behavior: smooth;
}*/

.generate-back-to-top {
  font-size: 40px;
  line-height: 60px;
  text-align: center;
}

/* Logo size for mobile */
@media (max-width: 768px) {
    .site-logo img.header-image {
        /*width: 220px;*/
         width: 290px;
    }
}


/*** Passwortschutz Seite zentrieren ***/

article.post-password-required, article.post-password-protected {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-top: 200px;
	padding-bottom: 200px;
}

/****************** Home Slider ************************/
.bg-fade-wrapper {
	position: relative;
	overflow: hidden;
}

.bg-fade {
	position: absolute;
	content: '';
	width: 105%;
	height: 100%;
	inset: 0;
	background-size: cover;
	background-position: center center;
	opacity: 0;
	animation-name: fade-move;
	animation-duration: 33s;
	animation-iteration-count: infinite;
}

.bg-fade-wrapper:hover .bg-fade {
	/*animation-play-state: paused;*/
}

.bg-fade:nth-child(1) {
	animation-delay: 0s;
}
.bg-fade:nth-child(2) {
	animation-delay: 11s;
}
.bg-fade:nth-child(3) {
	animation-delay: 22s;
}

@keyframes fade-move {
	0% {
		opacity: 0;
		transform: translateX(0%);
	}
	16.66% {
		opacity: 1;
	}
	33.33% {
		opacity: 1;
	}
	48.66% {
		opacity: 0;
	}
	100% {
		opacity: 0;
		transform: translateX(-5%);
		
	}
}


/****************** PROJEKTE ************************/

/* Projekt-Variante A */
/* Infobox: set to only float on tablet and desktop */
@media(min-width: 769px) {
    .float-right {
        float: right;
        width: 32%;
    }
}
/* Projekt-Variante A */
.project-full-image {
    margin-inline: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
}
/* Projekt-Variante A */
/* Desktop only */
@media (min-width: 1025px) {
    .project-full-image {
        margin-inline: calc(-1514px / 2  + 100% / 2);
        max-width: 1514px;
	    width: calc(100vw - 64px);
	   /* padding: 0 2rem;	*/
}
}


/* Projekt-Variante B */
.project-full-image-2 {
    margin-inline: calc(-100vw / 2 + 100% / 2);
    min-width: 100vw;
}
/* Projekt-Variante B */
.project-full-image-2 img {
	width: 100%;
	object-fit: cover;
}


/* =============== WP Search block style, fuer das WP-eigene Suchformular auf 404 oder No-Result Seiten ================= */


.wp-block-search__button.has-icon {
  background-color: var(--accent);
  border-radius: 2px;
  transition: all 0.5s ease 0s;
}

.wp-block-search__button.has-icon:hover {
  background-color: var(--accent-2);
}

.wp-block-search__button svg {
  min-height: 1.6em;
  min-width: 1.6em;
  vertical-align: text-bottom;
}

input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], select, textarea {
  border: 2px solid var(--base-2);
  border-radius: 2px;
  padding: 10px 15px;
  max-width: 100%;
}



/* Footer Navigation block link hover color */
.wp-block-navigation li:hover {
  color: var(--accent-2);
}


