/*
Theme Name: FIZ Theme
Author: FIZ
Description: Custom theme
Version: 1.0
*/


* { box-sizing: border-box; }
* {
  touch-action: manipulation;
}
html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
  background-color: #000;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
input, textarea, select {
  font-size: 16px; /* iOS won't zoom if font is 16px or larger */
}
.no-scroll {
  overflow: hidden;
}

body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--white);
  line-height: 1.6;
  width: 100vw;
  width: 100%;
  cursor: none;
  overflow-x: hidden;
}


body.loaded {
    opacity: 1;
}

li::before {
  content: "- ";
  padding-right: 0.5em; /* Space after dash */
}

.top{
  z-index: 5;
  min-height: 100dvh; /* Dynamic viewport height */
}



@import "compass/css3";
.circle {
      position: fixed;                 
      width: 30px;
      height: 30px;
      border-radius: 50%;
      pointer-events: none;           
      transform: translate(-50%, -50%);
      will-change: transform;
      cursor: none;
      z-index: 11;   
      mix-blend-mode: difference; /* inverts background/text colors under circle */
      background: white;  
    }

    @media (pointer: coarse) {
      .circle {
        display: none;
      }
    }


#popup {
  position: fixed;       /* stays on top, even when scrolling */
  top: 0;
  left: 0;
  width: 100%;           /* full screen width */
  height: 100%;          /* full screen height */
  color: white;          /* text color */
  display: flex;         /* center content */
  align-items: center;
  justify-content: center;
  z-index: 10;         /* makes sure it's on top of everything */
  transition: opacity 1.3s ease;
  opacity: 1;
}

#popup.hidden {
  opacity: 0;
}

.froelich-logo{
  width: 300px;
  padding-left: var(--space-xs); 
  padding-top: var(--space-sm);
}
.co2-text {
font-weight: 200; /* Adjust as needed */

  font-size: var(--h4-size);
  line-height: var(--h4-line);
}

.container {
  width: min(1600px, 100%);
  margin-inline: auto;
  padding:0 var(--space-lgg) var(--space-lgg) var(--space-lgg);
}
.container3 {
  width: min(1600px, 100%);
  margin-inline: auto;
  padding: 0 0 var(--space-lgg) 0;
}
.container2 {
  width: min(1600px, 100%);
  margin-inline: auto;
  padding: var(--space-lgg);
}
.container4 {
  margin-inline: auto;
  padding: var(--space-lg) 0 var(--space-lg) 0 ;
}

.container5{
  width: min(1600px, 100%);
  margin-inline: auto;
  padding: var(--space-xl) 0 var(--space-xl)  var(--space-lgg) 
}

.cards-container{
padding: 0 0 var(--space-lgg);

}

.angebotSubtitle{
  display: flex;
  flex-direction: column;
  padding-bottom: var(--space-md);
}
.angebotSubtitle h7{
  font-size: 20px;
}
.angebotSubtitle h8{
  font-size: 20px;
}

.lead { opacity: 0.9; }
.subtitle { opacity: 0.85; }

/* Nur für Screenreader, aber fokussierbar */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Reduzierte Bewegungen berücksichtigen */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Header / Navigation
   ===================================================================== */
.site-header { position: relative; }

.navContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  position: sticky;
  top: 10px;
  z-index: 9;
  width: min(1600px, 100%);
  margin-inline: auto;
  padding: var(--space-lgg) var(--space-lgg) 0 var(--space-lgg);
}

.nav { width: 100%; }

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: var(--space-pad);
}

.nav-list li {
  padding-right: 3em; /* Space for the dash */
  text-indent: -1.2em; /* Pull first line back */ 
}


.nav-list li::before { content: "" !important; padding-right: 0;}

.nav-list a {
  color: var(--white);
  text-decoration: none;
  text-transform: capitalize;
  font-size: 16px;
  font-weight: 200;
  padding-inline: var(--space-md);
  border-radius: var(--radius-sm);
}

.nav-list a:hover { text-decoration: underline; }

