/* ==========================================================
   Fit Für Fieber – Quiz Styles
   Cleaned and externalized for maintainability
   ----------------------------------------------------------
   Author: Fit Für Fieber Team | 2025
========================================================== */

/* ---------- Base System ---------- */
:root {
  --font-ui: "Source Sans 3 Local", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Roboto Condensed Local", "Source Sans 3 Local", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-sys: var(--font-ui);
  --font-family: var(--font-ui);
  --sjs-font-family: var(--font-ui);
}

@font-face {
  font-family: "Source Sans 3 Local";
  src: url("assets/webfonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Source Sans 3 Local";
  src: url("assets/webfonts/source-sans-3-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Roboto Condensed Local";
  src: url("assets/webfonts/roboto-condensed-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Roboto Condensed Local";
  src: url("assets/webfonts/roboto-condensed-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

body {
  margin: 0;
  background: #ffffff50;
  color: #222;
  font-family: var(--font-sys);
  font-weight: 400;
  letter-spacing: 0.2px;
  opacity: 0;
  animation: fadeInBody 1s ease-in forwards;
}

h1,
h2,
h3,
.sd-title,
.sd-question__title,
.sv_q_title,
.sd-header__title,
.resultTitle,
#scoreValue,
.scoreBox h3,
#printArea h4,
#reviewList h4,
.sd-html h3 {
  font-family: var(--font-display) !important;
  font-weight: 700;
  letter-spacing: -0.015em;
}


@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

html {
  scroll-behavior: smooth;
}

/* ---------- Header / Logo ---------- */
#logoHeader {
  text-align: center;
  background: linear-gradient(90deg, #FEACB222, #C6CBFF22);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

#logoImage {
  max-width: 95%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

#logoImage:hover {
  opacity: 0.9;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}



/* ---------- Feedback ---------- */
.symbol-overlay {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  user-select: none;
}

.symbol-overlay img {
  width: 150px;
  height: auto;
  background:none;
  border-radius:3px;
}

.symbol-overlay.cross {
  font-size: 160px;
  color: red;
}

.feedback-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font-sys);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.feedback-correct {
  background-color: #C8E6C9;
  color: #2E7D32;
  border: 2px solid #81C784;
}

.feedback-wrong {
  background-color: #FFCDD2;
  color: #C62828;
  border: 2px solid #EF9A9A;
}

.correct-answer-text {
  margin-top: 6px;
  background: #ffffff50;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.submit-answer-btn {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px ridge #000;
  background: #C6CBFF;
  color: #333;
  font-family: var(--font-sys);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.15s;
}

.submit-answer-btn:hover {
  background: #C6CBFF80;
  transform: scale(1.05);
}

.submit-answer-btn[disabled] {
  background: #ddd !important;
  color: #888;
  transform: none;
  opacity: 0;
display:none;
  cursor: pointer;
}

/* ---------- SurveyJS Buttons ---------- */
.sd-btn.sd-navigation__next-btn,
.sd-btn.sd-navigation__prev-btn,
.sd-btn.sd-navigation__complete-btn {
  display: inline-block;
  background-color: #4B6CC1; /* Academic blue */
  color: #fff;
  font-family: var(--font-sys);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  border: 2px ridge #000 !important;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  touch-action: manipulation;
}

.sd-btn.sd-navigation__next-btn:hover,
.sd-btn.sd-navigation__next-btn:focus,
.sd-btn.sd-navigation__prev-btn:hover,
.sd-btn.sd-navigation__prev-btn:focus,
.sd-btn.sd-navigation__complete-btn:hover,
.sd-btn.sd-navigation__complete-btn:focus {
  background-color: #577fe0;
  transform: translateY(-2px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 -2px 0 rgba(255, 255, 255, 0.15);
  outline: none;
}

.sd-btn.sd-navigation__next-btn:active,
.sd-btn.sd-navigation__prev-btn:active,
.sd-btn.sd-navigation__complete-btn:active {
  transform: translateY(1px);
  background-color: #3e5a9a;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.sd-btn[disabled] {
  background-color: #ccc;
  color: #666;
  box-shadow: none;
  transform: none;
  opacity: 0;
display:none;
  cursor: pointer;
}

/* Ensure visible ridge border even after SurveyJS theme */
.sd-body__navigation .sd-btn,
.submit-answer-btn {
  border: 2px ridge #000 !important;
  border-radius: 8px !important;
}

/* ---------- Progress Bar ---------- */
.sd-progress__text {
  display: none;
}

.sd-progress {
  width: 100%;
  height: 20px;
  border-radius: 12px;
  background: #f0f0f3;
  box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.1),
    -6px -6px 12px rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.sd-progress__bar {
  position: relative;
  height: 16px;
  border-radius: 10px;
  background-color: #C6CBFF;
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.7),
    inset -2px -2px 4px rgba(0, 0, 0, 0.08),
    0 0 10px rgba(198, 203, 255, 0.5),
    0 0 20px rgba(198, 203, 255, 0.3);
  overflow: hidden;
  transition: all 0.4s ease;
}

.sd-progress__bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0)
  );
  animation: progressShine 2s ease-out 1;
}

@keyframes progressShine {
  0% { left: -40%; opacity: 0.7; }
  100% { left: 100%; opacity: 0; }
}

/* ---------- Readonly Styling ---------- */
.sv_q_readonly .sd-input,
.sv_q_readonly .sd-item__decorator {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Typography Overrides ---------- */
.sd-question__title,
.sd-body,
.sd-selectbase,
.sd-page,
.sd-completedpage,
.sd-header__title {
  font-family: var(--font-sys) !important;
  font-weight: 400;
}

/* ---------- Responsive ---------- */
#logoImage {
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

@media (max-width: 600px) {
  #logoImage {
    width: 100%;
    border-radius: 0px;
  }
}
.sd-root--compact .sd-body__navigation .sd-btn:not(.sd-btn--action) {
	background-color: var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));
	color: #000;
}
.feedback-box,
.feedback-correct,
.feedback-wrong,
.correct-answer-text {
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
#logoHeader[style*="opacity: 0"] {
  display: none !important;
}
.sd-completedpage:has(> *) {
	padding: 0px;
}
.sd-completedpage {
	padding: 0px;
}
/* ===============================
   Fit Für Fieber – Result & Review Layout
   Mobile-first, responsive design
================================= */

