/*!
Theme Name: Reit und Trainingsstall Niedermayr
Author: Internet Agentur Scherer
Author URI: https://www.ia-scherer.de
Description: Reit & Trainingsstall Niedermayr
*/

/* *****************************************************

	Fonts

***************************************************** */

/* open-sans-300 - 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: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/open-sans-v43-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-300italic - 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: 'Open Sans';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/open-sans-v43-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-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: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v43-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-italic - 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: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/open-sans-v43-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500 - 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: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/open-sans-v43-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500italic - 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: 'Open Sans';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/open-sans-v43-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-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: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/open-sans-v43-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600italic - 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: 'Open Sans';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/open-sans-v43-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-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: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/open-sans-v43-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700italic - 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: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/open-sans-v43-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-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: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/open-sans-v43-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-800italic - 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: 'Open Sans';
  font-style: italic;
  font-weight: 800;
  src: url('fonts/open-sans-v43-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* *****************************************************

	Basics

***************************************************** */

:root {
 --brand: #ad896c;
 --brand-h: #dbcfc8;
 --brand-k: #2f2f2f;
 --braun: #4b4243;
 --orange: #d1603f;
 --white: #ffffff;
 --komp-bg: #3c2121;
}

body {
  overflow-x: hidden;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  color: var(--brand-k);
}

body #wrapper {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

video {
  width: 100%;
  height: auto;
}

p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1 {
  text-align: center;
  color: var(--brand);
  margin-bottom: 3.5rem;
}

p.h1-before {
  text-align: center;
  color: var(--brand);
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px; 
  margin: 10px;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--brand);
  margin-bottom: 3.5rem;
}

p.h2-before {
  text-align: center;
  color: var(--brand);
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px; 
  margin: 3.5rem 10px 10px 10px;
}

h3 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--brand);
  margin-bottom: 3.5rem;
}

p.h3-before {
  text-align: center;
  color: var(--brand);
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px; 
  margin: 3.5rem 10px 10px 10px;
}


img.tribal {
  width: 350px;
  display: block;
  margin: 3.5rem auto 3.5rem auto;
}

.image-frame {
  position: relative;
  display: inline-block;
  margin: 3.5rem auto 3.5rem auto;
}

.image-frame::before,
.image-frame::after {
  content: "";
  position: absolute;
  width: 20%;
  height: 20%;
  border: 3px solid var(--brand);
}

.image-frame::before {
  top: -5%;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.image-frame::after {
  bottom: -5%;
  right: 0;
  border-left: none;
  border-top: none;
}

.image-frame img {
  display: block;
  width: 90%;
  height: auto;
}

.distance {
  margin-top: 3.5rem;
}


/* *****************************************************

	Header

***************************************************** */

body {
  padding-top: 150px; // same as header height
}

header {
  top: 0;
  height: 150px;
  width: 100%;
  position: fixed;
  background: var(--white);
  transition: top 0.2s ease-in-out;
  z-index: 99999;
  border-bottom: 1px solid var(--brand);
}

.nav-up {
  top: -150px;
}


#header img.logo {
  max-width: 500px;
  width: 100%;
  height: auto;
}

#header i.fa-solid {
  color: var(--brand);
  font-size: 3rem;
  transition: color 2.0s ease;
}

#header i.fa-solid:hover {
  color: var(--brand-k);
  font-size: 3rem;
  transition: color 2.0s ease;
}

@media only screen and (max-width: 768px) {
	body {
	  padding-top: 100px; // same as header height
	}
	header {
	  height: 100px;
	  border-bottom: 0px solid var(--brand);
	}
	.nav-up {
	  top: -100px;
	}
	#header .no-mobile-md {
	  display: none !important;
	}
	#header i.fa-solid {
	  font-size: 2rem;
	}
	#header i.fa-solid:hover {
	  font-size: 2rem;
	}
}


/* *****************************************************

	Mobile Menu

***************************************************** */

html {
  overflow-x: hidden;
  margin-right: calc(-1 * (100vw - 100%));
}

#header .custom-offcanvas-top {
  height: 100vh !important;
}

#header button.btn-close.text-reset {
  font-size: 3rem;
  color: var(--brand) !important;
}

@media only screen and (max-width: 768px) {
	#header button.btn-close.text-reset {
	  font-size: 2rem;
	}
}


/* *****************************************************

	Main

***************************************************** */

main#main.container {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

#main a {
  color: var(--brand-k);
  text-decoration: none;
  background-image: linear-gradient(#ad896c, #ad896c);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size .3s;
}

#main a:hover {
  color: var(--brand-k);
  background-size: 100% 2px;
}

#main p.mobile {
  display: none;
}

@media only screen and (max-width: 768px) {
	#main p.mobile {
	  display: block;
	}
	#main p.no-mobile {
	  display: none;
	}
}

/* *****************************************************

	Leistungen

***************************************************** */

body.page-template-page-leistungen #main ol {
  list-style: none;
  counter-reset: list;
  padding: 0 1rem;
}