.nav-list a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  font-family:  var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lgg);
  margin-top: var(--space-md);
  border-radius: 35px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 400;
  font-size: 20px;
  white-space: nowrap;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn--outline2 {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  text-decoration: none;
}
.btn--outline2:hover {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn--outline3 {
  background: var(--yellow);
  color: var(--black);
  border: 1px solid var(--yellow);
}
.btn--outline3:hover {
  background: var(--off-yellow);
  color: var(--white);
  border: 1px solid var(--yellow);
}


.buttonSection {
  display: flex;
  flex-direction: column;
  align-content: center;
  gap:2vh;
  text-align: center;
  justify-items: center;
}
/*-------- toggle Button -------------*/
.toggle-btn {
  font-family:  var(--font-sans);
  display: block;
  width: 20%;
  padding: 30px 12px 12px;
  border: none;
  border-radius: 0 0 12px 12px;
  background: var(--yellow);
  color: var(--black);
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  position: relative;
  top: -30px;    
  z-index:1;    
  margin: 0 0  ; 
  transition: all 550ms ease;
}

.toggle-btn {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}


.toggle-btn:hover {
  background: var(--black);
  outline: 2px solid var(--off-yellow);
  color: var(--white);
}

.toggle-btn.toggle-spaced {
  display: inline-block;           
  margin-bottom: 16px; 
}

@media (max-width: 900px){
  .toggle-btn {width: 100%; top: -50px;}
  
  
}



/* Arrow bounce animation when section is closed */
@keyframes arrow-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.toggle-btn.arrow-bounce {
  animation: arrow-bounce 1.3s ease-in-out infinite;
}

/* Remove animation on hover/focus */
.toggle-btn.arrow-bounce:hover,
.toggle-btn.arrow-bounce:focus {
  animation: none;
}




/* Wrapper for seamless collapse */
  .expandable-wrapper {
    height: 0;
    overflow: hidden; 
    transition: height 600ms ease;
    will-change: height;
    position: relative;
    contain: layout;
    z-index: 2;
  }

.expandable-wrapper[aria-hidden="true"] .extra {
  visibility: hidden;
}
.expandable-wrapper[aria-hidden="false"] .extra {
  visibility: visible;
}

.extra {
  display: block;
  position: relative;
  overflow: hidden;
  transition: height 0.5s ease, opacity 0.3s ease;
  background: #f9fafb;
  color: #000;
  padding: 0 20px;
  will-change: height;
  z-index:2;  
  height: auto;
  padding: var(--space-md) var(--space-lg) ;
  opacity: 1;
  border-radius: var(--radius-pill);
}

.essentialContent_Itrms img{
  padding-top: 2vh;
  align-items: left;
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
  
}

/* Show desktop image by default, hide mobile */
.desktop-image {
  display: block;
}

.mobile-image {
  display: none;
  margin: auto;
}

/* On tablets and mobile, hide desktop and show mobile */
@media (max-width: 992px) {
  .desktop-image {
    display: none;
  }
  
  .mobile-image {
    display: block;
  }
}

/* =====================================================================
   Sections / Hero
   ===================================================================== */
.message{ 
  display: flex;
  justify-content: left; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  height: 80vh;
  will-change: transform;
}

.message h3{
  font-size: calc(var(--h3-size) * 1.2);
  line-height: calc(var(--h3-line) * 1.2);
}
.message h4{
  font-size: calc(var(--h3-size) * 1.2);
  line-height: calc(var(--h3-line) * 1.2);
}

@media (min-width: 1600px) {
  .message{ 
  height: 60vh;
  }
}

.message-container{
  width: min(1600px, 100%);
  margin-inline: auto;
  padding: 0 var(--space-lgg) 0 var(--space-lgg);
}

.typed-text {
  display: inline-block;
  min-width: 1ch; /* keeps at least one character space */
}

.fade-up:has(.typed-text) {
  min-height: 1.2em; /* adjust based on your line-height */
}


/* character styling for the animation */
.char-wrapper { 
  display: inline-block; 
  white-space: pre-wrap;    /* preserve spaces/line breaks */
}
.char { 
  display: inline-block;    /* required so translateY works per char */
}

/*.section { padding-block: var(--space-lg); }*/

.hero { height: 90vh; align-content: end;}
.hero1 { padding-top: var(--space-xl);}
.hero2{padding-top: var(--space-lg)}
.secondarytitles { padding-inline: var(--space-lg); }


/* =====================================================================
   Headings & Text
   ===================================================================== */
h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-line);
  font-weight: var(--h1-weight);
  color: var(--white);
  margin: 0;
}

