*, 
*::before, 
*::after {
    box-sizing: border-box;
    margin: 0;
}
  
body {
    line-height: 1.5;
    overflow-x: hidden;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
}

::selection {
    background-color: rgba(197, 170, 88, 0.8);
    color: black;
}

/*fonts*/
@font-face {
    font-family: 'Oswald';
    src: url(fonts/oswald/Oswald-Light.woff2) format('woff2');
    font-weight: 300;
}

@font-face {
    font-family: 'Oswald';
    src: url(fonts/oswald/Oswald-Regular.woff2) format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Oswald';
    src: url(fonts/oswald/Oswald-Medium.woff2) format('woff2');
    font-weight: 500;
}

@font-face {
    font-family: 'Raleway';
    src: url(fonts/raleway/raleway-regular-webfont.woff2) format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Raleway';
    src: url(fonts/raleway/raleway-medium-webfont.woff2) format('woff2');
    font-weight: 500;
}

@font-face {
    font-family: 'Raleway';
    src: url(fonts/raleway/raleway-bold-webfont.woff2) format('woff2');
    font-weight: 600;
}

@font-face {
    font-family: 'Roboto';
    src: url(fonts/roboto/roboto-light-webfont.woff2) format('woff2');
    font-weight: 300;
}

@font-face {
    font-family: 'Roboto';
    src: url(fonts/roboto/roboto-regular-webfont.woff2) format('woff2');
    font-weight: 400;
}

/*typo*/
.text-primary,
.list-primary {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5em;
    color: rgba(0, 0, 0, 0.7);
}

.text-article {
    padding-bottom: 1.25rem;
}

.text-gap {
    p:not(:last-of-type) { 
        margin-bottom: 1em;
      }
}

.text-start {
    text-align: justify;
}

@media (min-width: 120em) {
    .text-primary,
    .list-primary {
        font-size: 1.125rem;    
    }
    .text-gap {
        p:not(:last-of-type) { 
            margin-bottom: 1.125em;
          }
    }
}

.list-primary {
    list-style-position: outside;
    text-align: start;
    padding: 1rem 0 4rem 1rem;
}

.list-primary li::marker {
    color: #C5AA58;
}

.list-primary li:not(:last-of-type) {
    margin-bottom: 1em;
}

@media (min-width: 120em) {
    .text-start,
    .list-start {
        font-size: 1.25rem;    
    } 
}

.content-link,
.content-color {
    color: #C5AA58;
}

.content-link:hover {
    color: #C47958;
}

/*buttons*/
.container-button-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
}

@media (min-width: 50em) {
    .container-button-gallery {
        transform: translateY(-10rem) ;
    }
}

@media (min-width: 51.25em) {
    .container-button-gallery {
        transform: translateY(0) ;
    }
}

@media (min-width: 75em) {
    .container-button-gallery {
        padding-bottom: 2rem;
    }
}

.button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.5rem;
    width: 7.5rem; /*padding: 0.7rem 2.8rem;*/
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

@media (min-width: 50em) {
    .button {
        height: 3rem;
        width: 9rem;
    }
}

.button:focus {
    outline: 2px solid #C5AA58;
}

.button:hover {
    background-color: #C5AA58;
    color: white;
    transition: 0.3s;
}

.button--article {
    left: 50%;
    transform: translate(-50%, 0%);
}

@media (min-width: 81.25em) {
    .button--article {
        left: 0%;
        transform: translate(0%, 0%);
    } 
}

.button--submit {
    height: 3rem;
    width: 9rem;
    border: transparent;
    cursor: pointer;
    margin-inline: auto;
}

.button--reduced {
    margin-inline: auto;
}

@media (min-width: 50em) {
    .button--reduced {
        margin: 0;
    }
}

.form__button {
    padding: 2.5rem 0 8rem 0;
    text-align: center;
}

.contact__button {
    text-align: center;
    margin-top: 2.5rem;
}

.contact__button::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #C5AA58;
    margin-top: 8rem;
    margin-bottom: 9rem;
}

.button-side {
    width: 6rem;
    height: 3.5rem;
    background-color: #C5AA58;
    border-radius: 0.5rem 0 0 0.5rem;
    box-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    position: fixed;
    left: 100%;
    top: 30%;
    transform: translate(-100%, -50%);
    z-index: 800;
    display: flex;
    justify-content: start;
    align-items: center;
    transform: translateX(-4.5rem);
    transition: 0.3s;
}

