.rs-columns {
  clear: both;
  display: inline-block;
  width: 100%;
}

.rs-column {
  float: left;
  width: 100%;
  margin-top: 7.69231%;
  margin-right: 7.69231%;
}
.rs-column.-large-first {
  clear: left;
}
.rs-column.-large-last {
  margin-right: -5px;
}
.rs-column.-large-first-row {
  margin-top: 0;
}
.rs-column.-large-col-1-1 {
  width: 100%;
}
.rs-column.-large-col-2-1 {
  width: 46.15385%;
}
.rs-column.-large-col-2-2 {
  width: 100%;
}
.rs-column.-large-col-3-1 {
  width: 28.20513%;
}
.rs-column.-large-col-3-2 {
  width: 64.10256%;
}
.rs-column.-large-col-3-3 {
  width: 100%;
}
.rs-column.-large-col-4-1 {
  width: 19.23077%;
}
.rs-column.-large-col-4-2 {
  width: 46.15385%;
}
.rs-column.-large-col-4-3 {
  width: 73.07692%;
}
.rs-column.-large-col-4-4 {
  width: 100%;
}
.rs-column.-large-col-5-1 {
  width: 13.84615%;
}
.rs-column.-large-col-5-2 {
  width: 35.38462%;
}
.rs-column.-large-col-5-3 {
  width: 56.92308%;
}
.rs-column.-large-col-5-4 {
  width: 78.46154%;
}
.rs-column.-large-col-5-5 {
  width: 100%;
}
.rs-column.-large-col-6-1 {
  width: 10.25641%;
}
.rs-column.-large-col-6-2 {
  width: 28.20513%;
}
.rs-column.-large-col-6-3 {
  width: 46.15385%;
}
.rs-column.-large-col-6-4 {
  width: 64.10256%;
}
.rs-column.-large-col-6-5 {
  width: 82.05128%;
}
.rs-column.-large-col-6-6 {
  width: 100%;
}
@media screen and (max-width: 900px) {
  .rs-column {
    margin-top: 7.69231%;
    margin-right: 7.69231%;
  }
  .rs-column.-large-first {
    clear: none;
  }
  .rs-column.-large-last {
    margin-right: 7.69231%;
  }
  .rs-column.-large-first-row {
    margin-top: 7.69231%;
  }
  .rs-column.-medium-first {
    clear: left;
  }
  .rs-column.-medium-last {
    margin-right: -5px;
  }
  .rs-column.-medium-first-row {
    margin-top: 0;
  }
  .rs-column.-medium-col-1-1 {
    width: 100%;
  }
  .rs-column.-medium-col-2-1 {
    width: 46.15385%;
  }
  .rs-column.-medium-col-2-2 {
    width: 100%;
  }
  .rs-column.-medium-col-3-1 {
    width: 28.20513%;
  }
  .rs-column.-medium-col-3-2 {
    width: 64.10256%;
  }
  .rs-column.-medium-col-3-3 {
    width: 100%;
  }
  .rs-column.-medium-col-4-1 {
    width: 19.23077%;
  }
  .rs-column.-medium-col-4-2 {
    width: 46.15385%;
  }
  .rs-column.-medium-col-4-3 {
    width: 73.07692%;
  }
  .rs-column.-medium-col-4-4 {
    width: 100%;
  }
  .rs-column.-medium-col-5-1 {
    width: 13.84615%;
  }
  .rs-column.-medium-col-5-2 {
    width: 35.38462%;
  }
  .rs-column.-medium-col-5-3 {
    width: 56.92308%;
  }
  .rs-column.-medium-col-5-4 {
    width: 78.46154%;
  }
  .rs-column.-medium-col-5-5 {
    width: 100%;
  }
  .rs-column.-medium-col-6-1 {
    width: 10.25641%;
  }
  .rs-column.-medium-col-6-2 {
    width: 28.20513%;
  }
  .rs-column.-medium-col-6-3 {
    width: 46.15385%;
  }
  .rs-column.-medium-col-6-4 {
    width: 64.10256%;
  }
  .rs-column.-medium-col-6-5 {
    width: 82.05128%;
  }
  .rs-column.-medium-col-6-6 {
    width: 100%;
  }
}
@media screen and (max-width: 599px) {
  .rs-column {
    margin-top: 7.69231%;
    margin-right: 7.69231%;
  }
  .rs-column.-large-last {
    margin-right: 7.69231%;
  }
  .rs-column.-large-first-row {
    margin-top: 7.69231%;
  }
  .rs-column.-medium-first {
    clear: none;
  }
  .rs-column.-medium-last {
    margin-right: 7.69231%;
  }
  .rs-column.-medium-first-row {
    margin-top: 7.69231%;
  }
  .rs-column.-small-first {
    clear: left;
  }
  .rs-column.-small-last {
    margin-right: -5px;
  }
  .rs-column.-small-first-row {
    margin-top: 0;
  }
  .rs-column.-small-col-1-1 {
    width: 100%;
  }
  .rs-column.-small-col-2-1 {
    width: 46.15385%;
  }
  .rs-column.-small-col-2-2 {
    width: 100%;
  }
  .rs-column.-small-col-3-1 {
    width: 28.20513%;
  }
  .rs-column.-small-col-3-2 {
    width: 64.10256%;
  }
  .rs-column.-small-col-3-3 {
    width: 100%;
  }
  .rs-column.-small-col-4-1 {
    width: 19.23077%;
  }
  .rs-column.-small-col-4-2 {
    width: 46.15385%;
  }
  .rs-column.-small-col-4-3 {
    width: 73.07692%;
  }
  .rs-column.-small-col-4-4 {
    width: 100%;
  }
  .rs-column.-small-col-5-1 {
    width: 13.84615%;
  }
  .rs-column.-small-col-5-2 {
    width: 35.38462%;
  }
  .rs-column.-small-col-5-3 {
    width: 56.92308%;
  }
  .rs-column.-small-col-5-4 {
    width: 78.46154%;
  }
  .rs-column.-small-col-5-5 {
    width: 100%;
  }
  .rs-column.-small-col-6-1 {
    width: 10.25641%;
  }
  .rs-column.-small-col-6-2 {
    width: 28.20513%;
  }
  .rs-column.-small-col-6-3 {
    width: 46.15385%;
  }
  .rs-column.-small-col-6-4 {
    width: 64.10256%;
  }
  .rs-column.-small-col-6-5 {
    width: 82.05128%;
  }
  .rs-column.-small-col-6-6 {
    width: 100%;
  }
}

