/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/outfit-v15-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/outfit-v15-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* outfit-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/outfit-v15-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/outfit-v15-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/outfit-v15-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/outfit-v15-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* outfit-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/outfit-v15-latin-800.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/outfit-v15-latin-800.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* outfit-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  src: url('fonts/outfit-v15-latin-900.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/outfit-v15-latin-900.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

html {
  scroll-behavior: smooth;
}

body {
	font-family: 'Outfit', sans-serif;	
}

/* Allgemeine Klassen */

strong {
	font-weight: 800;
}

p strong {
	color: var(--contrast-2);
}

/* die im Theme vorgesehen 1.5em sind für Impressum und Datenschutz zu viel, für Startseite aber gut  - Adress-Blöcke ohne p */
body:not(.home) p {
  margin-bottom: 1.2em;
}
body:not(.home) address p {
  margin-bottom: 0;
  font-style: normal;
}
.home p:not(#kontakt p) {
  margin-bottom: 1.5em;
}
.home address p {
  margin-bottom: 0;
} /* Ende Definition Abstand nach Absatz */

address {
	margin-bottom: 2em;
}

.no-margin {
	margin: 0;
}

.no-padding > .wp-block-group__inner-container {
	padding: 0;
}


/* Menü */

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--contrast-2);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a:hover {
  color: var(--accent);
}

/* verhindern, dass das Menü auf Tablet und kleinen Desktop-Auflösungen links am Logo klebt */	
#primary-menu {
	margin-left: 3em;
}


#hero .wp-block-image .alignleft {
	margin: 0;
}

#intro {
	max-width: 24em;
	margin-left: auto;
}

/* Schmalere umschließende Elemente */
.schmal {
	max-width: 22em;
	margin-left: auto;
	margin-right: auto;
}

.card {
	max-width: 22em;
	margin-left: auto;
	margin-right: auto;
}

.card > .wp-block-group__inner-container {
	background-color: #ffffff;
	margin-left: 0.5em;
	margin-right: 0.5em;
}

/* Barrierefreiheit */ 
.screen-reader-text {
	display: none;
}

/* Spalten auf Tablets NUR nebeneinander, wenn Platz dafür reicht */

.tablet-flexibel.wp-block-columns {
	display: flex;
	flex-wrap: wrap !important;
}
	
.tablet-flexibel > .wp-block-column {
	flex: 1 1 320px;
	min-width: 320px;
}

/* Auch Galerie nur dann 3-spaltig, wenn Breite der Einzelelemente > 200px */

.galerie > .wp-block-group__inner-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
padding: 0;
}

.galerie .box {
  flex: 0 0 330px;
  width: 330px;
  box-sizing: border-box;
}

.galerie .box  > .wp-block-group__inner-container {
	padding: 1em 1.2em;
}

.gerundet-oben img {
  border-top-left-radius: 1em;
  border-top-right-radius: 1em;
}

.gerundet-unten img {
  border-bottom-left-radius: 1em;
  border-bottom-right-radius: 1em;
}

.no-padding-bottom > .wp-block-group__inner-container:last-of-type {
  padding-bottom: 0;
}

.no-padding-top > .wp-block-group__inner-container:last-of-type,
.site-footer {
  padding-top: 0;
}

main a:link:not(.wp-block-button__link),
main a:visited:not(.wp-block-button__link) {
	text-decoration: none;
	border-bottom: 5px solid var(--accent);
}

/* Footer */

.site-footer .teaser {
	font-size: 2em;
	line-height: 1.1em;
	max-width: 7em;
}


/* ------------------------------------------------- */

/* Allgemeine Klassen */

a.wp-block-button__link {
	border-radius: 0.5em;
}

.wp-block-button .wp-block-button__link {
	padding: 0.8em 1em;
}

/* Header */

.site-logo {
	background-color: #fff;
}

header#masthead {
	box-shadow: 0 5px 15px 5px rgba(0,0,0,0.25);
	z-index: 10;
}

/* diese Korrektur, damit Hero-Bild wirklich ganz oben am Header bündig ist */
#hero .bildspalte {
	position: relative;
	top: -0.5em;
}
#hero figure img {
	position: relative;
	top: -10px;
}

/* padding-top unterm header entfernen */
.home #post-2 .inside-article {
	padding-top: 0;
}

/* Navigation */

.main-navigation .main-nav ul li a {
	padding-left: 1.1em;
	padding-right: 1.1em;
}