h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  font-weight: var(--h2-weight);
  color: var(--white);
  margin: 0;
}

h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  font-weight: var(--h3-weight);
  margin: 0;
}

h4 {
  font-size: var(--h4-size);
  line-height: var(--h4-line);
  font-weight: var(--h4-weight);
  margin: 0;
}

h5 {
  font-size: var(--h5-size);
  line-height: var(--h5-line);
  font-weight: var(--h5-weight);
  margin: 0;
}

h6 {
  font-size: var(--h6-size);
  line-height: var(--h6-line);
  font-weight: var(--h6-weight);
  margin: 0;
}

h7 {
  font-size: var(--h7-size);
  line-height: var(--h7-line);
  font-weight: var(--h7-weight);
  margin: 0;
}
h8 {
  font-size: var(--h8-size);
  line-height: var(--h8-line);
  font-weight: var(--h8-weight);
  padding: 0 0 7vh;
}

p {
  font-size: var(--p-size); 
  line-height: var(--p-line); 
  font-weight: var(--p-weight);
}

.section2  h3 { padding:var(--space-md) var(--space-md) var(--space-lgg) var(--space-md); }
.section2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-pill);
  color: var(--black);
  width: min(1800px, 100%);
  margin-inline: auto;
}


/* =====================================================================
   Cards / Info
   ===================================================================== */
.card{
  margin-inline: auto;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-pill);
  padding: var(--space-lg);
  position: relative;
  z-index: 2; 
}
.cardIcons{
  padding-top: var(--space-lg);
  align-items: stretch;
  color: var(--black);
  background-color: var(--white);
  border-radius: var(--radius-pill);
  padding-top: var(--space-lgg) !important;
  position: relative;
  padding: var(--space-md);
}



    .cardfächer-section {
      min-height: 100vh;
      width: min(1400px, 100%);
      margin-inline: auto;
      display: flex;
      align-items:end;
      justify-content: center;
      position: relative;
      padding: 1rem;
    }

    .cardfächer-container {
      position: relative;
      padding: var(--space-lgg) var(--space-lgg) 0 var(--space-lgg);
    }

    .cardfächer {
      position: absolute;
      min-height: 850px;
      top:50%;
      width: 620px;
      border-radius: 1rem;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      padding: var(--space-md);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.3s ease-out;
    }

    .cardfächer-1 {
      background: var(--white);
      color:var(--black);
      z-index: 1
    }

    .cardfächer-2 {
      background: var(--yellow);
      color:var(--black);
      z-index: 2
    }

/* =====================================================================
   Grids
   ===================================================================== */
/* Äußeres Grid: 2 Spalten */
.highlightsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* Karte mit zwei Spalten: links Icons, rechts Text */
.cardGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:0;
  align-items: stretch;
} 

.cardGrid .animation{
  justify-content: start;
  min-height: 500px;
}


.cardGrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:var(--space-xs);
  align-items: stretch;
} 

.smallCards{
  padding: var(--space-lgg);
  background-color: var(--off-white);
  border-radius: var(--radius-pill);
  transition: 300ms linear;
}
.smallCards:hover{
  transform: translatey(-6px)
}


.smallCards2{
  padding: var(--space-lgg);
  background-color: var(--yellow);
  border-radius: var(--radius-pill);
  transition: 300ms linear;
}
.smallCards2:hover{
  transform: translatey(-6px)
}

.formGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1;
}

.textGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Inneres Grid: 4 Icons in 2 Reihen */
.iconGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  color: var(--black);
  padding-top:20px;
}

.iconGrid2 {
  gap: var(--space-sm);
  text-align: left;
  color: var(--black);
  background-color: var(--white);
  border-radius: var(--radius-pill);
}

.iconGrid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vh;
  text-align: center;
  align-content: center;
  padding-top: var(--space-lg);
  max-width: 1200px;
}

.iconGrid4 {
  display: grid;
  grid-template-columns: repeat( 3, 1fr);
  gap: 3vh;
  text-align: center;
  padding-top: var(--space-lg);
}