* {
    margin: 0;
	padding: 0;
	border: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #494440;
    --secondary-color: #D3CDC8;
    --highlight-color: #4B5563;
    --focus-color: #9A3226;
    --text-color: /*#24282E*//*#1D204C*/#333333;
    --page-background: rgba(37,86,95,.1);
    --test-color: #0A6405;
    --element-distance: 50px 0;
}

/* montserrat-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: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../../files/hpd/theme/fonts/montserrat-v29-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
  /* montserrat-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: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('../../files/hpd/theme/fonts/montserrat-v29-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
/* questrial-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: 'Questrial';
    font-style: normal;
    font-weight: 400;
    src: url('../../files/hpd/theme/fonts/questrial-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  

html, body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    color: var(--text-color);
    height: 100%;
    overflow-x: hidden;
}

#wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#wrapper > *:nth-child(2) {
    margin-top: 115px;
}

#container {
    flex: 1;
}

p, .text {
    /*font-size: clamp(1em, 2vw, 1.25em);*/
    font-size: clamp(1em, 1vw, 1.25em);
    line-height: 1.5;
    margin-bottom: 32px;
}

p:last-child {
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    font-weight: 500;
    margin-bottom: 16px;
    max-width: 1100px;
    font-family: 'Questrial';
}

h1:not(:first-child), h2:not(:first-child), h3:not(:first-child), h4:not(:first-child), h5:not(:first-child), h6:not(:first-child) {
    margin-top: 32px;
}

h1 {
    font-size: /*clamp(1.75em, 3vw, 3em)*/ clamp(1.75em, 3vw, 2.75em);
}

h2 {
    font-size: clamp(1.5em, 3vw, 2.75em);
}

h3 {
    font-size: clamp(1.25em, 3vw, 2em);
}

h4 {
    font-size: clamp(1.15em, 3vw, 1.5em);
}

h5 {
    font-size: clamp(1.05em, 3vw, 1.25em);
    font-weight: 700;
}

h6 {
    font-size: 1em;
    font-weight: 700;
}