#menu-hauptmenue li:last-of-type a:link,
#menu-hauptmenue li:last-of-type a:visited {
	background-color: var(--accent);
	line-height: 1.6em;
	padding: 0.3em 0.5em;
	border-radius: 0.5em;
	color: #fff;
	margin-left: 0.8em;
	font-weight: 700;
	display: inline-block;
}

/* ------------------ Main ------------------ */

.entry-content .alignwide {
	width: calc(100% + 200px);
	max-width: calc(100% + 200px);
	margin-left: -100px;
}

h1 {
	 padding-bottom: 0.3em;
}

.home h1 {
	font-size: 2.8em;
	text-transform: uppercase;
}


h1 .zeile-1 {
	color: var(--contrast-2);
	display: inline-block;
	padding-bottom: 0;
	margin-bottom: 0.15em;
	max-width: 8em;
	padding-right: 0.2em;
	padding-left: 0.1em;
	border-bottom: 0.2em solid var(--global-color-8);
	padding-left: 0.1em;
	line-height: 1.1em;
}
	
h1 .zeile-2 {
	display: block;
	margin-top: 0.8em;
	font-size: 0.5em;
	line-height: 1.15em;
	font-weight: 600;
	color: var(--accent);
/*	text-transform: none; */
}

/* h2 ohne Großbuchstaben */
#hero h2, #ueber-uns h2 {
	text-transform: none;
}

.teaser {
	text-transform: uppercase;
	color: var(--contrast-2);
	font-weight: 600;
	font-size: 1.25em;
	margin-bottom: 0.2em;
}

.mit-trenner::after {
	display: block;
	content: "";
	margin: 0.4em auto 0.6em auto;
	border-bottom: 12px solid var(--global-color-8);
	max-width: 250px;
}

/* Leistungen */

#neubau {
	background-color: var(--base-2);
}

#sanierung {
	background-color: var(--base);
}

#holzbau {
	background-color: var(--base-2);
}

#sanierung h2 {
	color: var(--contrast-2);
}

#neubau h3, #sanierung h3, #holzbau h3 {
	text-transform: none;
	font-size: 1.9em;
} 

#neubau .teaser, #sanierung .teaser, #holzbau  .teaser {
/*	text-transform: none; */
	margin-bottom: 0.5em;
	color: var(--contrast-2);

}

.runde-ecken,
.card > .wp-block-group__inner-container {
	border-radius: 2em;
}

/* Über uns */

.portrait figure img {
	margin-bottom: 1.2em;
}
	

/* Galerie */

.galerie p {
	margin-top: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--contrast-2);
}

.galerie :where(.wp-block-columns) {
	margin-bottom: 0.2em;
}

/* Rezensionen */

.ghostkit-testimonial-content {
	background-color: var(--base-2);
}


/* zitat-Symbol ausblenden */
.ghostkit-testimonial-icon {
	display: none;
}

.ghostkit-testimonial-name {
	text-align: right;
}

.ghostkit-carousel-arrow {
	background: var(--contrast-3);
	color: #fff;
}

/* Kontaktformular */


#kontakt .ghostkit-icon {
	width: 2.2em;
}

#kontakt .ghostkit-form-field-label {
	margin-bottom: 0;
}

#kontakt input, #kontakt textarea {
	background-color: #fff;
}

.ghostkit-form-field-label .required {
	color: var(--contrast-2);
}


/* ---- Impressum und Datenschutz --- */

body:not(.home) main h2 {
	font-size: 1.8em;
	text-transform: none;
	margin-bottom: 0.8em;
}

body:not(.home) p:has(+ ul) {
  margin-bottom: 0.5em;
}

body:not(.home) main h2:not(:first-of-type) {
	margin-top: 1.4em;
}

body:not(.home) #footer-widgets {
	display: none;
}



/* --- Fußzeile --- */

/* Abstand zwischen main und Fußzeile raus */
.separate-containers .site-main {
	margin-bottom: 0;
}
.home div.inside-article:last-of-type {
	padding-bottom: 0;
}

footer a:link, footer a:visited {
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

/* --------- Breakpoints --------- */

/* --------- ab Tablet-Auflösung  ---------*/
@media (min-width: 769px) {

.home h1 {
	font-size: 3em;
}
	
/* Schmalere umschließende Elemente */
.schmal {
	max-width: 28em;
/*	margin-left: auto;
	margin-right: auto; */
}
	
#sanierung p {
	max-width: 40em;
	margin-left: auto;
	margin-right: auto;
}
	
/* svg-Icons */
	
#hero {
	background: 
    url('hero.svg') no-repeat 20px 0px;
	background-size: 650px auto;
	background-color: transparent;
}
	