.iconGrid5 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--black);
  background-color: var(--white);
  border-radius: var(--radius-pill);
  padding: 5vh;
}
.iconGrid6 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--black);
  background-color: var(--yellow);
  border-radius: var(--radius-pill);
  padding: 5vh;
}

.boost-text ul{
  list-style: none;
  padding: 0;
  margin: 20px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 300;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 10px;
}

.footer-text a{
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;        /* Hide overflow */
  text-overflow: ellipsis; /* Add "..." at the end */
}

.rive-canvas {
  display: block;
  width: 200px;  /* Set your desired display size */
  height: 200px; /* Set your desired display size */
  object-fit: contain;
  border:none; 
}

.iconItem{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  text-align: center;
  padding: var(--space-md) ;
}

.iconItem3{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: var(--space-md) ;

}

.iconItem2{
  display: flex;
  flex-direction: column;
  align-items: left;
  padding: var(--space-sm) ;
}

.iconItem img {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-sm);
}
.iconItem h7 {
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* Rechte Spalte */
.cardText {
  background-color: var(--yellow);
  color: var(--black);
  border-radius: var(--radius-pill);
  padding: var( --space-lgg);
}

.twocards__yellow{
  margin-top: var(--space-lgg);
}
/* 2nd section with moving text  */
.movingText {
height: 500px;
  margin: auto;
  overflow: hidden;
  position: relative;
  margin: var(--space-lgg) var(--space-md);
}

.movingText::before {
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  content: '';
  height: 10px;
  position: absolute;
  background: linear-gradient(180deg, var(--yellow), rgba(255,255,255,0));
}

.movingText::after {
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  content: '';
  height: 10px;
  position: absolute;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--yellow));
}

.movingText ul {
  margin: 0;
  padding: 0;
  animation: scrollUp 7.5s linear infinite forwards;
}

.movingText ul li {
  opacity: 1;
  height: 40px;
  list-style: none; 
}


/* we hardcode for 6 items */
@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); } /* move through first half (since duplicated) */
}
/* ________________________________   */

.yellow{
  background-color: var(--yellow) !important;
}


.cardText li { font-size: 24px; line-height:40px; font-weight: 300; }
.cardText ul { list-style: none; padding: 0; margin: 0; }
.cardText li::before { content: "– "; }
.iconItem3 li { font-size: 20px; line-height:30px; font-weight: 300; }
.iconItem3 li::before { content: "" !important; padding-right: 0;}
.iconItem3 ul { list-style: none; padding: 3vh 0 0 0 ; margin: 0;}
.two-column-grid li { font-size: 20px; line-height:30px; font-weight: 300; padding-right: 3em; /* Space for the dash */  text-indent: -1.2em; /* Pull first line back */ }
.two-column-grid ul { list-style: none; padding: 0; margin: 20px; }


/* Zwei-Spalten-Text */
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding-top: var(--space-lgg);
}


.stacking {
  position: relative;
}

.stacking__card {
  background-color: var(--white);
  border-radius: pxToRem(32);
  color: var(--black);
  display: flex;
  flex-direction: column;
  gap: var(--whatwedo-gap);
  margin: 25vh auto;
  max-width: pxToRem(1020);
  padding: pxToRem(32) pxToRem(32) 0;
}



