/*
Theme Name: 2022-Child
Author: Jens C. Spranger
Author URI: https://dynamique.de
Description: Anpassungen für Schriftarten
Template: twentytwentytwo
*/

/*
 * Font smoothing.
 * This is a niche setting that will not be available via Global Styles.
 * https://github.com/WordPress/gutenberg/issues/35934
 */

 @font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-VariableFont_wght.ttf') format('ttf');
 }

/*
 * Startseite anpassen *
 */

body.page-id-2689 .wp-block-post-content {
    margin: 0 auto;
    width: 95vh;
    max-width: 820px;
    max-width: 100vw;
}
 .wp-swiper.is-style-100vh .swiper-wrapper {
     height: 77vh;
 }

 .wp-swiper.is-style-100vh .wp-swiper__overlay-img {
     left: 20%;
     right: 20%;
 }

.wp-block-image.pfeiferlogo {
     position: absolute;
     top: 50%;
     left: 20%;
     right: 20%;    transform: translate(0, -50%);
 }

 .wp-swiper.is-style-100vh .wp-swiper__slide .wp-swiper__slide-content {
   height: 100%
 }

div.wp-block-group {
	border-width: 0;
	border-style: none;
}

/* Header und Footer auf der Startseite ausbelnden und Abstaende anpassen.
body.home header, body.home footer {
	display: none;
}

body.home div.wp-block-post-content {
	margin-top: 0;
}

footer div.wp-block-group {
  padding-top: 0 !important;
}
/* ----- ----- ----- ----- ----- */

/*
 * Beitraege anpassen *
 */

/* Beitragsbilder auf den Beitragsseiten ausblenden */
figure.wp-block-post-featured-image {
	display: none !important;
	}

/* Hoehe und Groesse der Ueberschriften und Texte korrigieren */
h1.wp-block-post-title {
	margin-bottom: 0 !important;
	font-size: xx-large;
}

h2, h3 {
	font-size: xx-large;
}

h4 {
	font-size: x-large;
	font-weight: 300;
	}

	p {
		font-weight: 300;
	}
	div.wp-block-post-content > ul > li > a {
		font-size: xx-large;
	  text-decoration: none;
	  font-weight: 300;
	}

/* Hoehe des Spacers korrigieren
div.wp-block-spacer {
	height: 16px !important;
}

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

div.wp-container-12 {
  display: none;
}

 body.page div.wp-block-post-content a {
   text-decoration: none;
   font-style: normal;
}

body.page-id-1820 div.wp-block-post-content a {
  text-decoration: none;
  font-style: normal;
}

body.page div.wp-block-group h1, body.page div.wp-block-group hr {
  display: none;
}

nav, div.wp-block-latest-posts__post-excerpt {
  font-weight: 300;
}

@media screen and (min-width: 1000px) {
  div.wp-block-latest-posts__featured-image img {
    max-height: 220px !important;
    min-width: 330px !important;
  }
  wp-block-navigation ul, .wp-block-navigation ul li {
      list-style: none;
      padding: 0 1rem;
  }
}

@media screen and (max-width: 999px) and (min-width: 850px) {
  div.wp-block-latest-posts__featured-image img {
    max-height: 180px !important;
    min-width: 270px !important;
  }
  wp-block-navigation ul, .wp-block-navigation ul li {
      list-style: none;
      padding: 0 2rem;
  }

}

@media screen and (max-width: 849px) and (min-width: 700px) {
  div.wp-block-latest-posts__featured-image img {
    max-height: 150px !important;
    min-width: 225px !important;
  }
  wp-block-navigation ul, .wp-block-navigation ul li {
      list-style: none;
      padding: 0 1.2rem;
  }
}

@media screen and (max-width: 699px) and (min-width: 600px) {
  div.wp-block-latest-posts__featured-image img {
    max-height: 120px !important;
    min-width: 180px !important;
  }
}

@media screen and (max-width: 599px) {
  ul.wp-block-latest-posts__list {
    display: inline !important;
  }

  .home div.wp-site-blocks {
    padding: 0;
  }

  div.wp-container-7 {
    float: none;
    display: inherit;
  }

  nav.is-responsive {
    padding-left: 45vw;
  }

}
