/* Variables */
:root {
    --color1: #009eb0;
    --color2: #ea5160;
    --color3: #76b82a;
    --color4: #e7f4f6;
    --color5: #f1f8ea;
    --color6: #fdeeef;
    --background-color: #f5f5f5;
    --text-color: #333;
    --base-font-size: 1rem;
    --spacing-unit: 1.5rem;
}

/* Colors */
.color1 {
    color: var(--color1);
}

.color2 {
    color: var(--color2);
}

.color3 {
    color: var(--color3);
}

.white {
    color: #fff;
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    font-size: var(--base-font-size);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: .3s;
}

a:hover {
    text-decoration: none;
}

img {
    display: block;
}

img.intro {
    float: left;
    width: 33%;
    margin: 0 1rem 1rem 0;
    border-radius: 1.5rem;
    object-fit: contain;
    height: auto;
}

article img {
    max-width: 100%;
}

/* Typography */
h1, h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #000;
    line-height: 1.25;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
}

h3:has(+ p), h3:has(+ ul)  {
    margin-bottom: 1rem;
}

.column2 > h3 {
    margin-top: 0;
}

article h1, article h2, .aktuelles h2, .operateure h2, #tinymce h1, #tinymce h2 {
    margin-bottom: 1rem;
}

.bg_fullwidth_slider h2, .operateure h2 {
    /* padding: 0 var(--spacing-unit); */
}

article h3, #tinymce h3 {
    font-size: 1.25rem;
    margin: 1.5rem auto 0.5rem auto;
}

section>article>h3 {
    margin-top:0;
}

#cta_help_mobile>h3 {
    margin-bottom: var(--spacing-unit);
}

p {
    font-size: 1rem;
    hyphens: auto;
    hyphenate-limit-chars: auto 4;
    hyphenate-limit-lines: 2;
}

.aktuelles .swiper p {
    font-size: .825rem;
}

strong {
    font-weight: 600;
}

.small {
    font-size: 80%;
}

ul, ol {
    padding-inline-start: 1.1rem;
    margin-bottom: calc(var(--spacing-unit) / 2);
}

ul li::marker {
  color: var(--color1);
} 

ol>li::marker {
  color: var(--color1);
  font-weight: bold;
} 

/* li:nth-child(3n+1)::marker {
  color: var(--color1);
} 

li:nth-child(3n+2)::marker {
  color: var(--color2);
} 

li:nth-child(3n+3)::marker {
  color: var(--color3);
} 
 */
:is(dir, menu, ol, ul) ul {
    list-style-type: disclosure-closed;
}

.text-color {
    color: var(--text-color);
    transition: .3s;
}

section article a, #tinymce a {
    color: var(--color1);
    transition: .3s;
    /* text-transform: uppercase; */
}

section article a::before, #tinymce a::before {
    content: "→  ";
}

section article a::before, #tinymce a::before {
    content: "→  ";
}

section article a:has(img)::before {
    content: "";
}

.link a {
    color: var(--color1);
        transition: .3s;
}


section.header_bg_image h2 {
    position: absolute;
    top: 0;
}

.subsidiaries_tile:hover, .slick-slide:hover, section article a:hover, .schwerpunkte a:hover, .tile.focus-link.active, .link a:hover, .link a:hover .text-color {
    color: var(--color3);
}

/* Menu icon animation */
.menu-icon.open .top-line {
    transform: translateY(35px) translateX(10px) rotate(45deg) scaleX(1.6);
}

.menu-icon.open .middle-line {
    opacity: 0;
    transform: scaleX(0);
}

.menu-icon.open .bottom-line {
    transform: translateY(-18px) translateX(-1px) rotate(-45deg) scaleX(1.15);
}

.menu-icon.closed .top-line,
.menu-icon.closed .middle-line,
.menu-icon.closed .bottom-line {
    transform: none;
    opacity: 1;
}

.menu-icon path {
    fill: #009eb0;
}

.menu-icon.open path {
    fill: var(--color2);
}

.text-color {
    color: var(--text-color);
}

/* Layout */



header {
    align-items: flex-start;
    color: white;
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: var(--spacing-unit);
    position: fixed;
    top: 0;
    transition: all 0.3s ease-in-out;
    width: 100%;
    z-index: 10;
}