/* =====================================================================
   Scrollbar
   ===================================================================== */

  .scrollbar { 
    position: fixed; 
    right: var(--space-md); 
    top: calc(12px + var(--safe-top)); 
    bottom: calc(12px + var(--safe-bottom)); 
    width: var(--sb-width); 
    display: grid; 
    align-items: stretch; 
    z-index: 5; 
    mix-blend-mode: difference; /* inverts background/text colors under circle */

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .scrollbar.visible {
  opacity: 1;
  pointer-events: auto;
}

.scrollbar__track { 
  position: relative; 
  height: 100%; 
  width: 75%; 
  background: var(--sb-track); 
  border-radius: 999px; 
}


.scrollbar__thumb { 
  position: absolute; 
  left: 0; top: 0; 
  width: 100%; 
  height: 0%; 
  background: var(--sb-color); 
  border-radius: 999px; 
  transition: height .15s linear; 
}


.scrollbar__dots { 
  position: absolute; 
  inset: 0; 
}


.scrollbar__dot { 
  position: absolute; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  width: var(--sb-dot-size); 
  height: var(--sb-dot-size); 
  border-radius: 999px; 
  background: var(--sb-dot);
  pointer-events: auto; 
  cursor: pointer; 
  transition: transform .18s ease, background-color .18s ease; 
  outline: white;  
  box-shadow: none !important;     /* remove the white/gray halo we added */
  border: none;                    /* remove UA button border */
  outline: none;                   /* remove UA focus outline */
  -webkit-appearance: none;        /* normalize buttons */
  appearance: none;
}


.scrollbar__dot:hover { 
  transform: translate(-50%, -50%) scale(1.2); 
  box-shadow: 0 0 0 4px  var(--off-yellow); 
  outline: none;  
}


 
  /* Animation Initial States */
  .fade-up {
      opacity: 0;
      transform: translateY(60px);
  }
  
  .fade-left {
      opacity: 0;
      transform: translateX(-80px);
  }

  .scale-up {
      opacity: 0;
      transform: scale(0.8);
  }
      
        
      

/* Optional tooltips */
.scrollbar__dot::after { 
  content: attr(aria-label);
  position: absolute;
  right: calc(100% + 10px); /* to the left of the dot */
  top: 50%;
  transform: translateY(-50%);
  color: var(--off-white);
  font-size: 15px;          /* smaller base size */
  padding: 2px 6px;
  background: transparent;  /* no background if you want plain text */
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0.7;             /* slightly faded when idle */
  transition: all .2s ease;
  pointer-events:all ;
}
.scrollbar__dot:hover::after,
.scrollbar__dot.is-active::after {
  font-size: 18px;  /* enlarge on hover/active */
  opacity: 1;       /* stronger contrast */
}


/* A11y: high-contrast mode improvement */
@media (prefers-contrast: more){
.scrollbar__track{ box-shadow: none; }
.scrollbar__dot::after{ background: black; }
}


/* Small screens: optionally hide labels by default */
@media (max-width:1024px){
.scrollbar__dot::after{ display:none; 
}}



.morph {
  --s: var(--size);
  height: calc(var(--space-md) * 1.4);
  display: inline-grid;
  place-items: center;
  color: var(--black);
}

.morph input {
  display: none;
}

.morph .tile {
  width: calc(var(--space-md) * 1);
  height: calc(var(--space-md) * 1);
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  transition: all 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.morph .tick {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 0.28s, opacity 0.2s;
}

/* Wenn Checkbox gecheckt ist */
.morph input:checked + .tile {
  border: none; /* Border entfernen */
  background: none;
  transform: scale(1.04);
}

.morph input:checked + .tile .tick {
  opacity: 1;
  transform: scale(1);
  stroke: var(--black); /* Checkmark */
}

/* NEW: Segmented control styling for checkboxes (multi-select) */
.segmented-multi {
  display: flex;
  gap: 0;
  background: rgba(0,0,0,0.06); /* subtle track background */
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  border-radius: var(--radius-pill);
  padding: 4px;
  position: relative;
}

.segmented-multi .option {
  flex: 1;
  position: relative;
}

.segmented-multi input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segmented-multi label {
  display: block;
  padding: 0.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.segmented-multi input[type="checkbox"]:checked + label {
  background: var(--yellow);
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

/*________Info bubble for the form__________*/

* Info bubble styling */
.option {
  position: relative;
}

.info-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--off-yellow);
  backdrop-filter: blur(10px);
  color: var(--black);
  font-family: var(--font-sans);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 300;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
   max-width: calc(100vw - 30px);
}

.info-bubble::after {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

.option:hover .info-bubble {
  opacity: 1;
}


/* Email Container Animation */
.email-container {
  width: 50%;
  overflow: hidden;
  max-height: 0;
  margin: auto;
  align-items: center;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-bottom 0.5s ease;
  opacity: 0;
  margin-bottom: 0;
  z-index: 2;
}

.email-container.show {
  max-height: 100vh; /* Large enough to fit any content */
  opacity: 1;
  margin-bottom: 0;
  margin-top: 5vh;
}

.email-input {
  width: 100%;
  padding: 25px 25px;
  margin-bottom: 3vh;
  border: 2px solid var(--yellow, #ddd);
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 200;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  cursor: text;
}
.email-label {
 padding-top:5vh;
 font-weight: 200;
}

.email-input:focus {
  outline: none;
  border-color: var(--yellow);
}

.email-input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}
/* Button smooth movement */
#submit-btn {
  transition: all 0.3s ease;
}

 #submit-btn:hover {
        animation: shakeAndFloat 2s ease-in-out infinite;
    }

    @keyframes shakeAndFloat {
        0%, 50%, 100% {
            transform: rotate(0deg);
        }
        10%, 30% {
            transform: rotate(-2deg);
        }
        20%, 40% {
            transform:  rotate(2deg);
        }
    }
    @media (hover: none) {
        #submit-btn:hover {
            animation: none;
        }
    }