#printArea {
  text-align: center;
  color: #222;
  padding: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-ui);
}

#printArea img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#printArea h4 {
  font-size: 1.1rem;
  margin: 0.8rem 0;
  line-height: 1.3;
}

.fluid-feedback {
  margin: 1.2rem auto;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.5;
  background: #fffdfd;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#reviewList {
  text-align: left;
  color: #111;
  font-size: 1.1rem;
  line-height: 1.4;
}

#reviewList h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  text-align: center;
}

#reviewList ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#reviewList li {
  background: #ffffff50;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 0.8rem 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#reviewList li:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#reviewList strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

#reviewList b {
  color: #333;
}

#reviewList span {
  font-weight: 600;
}

/* ✅ Correct/Incorrect coloring */
#reviewList span[style*="4CAF50"] {
  color: #2E7D32 !important;
}

#reviewList span[style*="F44336"] {
  color: #C62828 !important;
}

/* 🖨️ Print button styling */
#printBtn {
  margin-top: 1.2rem;
  padding: 0.7rem 1.4rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(90deg, #FEACB2, #C6CBFF);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#printBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 📱 Mobile adjustments */
@media (max-width: 600px) {
  #printArea h4 {
    font-size: 1.1rem;
  }

  .fluid-feedback {
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
  }

  #reviewList li {
    padding: 0.7rem 0.9rem;
    font-size: 1.1rem;
  }
}
.green-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 255, 128, 0.35); /* soft green tint */
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  mix-blend-mode: soft-light; /* gentle integration with bg */
}

.green-overlay.active {
  opacity: 1;
}

.red-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 0, 0, 0.35);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  mix-blend-mode: soft-light;
}

.red-overlay.active {
  opacity: 1;
}


hr{
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}