a:link,
a:visited {
    text-decoration: underline;
    color: var(--primary-color);
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    transition: all .5s;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

a:focus {
    color: var(--focus-color);
    border: 1px solid var(--focus-color);
}

a:active {
    color: var(--text-color);
}

main ul, main ol {
    margin: 0 0 32px 16px;
    font-size: clamp(1em, 1vw, 1.25em);
}

main .rte ul li, 
main .rte ol li {
    margin-bottom: 16px;
}

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

header a.-tertiary:link,
header a.-tertiary:visited {
    margin: 0 !important;
}

header .inside, footer .inside,
.mod_article:not(.fullwidth) .inside:not(#pageimage .inside), 
.bg-container .inside {
    padding: 0 16px;
}

@media screen and (min-width: 500px) {
    header .inside, footer .inside,
    .mod_article:not(.fullwidth) .inside:not(#pageimage .inside),
    .bg-container .inside {
        padding: 0 32px;
    }
}

@media screen and (min-width: 768px) {
    header .inside, footer .inside,
    .mod_article:not(.fullwidth) .inside:not(#pageimage .inside),
    .bg-container .inside {
        padding: 0 5vw;
    }
}

@media screen and (min-width: 992px) {
    header .inside, footer .inside,
    .mod_article:not(.fullwidth) .inside:not(#pageimage .inside),
    .bg-container .inside {
        padding: 0 10vw;
    }
}

@media screen and (max-width: 1270px) {
    header .inside {
        padding: 0 16px;
    }
}

@media screen and (min-width: 1921px) {
    header .inside, footer .inside,
    .mod_article:not(.fullwidth) .inside:not(#pageimage .inside),
    .bg-container .inside {
        padding: 0 15vw;
    }
}

.invisible:not(:focus) {
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    float: left;
    z-index: -100;
}

[data-icon]::before {
    content: attr(data-icon);
    font-family: "fontello";
    font-size: 25px;
    font-style: normal;
}

a.button:link,
a.button:visited {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-decoration: none;
}

.button-container {
  display: flex;
  gap: 32px;
}

.button-container a.button:link,
.button-container a.button:visited {
    margin: 0;
}
 
a.button:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

a:focus {
    border: 1px solid var(--focus-color);
}

a.button.-secondary:link,
a.button.-secondary:visited {
    border-color: white;
    color: white;
}

a.button.-secondary:hover {
    background-color: white;
    color: var(--text-color);
}

a.button.-tertiary:link,
a.button.-tertiary:visited {
    border-color: var(--highlight-color);
    background-color: var(--highlight-color);
    color: white;
}

a.button.-tertiary:hover {
    background-color: white;
    color: var(--text-color);
}

a.button:focus,
a.button.-secondary:focus {
    border-color: var(--focus-color);
}

a.button:active,
a.button.secondary:active {
    background-color: var(--focus-color);
} 

/*
.button-container {
    display: flex;
    gap: 16px;
}

.button-container a.button:link,
.button-container a.button:visited {
    background-color: var(--highlight-color);
    color: white;
}

.button-container a.button.-secondary:link,
.button-container a.button.-secondary:visited {
    border-color: var(--highlight-color);
    background-color: white;
    color: var(--highlight-color);
}*/

/*Header*/
header {
    box-shadow: 0 0 30px rgba(206,214,216,.7);
    padding: 16px 0;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 115px;
    z-index: 1000;
    overflow: hidden;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    overflow: visible;
}

#header.shrink {
    padding: 8px 0;
    height: 85px;
}

#header.shrink #logo img{
    max-height: 60px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

header .inside {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    position: relative; 
    /*top: 50%; 
    transform: translateY(-50%);*/
    height: 100%;
}

header #logo img {
    /*min-width: 150px;
    max-width: 310px;
    width: 100%;
    height: auto;*/
    max-height: 90px;
    min-height: 50px;
    width: auto;
}

@media screen and (max-width: 460px) {
    header .inside {
        flex-wrap: nowrap;
    }
    header #logo img {
        max-width: 250px;
        width: 100%;
    }
}

@media screen and (max-width: 1500px) {
    header .inside {
        gap: 8px;
    }

    header #logo img {
        max-height: 70px;
    }
}

header .nav-toggle__box {
    display: block;
}

@media screen and (min-width: 1020px) {
    header .nav-toggle__box {
        display: none;
    }
}

header .nav-toggle {
    width: 68px;
    cursor: pointer;
}

header .nav-toggle span:not(.menu) {
    display: block;
    width: 100%;
    border-radius: 3px;
    height: 3px;
    background: var(--text-color);
    transition: all .3s;
    position: relative;
  }

  span.menu {
    position: relative;
    top: 6px;
}
  
  header .nav-toggle span + span {
    margin-top: 9px;
  }
  
  .active span:nth-child(1) {
    animation: ease .7s top forwards;
  }
  
  .not-active span:nth-child(1) {
    animation: ease .7s top-2 forwards;
  }
  
  .active span:nth-child(2) {
    animation: ease .7s scaled forwards;
  }
  
  .not-active span:nth-child(2) {
    animation: ease .7s scaled-2 forwards;
  }
  
  .active span:nth-child(3) {
    animation: ease .7s bottom forwards;
  }
  
  .not-active span:nth-child(3) {
    animation: ease .7s bottom-2 forwards;
  }
  
  @keyframes top {
    0% {
      top: 0;
      transform: rotate(0);
    }
    50% {
      top: 12px;
      transform: rotate(0);
    }
    100% {
      top: 12px;
      transform: rotate(45deg);
    }
  }
  
  @keyframes top-2 {
    0% {
      top: 12px;
      transform: rotate(45deg);
    }
    50% {
      top: 12px;
      transform: rotate(0deg);
    }
    100% {
      top: 0;
      transform: rotate(0deg);
    }
  }
  
  @keyframes bottom {
    0% {
      bottom: 0;
      transform: rotate(0);
    }
    50% {
      bottom: 12px;
      transform: rotate(0);
    }
    100% {
      bottom: 12px;
      transform: rotate(135deg);
    }
  }
  
  @keyframes bottom-2 {
    0% {
      bottom: 12px;
      transform: rotate(135deg);
    }
    50% {
      bottom: 12px;
      transform: rotate(0);
    }
    100% {
      bottom: 0;
      transform: rotate(0);
    }
  }
  
  @keyframes scaled {
    50% {
      transform: scale(0);
    }
    100% {
      transform: scale(0);
    }
  }
  
  @keyframes scaled-2 {
    0% {
      transform: scale(0);
    }
    50% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
  }

header .mod_navigation {
    display: none;
}

@media screen and (min-width: 1020px) {
    header .mod_navigation {
        display: block;
    }
}
@media screen and (min-width: 1020px) {
header .mod_navigation ul {
    list-style: none;
    margin-bottom: 0;
    margin-top: 0;
    padding-left: 0;
  
    display: flex;
}

header .mod_navigation ul ul {
    position: absolute;
    left: 0;
    top: 100%;
    flex-direction: column;

    transform-origin: top center;
    transform: scale(1, 0);
    transition: transform 0.2s;
}

header .mod_navigation ul li {
    padding: 8px 16px;
    position: relative;
}

@media screen and (max-width: 1290px) and (min-width: 1020px) {
    header .mod_navigation ul li {
        padding: 0 12px;
    }
}

header .mod_navigation ul li:hover ul {
    transform: scale(1, 1);
}

header .mod_navigation ul ul {
    background-color: white;
    box-shadow: 0px 0px 10px 0px rgba(175,188,190,1);
    -webkit-box-shadow: 0px 0px 10px 0px rgba(175,188,190,1);
    -moz-box-shadow: 0px 0px 10px 0px rgba(175,188,190,1);
    border-radius: 3px;
}

header .mod_navigation ul ul li a {
    display: block;
    text-decoration: none;
    color: #ddd;
    white-space: nowrap;
}

.mod_navigation a:link,
.mod_navigation a:visited,
.mod_customnav a:link,
.mod_customnav a:visited,
.mod_sitemap a:link,
.mod_sitemap a:visited {
    color: var(--primary-color);
}

.mod_navigation a:hover,
.mod_customnav a:hover,
.mod_sitemap a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.mod_navigation a:focus,
.mod_customnav a:focus,
.mod_sitemap a:focus {
    color: var(--focus-color);
}

.mod_navigation a:active,
.mod_customnav a:active,
.mod_sitemap a:active {
    color: var(--text-color);
}
}

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

@media screen and (max-width: 1019px) {
    .mod_navigation {
        width:100%;
        float:left;
        background-color: white;
        box-shadow: 0px 0px 10px 0px rgba(175,188,190,1);
        -webkit-box-shadow: 0px 0px 10px 0px rgba(175,188,190,1);
        -moz-box-shadow: 0px 0px 10px 0px rgba(175,188,190,1);
        border-radius: 3px;
        position: absolute;
        top: 100px;
        left: 0;
    }

    .shrink .mod_navigation {
        top: 78px;
    }
    
    .mod_navigation li {
        float:left;
        width:100%;
        position:relative;
        list-style-type: none;
    }

    .mod_navigation a,
    .mod_navigation strong {
        display:block;
        height:100%;
        width:100%;
        padding:1em;
        text-decoration:none;
        color:var(--text-color);
        background:var(--page-background);
        border-top: 1px solid rgba(0,0,0,0.5);
    }

    .mod_navigation li:first-child > * {
        border-top: 0;
    }
    
    .mod_navigation a:hover {
        background:rgba(0,0,0,0.4);
    }
    
    .mod_navigation {
        display:none;
    }
    
    .sub-menu {
        display:none;
    }
    
    .sub-menu li:last-of-type {
        padding-bottom:0;
    }
    
    .sub-menu a {
        background:white;
    }
    
    .sub-menu .sub-menu a {
        background:rgba(0,0,0,0.6);
    }
    
    /* toggles */
    
    .nav-toggle {
        background:transparent;
        display:block;
        position:relative;
        right:0;
        top:0;
        padding:1em;
        color:var(--text-color);
        cursor:pointer;
    }
    
    .toggle-sub-menu {
        display:none;
    }
    
    .toggle-sub-menu {
        position:absolute;
        right:0;
        top:1px; /* Höhe des borders */
        display:block;
        padding:1em;
        background: white;
        height: 61px;
        width: 61px;
        cursor:pointer;
    }
    
    .toggle-sub-menu.active {
        background: white}
        
    .toggle-sub-menu:hover,
    .toggle-sub-menu.active:hover  {
        background-color: var(--primary-color);
    }
    
    
}

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

/*Hero*/
#hero .content-player figure video,
#hero .content-image figure,
#hero .ce_rsce_backgroundimage {
    width: 100vw;
    height: auto;
}

@media screen and (min-width:992px) {
    #hero .content-player figure,
    #hero .content-image figure,
    #hero .ce_rsce_backgroundimage {
        height: 70vh;
        overflow: hidden;
    }

    #hero .content-player figure video,
    #hero .content-image figure img,
    #hero .ce_rsce_backgroundimage .testbg {
        width: 100vw;
    }

    /*#hero .content-player figure video {
        position: relative;
        top: -30vh;
    }*/
}