.button-side__link {
    font-family: 'Oswald', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: white;
    text-align: start;
    text-decoration: none;
    padding: 0.5rem 0.5rem 0.5rem 0.7rem;
    transition: 0.3s;
}

.button-side:hover {
    background-color: white;
    transform: translateX(-6rem);
    transition: 0.3s;
    
    .button-side__link {
        color: #C5AA58;
        transition: 0.3s;
    }
}

@media (min-width: 50em) {
    .button-side {
        height: 4rem;
    }
}

@media (min-width: 120em) {
    .button-side {
        background-color: white;
        transform: translateX(-5rem);
    }
    .button-side__link {
        color: #C5AA58;
    }
    .button-side:hover {
        background-color: #C5AA58;
        
        .button-side__link {
            color: white;
            transition: 0.3s;
        }
    } 
}

@media (min-width: 120em) {
    .button-side {
        top: 40%;
        width: 6rem;
        height: 4rem;
    }
}
/*---*/


/*container layout*/
.container-outside {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

.container-layout { 
    max-width: 100rem;
    height: 100%; /*des parent*/
    margin-inline: auto;
    padding: 0 2rem;
}

.container-layout--start {
    position: relative;
}

/*checkbox burger*/
.checkbox {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    visibility: hidden;
}

/*header*/
.header {
    padding: 0.75rem 0;
}

.container-layout--header { 
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

@media (min-width: 81.25em) {
    .container-layout,
    .container-layout--header,
    .container-layout--heading,
    .container-layout--main-content,
    .container-layout--main-forms,
    .container-layout--footer {
        padding: 0 4rem;
    }
}

@media (min-width: 120em) {
    .container-layout,
    .container-layout--header,
    .container-layout--heading,
    .container-layout--main-content,
    .container-layout--main-forms,
    .container-layout--footer {
        padding: 0 2rem;
    }
}

.header__item-hidden {
    width: 2rem;
    height: 1.625rem;
    visibility: hidden;
}

.header__logo {
    display: block;
    width: 3rem;
    margin-inline: auto;
    transition: 0.3s
}

@media (min-width: 80em) {
    .header__logo {
        width: 3.25rem;
    }
}

.logo {
    width: 100%;
    transition: 0.3s;
}

.logo:hover {
    fill: #C5AA58;
    transition: 0.3s;
}

/*burger*/
.burger { 
    width: 2rem;
    height: 1.625rem;
    display: flex; 
    flex-direction: column;
    justify-content: space-between
}

.burger:hover {
    cursor: pointer;
}

.burger__line { 
    display: block; 
    height: 0.225rem; 
    max-width: 100%; 
    background-color: #C5AA58;
    border-radius: 1rem; 
    transition: 0.5s linear;
}

.checkbox:checked ~ .header { 
    .burger .burger__line-top { 
        transform-origin: left; /*drehnung an linkem ende der linie*/
        transform: rotate(45deg);
        transition: 0.5s ease-in-out;
    }
    .burger .burger__line-middle {
        transform: scaleY(0); /*aus horizontaler richtung auf null reduzieren*/
        transition: 0.25s ease-in-out;
    }
    .burger .burger__line-bottom {
        transform-origin: left;
        transform: rotate(-45deg);
        transition: 0.5s ease-in-out;
    }
}

/*main content*/
.main-content {
    flex-grow: 1; 
    flex-shrink: 0;
    flex-basis: 0; /*flex für sticky footer*/
    overflow: hidden;
}

.container-layout--main-content {
    display: flex; 
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center; 
}

@media (min-width: 80em) {
    .container-layout--main-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline; 
    }
}

.main-content-relative { /*parent von sidenav absolute*/
    width: 100%;
    height: 100%;
    position: relative;
}

.main-content-scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}

/*startseite*/
.video-start {
    min-height: 100%;
    position: fixed;
    left: 0;
    bottom: 4rem;
    object-fit: cover;
    z-index: -100;
}

.checkbox:checked ~ .video-start {
    filter: blur(0.5rem);
    transform: scale(1.03);
    transition: 0.5s;
}