#logoHeader {
    text-align: center;
    background: linear-gradient(90deg, #FEACB222, #C6CBFF22);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}


.sd-progress {
  width: 100%;
  height: 14px !important;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  margin: 10px auto 20px auto;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sd-progress__bar {
  background: linear-gradient(90deg, #C6CBFF 0%, #C6CBFF 100%) !important;
  height: 100%;
  border-radius: 8px;
  transition: width 0.4s ease-in-out;
}

.sd-progress__text {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: #00000090;
  text-align: left;
  margin-top: 4px;
  font-style: italic;
  letter-spacing: 0.2px;
}

/* Optional: mobile tweaks */
@media (max-width: 600px) {
  .sd-progress {
    height: 10px !important;
    margin-bottom: 14px;
  }
  .sd-progress__text {
    font-size: 1.1rem;
    text-align: center;
  }
}
#printArea img {
    max-width: 100%;
    height: auto;
    border-radius: 8px!important;
	transition:0.6s;
}
#printArea img:hover {
  opacity:0.9;
}

/* === Neumorphic Timer & Progress Box === */
#timer1, #progressLabel {
  display: none; /* initially hidden until GSAP fades them in */
  background: #FEF57F50;
  color: #333;
  border-radius: 16px;
  padding: 10px 18px;
  margin: 10px auto;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  width: fit-content;
  box-shadow: 5px 5px 12px #d1d9e6,
              -5px -5px 12px #ffffff;
  transition: all 0.3s ease;
  opacity:0.6;
}
#timer1:hover, #progressLabel:hover {
  opacity:0.8;
}




/* When both appear stacked */
#progressLabel {
  margin-top: 6px;
  color: #555;
  font-style: italic;
}
#remainingMsg {
  background: #ffffff90!important;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-block;
  font-size: 1.1rem;
  color: #000;
}
#tickOverlay div {
  font-weight: bold;
  user-select: none;
}
.sd-root-modern, .sd-container-modern {
    background: #ffffff!important;
}

#footer2 p,
#footer2 a {
  display: block;
  margin: 6px 0;
  line-height: 1.6;
}

#footer2 span,
#footer2 a {
  display: inline;
  background: rgba(255, 255, 255, 0.95); 
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 6px 2px;
  border-radius: 4px;
}

#footer2 img {
  display: block;
  background: rgba(255, 255, 255, 1);
  border-radius: 6px;
  margin: 8px auto;
  padding: 4px;
  width: 250px;
}
hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    opacity: 0.9;
    width: 100%;
	filter:blur(1px);
    margin-top: -1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.sd-progress {
  position: relative !important;
  overflow: visible !important;
}

.info-feedback {
  margin-top: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  font-size: 1.1rem;
  color: #000;
  line-height: 1.4;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
 #reviewList li {
    opacity: 1;                 /* ensure visible if JS trigger fails */
    transform: none;            /* prevent residual transform */
    transition: opacity 0.3s ease;
  }

  /* optional smoother initial appearance */
  #reviewList {
    opacity: 1;
    visibility: visible;
  }
  #shareimg{
  transition: filter 1.2s ease-in-out;
  box-shadow:none!important;
}

#shareimg:hover {

}
/* Common fade-in animation */
@keyframes fadeInSmooth {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Apply to logo, headings, and feedback box */
#printArea img[alt='Fit Für Fieber Logo'],
#printArea h4,
.fluid-feedback {
  opacity: 0;
  animation: fadeInSmooth 0.8s ease-out 0.5s forwards; /* duration: 0.8s, delay: 0.5s */
}

/* Optional: slightly stagger headings and feedback for a polished feel */
#printArea h4:nth-of-type(1) { animation-delay: 0.6s; }
#printArea h4:nth-of-type(2) { animation-delay: 0.7s; }
.fluid-feedback              { animation-delay: 0.8s; }


  #shareGif{
  transition: filter 1.2s ease-in-out;
  box-shadow:none;
}

#shareGif:hover {
  }


#shareLink  {
  width:24px;height:24px;border-radius:50%;object-fit:cover;
           display:inline-flex;
             align-items:center;
             justify-content:center;
             gap:6px;
			 width:100%;
             padding:0.4rem 0.8rem;
             border-radius:10px;
             background:#ffffff;
             box-shadow:
               inset 1px 1px 3px rgba(0,0,0,0.05),
               inset -1px -1px 3px rgba(255,255,255,0.9);
             text-decoration:none;
             color:#333;
             font-weight:600;
             font-size:1.1rem;
  }
  
/* Mobile-safe number badge (used by ${circleNum}) */
.review-number {
  display: inline-block;
  font-weight: 700;
  margin-right: 8px;
  font-size: 1.1rem;
  color: #333;
  vertical-align: middle;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f5f5f5;
  box-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.08),
    -2px -2px 4px rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease-in-out;
}

