html {
  scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-dark);
    font-family: var(--main-font);
    font-size: 0.8rem;
    line-height: 1.6;
}

a {
  color: var(--text-dark);
}

a:hover {
  color: var(--accent-soft1);
}

a:visited {
  color: var(--text-soft1);
}

a:active {
  color: var(--accent-soft1);
}

.dropmenu ul li a:hover, .dropmenu ul li a:focus, .dropmenu ul li a.active {
    color: var(--highlight) !important;
}

h1, h2, h3, h4, h5 {
  margin-top: 0;
  padding-top: 2rem;
  font-family: var(--main-font);
  color: var(--text-dark);
}

h1 {
  font-size: 2.3rem !important;
}

h2{
  padding-top: 0;
  color: var(--highlight) !important;
  font-weight: 700;
}

hr {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.flex{
  display: flex;
}

.wrap{
  flex-wrap: wrap;
}

.nowrap{
  flex-wrap: nowrap;
}

.gap-1{
  gap: 1rem;
}

.gap-2{
  gap: 2rem;
}

.p-1{
  padding: 1rem !important;
}

.p-2{
  padding: 2rem !important;
}

.p-4{
  padding: 4rem !important;
}

.pt-1{
  padding-top: 1rem !important;
}

.pt-2{
  padding-top: 2rem !important;
}

.pt-4{
  padding-top: 4rem !important;
}

.pb-1{
  padding-bottom: 1rem !important;
}

.pb-2{
  padding-bottom: 2rem !important;
}

.pb-4{
  padding-bottom: 4rem !important;
}

.m-1{
  margin: 1rem !important;
}

.m-auto-inline{
  margin-inline: auto;
}

.justify-center{
  justify-content: center;
}

.justify-between{
  justify-content: space-between;
}

.justify-around{
  justify-content: space-around;
}

.justify-evenly{
  justify-content: space-evenly;
}

.align-center{
  align-items: center;
}

.align-start{
  align-items: flex-start;
}

.align-end{
  align-items: flex-end;
}

.text-center{
  text-align: center !important;
}

.text-left{
  text-align: left !important; 
}

.text-right{
  text-align: right !important;
}

.title-center{
  text-align: center !important;
}

.title-left{
  text-align: left !important; 
}

.title-right{
  text-align: right !important;
}



.hide-scrollbar {
  -ms-overflow-style: none; /* IE und Edge */
  scrollbar-width: none;    /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;            /* Chrome, Safari, Opera */
}

.rounded{
  border-radius: 1rem;
}

section.section {
  position: relative;
  background-color: var(--primary-bg);
  color: var(--text-dark);
}

section.section.hero{
  background-color: transparent;
}

.hero-extralarge {
    min-height: 85vh !important;
}

section.section:nth-of-type(2n):not(.hero){  
  padding-inline: 0;
  background-color: var(--secondary-bg);
  background-image: var(--section-bg-svg-url);
  background-repeat: repeat;
  background-size: contain;
  background-position: center;
  background-blend-mode: multiply;
  color: var(--text-light);
}

section.section h1,
section.section h2,
section.section h3,
section.section h4,
section.section h5 {
  color: var(--text-dark);
}

section.section:nth-of-type(2n) h1,
section.section:nth-of-type(2n) h2,
section.section:nth-of-type(2n) h3,
section.section:nth-of-type(2n) h4,
section.section:nth-of-type(2n) h5 {
  color: var(--text-light);
}

section.section:nth-of-type(2n):not(.hero)::before{
  content: "";
  display: block;
  width: 100%;
  height: 80px;
  position: relative;
  left: 0px;
  top: -1px;
  background: var(--primary-bg);
  transform: scaleY(-1);
  -webkit-mask-image: var(--section-divider-svg-url, url('/user/themes/horizon/images/divider-1.svg'));
  mask-image: var(--section-divider-svg-url, url('/user/themes/horizon/images/divider-1.svg'));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

section.section:nth-of-type(2n)::after{
  padding-inline: -1rem;
  content: "";
  display: block;
  width: 100%;
  height: 80px;
  position: absolute;
  left: 0;
  bottom: -1px;
  background: var(--primary-bg);
  -webkit-mask-image: var(--section-divider-svg-url, url('/user/themes/horizon/images/divider-1.svg'));
  mask-image: var(--section-divider-svg-url, url('/user/themes/horizon/images/divider-1.svg'));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none
}

.no-list-style {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ar-5-4{
  aspect-ratio: 5/4;
  object-fit: cover;
}

.ar-16-9{
  aspect-ratio: 16/9;
}

/* Button */
.btn {
  height: 3rem;
  display: inline-block;
  color: var(--text-light);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.5rem;
  transition: var(--transition);
  border: 2px solid var(--highlight);
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.1);
}

.btn.cta {
  background: var(--highlight);
  color: var(--text-light);
  border: none;
}

.btn.small {
  height: 2rem;
  font-size: 0.8rem;
  line-height: 1rem;
  padding: 0.4rem 1rem;
}

.btn:hover {
  color: var(--text-dark);
  border: 1px solid var(--highlight);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn.cta:hover {
  color: var(--text-light);
  border: 1px solid var(--text-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sd-xs {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.sd-s {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sd-m {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.sd-l {
  box-shadow: 0 11px 25px rgba(0, 0, 0, 0.6);
}

/* Input */
input {
  height: 2rem;
  display: inline-block;
  color: var(--text-dark);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
  border: 1px solid var(--highlight);
  cursor: pointer;
  font-size: 0.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

input:focus{
  outline-color: var(--highlight);
  scale: 1.03;
}

/* Header */
#header {
    z-index: 10000 !important;
    height: fit-content !important;
    padding: 1rem;
    transition: 1s ease;
}

#header a{
  color: var(--text-light);
}

#header.scrolled a{
  color: var(--text-dark);
}


#header.scrolled {
  background-color: var(--header-bg-scrolled);
}

#header .logo svg, #header .logo img{
  height: 3.5rem;
}

#header.scrolled .logo svg, #header.scrolled .logo img {
  height: 3.5rem;
}

body.header-fixed.header-animated #header.scrolled .logo img, body.header-fixed.header-animated #header.scrolled .logo svg {
  height: 3.5rem;
}


#header .logo-text p {
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
}

#header .navbar .navbar-section {
  height: fit-content;
  align-self: center;
  flex: none;
}