@media (min-width: 120em) {
    .checkbox:checked ~ .video-start {
        filter: blur(0.5rem);
        transform: scale(1.015);
        transition: 0.5s;
    }
}

@media (max-height: 30em) {
    .background-start {
        visibility: hidden;
    }
}

.start-item-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

@media (min-width: 80em) {
    .start-item-container {
        width: 100%;
        height: fit-content;
        flex-direction: row;
        justify-content: space-between;
        position: absolute;
        top: 52%;
        padding-right: 8rem; /*ausgleich paddings container-layout*/
    }
}

@media (min-width: 120em) {
    .start-item-container {
        padding-right: 4rem;
    }
}

.start-item {
    display: block;
    transition: 0.7s;
}

.start-item__link {
    display: flex;
    transition: 0.3s;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.start-item__link-text {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: normal;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); 
    color: #C5AA58;
}

@media (min-width: 80em) {
    .start-item__link-text {
        font-size: 3.5rem;
    }
    /*.start-item {
        padding-top: 45vh;
    }
    @media (max-height: 30em) {
        .start-item {
            padding-top: 25vh;
        }
    }*/
}

@media (max-width: 20.625em) {
    .start-item__link-text {
        font-size: 2rem;
    }
}

.start-item__link-text::after {
    content: '';
    display: block;
    width: 100%;
    height: 0.1em;
    background-color: #C5AA58;
    opacity: 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); 
    transition: 0.3s;
}

.start-item__link:hover {
    .start-item__link-text::after {
        opacity: 1;
        transition: 0.3s;
    }
}

.start-item__link:visited {
    color: #C5AA58;
}

/*sidenav*/
.sidenav-start {
    min-width: 100vw;
    height: 100%;
    position: relative;
    bottom: 100%; /*top: -100%;*/ 
    transform: translateX(150%);
    transition: 0.7s linear;
}

.sidenav__background {
    background-color: white;
    width: 100%; /*des parent*/
    min-height: 100%;
    position: absolute;
    top: 0; /*bezug auf parent*/
    left: 0;
    z-index: -10; /*hinter items*/
    transition: 0.7s linear; /*sidenav und background synchron*/
}

@media (max-height: 47.5em) {
    .sidenav-start {
        overflow-y: auto;
        overflow-x: hidden;
    }   
    .sidenav__background {
        height: calc(100% * 1.8);
    }
}

.sidenav-sub {
    min-width: 100vw;
    height: 100%;
    position: absolute;
    z-index: 1000;
    top: 0;
    transform: translateX(150%);
    transition: 0.7s linear;
}

@media (max-height: 47.5em) {
    .sidenav-sub {
        overflow-y: auto;
        overflow-x: hidden;
    }   
    .sidenav__background {
        height: calc(100% * 1.8);
    }
}

.sidenav__menu { 
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-end;
    text-align: end;
    padding-right: 2rem;
}

.sidenav__menu-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.sidenav__link,
.sidenav__sublink,
.sidenav__sublink--secondary {
    text-decoration: none;
}

.sidenav__link--split {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    transition: 0.3s;
}

.sidenav__link-text {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: normal;
    color: #C5AA58;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 0.09em;
    transition: 0.3s;
}

.sidenav__sublink-text {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    color: #C5AA58;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 0.045em;
    transition: 0.3s;
}

.sidenav__link-text:hover,
.sidenav__sublink-text:hover {
    text-decoration-color: #C5AA58;
    transition: 0.3s;
}

.sidenav__link--split:hover {
    .sidenav__link-text {
        text-decoration-color: #C5AA58;
        transition: 0.3s;
    }
}

.sidenav__sublink-text--secondary {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
    text-decoration-color: transparent;
    text-decoration-thickness: 0.045em;
    transition: 0.3s;
}

.sidenav__sublink-text--secondary:hover {
    text-decoration-color: rgba(0, 0, 0, 0.6);
    transition: 0.3s;
}

@media (max-height: 52.5em) {
    .sidenav__items {
        justify-content: start;
        padding-top: 0.5rem;
        gap: 0.75rem;
    }
    .sidenav__link-text {
        font-size: 1rem;
    }
    .sidenav__sublink-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    .sidenav__sublink-text--secondary {
        font-size: 0.875rem;
        line-height: 1.6;
    }
}