/* ✅ Correct (soft green glow) */
.review-number.correct {
  color: #2E7D32;
  background: #e9f7ef;
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.06),
    inset -2px -2px 4px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(46, 125, 50, 0.25);
}

/* ❌ Wrong (soft red glow) */
.review-number.wrong {
  color: #C62828;
  background: #fdecea;
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.06),
    inset -2px -2px 4px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(198, 40, 40, 0.25);
}

/* Optional hover for subtle lift */
.review-number:hover {
  transform: translateY(-1px);
  box-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.08),
    -3px -3px 6px rgba(255, 255, 255, 1);
}



@media print {
  body {
    background: white !important;
  }
  #surveyContainer,
  #timer1,
  #footer2,
  #progressLabel,
  header,
  footer,
  nav,
  .sd-header,
  .sd-footer {
    display: none !important;
  }
}

@media print {
  .noprint {
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .noprint a,
  .noprint a:visited {
    color: #000 !important;
    text-decoration: none !important;
  }
}
  @media print {
    a, a:visited {
      color: #000 !important;
      text-decoration: none !important;
    }
  }
  
  .sd-html td, .sd-html span, .sd-html div, .sd-html p {
	font-size: 1.1rem !important;
}
h3 {

}
.sd-html h3 {
	font-size: 2rem !important;
}
#allyFab {
	position: fixed;
	bottom: 18px;
	right: 18px;
	width: 58px;
	height: 58px;
	border: medium;
	border-radius: 50%;
	background: rgba(243, 244, 247, 0.24);
	box-shadow: rgb(204, 208, 215) 6px 6px 12px, rgb(255, 255, 255) -6px -6px 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	z-index: 999999;
	transition: transform 0.15s;
	touch-action: manipulation;
	transform: scale(1);
	transition:0.3s;
	opacity:0.9;
	background:#fff;
}
footer {

    background: url("bgfoot2.webp") center center / cover no-repeat;
}

#printArea img[alt="Fit Für Fieber Logo"] {
    filter:
        /* dark structural shadow */
        drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.35))

        /* soft yellow glow close to the bulb */
        drop-shadow(0 0 8px rgba(255, 230, 0, 0.55))

        /* wider glow around it */
        drop-shadow(0 0 20px rgba(255, 230, 0, 0.45))

        /* large ambient shine */
        drop-shadow(0 0 40px rgba(255, 230, 0, 0.35));
		width:100%!important;
		max-width:250px!important;
}

#scoreValue  {
font-size:2rem!important;
}


/* Wrapper becomes a relative container */
#resultHeaderWrapper {
  position: relative;
  width: 100%;
  overflow: hidden;

  /* Much more bottom padding so the card sits lower */
  padding-bottom: 14rem; /* was 2.5rem */
}

/* Full-width image, auto height, always fully visible */
#resultBg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* full image, no cropping */
}

/* Glass card floats lower, revealing ~70% of the image */
#resultGlassCard {
  position: absolute;
  bottom: 3.5rem;   /* lower than before */
  left: 50%;

  width: 92%;
  max-width: 760px;

  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);

  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.35);

  box-shadow:
    0 12px 32px rgba(0,0,0,0.15),
    inset 0 0 22px rgba(255,255,255,0.25);

  text-align: center;
  animation: fadeUpResult 1s ease forwards;
  opacity: 0;

  /* start animation offset */
  transform: translate(-50%, 20px);
  transition:0.5s ease;
}

/* Animation */
@keyframes fadeUpResult {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Glass card floats lower, revealing ~70% of the image */
#resultGlassCard:hover {
  position: absolute;
  bottom: 3rem;   /* lower than before */
  left: 50%;
}

.scoreBox {
  margin: 1.2rem auto;
  padding: 1.2rem 1.6rem;
  max-width: 260px;

  /* Glass */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Neumorphic shadows */
  border-radius: 22px;
  box-shadow:
    8px 8px 18px rgba(0,0,0,0.12),
    -8px -8px 18px rgba(255,255,255,0.7),
    0 0 22px rgba(255, 215, 0, 0.35); /* subtle yellow glow */

  /* Border tint */
  border: 1px solid rgba(255, 255, 200, 0.45);

  text-align: center;
}

.scoreBox h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: 000;
}