/*Pageimage*/
#pageimage {
    text-align: center;
}

#pageimage img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 710px;
}

#pageimage .content-image {
    position: relative;
}

#pageimage figure {
    position: relative;
}

#pageimage figure::before {
    content: '';
    position: absolute;
    z-index: 999;
    background-image: url('../../files/hpd/theme/img/pageimage-overlay.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
    height: 100%;
    width: 100%;
    bottom: 0;
}

/* MAIN */
/*
@media screen and (min-width: 992px) {
    main {
        padding: 100px 0;
    }
}*/

main img {
    width: 100%;
    height: auto;
}

main .mod_article {
    padding: 50px 16px;
    position: relative;
    display: block;
}

main .mod_article .intro {
    background-color: var(--primary-color);
    color: white;
    padding: 40px;
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
    border-radius: 3px;
}

main .mod_article .intro::after {
    margin: 100px;
}

@media screen and (min-width: 500px) {
    main .mod_article {
        padding: 50px 32px;
    }
}

@media screen and (max-width: 767px) {
    main .mod_article:first-child .intro {
        padding: 32px;
        /*position: relative;
        top: -140px;*/
    }
/*
    main .mod_article:first-child .ce_form:nth-child(2) {
        margin-top: -140px;
    }*/
}

main .mod_article:not(.no-header) {
    position: relative;
    top: -150px;
}