.checkbox:checked ~ .main-content { /*danach-selektor: elemente müssen dasselbe parent haben*/
    .start-item {
        opacity: 0;
        transition: 0.5s;
    }
    .sidenav-start {
        transform: translateX(0);
        transition: 0.7s linear;
    } 
    .sidenav-sub {
        transform: translateX(0);
        transition: 0.7s linear;
    } 
    .sidenav__background {
        transform: translateX(0);
        transition: 0.7s linear;
    }
    @media (min-width: 62.5em) { /*ab hier sidenav-background breite 50%*/
        .sidenav__background {
            transform: translateX(66%); 
            transition: 0.7s linear;
        }
    }
}

/*main subpage*/
.main-content-relative {
    width: 100%;
    height: 100%;
    position: relative;
}

.main-content-scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}

/*headings*/
.heading {
    position: relative;
    max-width: 100%;
    height: 15.5rem;
    margin-bottom: 2.5rem;
}

.heading__image {
    max-width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: local;
}

.heading__video-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.heading__image::before,
.heading__video-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 66%,rgba(0, 0, 0, 0.8) 100%);
    z-index: 200;
}

.heading__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.heading__image--reitschule {
    background-image: url(images/reitschule/reitschule-start.webp);
    background-position: 50% 15%;
}

.heading__image--ueber-uns {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%,rgba(0, 0, 0, 0.8) 100%), url(images/about/ueber-uns-start.webp);
    background-position: 50% 0%;
}

.container-layout--heading {
    position: relative;
}

.heading__headline {
    position: absolute;
    top: 60%;
    z-index: 200;
    transition: 0.5s;
}

.heading__headline-container--video {
    width: 100%;
    position: absolute;
    top: 60%;
    z-index: 200;
    transition: 0.5s;
}

.heading__headline-text,
.heading__subheadline-text {
    font-family: 'Oswald', sans-serif;
    font-size: 2.25rem;
    font-weight: 500;
    color: #C5AA58;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); 
}

.heading__subheadline-text {
    font-size: 0.8125rem;
}

.checkbox:checked ~ .main-content {
    .main-content-scroll {
        filter: blur(0.5rem);
        transform: scale(1.03);
        transition: 0.5s;
    }
}

.checkbox:checked ~ .main-content {
    .heading__video,
    .heading__image {
        filter: blur(0.5rem);
        transform: scale(1.03);
        transition: 0.5s;
    }
    .heading__headline-container--video,
    .heading__headline{
        opacity: 0;
        transition: 0.5s;
    }
}

@media (min-width: 50em) {
    .heading {
        height: 26rem;
        margin: 0;
    }
    .heading__headline-text {
        font-size: 3.5rem;
    }
    .heading__subheadline-text {
        font-size: 1.25rem;
    }
}

@media (min-width: 51.25em) {
    .heading {
        height: 28rem;
    }
}

@media (min-width: 81.25em) {
    .heading {
        height: 100%;
        margin-bottom: 0;
    }
    .heading__headline-text {
        font-size: 8rem;
    }
    .heading__subheadline-text {
        font-size: 2.5rem;
    }
}

@media (min-width: 120em) {
    .heading {
        height: 100%;
        margin-bottom: 0;
    }
    .heading__headline-text {
        font-size: 8rem;
    }
    .heading__subheadline-text {
        font-size: 2.5rem;
    }
}

/*breadcrumbs*/
.breadcrumb {
    max-width: 100%;
    height: 0;
    visibility: hidden;
}

@media (min-width: 50em) {
    .breadcrumb {
        height: auto;
        padding: 1.5rem 0;
        visibility: visible;
    }
}

.breadcrumb__trail {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0;
    list-style: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
}

.breadcrumb__trail-item:not(:last-of-type):after { /*alle items außer last*/
    content: ">";
    font-family: 'Raleway';
    margin-right: 0.4rem; /*margin after, not last item*/
    margin-left: 0.25rem;
}

.breadcrumb__trail-item:last-of-type {
    .breadcrumb__trail-item-link {
        color: #C5AA58;
        transition: 0.3s;
    }
}