#header .logo .columns{
  flex-wrap: nowrap;
}

/* Mobile Menu */

.mobile-menu .button_container{
  top: 1.3rem;
}

.mobile-menu .button_container span {
  background-color: #000;
}

.mobile-menu .button_container.active .top{
  background-color: #000;
}

.mobile-menu .button_container.active .bottom{
  background-color: #000;
}

#header.scrolled .mobile-menu .button_container{
  top: 0.7rem;
}

#header.scrolled .mobile-container{
  top: 1rem;
}

.mobile-container .overlay{
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  flex-direction: column-reverse;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background-color: rgba(22, 22, 22, 0.4);
  backdrop-filter: blur(4px);
};

.overlay-menu {
  position: relative;
  margin: 0 auto;
  text-align: center;
}

.treemenu.treemenu-root {
  margin: 1rem;
}

.treemenu li {
  list-style: none;
  margin: 0 0 1px;
  padding: 5px 0;
  line-height: 1.2rem;
  text-align: center;
}

.treemenu li a {
  display: block;
  padding: 1rem;
  padding-inline: 30vw;
  margin-left: 0;
  font-size: 1rem;
  border: 1px solid var(--text-light);
  color: var(--text-light);
  border-radius: 2rem;
  text-decoration: none;
  background-color: var(--text-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.treemenu li a:hover, a:focus, a.active {
  color: var(--text-light) !important;
  text-decoration: none;
  scale: 1.03;
}

.treemenu ul {
  margin: 0 0 0 1rem;
}

.treemenu .toggler {
  display: none;
  cursor: pointer;
  vertical-align: top;
  font-size: 1.1rem;
  line-height: 1rem;
  padding-left: 5px;
  float: left;

  &:before {
    display: none; margin-right: 2pt;
  }
}

.treemenu li.tree-empty  > .toggler {
  opacity: 0.3; cursor: default;

  &:before {
    content: "\2022";
  }
}

.treemenu li.tree-closed > .toggler:before {
  content: "+";
}

.treemenu li.tree-opened > .toggler:before {
  content: "\2212";
}

/* Hero Section */

.hero-title-center h1{
  text-align: center;
}

.hero-title-left h1{
  text-align: left;
}

.hero-title-right h1{
  text-align: right;
}

.hero-large{
  min-height: 70vh !important;
}

/*Image Fokus*/
.image-center {
  background-position: 50% 40% !important;
}

/* Text Section */
.gallery.polaroid-slider {
    display: grid;
    width: 280px;
    margin: 0 auto;
    margin-top: 3rem;
  }
  
  .gallery.polaroid-slider > img {
    grid-area: 1/1;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border: 10px solid #f2f2f2;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0,0,0,0.44);
    z-index: 2;
    animation: 
      slide 8s infinite,
      z-order 8s infinite steps(1);
  }
  .gallery > img:last-child {
    animation-name: slide, z-order-last;
  }
  .gallery > img:nth-child(2) { animation-delay: -2s; } 
  .gallery > img:nth-child(3) { animation-delay: -4s; }
  
  @keyframes slide {
    16.67% { transform: translateX(120%)}
    33.33% { transform: translateX(0%)}
  }
  @keyframes z-order {
    16.67%,
    33.33% { z-index: 1; }
    66.33% { z-index: 2; }
  }
  @keyframes z-order-last {
    16.67%,
    33.33% { z-index: 1; }
    83.33% { z-index: 2; }
  }

/* Feature Icon */
.modular-features{
    padding-bottom: 4rem;
}

.modular-features .frame-box
{
  padding: 0 !important;
  padding-bottom: 4rem;
}

.modular-features.small .columns{
  margin: 0;
}

.modular-features .feature-icon {
  color: var(--highlight);
  margin: 0px;
}

.modular-features .column:hover .feature-icon {
  color: var(--highlight);
}

.modular-features .card{
  scale: 0.95;
  padding: 0px;
  overflow: hidden;
}

.card h2 {
  color: var(--highlight);
}

.card h2,h3,h4,h5 {
  margin-top: 0;
  padding-top: 0;
}

a:has(.card):hover{
  text-decoration: none;
}

.card:hover{
  scale: 1;
  border: 1px solid var(--highlight);
}

.card .feature-icon {
  overflow: hidden;
  align-content: center;
  position: relative;
}

.card .feature-icon h4 {
  padding-inline: 1rem;
  position: absolute;
  font-weight: 700;
  text-shadow: #000000 2px 0 10px;
}

.card .feature-icon img{
    opacity: 40%;
}

.modular-features .column:hover .feature-icon img{
  opacity: 70%;
}

.card .feature-content{
  padding-inline: 1rem;
  color: var(--text-light); 
}

.modular-features .column:hover .feature-content{
  color: var(--text-light); 
}

.modular-features .column:hover .feature-icon h4{
  scale: 1.1;
}

/* Gallery Section */
.modular-gallery > .container {
  padding-bottom: 4rem;
  text-align: center;
}

.gallery-bento {
  margin: 2rem auto;
  padding: 0 1rem;
}

.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: minmax(150px, auto);
  grid-gap: 1rem;
  grid-auto-flow: dense;
}

.gallery-bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-bento-item:hover {
  transform: scale(1.03);
  z-index: 2;
}

.gallery-bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.grid-gallery{
    overflow: hidden;
}

.grid-gallery .gallery-item img.gallery-thumb {
  width: 100%;        
  height: 400px;      
  object-fit: cover;  
  border-radius: 0.5rem; 
  display: block; 
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.landscape {
  grid-column: span 2;
}

.portrait {
  grid-row: span 2;
}

.zoom-icon {
  font-size: 2rem;
  color: white;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.gallery-item:hover .zoom-icon {
  transform: scale(1);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 10000;
  padding: 2rem;
  color: white;
}

.lightbox:target {
  display: block;
}

.lightbox-content {
  position: relative;
  width: fit-content;
  max-width: 90%;
  max-height: 90%;
  margin: 2rem auto;
  text-align: center
}

.lightbox img {
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 0.5rem;
  font-size: 2rem;
}

/* Roadmap */
.roadmap{
  margin-top: 4rem;
  padding-bottom: 4rem;
  flex-direction: row;
}

.roadmap-element {
  display: flex;
  justify-content:center;
  align-items: center;
  position: relative;
  height: 20rem;
}

.roadmap-element .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft1);
  color: var(--text-light);
  position: absolute;
}

.roadmap-element .circle-large {
  width: 4rem;
  height: 4rem;
  transform: translateY(-8rem);
  font-size: 2.5rem;
}

.roadmap-element .small-circle-wrapper{
  display: flex;
  justify-content:center;
  align-items: center;
}

.roadmap-element .circle-small {
  width: 5rem;
  height: 5rem;
  font-size: 1.5em;
  font-weight: bold;
}

.roadmap-element .circle-small-outer{
  width: 8rem;
  height: 8rem;
  background: rgba(0,0,0,0);
  border: .5rem solid;
  border-bottom-color: var(--accent-soft1);
  border-left-color: rgba(0,0,0,0);
  border-right-color: rgba(0,0,0,0);
  border-top-color: var(--accent-soft1);
  transform: rotate(45deg);
}

.roadmap-element .connector-vertical {
  position: absolute;
  width: .5rem;
  height: 3rem;
  transform: translateY(-5rem);
  background: var(--accent-soft1);
}

.roadmap-element .connector-horizontal {
  position: absolute;
  width: 5rem;
  height: .5rem;
  background: var(--accent-soft1);
}

.roadmap-element .connector-horizontal.left {
 transform: translateX(-6rem);
}

.roadmap-element .connector-horizontal.right {
 transform: translateX(6rem);
}

.roadmap-element .text-block {
  width: 10rem;
  position: absolute;
  transform: translate(70%, 60%);
  line-height: 1;
}

/* Testimonial Section */
.modular-testimonial {
  padding-top: 2rem;
  padding-bottom: 4rem;
  text-align: center;
}

.testimonial-carousel {
  text-align: center;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.testimonial-wrapper {
  position: relative;
}

.testimonial-item {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
  pointer-events: none;
  
}

.testimonial-item.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}
.testimonial-item.slide-in-left {
  transform: translateX(-100%);
  opacity: 0;
}
.testimonial-item.slide-in-right {
  transform: translateX(100%);
  opacity: 0;
}
.testimonial-item.slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
}
.testimonial-item.slide-out-right {
  transform: translateX(100%);
  opacity: 0;
}
.testimonial-text {
  margin-top: 1em;
  margin-bottom: 1em;
}
.testimonial-author {
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 1em;
}
.testimonial-controls {
  margin-top: 1em;
}
.testimonial-controls button {
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  margin: 0 1em;
}