@media screen and (min-width: 768px) {
    main .mod_article {
        padding: 50px 5vw;
    }

    main .mod_article:first-child .intro {
        /*position: relative;
        bottom: 450px;*/

        max-width: 820px;
    }

    main .mod_article:first-child div:first-of-type {

    }

    main .mod_article:first-of-type:has(.intro) .content-text:nth-child(2) {
        padding-top: 0;
    
        display: flex;
        flex-wrap: wrap;
        /*gap: 32px;*/
        /*justify-content: center;*/
            align-content: center;
            flex-direction: column;
    }

    main .mod_article:first-child:has(.intro) div:nth-child(2) {
        align-self: center;
    }

    /*main .mod_article:first-child:has(.intro) .content-text:nth-child(2),
    main .mod_article:first-child:has(.intro) .ce_form:nth-child(2) {
        margin-top: -450px;
    }*/
    
}

@media screen and (min-width: 992px) {
    main .mod_article {
        padding: 50px 10vw;
    }

    main .mod_article:not(.no-header) {
        top: -30vh;
    }
}

@media screen and (min-width: 1921px) {
    main .mod_article {
        padding: 50px 15vw;
    }

    main .mod_article:first-child .intro {
        max-width: 40vw;
    }
}

main .mod_article.bg-color-01 {
    background: #F8F8F8;
}

main .content-text,
main .content-slider,
main .fullwidth,
main .ce_rsce_cards,
main .ce_rsce_facts,
main .ce_rsce_teaserbox,
main .ce_rsce_test,
main .ce_rsce_text-button,
main .ce_rsce_textbox,
main .ce_form {
    margin: 50px 0 50px;
}

.content-text .rte,
.ce_rsce_text-button .text-item {
    max-width: 1100px;
}

/*Animation lr rl*/
.-large-col-2-1 {
    opacity: 0;
    transform: translateX(0);
    transition: all 0.8s ease-out;
}

.-large-col-2-1.-large-first {
    transform: translateX(-100%);
}

.-large-col-2-1.-large-last {
    transform: translateX(100%);
}

.-large-col-2-1.in-view {
    opacity: 1;
    transform: translateX(0);
}

/*RSCE Kontaktbox*/
.inside {
    position: relative;
}

.ce_rsce_contactbox {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 32px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 16px rgba(154,37,83,.2);

    flex: 1;
    position: relative;
    bottom: 100px;
    z-index: 999;
    height: fit-content;
}

.ce_rsce_contactbox ul {
    list-style-type: none;
    margin-left: 0;
}

.ce_rsce_contactbox .link-container li {
    border-bottom: 1px solid white;
    padding: 4px 0;
}

.ce_rsce_contactbox .link-container .link-icon::before {
    margin-right: 8px;
}

.ce_rsce_contactbox .link-container a:link,
.ce_rsce_contactbox .link-container a:visited {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 8px;
    color: white;
    text-decoration: none;
}

.ce_rsce_contactbox .link-container a:hover {
    background-color: white;
    border-radius: 8px;
    color: var(--text-color);
}

.ce_rsce_contactbox .link-container a:focus {

}

.ce_rsce_contactbox .link-container a:active {

}

.ce_rsce_contactbox a.button {
    text-decoration: none;
    margin: 0 0;
    border-color: white;
    background-color: white;
    border: 2px solid white;
    color: var(--secondary-color);
    border-radius: 5px;
    padding: 10px 20px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: initial;
    justify-content: center;
}

.ce_rsce_contactbox a.button i {
    font-size: 1.5em;
}

/*Teaserbox*/
.ce_rsce_teaserbox {
    display: flex;
    flex-wrap: wrap;
}

.ce_rsce_teaserbox .teaserbox-container {
    background-color: var(--primary-color);
    position: relative;
    border: 1px solid white;
    flex-basis: 0;
    flex-grow: 1;
}