.breadcrumb__trail-item:hover ~ .breadcrumb__trail-item:last-of-type {
    .breadcrumb__trail-item-link {
        color: rgba(0, 0, 0, 0.4);
        transition: 0.3s;
    }
}

.breadcrumb__trail-item-link {
    padding: 0;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.4);
    transition: 0.3s;
}

.breadcrumb__trail-item-link:visited { /*muss vor hover kommen*/
    color: inherit;
}

.breadcrumb__trail-item-link:hover {
    color: #C5AA58;
    transition: 0.3s;
}

.main-content__articles { 
    max-width: 100rem;
    margin-inline: auto;
    padding: 0 2rem;
}

@media (min-width: 81.25rem) {
    .main-content__articles {
        display: flex;
        flex-direction: row;
        gap: 8rem;
        padding: 6rem 4rem 6rem 4rem;
    }
    .article-content__container::after {
        visibility: hidden;
        margin: 0;
    }
}

@media (min-width: 120rem) {
    .main-content__articles {
        display: flex;
        flex-direction: row;
        gap: 20rem;
        padding: 6rem 2rem 6rem 2rem;
    }
}

.article-content {
    width: 100%;
}

.article-content__container::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #C5AA58;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content__headline {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #C5AA58;
}


@media (min-width: 50em) {
    .article-content__headline {
        font-size: 1.75rem;
    }
    .text-article {
        padding-bottom: 1.5rem;
    }
    .article-content__container::after {
        margin-top: 2.5rem;
    }
}

@media (min-width: 120em) {
    .article-content__headline {
        font-size: 2.25rem;
    }
    .text-article {
        font-size: 1.25rem;
        padding-bottom: 2rem;
    }
    .article-content__container::after {
        visibility: hidden;
        margin: 0;
    }
}

/*heading subpage*/
.heading-subpage__headline {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #C5AA58;
    padding-top: 2rem;
}

.heading-subpage__headline--gallery {
    margin-bottom: 1.5rem;
}

@media (min-width: 50em) {
    .heading-subpage__headline {
        padding-top: 0;
    }
}

.heading-subpage::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #C5AA58;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 50em) {
    .heading-subpage__headline {
        font-size: 2.5rem;
    }
    .heading-subpage::after {
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 120em) {
    .heading-subpage__headline {
        font-size: 4rem;
    }
    .heading-subpage::after {
        margin-bottom: 4.5rem;
    }
    .heading-subpage__headline--gallery {
        font-size: 3.5rem;
    }
}

/*content subpages*/
.content-subpage {
    width: 100%;
}

@media (min-width: 81.25em) {
    .content-subpage__wrapper {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }
}

.content-subpage__container,
.content-subpage__container--single,
.content-subpage__container--double,
.content-subpage__container--simple {
    width: 100%;
}

.content-subpage__container:last-of-type {
    margin-bottom: 2rem;    
}

@media (min-width: 50em) {
    .content-subpage__container {
        display: flex;
        gap: 4rem;    
    }
    .content-subpage__container--double {
        display: flex;
        gap: 2rem; 
    }
    .content-subpage__container--single {
        width: 50%;
        padding-right: 2rem; /*50% des gap item-container*/
    }
}

@media (min-width: 120em) {
    .content-subpage__container {
        display: flex;
        gap: 16rem;
    }
    .content-subpage__container:last-of-type {
        margin-bottom: 4rem;    
    }
}

@media (min-width: 120em) {
    .content-subpage__container--double {
        display: flex;
        gap: 2rem;
    }
    .content-subpage__container--single {
        padding-right: 8rem; /*50% des gap item-container*/
    }
}

@media (min-width: 50em) {
    .content-subpage__item {
        width: 50%;
    }
    .content-subpage__container--single {
        .content-subpage__item {
            width: 100%;
        }
    }
}

.content-subpage__item::after,
.content-subpage__container--simple:not(:last-of-type)::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #C5AA58;
    margin-bottom: 6rem;
}

@media (min-width: 120em) {
    .content-subpage__item::after {
        margin-top: 2rem;
        margin-bottom: 8rem;
    }
}

.content-subpage__container--simple:after {
    margin-top: 5.75rem;
}

