#main:has(#tarif-quiz) {
  margin-top: 0;
}
#tarif-quiz h1 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
}
@media (min-width: 768px) {
  #tarif-quiz h1 {
    font-size: 24px;
    font-weight: 500;
    font-size: 32px;
    margin-bottom: 0;
  }
}
/* Fullscreen Container */
#tarif-quiz {
  display: flex;
  gap: 20px;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  background: #ffffff;
}

/* Linke Timeline */
/* Timeline Container */
#quiz-timeline {
  width: 376px;
  background: linear-gradient(180deg, #0275de 0%, #1161a9 100%);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#quiz-timeline p {
  color: #ffffff;
}

.quiz-timeline-wrapper {
  position: relative;
}
.quiz-timeline-wrapper:before {
  content: "";
  position: absolute;
  top: 30px;
  left: 8px;
  width: 3px; /* Breite des ::before */
  height: calc(100% - 50px);
  background: white;
}

/* Timeline Liste */
#quiz-timeline ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Basis für jeden Punkt */
.timeline-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  position: relative;
}

/* Kreis */
.timeline-point::before {
  position: relative;
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: transparent;
  flex-shrink: 0;
}

/* Aktuelle Frage: grüner Punkt mit blauem Rand */
.timeline-point.active::before {
  width: 28px;
  height: 28px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><circle cx="14" cy="14" r="11" fill="white"/><circle cx="14" cy="14" r="6" fill="%230275DE"/><circle cx="14" cy="14" r="14" fill="%2364FBE7" fill-opacity="0.18"/><circle cx="14" cy="14" r="3" fill="%2347EB3B"/></svg>');
  background-size: cover;
  background-position: center;
  border: none;
  margin-left: -4px;
}

.timeline-point.done {
  cursor: pointer;
}
.timeline-point.done::before {
  background-color: #fff;
  border: 2px solid #fff;
}
#quiz-timeline li.done::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(50% - 3px);
  width: 10px;
  height: 8px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="8" viewBox="0 0 10 8" fill="none"><path d="M9 1L3.5 7L1 4.27273" stroke="%230275DE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Zukünftige Frage: nur weißer Kreis Rand */
.timeline-point.future::before {
  background-color: #076dcc;
  border: 2px solid #fff;
  z-index: 10;
}

/* Rechte Inhalte */
#quiz-content {
  flex: 1;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  justify-content: center;
  align-items: center;
  background-image: url("images/tarif-quiz/background1.jpg");
  background-repeat: no-repeat;
  background-position: right;
  background-size: auto 100%;
}

/* Fragen & Antworten */
#quiz-question {
  font-size: 1.2em;
  margin-bottom: 20px;
  font-style: normal;
  font-weight: 600;
  font-size: 32px;
  line-height: 42px;
  color: #3b3b3b;
}

#quiz-answers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz-answer-btn {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0.75rem auto;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 9999px; /* kreisähnlich */
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="220" viewBox="0 0 220 220" fill="none"><circle cx="110" cy="110" r="110" fill="url(%23paint0_linear_456_1809)" fill-opacity="0.06"/><defs><linearGradient id="paint0_linear_456_1809" x1="110" y1="0" x2="110" y2="220" gradientUnits="userSpaceOnUse"><stop stop-color="%23147AD6"/><stop offset="1" stop-color="%23FEFEFF"/></linearGradient></defs></svg>')
    center/cover no-repeat;
  color: #0a0a0a;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(4px);
}
.quiz-answer-btn span {
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 21px;
  color: #5c9fdc;
}

.quiz-answer-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(
      0deg,
      rgba(19, 119, 210, 0.05),
      rgba(19, 119, 210, 0.05)
    ),
    linear-gradient(
      180deg,
      rgba(20, 122, 214, 0.06) 0%,
      rgba(254, 254, 255, 0.06) 100%
    );
}

.quiz-answer-img {
  width: 95px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  margin-bottom: 0.5rem;
  pointer-events: none;
  user-select: none;
}

.quiz-answer-btn span {
  font-size: 1rem;
  text-align: center;
}

/* Ergebnis */

#quiz-result {
  display: none;
  z-index: 0;
}

#quiz-result h2 {
  text-align: center;
  color: #000000;
}

#quiz-result .teaser-box .checkbox {
  margin: 40px auto 0;
  cursor: pointer;
}

#quiz-result .teaser-box {
  padding-bottom: 40px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  #quiz-result .teaser-box h3 {
    margin-bottom: 20px;
  }
  #quiz-result .teaser-box .checkbox {
    background-size: contain;
  }
  #quiz-result .col:nth-of-type(1) .teaser-box h3 {
    background: linear-gradient(90deg, #0275DE 0%, #0E81EA 100%),
linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2));

  }
}
#quiz-result .teaser-box.selected {
  border: 2px solid #0275de;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

#quiz-result:after {
  content: "";
  background-image: url("images/tarif-quiz/background-result1.jpg"),
    url("images/tarif-quiz/background-result2.jpg");
  width: 100%;
  height: 100%;
  background-size: auto 100%, auto 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: top left, top right;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

#anmeldedaten {
  margin-top: 40px;
  text-align: center;
}

#anmeldedaten form {
  margin: 0 auto;
}

#tarif-quiz-address-form {
  display: none;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  justify-content: center;
}
#anmeldedaten #tarif-quiz-address-form {
  display: flex;
}

#tarif-quiz-address-form .widget-submit {
  flex: 1 1 100%;
}
#tarif-quiz-address-form .widget-submit .btn-primary::after {
  content: "einfach und schnell";
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0.06em;
}