/* iFrame Section */
.modular-iframe {
    padding-bottom: 8rem;
    padding-top: 2rem;
    text-align: center;
}

.iframe-container {
    position: relative;
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

iframe{
  width: 100%;
  height: 100%;
}

.iframe-border{
  padding: 1rem;
  background-color: var(--primary-bg);
  border-radius: 1rem;
}

.iframe-header {
    background-color: var(--primary-bg);
    color: var(--highlight);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.iframe-logo {
    display: flex;
    align-items: center;
}

.iframe-logo img {
    height: 30px;
    margin-right: 10px;
}

.iframe-logo span {
    font-weight: 600;
    font-size: 1.2rem;
}

.iframe-frame-container {
    position: relative;
    height: 60vh;
}

.iframe-footer {
    background-color: var(--primary-bg);
    color: var(--accent-soft3);
    padding: 15px 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Contact Section*/
.modular-contact .container{
  padding-bottom: 4rem;
  margin-inline: auto;
}

.contact-text h4 {
  text-align: left;
}

.contact-text{
  text-align: left;
}

.map{
  aspect-ratio: 1/1;
}

/* Form */

#contact-form{
  justify-content: center;
  padding-bottom: 2rem;
}

input[type="text"],
input[type="email"]{
  border: 1px solid var(--highlight);
  border-radius: 3rem;
  padding: 1rem;
  background-color: transparent;
}

input[type="text"]:focus,
input[type="email"]:focus{
  outline-color: var(--highlight);
  background-color: var(--primary-bg);
}

textarea.form-input{
  border: 1px solid var(--highlight);
  border-radius: 1rem;
  padding: 1rem;
  background-color: transparent;
}

textarea.form-input:focus{
  outline-color: var(--highlight);
  background-color: var(--primary-bg);
}

.radio-label input[type="radio"]{
  display: none;
}

.radio-label input[type="radio"] + label {
  font-size: .9rem;
  padding: 1rem;
}

.radio-label input[type="radio"]:checked + label {
  background: var(--highlight);
}

.radio-label .form-data{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.radio-label .form-data label{
  border: 1px solid var(--highlight);
  border-radius: 3rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
  padding-inline: 1rem;
}

div:has(#datenschutz){
  justify-content: center;
  gap: 1rem;
}

#datenschutz {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--highlight);
  background-color: transparent; 
  appearance: none; 
  -webkit-appearance: none;
}

#datenschutz:checked {
  background-color: var(--highlight);
}

/* Slider Form */

.modular-form-slider{
  text-align: left;
  padding-bottom: 4rem;
  padding-top: 2rem;
}

.slides-container{
  margin-inline: auto;
  margin-top: 2rem;
  background-color: var(--secondary-bg); 
  border-radius: 1rem;
  padding-bottom: 2rem;  
}

#multi-step-form{
  padding-bottom: 1rem;
  padding-top: 1rem;
  display: flex;
  flex-direction: row;
  position: relative;
} 