.content-subpage__wrapper:last-of-type,
.content-subpage__container:last-of-type {
    .content-subpage__item:last-of-type::after {
        visibility: hidden;
        margin: 0;
    }
}

@media (min-width: 50em) {
    .content-subpage__wrapper:last-of-type,
    .content-subpage__container:last-of-type {
        .content-subpage__item::after {
            visibility: hidden;
            margin: 0;
        }
    }
}

.content-subpage__container--single {
    .content-subpage__item::after {
        display: none;
    }
}

.content-subpage__container--simple {
    .content-subpage__item:not(:first-of-type):after {
        display: none;
    }
    .content-subpage__item:first-of-type:after {
            margin-top: 5.75rem;
    }
}

.content-subpage__container--simple:last-of-type,
.content-subpage__container--single:last-of-type {
    margin-bottom: 6rem;
}

@media (min-width: 50em) {
    .content-subpage__container--simple {
        .content-subpage__item:after {
            display: none;
        }
    }
}

.content-subpage__wide {
    padding: 3rem 0 0 0;
}

.content-subpage__headline--text-block {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #C5AA58;
    padding-bottom: 0.5em;
}

.content-subpage__subheadline--text-block {
    font-family: 'Oswald', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #C5AA58;
    padding-bottom: 0.5em;
}

.content-subpage__text-block {
    text-align: justify;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 62.5em) {
    .content-subpage__container--reduced {
        display: flex;
        gap: 8rem;
    }
    .content-subpage__item--reduced {
        width: 50%;
    }
    .content-subpage__text-block {
        text-align: justify;
        padding-top: 0;
        padding-bottom: 2.5rem;
    }
}

@media (min-width: 120em) {
    .content-subpage__container--reduced {
        gap: 12rem;
    }
}

.content-subpage__image-container {
    position: relative;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

.content-subpage__icon-container {
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 8%;
    left: 6%;
}

.content-subpage__image {
    width: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.content-subpage__image--background {
    background-color: black;
}

.icon-photos-more {
    width: 100%;
    transition: 0.3s;
}

.content-subpage__image-container:hover {
    .image-more {
        filter: brightness(0.6);
        transition: 0.3s;
    }
    .icon-photos-more {
        transform: scale(1.2);
        transition: 0.3s;
    }  
}

.content-subpage__headline {
    font-family: 'Oswald', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #C5AA58;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.content-subpage__headline--list {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #C5AA58;
}

@media (min-width: 120em) {
    .content-subpage__headline {
        font-size: 1.5rem;
        padding-top: 3rem
    }
    .content-subpage__headline--list {
        font-size: 2.25rem;
    }
}

.content-subpage__details {
    position: relative;
    padding-bottom: 10rem;
}

.content-subpage__teaser {
    width: 100%;
    position: absolute;
    list-style: none;
}

.content-subpage__opener {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #C5AA58;
    cursor: pointer;
}

@media (min-width: 120em) {
    .content-subpage__teaser{
        font-size: 1.125rem;
    }
    .content-subpage__opener {
        font-size: 1.125rem;
    }
}

.content-subpage__hidden {
    opacity: 0;
}

.content-subpage__closer {
    width: 1rem;
    position: absolute;
    top: 100%;
    left: 100%;
    transform: translate(-100%, -2rem);
    cursor: pointer;
    visibility: hidden;
}

.content-subpage__details[open] {
    padding-bottom: 4rem;
    .content-subpage__opener {
        position: absolute;
    }
    .content-subpage__teaser {
        position: static;
    }
    .content-subpage__opener {
        visibility: hidden;
    }
    .content-subpage__hidden {
        opacity: 1;
        transition: 0.9s;
    }
    .content-subpage__closer {
        visibility: visible;
        width: 1.25rem;
    }
}

.content-subpage__jobs {
    padding-bottom: 2rem;
}

/*subpage anfrage*/
@media (min-width: 120em) {
    .container-layout--forms {
        width: 80%;
        margin-inline: auto;
    }
}

.heading-subpage--form {
    width: 100%;
}

.heading-subpage__headline--form {
    font-size: 3rem;
    padding-bottom: 2.5rem;
}

.request__checkbox-wrapper {
    width: 100%;
    /*display: none;*/
}

.request__checkbox-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
  
.request__checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
}

@media (min-width: 50em) {
    /*.request-checkbox__wrapper {
        display: block;
    }*/
    .request__checkbox-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

#checkbox-reitschule,
#checkbox-pension,
#checkbox-ausbildung,
#checkbox-paedagogik {
    position: absolute;
    left: 0.5rem;
    visibility: hidden;
}

#checkbox-reitschule {
    top: 0.5rem;
}