.ce_rsce_teaserbox .teaserbox-container:nth-child(2n) {
    background-color: var(--highlight-color);
}

.ce_rsce_teaserbox .teaserbox-container .text-item {
    position: relative;
    z-index: 2;
    padding: 24px 32px 33px;
}

.ce_rsce_teaserbox .teaserbox-container .text-item > * {
    color: var(--text-color);
}

.ce_rsce_teaserbox .teaserbox-container .text-item :last-child {
    margin-bottom: 0;
}

.ce_rsce_teaserbox .teaserbox-container .bg-container {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    opacity: 0.05;
    background-size: cover;
}

/*Media Element*/
main figure {
    margin-bottom: 32px;
    box-shadow: 0 3px 30px rgba(0,0,0,0.15);
    display: flex;
    position: relative;
    width: calc(100% - 30px);
}

main .mod_article:not(.fullwidth) figure::before {
    content: "";
    background-color: var(--secondary-color);
    width: 100%;
    height: 100%;
    position: absolute;
    top: -30px;
    right: -30px;
    display: block;
    border-radius: 3px;
    z-index: -1;
}

main .mod_article:not(.fullwidth) figure img {
    width: 100%;
    height: auto;
}

main figure img {
    display: flex;
    border-radius: 3px;
}

.content-text.media.media--above {
    display: flex;
    flex-direction: column;
}

.content-text.media.media--above h2,
.content-text.media.media--above.content-text.media h3 {
    flex-basis: 100%; /* Überschrift nimmt die volle Breite ein */
    margin-bottom: 10px; /* Abstand zum Text */
    order: 2;
}

.content-text.media.media--above .figure {
    order: 1; /* Text kommt zuerst */
}

.content-text.media.media--above .rte {
    order: 3; /* Text kommt zuerst */
}

@media screen and (min-width: 768px) {
    .content-text.media {
        display: flex;
        flex-wrap: wrap; /* Ermöglicht Umbruch der Überschrift */
        justify-content: space-between;
        align-items: flex-start;
        /*align-items: center;*/
        gap: 16px; /* Abstand zwischen den Spalten */
    }

    .content-text.media h1 {
        flex-basis: 100%; /* Überschrift nimmt die volle Breite ein */
        margin-bottom: 10px; /* Abstand zum Text */
    }

    .content-text.media.media--left .rte {
        flex: 2; /* Linke Spalte für den Text */
        order: 2; /* Text kommt zuerst */
    }

    .content-text.media.media--left figure {
        flex: 1; /* Rechte Spalte für das Bild */
        display: flex;
        justify-content: flex-end;
        order: 1; /* Bild kommt danach */
    }

    .content-text.media.media--right .rte {
        flex: 2; /* Linke Spalte für den Text */
        order: 1; /* Text kommt zuerst */
    }

    .content-text.media.media--right figure {
        flex: 1; /* Rechte Spalte für das Bild */
        display: flex;
        /*justify-content: flex-end;*/
        order: 2; /* Bild kommt danach */
    }
}

/*test*/
.content-image figure {
    display: block;
    width: 100%;
  }

.test {
    margin: 64px 0;
    position: relative;
    padding:  64px 10%;

    color: black;
    border-radius: 3px;
}

.test:nth-child(2n) {
    color: white;
    background-color: var(--primary-color);
}

.test figure {
    border: 2px solid white;
    border-radius: 3px;
}

.test:nth-child(2n) figure::before {
    background-color: transparent !important;
}

.test:nth-child(odd) figure::before {
    background-color: var(--primary-color) !important;
}

@media screen and (min-width: 768px) {
    .test {
        display: flex;
        gap: 64px;
        align-items: center;
        flex-direction: row-reverse;
    }

    .test:nth-child(2n) {
        flex-direction: row;
    }
}


/*FULLWIDTH*/
.fullwidth {
    background-color: var(--primary-color);
    color: white;
    z-index: -1;
    mix-blend-mode: overlay;
}

.fullwidth .content-gallery ul
 {
    display: flex;
    justify-content: end;
    list-style-type: none;
    margin: 0;
}

.ce_rsce_team {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
    gap: 32px;
}

