/* ======================================
   1. CSS-Variablen
   ====================================== */
   :root {
    --background-color: #f5f5f5; /* Hellerer Hintergrund für besseren Kontrast */
    --question-color: #000000; /* Dunkleres Grau für bessere Lesbarkeit */
    --box-bg-color: #e0e0e0; /* Helleres Grau für nicht ausgewählte Boxen */
    --box-bg-selected-color: #95a5a6; /* Mittelgrau für ausgewählte Boxen */
    --button-bg-color: #1A1E22; /* Helleres Grau für Buttons */
    --button-border-color: #2b3238; /* Helleres Grau für Button-Ränder */
    --button-text-color: #ffffff; /* Weiß für besseren Kontrast */
    --form-container-bg-color: #ecf0f1; /* Helleres Grau für Formulare */
    --form-container-bg-focus-color: #bdc3c7; /* Mittelgrau für Formulare im Fokus */
    --form-container-border-color: #95a5a6; /* Mittelgrau für Formular-Ränder */
    --form-container-text-color: #000000; /* Dunkleres Grau für Formular-Text */
    --input-bg-color: #ecf0f1; /* Helleres Grau für Eingabefelder */
    --input-border-color: #bdc3c7; /* Mittelgrau für Eingabefeld-Ränder */
    --input-box-shadow-color: rgba(44, 62, 80, 0.25); /* Dunkleres Grau für Schatten */
    --kasten-bg-selected-color: #95a5a6; /* Mittelgrau für ausgewählte Kästen */
    --kommentarFeld-color: #2c3e50; /* Dunkleres Grau für Kommentarfeld-Text */
    --kommentarFeld-color-focus: #2c3e50; /* Dunkleres Grau für Kommentarfeld-Text bei Fokus */
    --kommentarFeld-border-color: #bdc3c7; /* Mittelgrau für Kommentarfeld-Ränder */
    --kommentarFeld-border-color-focus: #34495e; /* Dunkleres Grau für Kommentarfeld-Ränder bei Fokus */
    --kommentarFeld-bg-color: #ecf0f1; /* Helleres Grau für Kommentarfeld-Hintergrund */
    --kommentarFeld-bg-color-focus: #ffffff; /* Weiß für Kommentarfeld-Hintergrund bei Fokus */
    --loader-color: #7f8c8d; /* Helleres Grau für den Ladeindikator */
    --transition-duration: 0.3s; /* Schnellere Übergänge für bessere Reaktionszeit */
}

@font-face {
    font-family: "FavoritStd Bold";
    src: url("fonts/FavoritStd-Bold.otf") format("opentype");
}

@font-face {
  font-family: "FavoritStd Light";
  src: url("fonts/FavoritStd-Light.otf") format("opentype");
	font-weight: 200;
}

  /* ======================================
     2. Globales Reset und Basisstyles
     ====================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* ======================================
     3. Loader
     ====================================== */
  input.weiterButton {
    display: none;
	  padding: 20px 80px;
  	}


	input.losButton{
		padding: 25px 150px!important;
	}