#checkbox-pension {
    top: 1.5rem;
}

#checkbox-ausbildung {
    top: 2.5rem;
}

#checkbox-paedagogik {
    top: 3.5rem;
}

.checkbox-round {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1px solid #C5AA58;
    background-color: white;
    cursor: pointer;
    transition: 0.1s;
}

.checkbox-round:hover {
    border: 2px solid #C5AA58;
}
  
.checkbox-round:after { /*der haken*/
    content: "";
    width: 0.75rem;
    height: 0.4rem;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    transform-origin: 30% 30%;
    opacity: 0;
    transition: 0.1s;
}

.request__checkbox-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #C5AA58;
}

.request__checkbox-title > span {
    display: none;
}

@media (min-width: 50em) {
    .request__checkbox-title > span {
        display: inline;
    }
}

#checkbox-reitschule:checked ~ .checkbox-round:first-of-type,
#checkbox-pension:checked ~ .checkbox-round:first-of-type,
#checkbox-ausbildung:checked ~ .checkbox-round:first-of-type,
#checkbox-paedagogik:checked ~ .checkbox-round:first-of-type,
#checkbox-confirm:checked ~ .checkbox-round:first-of-type {
    background-color: #C5AA58;
    border-color: #C5AA58;
    transition: 0.3s;
}

#checkbox-reitschule:checked ~ .checkbox-round:first-of-type:after,
#checkbox-pension:checked ~ .checkbox-round:first-of-type:after,
#checkbox-ausbildung:checked ~ .checkbox-round:first-of-type:after,
#checkbox-paedagogik:checked ~ .checkbox-round:first-of-type:after,
#checkbox-confirm:checked ~ .checkbox-round:first-of-type:after {
    opacity: 1;
    transition: 0.3s; 
}

/*formulare*/
.contact,
.request {
    width: 100%;
}

.form__input-item {
    width: 100%;
}

@media (min-width: 50em) {
    .form__input-item {
        display: flex;
        gap: 0.5rem;
    }
    .form__input-twofold {
        width: 50%;
    }
    .form__input-threefold {
        width: 33.33%;
    }
}

.form__input,
.form__textarea {
    display: block;
    width: 100%;
    border: 1px solid #C5AA58;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    margin-right: -0.5rem; /*ausgleich gap*/
}

.form__input {
    height: 4rem;
}

.form__textarea {
    height: 10rem;
    resize: none;
}

.form__input::-webkit-outer-spin-button,
.form__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form__input[type=number] {
    -moz-appearance: textfield;
} 

.form__input:focus,
.form__textarea:focus,
.form__input:hover,
.form__textarea:hover {
    border: none;
    outline: 2px solid #C5AA58;
}

.form__input:invalid {
    border: none;
    outline: 2px solid lightcoral;
}

.form__input::placeholder,
.form__textarea::placeholder {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    color: #C5AA58;
}

.warning-mail, 
.warning-age,
.warning-height,
.warning-weight {
    font-family: 'Raleway', sans-serif;
    color: lightcoral;
    transition: 0.3s;
    display: none;
}

#email:invalid ~ .warning-mail {
    transition: 3s;
    display: inline-block;
    margin-bottom: 2rem;
} 

#age:invalid ~ .warning-age {
    transition: 3s;
    display: inline-block;
    margin-bottom: 2rem;
}   

#height:invalid ~ .warning-height {
    transition: 3s;
    display: inline-block;
    margin-bottom: 2rem;
}

#weight:invalid ~ .warning-weight {
    transition: 3s;
    display: inline-block;
    margin-bottom: 2rem;
} 

.form__legend {
    margin-top: 2rem;
}

.form__legend-duty{
    font-family: 'Oswald';
    font-size: 2rem;
    font-weight: 500;
    color: #C5AA58;
}

.form__confirm {
    position: relative;
    display: flex;
    align-items: start;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem 0 2rem 0;
}