@media screen and (min-width: 992px) {
    .ce_rsce_team {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (min-width: 1500px) {
    .ce_rsce_team {
        justify-content: end;
        padding-left: 50vh;
    }
}

.ce_rsce_team img {
    border-radius: 3px;
    box-shadow: 0 3px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.ce_rsce_team .team-member {
    font-weight: 500;
    margin-bottom: 0;
    margin-top: 16px;
}

.ce_rsce_team .team-position {
    font-weight: 400;
}

/*test*/.fullwidth .content-gallery ul img {max-width: 500px;}

.ce_rsce_backgroundimage .testbg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    mix-blend-mode: overlay;
}

/*GALLERY 2-col*/
main .content-gallery--cols-2 li:first-child figure img {
    border-radius: 3px 0 0 3px;
}

main .content-gallery--cols-2 li:last-child figure img {
    border-radius: 0 3px 3px 0;
}

.content-gallery--cols-2::before {
    content: "";
    background-color: var(--secondary-color);
    width: 100%;
    height: 100%;
    position: absolute;
    top: -30px;
    right: -30px;
    display: block;
    border-radius: 3px;
    z-index: -1;
}

.content-gallery--cols-2 ul {
    display: flex;
    gap: 0;
    list-style-type: none;
}

main .content-gallery--cols-2 figure {
    width: auto;
}

/*ACCORDION*/
.position--left .content-accordion {
    margin-left: 0 !important;
}

.content-accordion {
    max-width: 1100px;
    margin: 0 auto;
}

.content-accordion h2 {
    font-size: clamp(1em, 1vw, 1.25em);
    margin-top: 16px;
}

.handorgel__header__button {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 32px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 16px rgba(154,37,83,.2);
    display: flex;
    justify-content: space-between;
}

/*
.content-accordion .handorgel__header button {
    background:url('../../files/hpd/theme/img/accordion-arrow-right.png') center right 20px no-repeat #fff;
    background-color:#a32136;
    background-size:14px 14px;
}

.content-accordion .handorgel__header--opened button {
    background:url('../../files/hpd/theme/img/accordion-arrow-down.png') center right 20px no-repeat #fff;
    background-color:#a32136;
    background-size:14px 14px;
}*/

.handorgel__content__inner {
    padding: 8px 32px;
}

.handorgel__content {
    border: none;
    background-color: transparent;
}

.content-accordion .content-text {
    margin: 16px 0;
}

/*RSCE Call-To-Action*/
.ce_rsce_call-to-action {
    background-color: var(--primary-color);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(154,37,83,.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.ce_rsce_call-to-action h3 {
    font-size: clamp(1em, 1vw, 1.25em);
    color: white;
    margin: 0;
}

.ce_rsce_call-to-action a.button:link, 
.ce_rsce_call-to-action a.button:visited {
    margin: 0 0;
    border-color: white;
    background-color: white;
    text-decoration: none;
}

/*RSCE Calltime*/
.ce_rsce_calltime {
    margin: 50px 0;
}

@media screen and (min-width: 768px) {
    .ce_rsce_calltime .calltime-wrapper {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 32px;
        align-items: center
    }
}

.ce_rsce_calltime .calltime-wrapper figure {
    flex: 1;
}

.ce_rsce_calltime .calltime-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}

.ce_rsce_calltime .calltime-container .calltime-item {
    list-style-type: none;
    flex: 1;
    flex-basis: 50%;
    margin: 0 0;
}

@media screen and (min-width: 768px) {
    .ce_rsce_calltime .calltime-container .calltime-item {
        list-style-type: none;
        flex: 1;
        flex-basis: 30%;
    }
}

/*RSCE Cards*/
.ce_rsce_cards {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
    gap: 32px;
}

@media screen and (min-width: 1400px) {
    .ce_rsce_cards {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.ce_rsce_cards .card-item {
    background-color: #8F3965;
    border-radius: 32px;
    padding: 32px;
    color: white;
}

.ce_rsce_cards .card-item h2 {
    font-size: clamp(1.05em, 3vw, 1.25em);
}

/*Teaser*/
.ce_rsce_teaser.grid-container {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
    gap: 64px;
}

.ce_rsce_teaser h2 {
    margin-bottom: 8px;
}

.ce_rsce_teaser h3 {
    margin-top: 0;
}

/*Formular*/
.ce_form {
    max-width: 800px;
}

.ce_form .widget {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.ce_form label,
.ce_form legend {
    font-weight: 500;
}

.ce_form .widget-checkbox label {
    font-weight: 400;
}

.ce_form input,
.ce_form textarea {
    border: 1px solid var(--highlight-color);
    padding: 8px;
    border-radius: 3px;
}

.ce_form input.text {
    margin-bottom: 0;
}

.ce_form .submit {
    width: fit-content;
    padding: 16px 32px;
    margin: 32px 0;
    background-color: var(--highlight-color);
    color: white;
    cursor: pointer;
}

.ce_form .submit:hover {
    background-color: var(--primary-color);
}

.ce_form .submit:focus {
    background-color: var(--focus-color);
}

.ce_form .submit:active {
    background-color: var(--primary-color);
    text-decoration: underline;
}

 .contact-item {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-inline: 32px;
 }


/*Animation Cirlce Services*/
.main {
  margin: 0px auto;
  width: 480px;
  height: 480px;
  position: relative;
}

.big-circle {
  height: 100%;
  width: 100%;
  position: relative;
  border: 1px solid white;
  border-radius: 50%;
  display: flex;
  display: -webkit-flex;
  align-items: center;
  -webkit-align-items: center;
  justify-content: center;
  -webkit-justify-content: center;
  animation: Rotate 20s linear infinite;
  -webkit-animation: Rotate 20s linear infinite;
}

.icon-block {
  width: 55px;
  height: 55px;
  position: absolute;
  border-radius: 50%;
  display: flex;
  display: -webkit-flex;
  align-items: center;
  -webkit-align-items: center;
  justify-content: center;
  background-color: var(--focus-color);
  border: 1px solid white;
}

.big-circle .icon-block {
    background-color: white;
}

.icon-block img {
  margin: 0px auto;
  width: 86%;
  animation: Rotate-reverse 20s linear infinite;
  -webkit-animation: Rotate-reverse 20s linear infinite;
}
.big-circle .icon-block:first-child {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
.big-circle .icon-block:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  -webkit-transform: translate(50%, -50%);
}
.big-circle .icon-block:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  -webkit-transform: translate(-50%, 50%);
}
.big-circle .icon-block:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
.big-circle .icon-block:nth-child(5) {
  top: 15%;
  left: 15%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
.big-circle .icon-block:nth-child(6) {
  top: 15%;
  left: 85%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
.big-circle .icon-block:nth-child(7) {
  top: 85%;
  left: 15%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
.big-circle .icon-block:nth-child(8) {
  top: 85%;
  left: 85%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

.circle .icon-block:first-child {
  top: 5%;
  left: 30%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
.circle .icon-block:nth-child(2) {
  top: 30%;
  right: 5%;
  transform: translate(50%, -50%);
  -webkit-transform: translate(50%, -50%);
}
.circle .icon-block:nth-child(3) {
  bottom: 5%;
  left: 69%;
  transform: translate(-50%, 50%);
  -webkit-transform: translate(-50%, 50%);
}
.circle .icon-block:nth-child(4) {
  top: 69%;
  left: 5%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
/* circle content */
.circle {
  animation: circle-rotate 30s linear infinite;
  -webkit-animation: circle-rotate 30s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  width: 75%;
  height: 75%;
  border: 1px solid white;
  border-radius: 50%;
}
.circle .icon-block img {
  animation: img-rotate 30s linear infinite;
  -webkit-animation: img-rotate 30s linear infinite;
}
/* center logo */
.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;

  background: white;
  border-radius: 50%;
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-content: center;
}
.center-logo img {
  max-width: 200px;
}

@media screen and (max-width: 767px) {
    .main {
        width: 280px;
        height: 280px;
        margin: 64px auto;
    }

    .center-logo {
        width: 125px;
        height: 125px;
    }

    .center-logo img {
        width: 100px !important;
        height: auto;
    }

    .icon-block {
        width: 40px !important;
        height: 40px !important;
    }
}

@media screen and (max-width: 1499px) {
    .main {
        width: 380px;
        height: 380px;
        margin: 64px auto;
    }

    .center-logo {
        width: 190px;
        height: 190px;
    }

    .center-logo img {
        width: 150px !important;
        height: auto;
    }

    .icon-block {
        width: 45px !important;
        height: 45px !important;
    }
}

/* keyframe animation */

@keyframes Rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes Rotate {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes Rotate-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@-webkit-keyframes Rotate-reverse {
  from {
    -webkit-transform: rotate(360deg);
  }
  to {
    -webkit-transform: rotate(0deg);
  }
}

@keyframes circle-rotate {
  from {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(405deg);
  }
}

@-webkit-keyframes circle-rotate {
  from {
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
  }
  to {
    -webkit-transform: translate(-50%, -50%) rotate(405deg);
  }
}

@keyframes img-rotate {
  from {
    transform: rotate(-45deg);
  }
  to {
    transform: rotate(-405deg);
  }
}

@-webkit-keyframes img-rotate {
  from {
    -webkit-transform: rotate(-45deg);
  }
  to {
    -webkit-transform: rotate(-405deg);
  }
}

/*Services*/
.services {
    width: 100%;
}

.services img {
    width: 40px;
    height: auto;
}

.services .flex-container {
    display: flex;
    gap: 16px;
}

@media screen and (max-width: 1200px) {
    .services .flex-container {
        flex-wrap: wrap;
    }
}

.services ul {
    list-style-type: none;
    width: 100%;
    margin-left: 0;
}

.services ul li {
    display: flex;
    align-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}


/*Scroll fade in animation*/
.content-element-group div,
.ce_rsce_teaser {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transform: translateY(100px);
}

.content-element-group div.visible,
.ce_rsce_teaser.visible {
  opacity: 1;
  transform: translateY(0);
}

/*Referenzen*/
.mod_newslist {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
    column-gap: 32px;
    row-gap: 64px;
}

@media screen and (min-width: 1400px) {
    .mod_newslist {
        grid-template-columns: 1fr 1fr 1fr;
    }
}


/*FOOTER*/
footer {
    background-color: var(--primary-color);
    padding: 64px 0;
    color: white;
    margin-top: -30vh;
}

.no-header footer {
    margin-top:0;
}

footer .footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

footer .mod_customnav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    list-style-type: none;
    justify-content: end;
}

footer a:link,
footer a:visited {
    color: white;
    text-decoration: underline;
}

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

footer .social-media ul {
    list-style-type: none;
    display: flex;
    gap: 16px;

    margin-top: -25px;
}

footer .social-media ul li strong {
    display: none;
}