#neubau {
	background: url('neubau.svg') no-repeat 0px 120px;
	background-size: 800px auto;
	background-color: var(--base-2);
}

#sanierung {
	background: url('sanierung.svg') no-repeat right 120px;
	background-size: 600px auto;
	background-color: var(--base);
}

#holzbau {
	background: url('holzbau.svg') no-repeat 0px 120px;
	background-size: 800px auto;
	background-color: var(--base-2);
}	
	
	
.portrait {
	float: left;
	width: 50%;
	max-width: 500px;
	padding-right: 1.5em;
	padding-bottom: 1.2em;
}
	
.ueber-uns {
	clear: both;
	overflow: hidden;
}
	
div:has(.portrait)::after {
	content: "";
	display: block;
	clear: both;
}
	
.site-footer .teaser {
	margin-top: 0.5em;
	margin-left: 0.5em;
}
	

}

/* --------- nur für Händi-Auflösungen  ---------*/
@media (max-width: 768px) {

/* Burger-Icon vergrößern */
.menu-toggle .gp-icon svg {
	width: 1.5em;
	height: 1.5em;
}
	
/* Links mobil rechtsbündig */
.main-navigation.toggled .main-nav li {
  text-align: right;
}

/* Anfrage-Link */
#menu-hauptmenue li:last-of-type a:link,
#menu-hauptmenue li:last-of-type a:visited {
	margin: 0.7em 1em 0 0;
    padding: 0.2em 0.8em
}
	
/* Hero Textspalte -> Gruppe mit h1 und Button */
#intro {
	max-width: 22em;
	margin-left: auto;
}

#intro .wp-block-group__inner-container {
	padding: 1em;
}

/* Rezensionen für Händis ausklappbar machen */
.ghostkit-testimonial-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.ghostkit-testimonial.is-open .ghostkit-testimonial-content {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
}

/* --------- nur bis Tablet-Auflösungen  ---------*/
@media (max-width: 1024px) {

/* Hero bis 1024 px beide Spalten untereinander */
#hero {
  flex-direction: column;
}
	
/* für Tablet und Händi */
	
/* Hero für Mobile Geräte:Spalten-Reihenfolge umkehren */
	#hero .textspalte {
	order: 2;
}
	
#hero .bildspalte {
	order: 1;
}
	
/* Textspalte als Card auf Bildspalte */

#hero .bildspalte {
    position: relative;
    z-index: 1;
  }

#hero .textspalte {
    position: relative;
    z-index: 2;
    margin-top: -12em;
	margin-left: auto;
	margin-right: auto;
    background: rgba(255,255,255,0.75);
    padding: 0.5em;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
	max-width: 20em;
  }

	

/* svg-Divider für Rundung bei "Neubau" erst ab Desktop */
	.ghostkit-custom-Z1WQ8G6 {
		display: none;
	}
	
}


/* --------- nur für Tablet-Auflösungen  ---------*/
@media (min-width: 769px) and (max-width: 1024px) {
	
/* weiße Card für Hero */
#hero .textspalte {
    max-width: 27em;	
}

#intro .wp-block-group__inner-container {
	padding: 2em;
}

}


/* --------- nur für Desktop-Auflösungen  ---------*/

@media (min-width: 1025px) {

#hero .textspalte {
	width: 45%;
	min-width: 24em; /* wenn ich das nicht mache, bricht bei 1.024px wieder "wir bauen" um auf 2 Zeilen*/
}
	
#hero .bildspalte {
	width: 55%;
}
	
	
/* Bild im Hero so anpassen, dass es die Höhe ausfüllt */
#hero figure {
	height: 100%;
	width: 100%;
}
	
.home h1 {
	font-size: 3.2em;
}
	
#hero {
	gap: 0; /* reduziert den abstand zwischen text und bild. gap war bei 20 */
}


#hero .wp-block-image img { /* Selektor vereinfacht */
    height: 100%; /*!important; */
	width: 100%;
	object-fit: cover;
  }
	
.inside-header.grid-container {
	max-width: 1400px;
}
	
	
}


@media (min-width: 1600px) {

#hero .textspalte {
	align-self: flex-end; /* weil ich den Platz für "Positionierung unten" auf mobilen Geräten nicht habe. */
	}
	
}