@media (min-width: 50em) {
    .form__confirm {
        flex-direction: row-reverse;
        justify-content: start;
        align-items: center;
    }
}

#checkbox-confirm {
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translate(60%, -20%);
    z-index: -100;
}

.heading-subpage__text-form {
    padding-bottom: 2.5rem;
}
/*---*/

/*einbindung instagram*/
.container-instagram {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 37.5em) {
    .container-instagram {
        align-items: center;
        background-color: gainsboro;
        border-radius: 0.5rem;
    }
}

@media (min-width: 75em) {
    .container-instagram {
        flex-direction: row;
        gap: 4rem;
        align-items: flex-start;
        background-color: transparent;
    }
}

@media (min-width: 120em) {
    .container-instagram {
        flex-direction: row;
        gap: 18rem;
        align-items: flex-start;
        background-color: transparent;
    }
}

.container-button-instagram {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/*adress box*/
.adress-box--contact {
    width: 100%;
    border: 1px solid #C5AA58;
    border-radius: 0.5rem;
    padding: 1rem 2rem 1rem 2rem;
}

@media (min-width: 40.625em) {
    .adress-box--contact {
        display: flex;
        align-items: center;
    }
}

.adress-box--formal {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0 0 0;
}

.adress-box__content {
    display: inline-block;
    color: #C5AA58;
}

.adress-box__headline {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5em;
    padding-bottom: 1em;
}

.adress-box__adress {
    font-family: 'Raleway';
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5em;
}

.adress-box__adress:not(:last-of-type) {
    padding-bottom: 1em;
}

.adress-box__image-container {
    max-width: 50%;
    margin-top: 1rem;
}

.adress-box__image {
    width: 100%;
    object-fit: cover;
    background-color: white;
    box-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

@media (min-width: 40.625em) {
    .adress-box__image-container {
        margin-top: 0;
        margin-left: auto;
    }
}

.iframe-contact { 
    width: 100%;
    height: 20rem;
    border-radius: 0.5rem;
    border: 1px solid #C5AA58;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

/*footer*/
.footer {
    padding: 0.75rem 0;
    background-color: white;
}

.container-layout--footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer__contact {
    font-family: 'Roboto';
    font-size: 1rem;
    font-weight: 300;
    color: black;
    text-decoration: none;
    transition: 0.3s;
}

.footer__contact:hover {
    color: #C5AA58;
    transition: 0.3s;
}

.footer__instagram {
    width: 1.5rem;
    margin-left: 2rem;
    transition: 0.3s;
}

.icon-instagram {
    width: 100%;
    transition: 0.3s
}

.footer__reitbuch {
    width: 2.5rem;
    margin-left: 2rem;
    transition: 0.3s;
}

.icon-reitbuch {
    width: 100%;
    transition: 0.3s;
}

.icon-instagram:hover,
.icon-reitbuch:hover {
    fill: #C5AA58;
    transition: 0.3s;
}

@media (max-height: 52.5em) {
    .footer__contact {
        font-size: 0.875rem;
    }
    .footer__icon-instagram {
        width: 1.5rem;
    }
    .footer__icon-reitbuch {
        width: 2.5rem;
    } 
}

/*carousel*/
.carousel-item {
    width: 100%;
    height: 25vh;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: grab;
}

@media (min-width: 50em) { /*anpassung design*/
    .carousel-item {
        height: 35vh;
    }
}

@media (min-width: 120em) { /*anpassung design*/
    .carousel-item {
        height: 40vh;
    }
}

.carousel-item--gallery {
    height: 30vh;
    position: relative;
}

@media (min-width: 40.625em) {
    .carousel-item--gallery,
    .carousel-item--instagram {
        height: 40vh;
    }
}

@media (min-width: 75em) {
    .carousel-item--gallery,
    .carousel-item--instagram {
        height: 55vh;
    }
}

.carousel-image {
    object-fit: cover;
    height: 100%;
}

.carousel-figcaption {
    width: 100%;
    padding: 0.75rem 0 0.75rem 0;
    position: absolute;
    top: 100%;
    transform: translate(0%, -100%);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: white;
}

.carousel-figcaption--dark {
    background-color: rgba(0, 0, 0, 0.4);
}