.modular-form-slider h3{
  text-align: center;
  padding-bottom: 1rem;
}

#multi-step-form fieldset[id]{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem;
}

#multi-step-form fieldset[id] fieldset{
  align-self: center;
  justify-items: center;
  margin-bottom: 1rem;
}

#multi-step-form fieldset[id] .form-field{
  width: 80%;
}

#multi-step-form fieldset[id="step2"] .form-field .form-data{
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: space-around;
    justify-content: space-between;
    height: 300px;
    column-gap: 2rem;
}

.form-input-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
} 

.modular-form-slider .radio{
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.modular-form-slider input[type="radio"]{
  width: 2rem;
  height: 2rem;
  margin-right: 1rem;
}

.modular-form-slider input[type="checkbox"]{
  width: 2rem;
  height: 2rem;
  margin-right: 1rem;
}

.modular-form-slider .checkboxes input[type=checkbox]{
  display: block;
}

.modular-form-slider .button-wrapper {
  position: absolute;
  bottom: -4rem;
  right: 1rem;
}

#step-counter{
  margin: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;  
}

/* Modulear Map */

.modular-map > .container{
  padding-top: 2rem;
  padding-bottom: 4rem;
}

#map-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin: 0;
  margin-bottom: 1rem;
  border: 1px solid var(--accent-soft1);
}

