body.survey-page {
  min-height: 100vh;
  margin: 0;
  background-image: url("./Hintergrundbild.png"), linear-gradient(to bottom, rgba(0,0,0,0) 0%, #001f3f 100%);
  background-repeat: no-repeat;
  background-size: cover, 100%;
  background-position: center, center;
}


/* Header */
body.survey-page header {
  width: 100%;
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  box-sizing: border-box;
  margin: 0;
}


/* Info-Kasten */
.survey-info {
  max-width: 700px; /* Breite des Info-Kastens */
  margin: 24px auto; /* zentriert mit Abstand oben und unten */
  padding: 24px; /* Innenabstand */
  text-align: center; /* zentrierter Text */
  border-radius: 15px; /* abgerundete Ecken */
  background: linear-gradient(to bottom right, #d9f0ff, #aee0ff);  /*sanfter Farbverlauf */
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);   /* dezenter Schatten */
}

.survey-info h2 { /* Überschrift im Info-Kasten */
  font-size: 1.8rem;
  color: #004a70;
  margin-bottom: 10px;
}

.survey-info p { /* Text im Info-Kasten */
  font-size: 1rem;
  color: #003f5c;
}

/* Container */
.container {
  max-width: 700px; 
  margin: 0 auto;
  padding: 0 16px;
}

/* Fragekarten */
.question-card {
  background: linear-gradient(to bottom right, #d9f0ff, #aee0ff);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 16px 0;
}

.question-card .question-number {
  font-weight: bold;
  color: #004a70;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.question-card .options label.option {
  display: block;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.question-card .options label.option:hover {
  background: #e0f3ff;
}

.question-card .options input[type="radio"] {
  margin-right: 12px;
}

/* Ergebnisbereich */
#survey-result {
  background: #eef6fb; /* helleres Blau für Ergebnisbereich */
  border-radius: 12px; /* abgerundete Ecken */
  padding: 20px; /* Innenabstand */
  margin-top: 24px; /* Abstand nach oben */
  margin-bottom: 40px; /* Abstand nach unten */
  border: 1px solid rgba(20,40,60,0.08); /* dezenter Rahmen */
}

/* Submit Button */
.survey-btn {
  background-color: #007acc;
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 24px auto 40px auto;
}

.survey-btn:hover {
  background-color: #005f99;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) { 
  .container { padding: 0 12px; }
  .question-card { padding: 16px; }
  .survey-info { padding: 16px; }
  .survey-btn { width: 100%; }
}
.skin-bar-container,
.prevention-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  max-width: 600px;
}

.skin-bar-label,
.prevention-bar-label {
  font-size: 0.9rem;
  color: #004a70;
}

.skin-bar-wrapper,
.prevention-bar-wrapper {
  position: relative; /* wichtig für Prozentzahl */
  flex: 1;
}

.skin-bar,
.prevention-bar {
  width: 100%;
  height: 16px;
  background-color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.skin-bar-fill,
.prevention-bar-fill {
  height: 100%;
  background-color: #007acc;
  width: 0%;
  border-radius: 8px 0 0 8px;
  transition: width 0.5s ease-in-out;
}


.prevention-bar {
  width: 100%;
  height: 16px;
  background-color: #e0e0e0; /* neutraler Hintergrund */
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.prevention-bar-fill {
  height: 100%;
  width: 0%; /* wird JS gesetzt */
  border-radius: 8px 0 0 8px;
  background: linear-gradient(to right, #00c853, #ffd600, #ff6d00); /* grün → gelb → orange */
  transition: width 0.5s ease-in-out;
}

.prevention-bar-percent {
  position: absolute;
  top: -20px;
  right: 0;
  font-size: 0.85rem;
  font-weight: bold;
  color: #007acc;
}