.header-container {
    display: flex;
    flex-direction: column;
    /* height: 50vh; */
    height: 67vh;
    justify-content: space-between;
    overflow: hidden;
    padding: var(--spacing-unit);
    position: relative;
    width: 100%;
}

.header-image {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

.logo img {
    height: 6rem;
    transition: height 0.3s ease-in-out;
}

.wrapper_header_right {
    align-items: center;
    display: flex;
}

.wrapper_header_right button,
.wrapper_header_right .button {
    margin-right: 3rem;
    margin-top: -0px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
}

.menu-icon {
    color: var(--color1);
    cursor: pointer;
    height: 2rem;
    margin: var(--spacing-unit);
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
    width: 2rem;
    z-index: 30;
}

/* Test */
.menu-icon {
    padding: 0.75rem .75rem .75rem 1.5rem;
    background: #fff;
    border-radius: 50%  0 0 50%;
    margin: 0.75rem 0 0 0;
    width:4rem;
    height: 4rem;
}

.menu-icon.open {
    /* transform: translateX(-20rem); */
}

.header-container .headline {
    /* bottom: 1rem; */
    color: #000;
    /* font-size: 2rem; */
    position: absolute;
    /* width: 60%; */
    font-size: 1.125rem;
    max-width: 100%;
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    /* position: absolute; */ 
    top: 20vh;
    display: none;
    font-weight: 500;
    line-height: 1.25;
}


.menu {
    background-color: white;
    height: 100%;
    overflow: auto;
    padding: 6rem 4rem 0 2rem;
    position: fixed;
    right: -20rem;
    top: 0;
    transition: right 0.3s ease-in-out;
    width: 20rem;
    z-index: 20;
}

.menu.open {
    right: 0;
}

.navigation_firstlevel,
.navigation_secondlevel ul {
    list-style-type: none;
    padding-inline-start: 0;
}

.menu li {
    padding: 0.5rem 0;
    transition: color 0.1s;
    color: var(--color1);
}

.menu ul.navigation_firstlevel:nth-of-type(2) li {
    color: var(--text-color);
}
.navigation_firstlevel>li:hover, .menu ul.navigation_firstlevel:nth-of-type(2) li:hover {
    color: var(--color3);
}

.navigation_firstlevel li {
    border-bottom: 1px solid #bebebe;
    font-weight: 500;
}

.menu li.active {
    color: var(--color3);
    font-weight: bold;
}

.navigation_secondlevel ul li:last-of-type {
    border-bottom: 0;
}

.navigation_secondlevel.closed ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-in-out;
}

.navigation_secondlevel.open ul {
    max-height: 500px;
    transition: max-height 0.5s ease-in-out;
}

.spacer_top, .menu .spacer_top {
    padding-top: 3rem;
}

.menu_backdrop {
    background: rgba(0, 0, 0, .2);
    height: 100vh;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: .3s;
    visibility: hidden;
    width: 100vw;
    z-index: 1;
}

.menu_backdrop.open {
    opacity: 1;
    visibility: visible;
}

main {
    text-align: left;
}

section {
    /* margin: var(--spacing-unit) auto; */
    margin: 0 auto;
    max-width: 48rem;
    /* padding: 0 var(--spacing-unit); */
    /* padding: var(--spacing-unit); */
    padding: calc(var(--spacing-unit) * 2)  var(--spacing-unit);
    position: relative;
    /*für labelposition*/
    display: flex;
    flex-direction:column;
}

section .headline {
    margin: 2rem 0 0 0;
}

#gallery_wrapper article {
    margin-top: 15vh;
}

#gallery_wrapper #lightgallery {
    /* margin-bottom: 15vh; */
    margin-top: 10rem;
    margin-bottom: 10rem;
}


.nomargin {
    margin: 0;
}

.nopadding {
    padding: 0;
}

.header_bg_image_overlay .headline {
    margin: 0;
    width: 75%;
}

article {
    text-align: left;
    line-height: 1.5;
}

article:not(.swiper-slide) + * {
    margin-top: 2rem;
}

.swiper-slide + * {
    padding-top: 2rem;
}

article p:not(:last-of-type):not(.statement), #tinymce p:not(:last-of-type) {
    margin-bottom: calc(var(--spacing-unit) / 2);
}