#map-container {
  padding: 0.1rem;
  border: 1px solid var(--accent-soft1);
}

#map {
  height: 50vh;
}

/* Modulear Recent Blog */
.modular-recent-blog > .container {
  padding-bottom: 4rem;
}

#recent-blog-cards {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* Custom Checkbox */
.checkbox-img {
  width: 64px;
  height: 64px;;
  filter: saturate(0%);
  transition: filter 0.2s;
  cursor: pointer;
}
input[type="checkbox"]:checked + label .checkbox-img {
  filter: saturate(100%);
  scale: 1.03;
}

.filter-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s, opacity 0.3s;
}
.filter-panel.open {
  max-height: 500px; /* ausreichend groß wählen */
  opacity: 1;
}

/* Popup */

.popup {
  position: relative;
  display: flex;
  flex-direction: column;
}

.popup h5 {
  margin-top: 0;
}

.popup.lable{
  position: absolute;
  top: .1rem;
  left: .1rem;
}

/* Blog Location Item */

.tab-nav { list-style: none; display: flex; margin: 0; padding: 0; }
.tab-nav li { padding: 10px 20px; cursor: pointer; border-bottom: 2px solid transparent; }

.tab-nav li.active { 
  background-color: var(--primary-bg);
  border-bottom: 2px solid var(--highlight); 
  font-weight: bold; 
}

.tab-content { 
  display: none;
  padding: 20px;
}

.tab-content.active { 
  display: block; 
  background-color: var(--primary-bg);
  border-radius: .1rem;
}

/* Text Section */
.modular-text{
  padding-bottom: 4rem;;
}

.modular-text .image-default{
  scale: 0.75;
}

.modular-text .columns.right h1 {
    text-align: left !important;
    margin-bottom: 1rem ;
    padding-top: 0;
}