.scoreBox{


  /* Mixed shadows (top yellow – bottom rose) */
  box-shadow:
    0 -6px 14px rgba(255, 230, 120, 0.45),  /* top warm yellow glow */
    0  6px 16px rgba(249, 190, 187, 0.55),  /* bottom soft #F9BEBB glow */
    0  0 24px rgba(255, 230, 120, 0.30),    /* ambient yellow softness */
    inset 0 0 20px rgba(255,255,255,0.45); /* inner glass lighten */

  /* Glass blur framing */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  /* Subtle outline tint */
  border: 1px solid rgba(255, 230, 120, 0.35);
}



#reviewToggle {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8rem 1rem;
  border-radius: 10px;

  /* Base background (layer under the image) */
  background: #ffffff;

  /* Neumorphic soft shadows */
  box-shadow:
    3px 3px 8px rgba(0,0,0,0.08),
    -3px -3px 8px rgba(255,255,255,0.9);

  /* Correct background image syntax */
  background-image: url("bgfoot.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;



  /* Make it animate smoothly */
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}


#printBtn {
	margin-top: 1.2rem;
	padding: 0.7rem 1.4rem;
	font-size: 1.1rem;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	background: linear-gradient(90deg, #FEACB2, #C6CBFF);
	color: #fff;
	font-weight: bold;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.sd-completedpage {
	padding: 0px!important;
}


#resultGlassCard {
  cursor: pointer;
}

#shareButtonsBox {
	margin-bottom:10px!important;
	 background-image: url("bgfoot.png");
	transition:0.3s ease;
}

#shareButtonsBox:hover {
opacity:0.95;
}

.drucken {
    /* box-shadow: 3px 3px 8px rgba(0,0,0,0.08),
    -3px -3px 8px rgba(255,255,255,0.9); */
    background-image:none;
    margin-top: 10px;
}

/* ==========================================================
   Fit fuer Fieber Brand Alignment Layer
   Scoped visual pass for the root quiz only
========================================================== */

:root {
  --fff-primary: #0f4c81;
  --fff-primary-deep: #0a365c;
  --fff-ink: #17304f;
  --fff-ink-soft: #5a6f87;
  --fff-surface: rgba(255, 255, 255, 0.94);
  --fff-surface-strong: #fffdfa;
  --fff-border: rgba(15, 76, 129, 0.12);
  --fff-shadow: 0 18px 40px rgba(19, 34, 58, 0.08);
  --fff-blush: rgba(254, 172, 178, 0.14);
  --fff-blue-soft: rgba(198, 203, 255, 0.16);
  --fff-radius-lg: 24px;
  --fff-radius-md: 18px;
  --fff-space-1: 8px;
  --fff-space-2: 12px;
  --fff-space-3: 18px;
  --fff-space-4: 28px;
}

body {
  background:
    radial-gradient(circle at 12% 10%, var(--fff-blush), transparent 26%),
    radial-gradient(circle at 88% 12%, var(--fff-blue-soft), transparent 24%),
    linear-gradient(180deg, #fdfdff 0%, #f6f9fc 48%, #eef4f9 100%) !important;
  color: var(--fff-ink);
}

#logoHeader {
  background: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
}

#logoImage {
  display: block;
  width: 100%;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

#logoImage:hover {
  transform: none;
  box-shadow: none;
}

#surveyContainer {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 22px 28px;
  border-radius: 0 0 var(--fff-radius-lg) var(--fff-radius-lg);
  border: 1px solid var(--fff-border);
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    radial-gradient(circle at top right, rgba(255, 220, 196, 0.1), transparent 56%);
  box-shadow: var(--fff-shadow);
  box-sizing: border-box;
}

#controls:empty {
  display: none;
}

#controls {
  margin: 0 auto;
  width: min(920px, calc(100vw - 32px));
}

.sd-root-modern,
.sd-container-modern,
.sd-body,
.sd-root-modern__wrapper {
  background: transparent !important;
}

.sd-question {
  padding: 22px 20px !important;
  margin-bottom: 18px !important;
  border-radius: var(--fff-radius-md) !important;
  border: 1px solid rgba(15, 76, 129, 0.08);
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 12px 24px rgba(19, 34, 58, 0.04);
}

.sd-title,
.sd-question__title,
.sv_q_title {
  color: var(--fff-ink) !important;
}

.sd-description,
.sd-question__description,
.sd-question__content,
.sd-selectbase__label-text,
.correct-answer-text,
#progressLabel,
#remainingMsg {
  color: var(--fff-ink-soft) !important;
}