body.page-template-page-leistungen #main li {
  --stop: calc(100% / 7 * var(--i));
  position: relative;
  counter-increment: list;
  max-width: 65rem;
  margin: 2rem auto;
  padding: 2rem 1rem 1rem;
  box-shadow: 0.1rem 0.1rem 1.5rem rgba(0, 0, 0, 0.3);
  border-radius: 0.25rem;
  overflow: hidden;
  background-color: white;
}

body.page-template-page-leistungen #main li::before {
  content: '';
  display: block;
  width: 100%;
  height: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to right, var(--brand) var(--stop), var(--brand-h) var(--stop));
}

body.page-template-page-leistungen #main h2 {
  display: flex;
  align-items: baseline;
  margin: 0 0 1rem;
  color: var(--brand-k);
}

body.page-template-page-leistungen #main h2::before {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 1rem;
  width: 3rem;
  height: 3rem;
  content: counter(list);
  padding: 1rem;
  border-radius: 50%;
  background-color: var(--brand);
  color: white;
}

@media only screen and (max-width: 992px) {
	body.page-template-page-leistungen #main h2 {
	  font-size: 1.5rem;
	}
}

@media only screen and (max-width: 576px) {
	body.page-template-page-leistungen #main h2 {
	  font-size: 1.2rem;
	  margin: 0 0 2rem;
	  text-align: left;
	}
}


/* *****************************************************

	Trainerin

***************************************************** */

body.page-template-page-trainerin .floating-image {
  max-width: 350px;
  width: 100%;
  float: right;
  margin-top: 0;
  margin-left: 2.5rem;
  margin-bottom: 1.5rem;
}

@media only screen and (max-width: 768px) {
	body.page-template-page-trainerin .floating-image {
display: block;
	  max-width: 95%;
	  float: none;
	  margin: 0 auto;
	  margin-bottom: 1.5rem;
	}

	  
}


/* *****************************************************

	Reitanlage

***************************************************** */

body.page-template-page-reitanlage #main ol {
  list-style: none;
  counter-reset: list;
  padding: 0 1rem;
}

body.page-template-page-reitanlage #main li {
  --stop: calc(100% / 8 * var(--i));
  position: relative;
  counter-increment: list;
  max-width: 65rem;
  margin: 2rem auto;
  padding: 2rem 1rem 1rem;
  box-shadow: 0.1rem 0.1rem 1.5rem rgba(0, 0, 0, 0.3);
  border-radius: 0.25rem;
  overflow: hidden;
  background-color: white;
}

body.page-template-page-reitanlage #main li::before {
  content: '';
  display: block;
  width: 100%;
  height: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to right, var(--brand) var(--stop), var(--brand-h) var(--stop));
}

body.page-template-page-reitanlage #main h2 {
  display: flex;
  align-items: baseline;
  margin: 0 0 1rem;
  color: var(--brand-k);
}

body.page-template-page-reitanlage #main h2::before {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 1rem;
  width: 3rem;
  height: 3rem;
  content: counter(list);
  padding: 1rem;
  border-radius: 50%;
  background-color: var(--brand);
  color: white;
}

@media only screen and (max-width: 992px) {
	body.page-template-page-reitanlage #main h2 {
	  font-size: 1.5rem;
	}
}

@media only screen and (max-width: 576px) {
	body.page-template-page-reitanlage #main h2 {
	  font-size: 1.2rem;
	  margin: 0 0 2rem;
	  text-align: left;
	}
}



/* *****************************************************

	Footer

***************************************************** */


#footer {
  border-top: 8px solid var(--brand);
}

#footer img.logo {
  max-width: 350px;
  width: 100%;
  height: auto;
}

#footer .line {
  border-top: 4px solid var(--brand);
}



#footer img.location {
  max-width: 350px;
  width: 100%;
  height: auto;
}

#footer i.fa-solid {
  color: var(--brand);
  font-size: 3rem;
  transition: color 2.0s ease;
}

#footer i.fa-solid:hover {
  color: var(--brand-k);
  font-size: 3rem;
  transition: color 2.0s ease;
}

#footer i.fa-brands {
  color: var(--brand);
  font-size: 3rem;
  transition: color 2.0s ease;
}

#footer i.fa-brands:hover {
  color: var(--brand-k);
  font-size: 3rem;
  transition: color 2.0s ease;
}

@media only screen and (max-width: 768px) {
	#footer img.location {
	  display: none;
	}
}


/* *****************************************************

	Footer Bottom

***************************************************** */

#footer .bottom {
  background-color: var(--brand-k);
  color: var(--white);
  border-top: 1px solid var(--brand);
}

#footer .bottom a {
  color: var(--white);
  text-decoration: none;
  background-image: linear-gradient(#ffffff, #ffffff);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size .3s;
}

#footer .bottom a:hover {
  color: var(--white);
  background-size: 100% 2px;
}


@media only screen and (max-width: 768px) {
	#footer p {
	  text-align: center;
	}
}