.modular-text .columns.right p {
    text-align: left !important;
}

/* Newsletter */

  #sib-container input:-ms-input-placeholder {
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #c0ccda;
  }

  #sib-container input::placeholder {
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #c0ccda;
  }

  #sib-container textarea::placeholder {
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #c0ccda;
  }

  #sib-container a {
    text-decoration: underline;
    color: #2BB2FC;
  }

/* Sidebar */
#sidebar div{
  margin-bottom: 1rem;
}

.sidebar-ad {
  padding: 0 !important;
  overflow: hidden;
}

/* Linktree */

.linktree-socials{
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.linktree-card{
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--accent-soft1);
  border-radius: 25px;
  text-align: left;
  margin-bottom: 1rem;
  background: linear-gradient(78deg, rgba(255,255,255,22%)  0%, rgba(255,255,255,12%)  50%, rgba(255,255,255,20%)  100%);
  color: var(--text-light);
}

.linktree-card h5{
  margin-top: 1rem;
  color: var(--text-light);
}

.linktree-card:hover{
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.linktree-card .icon{
  text-align: center;
  font-size: xx-large;
}

#linktree-content img{
  width: 30%;
  aspect-ratio: 1/1;
  border-radius: 100%;
  overflow: hidden;
}

/* Mobile */
@media screen and (max-width: 1040px) {

  .hero .columns{
    flex-direction: column-reverse;
  }

  .hero #showcase-image{
    width: 80%;
  }

  .hero .btn {
    margin: .5rem;
  }

  .modular-contact .container {
    flex-direction: column;
  }

  #header .logo img, #header .logo svg {
    height: 4rem;
  }

  #header .navbar{
    flex-wrap: nowrap;
  }

  .map.iframe-frame-container{
    height: auto;
  }

  #linktree-content img{
    width: 50%;
  }

  .hide-on-mobile {
    display: none;
  }

  .triangle-container {
    margin-top: 2rem;
    height: 8rem;
  }

  .map {
    margin-top: 1rem;
  }

  .faq-mobile-reverse {
    flex-direction: column-reverse;
  }
}

/* Comic Style */
.comic-name-title {
    display: inline-block;
    padding: 1.5rem 3rem;
    margin-bottom: 1rem;
    background-color: var(--accent-soft1);
    color: white;
    border-radius: 4px;
    box-shadow: 5px 5px 0 var(--shadow-color);
    border: 3px solid #000;
    transform: rotate(-1deg);
}

.comic-btn {
    display: inline-block;
    padding: .5rem 1.2rem;
    margin-bottom: 1rem;
    background-color: var(--highlight);
    color: var(--text-light);
    font-size: x-large;
    font-weight: 400;
    border-radius: 4px;
    box-shadow: 5px 5px 0 var(--shadow-color);
    border: 3px solid #000;
    transform: rotate(-2deg);
    transition: .2s ease-in-out;
}

.comic-btn:hover {
    transform: rotate(2deg);
    scale: 1.2;
    font-weight: 600;
}

.triangle-container {
  width: 100%;
  position: relative;
}