#quiz-result .widget-text {
  flex: 1 1 calc(33.333% - 1rem);
  text-align: left;
  position: relative;
}

@media (max-width: 991px) {
  #tarif-quiz-address-form {
    flex-direction: column;
  }
}

#quiz-result .widget-text label {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #545454;
}

#quiz-result .selected_tarif {
  display: none;
}

#quiz-result .widget-text:nth-of-type(1):before,
#quiz-result .widget-text:nth-of-type(2):before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  right: 0px;
  transform: translateX(-50%);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path d="M12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" stroke="%23BBC5CF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 21V19C20 17.9391 19.5786 16.9217 18.8284 16.1716C18.0783 15.4214 17.0609 15 16 15H8C6.93913 15 5.92172 15.4214 5.17157 16.1716C4.42143 16.9217 4 17.9391 4 19V21" stroke="%23BBC5CF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10;
}
#quiz-result .widget-text:nth-of-type(3):before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  right: 0px;
  transform: translateX(-50%);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path d="M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z" stroke="%23BBC5CF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 6L12 13L2 6" stroke="%23BBC5CF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10;
}

#quiz-result .widget-text input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

#quiz-result .widget-text input:focus {
  border-color: #3794ea;
  outline: none;
}

#quiz-result .btn-primary {
  width: 100%;
  background: linear-gradient(90deg, #0275de 0%, #017beb 100%);
  border-radius: 8px !important;
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  padding: 7px;
}

#quiz-result .btn-primary:hover {
  background: linear-gradient(90deg, #0f65b5 0%, #0f65b5 100%);
}

#mobile-quiz-nav {
  display: none;
}

@media (max-width: 1200px) {
  #mobile-quiz-nav {
    display: block;
    background: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 28px 16px 24px;
    gap: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
  }
  #tarif-quiz {
    flex-direction: column;
    height: 100vh;
    gap: 0;
  }
  #quiz-timeline {
    width: 100%;
    background: #0275de;
    flex-direction: column;
    gap: 0;
  }
  #quiz-timeline h1 {
    font-weight: 600;
    font-size: 24px;
    line-height: 31px;
    text-align: center;
  }
  #quiz-timeline p {
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    margin-bottom: 0;
  }
  .quiz-timeline-wrapper:before,
  .timeline-point::before {
    display: none;
  }
  #quiz-timeline ul {
    position: fixed;
    bottom: 87px;
    left: 0;
    width: 100%;
    flex-direction: row;
    height: 6px;
    gap: 0;
    z-index: 10;
    pointer-events: none;
  }
  .quiz-timeline-wrapper li {
    color: transparent;
    user-select: none;
    background-color: #ececec;
  }
  .quiz-timeline-wrapper li.done {
    background: #0275de;
  }
  .quiz-timeline-wrapper li.done:after {
    display: none;
  }

  #quiz-content {
    background-image: none;
    align-items: flex-start;
    justify-content: flex-start;
  }
  #quiz-question {
    font-weight: 600;
    font-size: 16px;
    line-height: 21px;
    margin-bottom: 10px;
  }
  #quiz-paragraph {
    text-align: left;
  }
  #quiz-answers {
    width: 100%;
    margin-bottom: 150px;
  }
  .quiz-answer-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    background: linear-gradient(
      90deg,
      rgba(20, 122, 214, 0.06) 0%,
      rgba(254, 254, 255, 0.06) 94.6%
    );
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    gap: 20px;
  }
  .quiz-answer-btn {
    border: 1px solid transparent;
  }
  .quiz-answer-btn:hover,
  .quiz-answer-btn:focus {
    background: #edf4fc;
    border: 1px solid #8dc8fe;
    transform: none;
  }
  .quiz-answer-img {
    margin: 0;
  }
  .forward-btn {
    padding: 9px;
    gap: 10px;
    background: #0275de;
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #ffffff;
    border: 1px solid #0275de;
    width: 100%;
  }
  .back-btn {
    padding: 9px;
    gap: 10px;
    background: #f1f8fe;
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #0275de;
    border: 1px solid #f1f8fe;
    width: 100%;
  }
  #quiz-result {
    margin-top: 24px;
  }
  #quiz-result:after {
    background-image: none;
    background: linear-gradient(180deg, #ffffff 0%, #edf2fc 32.89%);
  }
  #quiz-result .col:not(:has(.teaser-box.selected)) {
    order: 2;
  }
  #quiz-result .col:has(.teaser-box.selected) {
    order: 1;
  }
  #quiz-result .teaser-box .checkbox {
    width: 100%;
    height: auto;
    margin: 0 16px;
    background: none;
  }
  #quiz-result .teaser-box .checkbox:after {
    content: "Tarif wählen";
    background-image: none;
    padding: 9px;
    gap: 10px;
    background: #f1f8fe;
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #0275de;
    border: 1px solid #f1f8fe;
    display: block;
    text-align: center;
    width: calc(100% - 32px);
  }
  #quiz-result .teaser-box.selected .checkbox:after {
    content: "Weiter";
    background-image: none;
    padding: 9px;
    gap: 10px;
    background: #0275de;
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #ffffff;
    border: 1px solid #0275de;
    width: calc(100% - 32px);
    text-align: center;
  }
  #quiz-result .teaser-box.selected {
    margin-bottom: 60px;
  }
  .teaser-box.content-text.selected:after {
    content: "Alternativ bieten wir auch diese Tarife an:";
    display: block;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: #20609b;
    position: absolute;
    bottom: -45px;
    width: 100%;
  }

  #quiz-result #anmeldedaten {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    margin: 0;
    padding: 24px 16px;
    display: none;
  }
}