article p:has(+ ul) {
    margin-bottom: 0 !important;
}
/* Focus Team, Schwerpunkte etc */
.focus-link_content {
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.focus-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    height: 0;
    overflow: hidden;
}

.focus-section.active {
    display: block;
    opacity: 1;
    height: auto;
}

/* .focus-section.active .close {
    font-size: 1.5rem;
    position: absolute;
    right: .75rem;
    top: 1rem;
    height: 0;
    color: var(--color2);
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    z-index: 2;
}
 */

.focus-section.active .close {
    background: url("/img/close.png");
    background-size: cover;
    height: 2rem;
    width: 2rem;
    position: absolute;
    right: .75rem;
    top:.75rem;
    cursor: pointer;
}


.focus-section>article {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Components */
.subsidiaries_tile {
    align-items: flex-start;
    border-radius: 1.5rem;
    color: var(--text-color);
    display: flex;
    margin-bottom: var(--spacing-unit);
    padding: var(--spacing-unit);
}

.subsidiaries_tile:last-of-type {
    margin-bottom: 0;
}
.subsidiaries_tile.clinic {
    background: linear-gradient(to right, #e6f5f7, #ecf0f3);
}

.subsidiaries_tile.gyn {
    background: linear-gradient(to right, #f1f8ea, #ecf0f3);
}

.subsidiaries_tile.dys {
    background: linear-gradient(to right, #fdeeef, #ecf0f3);
}

.subsidiaries_tile .img {
    flex: 0 1 calc(100% / 3);
    text-align: center;
}

.subsidiaries_tile .img img {
    height: auto;
    max-height: 8rem;
    min-width: 6rem;
}

.subsidiaries_tile .text {
    flex: 0 1 calc(200% / 3);
    font-size: 1rem;
    padding: 0 0 0 1rem;
}

#cta_help_mobile .subsidiaries_tile {
    align-items: anchor-center;
}

.schwerpunkte {
    display: grid;
    grid-auto-rows: 1fr;
    grid-column-gap: .75rem;
    grid-row-gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
    margin-left: 0;
    /* margin-top: 1rem; */
}

.schwerpunkte .tile {
    background: #fff;
    border-radius: calc(var(--spacing-unit) / 2);
    flex: 1 1 calc(50% - calc(var(--spacing-unit) /2));
    padding: calc(var(--spacing-unit) / 2);
    text-align: left;
    transition: .3s;
    hyphens: auto;
}

button, .button {
    line-height: 0;
    align-items: center;
    background-color: var(--color2);
    border: none;
    border-radius: 1.5rem;
    color: white;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    height: 2rem;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    text-transform: uppercase;
    transition: .3s;
}

button:hover, .button:hover {
    background-color: var(--color3);
    text-decoration: none;
}

.button_color3 {
    background-color: var(--color3);
}

.button_color2 {
    background-color: var(--color2);
}

.button_color1 {
    background-color: var(--color1);
}

/* .header-buttons, .section-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    right: 0;
} */

.header-buttons, .section-buttons {
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    right: calc((100vw - 100%) / -2 - -0.45rem);
    margin-top: calc(0.25rem + var(--spacing-unit));
    justify-content: flex-end;
}

.header-buttons {
    bottom: var(--spacing-unit);
}

.section-buttons {
    /* top: 1.5rem; */
    position: relative;
    right: calc((100vw - 100%) / -2 - -0.45rem);
    margin-top: 0;
    top: 0;
    flex-direction: row;
    margin-bottom: 1rem;
}

.current-buttons {
    position: relative;
    left: calc((100vw - 100%) / -2 - -0.39rem);
    margin-top: 0;
    top: 0;
    margin-bottom: 1rem;
    
    z-index: 1;
    margin: 3rem auto 0 0;
}

main>section .current-buttons {
    margin: 0 auto calc(var(--spacing-unit) * 2) 0;
}
.header_bg_image_overlay .section-buttons {
    /* margin-top: calc(0.25rem + var(--spacing-unit)); */
}


.header-buttons button,
.header-buttons .button,
.section-buttons .button {
    border-radius: 1.5rem 0 0 1.5rem;
}

.current-buttons .button {
    border-radius: 0 1.5rem 1.5rem 0;
}

.slider .tile, .swiper .tile {
    background: #fff;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* margin: 0 0.5rem; */
    padding: 1rem;
    text-align: left;
    width: 15rem;
}

.operateure .slider .tile {
    background: none;
    box-shadow: none;
    padding: 0;
}

.tile>div {
    margin-bottom: 1.25rem;
    min-height: 6rem;
    min-width: 6rem;
    position: relative;
}

.tile img.logo {
    height: 100%;
    object-fit: contain;
    object-position: left;
    position: absolute;
    width: 100%;
}

.aktuelles .tile h3 {
    font-size: 1.25rem;
}

    #cta_help {
        display: none;
    }

.cta_help_columns {
    display: block;
    flex-wrap: wrap;
    justify-content: center;
}

.cta_help .tile {
    display: block;
    margin: var(--spacing-unit) 0;
    min-width: 8rem;
    text-align: left;
}

.circular_image {
    aspect-ratio: 1 / 1;
    clip-path: circle();
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.header_bg_image_overlay article {
    background: rgba(255, 255, 255, .8);
    border-radius: 1rem;
    padding: var(--spacing-unit);
    /* max-width: 24rem; */
}

.overlay {
    background: rgba(0, 158, 176, 0.5);
    border-radius: 1rem;
    color: #000;
    margin-top: -6rem;
    padding: var(--spacing-unit);
}

section.bg_image {
    padding: 2rem;
}

img.bg_image {
    display: block;
    height: 100%;
    left: calc(50% - 0.51rem);
    object-fit: cover;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100vw;
    z-index: -1;
}

/* .wrapper_2columns, .wrapper_3columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: calc(100% + 0rem);
}
 */
.wrapper_2columns, .wrapper_3columns {
    /* display: flex; */
    /* flex-wrap: wrap; */
    gap: calc(var(--spacing-unit) * 2);
    width: calc(100% + 0rem);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    hyphens: auto;
    hyphenate-limit-chars: auto 4;
    hyphenate-limit-lines: 2;
}

.wrapper_3columns {
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
}

.wrapper_3columns .tile {
    /* flex: 1 1 calc((100% / 3) - 2rem); */
    /* max-width: 14rem; */
}

.wrapper_2columns .tile {
    /* flex: 1 1 calc((100% / 2) - 2rem); */
    /* max-width: 21.8rem; */
}

.column2 {
    column-count: unset; 
    column-gap: unset;
}
.news .tile {
    background: #fff;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem;
    text-align: left;
    /* flex: 1 1 calc((100% / 2) - 1.5rem); */
}

.tile_image {
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    flex: 0 1 calc((100% / 3) - 2rem);
    overflow: hidden;
}

.tile_image>img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.bio_image {
    align-items: flex-end;
    display: flex;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.bio_image img {
    margin-right: 2rem;
    max-width: 10rem;
}

.statement {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    margin: 4rem 0 3rem 0;
}

.statement::before {
    content: "»";
    flex-shrink: 0;
    font-size: 5rem;
    line-height: 0;
    color: var(--color1);
}

video {
    width: 100%;
}

.responsive_map {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
}

.responsive_map iframe {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.themen_personen {
/*     display: flex;
flex-wrap: wrap;
gap: 2rem;
width: calc(100% + 2rem); */
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.themen_personen .tile {
    flex: 0 1 calc((100% / 4) - 2rem);
}

.accordion {
    margin: 1rem 0;
}

.accordion-button {
    background-color: var(--color1);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    /* padding: 1rem 1rem 1rem 2.5rem; */
    padding: 0.4rem 1rem 0.4rem 2.5rem;
    position: relative;
    text-align: left;
    text-transform: none;
    transition: background 0.2s;
    width: auto;
    line-height: initial;
    height: auto;
}

.accordion-button::after {
    content: '→';
    display: inline-block;
    font-size: 1rem;
    left: 14px;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform 0.3s ease;
}

.accordion-button.active::after {
    transform: translateY(-50%) rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content ul {
    padding-top: 1rem;
}

.accordion-content.active {
    max-height: 1000px;
}

.footer {
    background-color: #ecf0f3;
    color: var(--text-color);
    padding: 2rem;
    text-align: center;
}

.footer a {
    color: inherit;
    margin: 0 1rem;
    text-decoration: none;
}

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

#getintouch {
    background: var(--color1);
    bottom: 1rem;
    color: #fff;
    display: flex;
    height: 4.5rem;
    justify-content: center;
    left: 0;
    opacity: .85;
    padding: 0rem;
    position: fixed;
    transition: all 0.3s ease-in-out;
    /* width: 100%; */
    z-index: 10;
    font-size: .75rem;
    border-radius: 0 1.5rem 1.5rem 0;
    transform: translateX(-100%);
}

#getintouch div {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    width: 100%;
}

#getintouch>div>a {
    margin-right: 1rem;
}

#getintouch div a img {
    height: 100%;
    margin: 0 auto .25rem auto;
    max-height: 1.5rem;
}

/* Background variations */
.bg_fullwidth {
    color: var(--text-color);
    margin: 0 auto;
    /* padding: var(--spacing-unit); */
    padding: calc(var(--spacing-unit) * 2)  var(--spacing-unit);
}

.focus-link_content.bg_fullwidth {
    padding: 0 var(--spacing-unit);
}

.bg_fullwidth_slider {
    /* padding: var(--spacing-unit) 0rem; */
}

.bg_fullwidth::before {
    content: "";
    display: block;
    height: 100%;
    /* left: calc(50% - 0.5rem); */ /*scrollbar*/
    left: calc(50% - 0rem);
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100vw;
    z-index: -1;
}

.current-buttons-container + .bg_fullwidth::before {
    margin-top: -5rem;
    height: calc(100% + 5rem);
}

.header_bg_image, .header_bg_image_overlay {
    margin: 0 auto;
}

.operateure {
    margin: 0 auto;
}

.header_bg_image img {
    display: block;
    height: 50vh;
    left: calc(50% - 0.51rem);
    object-fit: cover;
    position: relative;
    top: 0;
    transform: translateX(-50%);
    width: 100vw;
    z-index: -1;
}

.header_bg_image_overlay {
    display: flex;
    flex-direction: column;
    min-height: 50vh;
    justify-content: space-between;
    /* padding: var(--spacing-unit); */
    padding: calc(var(--spacing-unit) * 2)  var(--spacing-unit);
}

.header_bg_image_overlay>img {
    display: block;
    height: 100%;
    left: calc(50% - 0.51rem);
    object-fit: cover;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100vw;
    z-index: -1;
    
}

.slider.bg_fullwidth {
    padding-bottom: var(--spacing-unit);
}

.bg_var1::before {
    background-image: linear-gradient(to bottom, var(--color4) 0%, #ecf0f3 100%);
}

.bg_var2::before {
    background-image: linear-gradient(to right, #e5f5f7 0%, #ecf0f3 100%);
}

.bg_var3::before {
    background-image: linear-gradient(to top, #e5f5f7 0%, #ecf0f3 100%);
}

.bg_var4::before {
    background-image: linear-gradient(to top, var(--color4) 0%, #ecf0f3 100%);
}

.bg_var5::before {
    background-image: linear-gradient(to bottom, var(--color5) 0%, #ecf0f3 100%);
}

.bg_var6::before {
    background-image: linear-gradient(to top, var(--color5) 0%, #ecf0f3 100%);
}

.bg_var7::before {
    background-image: linear-gradient(to right, var(--color5) 0%, #ecf0f3 100%);
}

.bg_var8::before {
    background-image: linear-gradient(to bottom, var(--color6) 0%, #ecf0f3 100%);
}

.bg_var9::before {
    background-image: linear-gradient(to top, var(--color6) 0%, #ecf0f3 100%);
}

.bg_var10::before {
    background-image: linear-gradient(to right, var(--color6) 0%, #ecf0f3 100%);
}

/*  */
/* Slider */
/*  */
.slick-slider {
    left: 0rem;
    width: calc(100% - 0rem);
}

.slick-dots {
    bottom: 0rem;
    position: relative;
}

.slick-dotted.slick-slider, .swiper {
    margin-bottom: 0;
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    /* cursor: zoom-in; */
}

.swiper-autoheight .swiper-wrapper {
    margin: 0 auto 1rem auto;
}

.topic-swiper {
    width: 100%;
    margin-left:0;
}

.lightbox-swiper-container img {
    width: 100%;
}

.swiper-button-prev.swiper-button-disabled, .swiper-button-next.swiper-button-disabled {
    opacity: 0.05;
}

.slide-caption {
    /* padding: 1rem 0 0 0; */
    padding: 1rem 0 0 var(--spacing-unit);
}
/*  */
/* Kontaktformular */
/*  */
    form {
        /* max-width: 500px; */
        width: 100%;
        margin: 0 auto;
        /* min-height: 24rem; */
    }

    form h2 {
        text-align: left;
        margin-bottom: 2rem;
    }
    
    form p, form span {
        font-size: 1rem;
        line-height: 1.5;
    }

    form label, form select, form input {
        display: block;
        width: 100%;
        font-size: 1rem;
        line-height: 1.5;
        border: 0;
    }
    
    form input {
        border-bottom: 1px solid black;
        margin: 20px 0;
        padding: 10px;
    }
    
    #step7 input {
        margin: 5px 0 20px 0;
        
    }
    form select {
        border: 0;
        border-bottom: 1px solid black;
        height: 3rem;
        font-size: 1rem;
        color: #7c7b7b;
        margin: 20px 0;
    }

form input[type="radio"], input[type="checkbox"] {
    width: auto;
    display: inline;
    margin: 20px 20px 0px 0;
    height: 1rem;
    width: 1rem;
}
    
    input + label {
        display: inline;
    }
    
    form textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid #000;
    padding: 10px;
    margin: 20px 0 0 0;
    }

    form table {
            width: 100%;
    margin: 20px 0;
    }
    
    th, td {
       color: #0f9eb0; 
       font-weight: normal;
    }
    
    tr>td:not(:first-of-type), th {
        text-align: center;
    }

    form .error {color: red;}
    
    form .button_wrapper {
        display: flex;
        flex-wrap: wrap;
        width: calc(100% + 40px);
        position: relative;
    }
        
    form button {
        /* display: block; */
        flex: 0 1 calc(50% - 40px);
        padding: 1rem;
        background: #0f9eb0;
        color: white;
        border: none;
        /* border-radius: 5px; */
        cursor: pointer;
        font-size: 16px;
        transition: all .3s;
        margin: 20px 40px 20px 0;
        height: initial;
    }

    form button:hover {
        background: #76b729;
    }

    form button.back {
        background: #6c757d;
    }

    form button.back:hover {
        background: #ea5161;
    }

    .step:not(.step8) {
        display: none;
    }

    .step8 {
        height: 0; 
        overflow: hidden;
    }

    .step.active {
        display: block;
    }
    
    .step8.active {
        height: auto;
        
    }

    #ueberweisungSection {
        margin: 20px 0;
        color: #0f9eb0;
    }

    #signature-pad {
        border: 1px solid black;
        width: 100%;
    }
    
    canvas {
        min-height: 200px;
        margin: 20px 0;
    }
    
    .error {
        border: 1px solid red !important; 
    }



/*  */
/* Media Queries */
/* */

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
    main {
        margin: 0 auto;
    }
    
.header-container .headline {
    font-size: 2rem;
    max-width: 80%;
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    bottom: 1rem;
    top: auto;
    display: initial;
}

    .subsidiaries_tile .text {
        font-size: 1.25rem;
    }

    .aktuelles .tile h3 {
        font-size: 1.25rem;
        hyphens: auto;
        hyphenate-limit-chars: auto 4;
        hyphenate-limit-lines: 2;
    }

    #cta_help_mobile {
        display: none;
    }
    
    #cta_help {
        display: block;
    }


    .cta_help_columns {
        display: flex;
    }

    .cta_help .tile {
        display: inline-block;
        width: calc(100% / 3);
    }
    .column2 {
        column-count: 2; 
        column-gap: 2rem;
    }
    .slick-dotted.slick-slider {
        width: calc(100% + 1.5rem);
        margin-left: -.75rem;
    }
    .news-swiper, .team-swiper, .topic-swiper {
        width: calc(100% + 0rem);
        margin-left: 0;
    }
    
        .news-swiper, .team-swiper {
        mask-image: linear-gradient(to right, transparent 0%, white 10% 90%, transparent 100%);
    }
    
    .team-swiper, .topic-swiper {
        padding-bottom: 2.5rem;
    }
    
    .team-swiper .swiper-button-next, .team-swiper .swiper-button-prev, .topic-swiper .swiper-button-next, .topic-swiper .swiper-button-prev {
        right: auto;
        left: 50%;
        top: auto;
        bottom:0;
    }
    
    .team-swiper .swiper-button-prev, .topic-swiper .swiper-button-prev {
        transform: translatex(-2rem);
    }

    .team-swiper .swiper-button-next, .topic-swiper .swiper-button-next {
        transform: translatex(2rem);
    }

    .wrapper_2columns {
        grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    }
    .wrapper_3columns {
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    }
    
/*     .accordion-button {
    line-height: 0;
    height: 2rem;
} */

}

@media (min-width: 1100px) {
    
    .subsidiaries {
        flex-direction: row;
        max-width: initial;
        gap: 2rem;
        /* padding: 0; */
        display: flex;
        max-width: 1440px;
    }
    
    .subsidiaries_tile {
        flex-direction: column;
        flex: 0 1 calc(100% / 2);
        margin-bottom: 0;
    }
    
    .subsidiaries_all .subsidiaries_tile {
        flex: 0 1 calc(100% / 3);
    }
    
    .subsidiaries_tile .text {
        padding: 1rem 0 0 0;
    }
        .section-buttons {
        position: absolute;
        /* margin-top: calc(0.25rem + var(--spacing-unit)); */
        margin-top: calc(0rem + (var(--spacing-unit) * 2));
    }
    
    .current-buttons-container {
        position: sticky;
        top: 6rem;
    }
    .current-buttons {
        position: absolute;
        /* margin-top: calc(0rem + var(--spacing-unit)); */
        margin: 0 auto 1rem 0;
        left: calc((12rem - 100%) / -2 - 0.0rem);
    }
    
    main>div>.current-buttons-container {
        z-index: 1;
        margin-top: calc(var(--spacing-unit) * 2);
        padding-bottom: 4rem;
        width: 12rem;
    }
    
    main>div>section:first-of-type {
        margin-top: -7rem;
    }
    
    .current-buttons-container + .bg_fullwidth::before {
        margin-top: 0rem;
        height: calc(100% + 0rem);
    }

    .bg_fullwidth_slider {
        padding: 2.5rem 2rem;
    }

    .bg_fullwidth_slider h2 {
        padding: 0;
    }
    
    .operateure {
        margin: 1.5rem auto 0 auto;
    }
    
    .operateure .section-buttons {
        /* margin-top: 2.25rem; */
    }
    
    #gallery_wrapper #lightgallery {
        margin-bottom: initial;
    }

}

@media (min-width: 1200px) {
    html {
        font-size: 19px;
    }
    
    #gallery_wrapper article {
        margin-top: initial;
    }

    #gallery_wrapper #lightgallery {
        margin-top: initial;
    }

}
@media (min-width: 1600px) {
    html {
        /* font-size: 20px; */
    }
}
@media (orientation: portrait) {
    .header-container {
        /* height: 90vh; */
        /* height: 80vh; */
        height: 70vh;
        /* height: 50vh; */
    }
    
}
    
@media (orientation:portrait) and (max-width: 500px){     
    .bio_image {
        display: block;
    }
    .bio_image img {
        margin-bottom: var(--spacing-unit);
    }
}
@media (pointer: fine) {
    .bg_fullwidth::before {
        left: calc(50% - 0.5rem);
    }
}
        
@media screen and (min-width:768px) {
    /* Initial state (hidden) */
    section:not(.focus-link_content) {
        opacity: 0.1;
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        transform: translate(0rem, 1rem);
    }
    
    #tinymce section {
        opacity: 1;
    }
    
    /* Scrolling DOWN: Fade in from bottom */
    section.is-visible {
        opacity: 1;
        transform: translate(0,0);
    }
    
    /* Scrolling UP: Fade out to top */
    section.is-exiting {
        opacity: 1;
        transform: translate(-0rem, -0rem); /* Exits upward */
    }
}        


/* Base Styles */
.header-container {
    position: relative;
    overflow: hidden; /* Hide overflow from parallax movement */
}

.parallax-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place behind text */
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers container */
    transform: translate3d(0, 0, 0); /* GPU acceleration */
    will-change: transform; /* Optimize animations */
}



/* Fade-in effect when loaded */
.header-container.loaded .headline {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
/*     .headline {
    font-size: 2rem; Smaller text on mobile
} */
    .header-image {
        transform: none !important; /* Disable parallax on mobile */
    }
}