.triangle-border {
  position: absolute;
  width: 50%;
  --r: 28px; /* Radius die Ecke */
  --rotate: 0deg;
  --translateX: 0%;
  aspect-ratio: 1/cos(30deg);
  mask:
    conic-gradient(from -30deg at 50% calc(200% - 3*var(--r)/2), #000 60deg, #0000 0)
      0 100%/100% calc(100% - 3*var(--r)/2) no-repeat,
    radial-gradient(var(--r) at 50% calc(2*var(--r)), #000 98%, #0000 101%),
    radial-gradient(var(--r) at left calc(tan(60deg)*var(--r)) bottom var(--r), #000 98%, #0000 101%),
    radial-gradient(var(--r) at right calc(tan(60deg)*var(--r)) bottom var(--r), #000 98%, #0000 101%);
  clip-path: polygon(50% 0%, 100% 100%, 0 100%);
  background-color: #333;
  padding: 5px;
  filter: saturate(30%);
  transition: transform 0.5s ease;
  transform: rotate(var(--rotate)), scale(0.8);
  transform-origin: center center;
  z-index: 1;
  animation: scaleUpDown 15s infinite;
}

.triangle-frame {
  top: 1px;
  aspect-ratio: 1/cos(30deg);
  position: relative;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.triangle-border:nth-child(1){
  left: 0;
  
}

.triangle-border:nth-child(2){
  animation-delay: 5s;
  --rotate: 180deg;
  --translateX: -50%;
  transform: translateX(var(--translateX)) rotate(var(--rotate)) scale(0.8);
  left: 50%;
}


.triangle-border:nth-child(3){
  animation-delay: 10s;
  transform: rotate(var(--rotate)) scale(0.8);
  right: 0;
}

.triangle-border:nth-child(odd) .triangle-frame {
  --r: 25px; /* Radius der Ecken */
  mask:
    conic-gradient(from -30deg at 50% calc(200% - 3*var(--r)/2), #000 60deg, #0000 0)
      0 100%/100% calc(100% - 3*var(--r)/2) no-repeat,
    radial-gradient(var(--r) at 50% calc(2*var(--r)), #000 98%, #0000 101%),
    radial-gradient(var(--r) at left calc(tan(60deg)*var(--r)) bottom var(--r), #000 98%, #0000 101%),
    radial-gradient(var(--r) at right calc(tan(60deg)*var(--r)) bottom var(--r), #000 98%, #0000 101%);
  clip-path: polygon(50% 0%, 100% 100%, 0 100%);
  box-sizing: border-box;
}

.triangle-border:nth-child(2n) .triangle-frame {
  --r: 25px; /* Radius der Ecken */
  transform: rotate(180deg);
  mask:
    conic-gradient(from 150deg at 50% calc(-100% + 3*var(--r)/2), #000 60deg, #0000 0)
    0 0%/100% calc(100% - 3*var(--r)/2) no-repeat,
    radial-gradient(var(--r) at 50% calc(100% - 2*var(--r)), #000 98%, #0000 101%),
    radial-gradient(var(--r) at left calc(tan(60deg)*var(--r)) top var(--r), #000 98%, #0000 101%),
    radial-gradient(var(--r) at right calc(tan(60deg)*var(--r)) top var(--r), #000 98%, #0000 101%);
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  box-sizing: border-box;
}

@keyframes scaleUpDown {
  0%, 38%, 100% { transform: translateX(var(--translateX)) rotate(var(--rotate)) scale(0.8); filter: saturate(30%); padding: 4px; z-index: 1; }
  5%, 33%      { transform: translateX(var(--translateX)) rotate(var(--rotate))  scale(1); filter: saturate(100%); padding: 8px; z-index: 10; }
}


/* Shapes */

.triangle-rounded {
  width: 300px;
  --r: 28px; /* Radius die Ecke */
  aspect-ratio: 1/cos(30deg);
  position: relative;
  mask:
    conic-gradient(from -30deg at 50% calc(200% - 3*var(--r)/2), #000 60deg, #0000 0)
      0 100%/100% calc(100% - 3*var(--r)/2) no-repeat,
    radial-gradient(var(--r) at 50% calc(2*var(--r)), #000 98%, #0000 101%),
    radial-gradient(var(--r) at left calc(tan(60deg)*var(--r)) bottom var(--r), #000 98%, #0000 101%),
    radial-gradient(var(--r) at right calc(tan(60deg)*var(--r)) bottom var(--r), #000 98%, #0000 101%);
  clip-path: polygon(50% 0%, 100% 100%, 0 100%);
  background-color: #333;
  scale: 0.4;
  margin-bottom: 1rem;
}

.triangle-rounded i{
  position: absolute;
  top: 60% !important;
}

.triangle-rounded-topdown {
  width: 300px;
  --r: 28px; /* Radius die Ecke */
  aspect-ratio: 1/cos(30deg);
  position: relative;
  mask:
    conic-gradient(from 150deg at 50% calc(-100% + 3*var(--r)/2), #000 60deg, #0000 0)
    0 0%/100% calc(100% - 3*var(--r)/2) no-repeat,
    radial-gradient(var(--r) at 50% calc(100% - 2*var(--r)), #000 98%, #0000 101%),
    radial-gradient(var(--r) at left calc(tan(60deg)*var(--r)) top var(--r), #000 98%, #0000 101%),
    radial-gradient(var(--r) at right calc(tan(60deg)*var(--r)) top var(--r), #000 98%, #0000 101%);
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  background-color: #333;
  scale: 0.4;
  margin-top: 1rem;
}

.triangle-rounded-topdown i{
  position: absolute;
  top: 30% !important;
}


.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dunkles Overlay für bessere Lesbarkeit */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #007acc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    text-shadow: none;
}

.hero-button:hover {
    background: #005fa3;
    color: white;
}

  /* FAQ */

  .modular-faq{
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  /* Einfaches Styling für das FAQ-Akkordeon. Du kannst das natürlich an dein Theme anpassen. */
  .faq-item {
      background-color: var(--secondary-bg);
      color: var(--text-light);
      border-radius: 4px;
      margin-bottom: 10px;
      padding: 10px 15px;
      text-align: left;
  }

  .faq-question {
      color: var(--text-light);
      font-size: large;
      font-weight: bold;
      cursor: pointer;
      position: relative;
      list-style: none; /* Entfernt den Standard-Pfeil */
  }
  .faq-question::-webkit-details-marker {
      display: none; /* Entfernt den Standard-Pfeil in Webkit-Browsern */
  }
  .faq-question::after {
      content: '+'; /* Plus-Zeichen als Indikator */
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.5em;
      font-weight: normal;
  }
  .faq-item[open] > .faq-question::after {
      content: '−'; /* Minus-Zeichen, wenn geöffnet */
  }
  .faq-answer {
      padding-right: 2rem;
      padding-left: 1rem;
      padding-top: 15px;
      line-height: 1.6;
  }
  .faq-answer img {
      max-width: 100%;
      height: auto;
      margin-top: 10px;
      border-radius: 4px;
  }

 .faq-answer p {
  padding-right: 2rem;
 }

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-banner {
        height: 70vh;
        min-height: 400px;
    }

    .radio-label .form-data {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}


/* Feature Card Slider */

/* Feature Slider Container */
.feature-slider-container {
  position: relative;
  overflow: hidden;
  padding: 1rem 150px 1rem 50px;
  margin: 1rem 0;
  background-color: var(--secondary-bg);
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.1);
}

/* Slider Wrapper */
.feature-slider-wrapper {
  display: flex;
  flex-direction: row;
  transition: transform 0.4s ease-in-out;
  gap: 1.5rem;
}

/* Feature Slides */
.feature-slide {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: calc(33.333% - 1rem);
  transition: opacity 0.3s ease;
}

/* Navigation Buttons */
.feature-slider-prev,
.feature-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  line-height: 1;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-slider-prev:hover,
.feature-slider-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.feature-slider-prev {
  left: 0px;
}

.feature-slider-next {
  right: 0px;
}

/* Button disabled state */
.feature-slider-prev:disabled,
.feature-slider-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.feature-slider-prev:disabled:hover,
.feature-slider-next:disabled:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .feature-slide {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: calc(50% - 0.75rem);
  }
}

@media (max-width: 768px) {
  .feature-slider-container {
    padding: 0 40px;
  }
  
  .feature-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .feature-slider-prev,
  .feature-slider-next {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    padding: 0.5rem;
  }

  #footer .col-md-12.col-sm-12 {
    text-align: center !important; 
  }
}

@media (max-width: 480px) {
  .feature-slider-container {
    padding: 0 35px;
  }
  
  .feature-slider-prev,
  .feature-slider-next {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

/* Language Selector Customization */
.language-selector {
    vertical-align: middle;
    transform: translateY(0);
    top: 0;
}

.language-selector .btn {
    height: auto !important;
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-light) !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.language-selector .btn img {
    width: 16px;
    height: auto;
    display: block;
}

.language-selector .btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--highlight) !important;
    color: var(--highlight) !important;
}

/* Scrolled Header Adjustments */
#header.scrolled .language-selector .btn {
    color: var(--text-dark) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
}

#header.scrolled .language-selector .btn:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--highlight) !important;
}

/* Dropdown Menu Styling */
.language-selector .dropdown-menu {
    min-width: 120px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background-color: var(--primary-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.language-selector .dropdown-menu li a {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--text-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector .dropdown-menu li a:hover {
    background-color: var(--secondary-bg);
    color: var(--highlight);
}

.language-selector .dropdown-menu img {
    width: 16px;
    height: auto;
}