.sd-selectbase__item {
  border-radius: 14px;
}

.sd-selectbase__item:hover,
.sd-selectbase__item.sd-selectbase__item--checked {
  background: rgba(15, 76, 129, 0.06) !important;
}

.submit-answer-btn,
.sd-btn.sd-navigation__next-btn,
.sd-btn.sd-navigation__prev-btn,
.sd-btn.sd-navigation__complete-btn,
.sd-body__navigation .sd-btn,
#printBtn {
  border: 1px solid rgba(15, 76, 129, 0.18) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #17609b, var(--fff-primary)) !important;
  color: #fff !important;
  box-shadow:
    0 12px 24px rgba(15, 76, 129, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.submit-answer-btn:hover,
.sd-btn.sd-navigation__next-btn:hover,
.sd-btn.sd-navigation__next-btn:focus,
.sd-btn.sd-navigation__prev-btn:hover,
.sd-btn.sd-navigation__prev-btn:focus,
.sd-btn.sd-navigation__complete-btn:hover,
.sd-btn.sd-navigation__complete-btn:focus,
#printBtn:hover {
  background: linear-gradient(180deg, #1b6eb2, var(--fff-primary)) !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 76, 129, 0.2) !important;
}

.sd-progress {
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.08);
  box-shadow: inset 0 1px 2px rgba(19, 34, 58, 0.06);
}

.sd-progress__bar {
  background: linear-gradient(90deg, #6ea1cf, var(--fff-primary)) !important;
}

.sd-body__navigation {
  margin-top: 22px !important;
}

.sd-body__navigation .sd-action {
  margin-right: 12px !important;
}

.quiz-site-footer {
  margin-top: 2rem;
  padding: 2rem 1rem 2.25rem;
  border-top: 1px solid var(--fff-border);
  text-align: center;
}

.quiz-footer-inner {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0;
}

.quiz-footer-brand {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  margin-bottom: 1rem;
}

.quiz-footer-brand-logo {
  width: min(100%, 240px);
  height: auto;
}

.quiz-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.quiz-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.68rem 0.95rem;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
}

.quiz-footer-external-label {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: #4d647b;
}

.quiz-footer-external-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
}

.quiz-footer-external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  color: #12375a;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.quiz-footer-external-link:hover,
.quiz-footer-links a:hover {
  border-color: rgba(15, 76, 129, 0.28);
  background: rgba(255, 255, 255, 0.96);
}

.quiz-footer-copy {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 1.25rem;
  color: #304a62;
}

.quiz-footer-copy p {
  margin: 0;
}

.quiz-footer-copy a {
  color: #0b5fa5;
}

.quiz-footer-links .icon,
.quiz-footer-external-link .icon {
  font-size: 1rem;
  line-height: 1;
}

.quiz-footer-project-lead {
  font-weight: 700;
  color: #17314c;
}

.quiz-footer-partners {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: stretch;
  margin: 0 auto 1.1rem;
}

.quiz-footer-partner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 76, 129, 0.1);
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: none;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.quiz-footer-partner:hover {
  border-color: rgba(15, 76, 129, 0.2);
  background: rgba(255, 255, 255, 0.95) !important;
}

.quiz-footer-partner img {
  width: auto !important;
  max-width: 100%;
  max-height: 52px;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.quiz-footer-separator {
  width: min(100%, 720px);
  height: 1px;
  margin: 0 auto 0.9rem;
  background: linear-gradient(90deg, transparent, rgba(15, 76, 129, 0.2), transparent);
}

.quiz-footer-copyright {
  margin: 0;
  color: #5b738b;
  font-size: 0.95rem;
}

footer,
.quiz-site-footer {
  background: none !important;
}

@media (max-width: 600px) {
  #surveyContainer {
    width: min(100vw - 20px, 100%);
    padding: 18px 16px 22px;
    border-radius: 0 0 22px 22px;
  }

  #controls {
    width: min(100vw - 20px, 100%);
  }

  .quiz-footer-inner {
    width: min(100vw - 20px, 100%);
    padding: 0;
  }

  .quiz-footer-partners {
    grid-template-columns: 1fr;
  }

  .quiz-footer-partner {
    min-height: 82px;
  }

  .quiz-footer-links,
  .quiz-footer-external-nav {
    gap: 0.6rem;
  }
}