input.losButton:hover{
	background-color:white;
	color:black;
}

  .custom-loader {
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#0000 10%, var(--loader-color));
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 16px), #000 0);
    animation: s3 2s infinite linear;
  }

  @keyframes s3 {
    to { transform: rotate(1turn); }
  }

  /* ======================================
     4. Option Boxen
     ====================================== */
  /* Gemeinsame Basisklasse für Options-Boxen */
  .option {
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
  }

  .boxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .box {
    transition: top ease var(--transition-duration);
    width: 200px;
    height: 200px;
    color: transparent;
    margin: 5px;
  }

  .box:hover {
    cursor: pointer;
  }

  /* Hover- und Checked-Effekte */
  input[type="checkbox"]:checked + .box,
  input[type="radio"]:checked + .box,
  input[type="checkbox"]:focus + .box,
  input[type="radio"]:focus + .box,
  label.box:hover {
    filter: invert(74%) sepia(0%) saturate(7014%) hue-rotate(319deg) brightness(102%) contrast(89%);
  }

  /* Options-spezifische Hintergründe */
  .option1 { background-image: url("icons/new/option1.webp"); }
  .option2 { background-image: url("icons/new/option2.webp"); }
  .option3 { background-image: url("icons/new/option3.webp"); }
  .option4 { background-image: url("icons/new/option4.webp"); }
  .option5 { background-image: url("icons/new/option5.webp"); }
  .option6 { background-image: url("icons/new/option6.webp"); }
  .option7 { background-image: url("icons/new/option7.webp"); }
  .option8 { background-image: url("icons/new/option8.webp"); }
  .option9 { background-image: url("icons/new/option9.webp"); }
  .option10 { background-image: url("icons/new/option10.webp"); }
  .option11 { background-image: url("icons/new/option11.webp"); }
  .option12 { background-image: url("icons/new/option12.webp"); }
  .option13 { background-image: url("icons/new/option13.webp"); }
  

  /* ======================================
     5. Formular- und Container-Stile
     ====================================== */

  .logo {
    width: 15%;
    height: auto;
    z-index: -100;
    margin-top: 30px;
    display: block;
  }

  textarea.kommentarFeld.box {
    width: 450px;
    height: 100px;
    border-radius: 25px;
    color: var(--kommentarFeld-color);
    border: 2px solid var(--kommentarFeld-border-color);
    background-color: var(--kommentarFeld-bg-color);
    padding: 25px;
    resize: none;
    font-family: "FavoritStd Light";
  }

  textarea.kommentarFeld.box:focus,
  input[type="date"].kommentarFeld.box:focus {
    border: 2px solid #000 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  textarea.kommentarFeld.box:focus-visible {
    outline: none;
  }

  /* Datumsfeld-Styling - identisch mit Textfeld */
  input[type="date"].kommentarFeld.box {
    border: 2px solid var(--kommentarFeld-border-color) !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: var(--kommentarFeld-bg-color);
    width: 450px;
    height: 60px;
    border-radius: 25px;
    color: var(--kommentarFeld-color);
    padding: 15px 25px;
    font-family: "FavoritStd Light";
    font-size: 16px;
  }

  input[type="date"].kommentarFeld.box::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
    cursor: pointer;
  }

  @media only screen and (max-width: 600px) {
    textarea.kommentarFeld.box {
      width: 300px;
      height: 65px;
      margin-bottom: 5px;
    }

    input[type="date"].kommentarFeld.box {
      width: 300px;
      height: 50px;
      margin-bottom: 5px;
    }

    .logo {
        width: 30%;
        margin-top: 20px;
    }
  }

  form#user-info h1,
  form#user-info h2,
  form#user-info h3,
  form#user-info h4 {
    text-align: center;
    color: var(--question-color);
    padding: 10px;
    font-family: "FavoritStd Light";
  }

  form#user-info h1 { font-size: 1,5em; }
  form#user-info h2 { font-size: 1.5em; }
  form#user-info h3 { font-size: 1.17em; }
  form#user-info h4 { font-size: 1em; }   

  .step {
    animation: animate 0.5s;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .form-check {
    text-align: left;
    color: var(--button-text-color);
  }

  .form-container {
    max-width: 500px;
    padding: 0 20px;
  }

  @keyframes animate {
    from {
      transform: scale(1, 0);
      opacity: 0;
    }

    to {
      transform: scale(1, 1);
      opacity: 1;
    }
  }

  .checkbox { 
    text-align: left;
    width: initial !important;
    height: initial !important;
    display: block;
  }

  .kasten {
    display: block;
    margin: 0 auto 5px;
    width: 50%;
    color: transparent;
  }

  /* ======================================
     6. Formular-Elemente
     ====================================== */
  .form-container input {
      background: var(--form-container-bg-color);
      border-color: var(--form-container-border-color);
      color: var(--form-container-text-color);
      font-family: var("FavoritStd Light");
  }

  .form-container input:focus {
    background: var(--form-container-bg-focus-color);
  }

  form#user-info input[type="radio"],
  form#user-info input[type="checkbox"] {
    display: none;
  }

  form#user-info input[type="radio"] + label:hover,
  form#user-info input[type="button"]:hover,
  form#user-info input[type="submit"]:hover,
  .btn:hover {
    top: -10px;
    cursor: pointer;
  }

  form#user-info input[type="button"],
  form#user-info input[type="submit"],
  .btn,

  button.btn {
    text-align: center;
    color: var(--button-text-color);
    transition: top ease var(--transition-duration) !important;
    margin-top: 30px;
    font-weight: bold;
    background-color: var(--button-bg-color) !important;
    border-color: var(--button-border-color) !important;
    font-family: var("FavoritStd Bold");
border-radius: 150px;
	padding: 10px 50px;
  }

	button.btn:hover{
		border: solid 1px black;
		background: transparent;
	}

  form#user-info input[type="button"]:active,
  form#user-info input[type="submit"]:active,
  .btn:active,
  button.btn:active {
    box-shadow: 0 0 0 0.25rem var(--input-box-shadow-color);
  }

  form#user-info input[type="button"]:focus,
  form#user-info input[type="submit"]:focus,
  .btn:focus,
  button.btn:focus {
    box-shadow: 0 0 0 0.25rem var(--input-box-shadow-color);
  }

  input[type="file"]:focus,
  input[type="date"],
  input[type="email"]:focus,
  input[type="tel"]:focus,
  input[type="text"]:focus,
  input[type="checkbox"]:focus {
    box-shadow: 0 0 0 0.25rem var(--input-box-shadow-color) !important;
    border-color: var(--input-border-color) !important;
  }

  .form-check-input:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
  }

  .form-check-input:checked[type=checkbox] {
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='%23ffffff' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    background-size: 1.2em !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  .datenschutz.form-check-input {
    width: 1.2em !important;
    height: 1.2em !important;
    margin-top: 0.3em !important;
    border: 1px solid #000000 !important;
    background-color: #ffffff !important;
    position: relative !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    font-family: var("FavoritStd Light");
  } 

  .datenschutz.form-check-input:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
  }

  .datenschutz.form-check-input:checked::after {
    content: "✓" !important;
    position: absolute !important;
    color: #ffffff !important;
    font-size: 1em !important;
    font-weight: bold !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    line-height: 1 !important;
  }

  .datenschutz.form-check-label {
    font-family: var("FavoritStd Light");
  } 

  /* =====================================
     7. Layout & Container
     ====================================== */

  .benefit-step {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .benefit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  header {
    display: flex;
    justify-content: center;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  @media only screen and (max-width: 600px) {
    .kasten {
      width: 282px !important;
      height: 42px !important;
    }
    form#user-info h1 {
      font-size: 1.5em;
    }

    .box {
      width: 120px;
      height: 120px;
      margin-bottom: 5px;
    }

    .boxes {
      flex-wrap: wrap !important;
      flex-direction: column !important;
    }
  }
  
  .main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    align-items: center;
  }
  
  .container-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px; /* Statt inline im HTML */
  }

  .embed-responsive-16by9 {
    margin: 0;
    aspect-ratio: 16 / 9;
  }

  /* ======================================
     8. Utility & Sichtbarkeit
     ====================================== */
  .step {
    display: none;
  }

  /* Ersten Step standardmäßig anzeigen */
  #step { display: flex; }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #loader,
  #loader2,
  #start {
    display: none;
  }

  /* Erlaube, dass Loader und Steps per inline-Style angezeigt werden können */
  /* Aber nur wenn der Style explizit display: flex enthält */
  #loader[style*="display: flex"],
  #loader2[style*="display: flex"],
  #step11[style*="display: flex"],
  #step12[style*="display: flex"],
  #step13[style*="display: flex"] {
    display: flex !important;
  }

  /* Stelle sicher, dass Loader ausgeblendet werden können */
  #loader[style*="display: none"],
  #loader2[style*="display: none"] {
    display: none !important;
  } 

  .datenschutz {
    display: block !important;
  }

  body {
    background: var(--background-color) !important;
    background-attachment: fixed;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="file"] {
    font-family: var("FavoritStd Light");
  }

  footer {
    text-align: center;
    padding: 20px 0;
    width: 100%;
  }

  footer p {
    color: black;
    margin: 0;
    padding: 0 10px;
    line-height: 1.5;
  }

  footer a {
    color: black;
    text-decoration: none;
    white-space: nowrap;
  }

  footer a:hover {
    color: #0d6efd;
    text-decoration: none;
  }

  @media only screen and (max-width: 600px) {
    footer p {
      font-size: 14px;
      padding: 0 15px;
    }
  
    footer a {
      display: inline-block;
      margin: 0 5px;
    }
  }