#form-message {
  display: none;
  padding-top: 5vh;
  color: var(--yellow);
  font-weight: 200;
  font-size: 20px;
}
/* Button Transition */
.btn {
  transition: transform 0.4s ease-out, opacity 0.3s ease;
}
/* =====================================================================
   Segmented toggle styles
   ===================================================================== */

form {
  padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  width: min(1600px, 100%);
  margin-inline: auto;
}

.formBorder{
  border: solid 2px var(--yellow);
  padding: var(--space-md);
  border-radius: var(--radius-pill);
}

.no-border { border: 0; margin: 0; padding: 0; }


.segmented{
  /* if you keep a gap between options, declare it here */
  --n: 2;            /* number of options */
  --pad: 6px;        /* track padding (must match your padding) */
  --gap: 2px;        /* your grid gap between options */
  position: relative;
  padding: var(--pad);
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: var(--gap);
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.06); /* subtle track background */
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

.segmented2{
  /* if you keep a gap between options, declare it here */
  --n: 2;            /* number of options */
  --pad: 6px;        /* track padding (must match your padding) */
  --gap: 2px;        /* your grid gap between options */
  position: relative;
  padding: var(--pad);
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: var(--gap);
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.06); /* subtle track background */
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
/* the single sliding pill on the container */
.segmented::before{
  content: "";
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  width: calc((100% - (var(--pad) * 2) - (var(--gap) * (var(--n) - 1))) / var(--n));
  height: calc(100% - (var(--pad) * 2));
  border-radius: var(--radius-pill);
  background: var(--yellow);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transform: translateX(0);
  transition: transform var(--transition);
  z-index: 0;
}
.option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* keep labels above the pill */
.option { position: relative; z-index: 1; }

/* move the pill — robust to extra elements because we use *of-type* */
.segmented:has(.option:first-of-type input:checked)::before { 
  transform: translateX(0); 
}
.segmented:has(.option:last-of-type input:checked)::before  { 
  /* move by 1 pill width (100%) + 1 gap */
  transform: translateX(calc(100% + var(--gap))); 
}

.segmented.segmented-3{ --n: 3; }
.segmented.segmented-3:has(.option:nth-of-type(1) input:checked)::before { transform: translateX(0); }
.segmented.segmented-3:has(.option:nth-of-type(2) input:checked)::before { transform: translateX(calc(100% + var(--gap))); }
.segmented.segmented-3:has(.option:nth-of-type(3) input:checked)::before { transform: translateX(calc(200% + (var(--gap) * 2))); }

.option input + label{
  appearance: none;      /* hides the browser's default UI */
  -webkit-appearance: none;
  -moz-appearance: none;
  display:inline-flex; align-items:center; justify-content:center;
  width:100%;     
  height: var(--space-lgg);  
  padding:0 20px;
  background:transparent; color:var(--black); border:0;
  border-radius:var(--radius-pill); cursor:pointer;
  transition: var(--transition);
  font-weight:200; font-size:20px; white-space:nowrap; box-sizing:border-box;
}
/* hover */
.option input + label:hover{
  background: var(--off-yellow);
  color: var(--black);
}
/* checked (label remains same size; pill shows selection) */
.option input:checked + label{
  background: transparent;
  color: var(--black);
  animation: select-pop .22s ease;
}
@keyframes select-pop{0%{transform:scale(.96)}60%{transform:scale(1.03)}100%{transform:scale(1)}}


.essentialContent{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5vh;
}

.essentialContent_Itrms{
  display: flex;
  flex-direction: column;
  align-items: left;
}

.datenschutz{
font-size: 11px
}

