
body { font-family: sans-serif; padding: 20px; }
.question-section { margin-bottom: 2em; }
.help-text { font-style: italic; color: gray; margin-top: 0.5em; display: none; }
.nav-buttons { margin-top: 1em; }
.result-card {
  padding: 1em;
  margin: 1em 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
}
.more-info-btn { margin-left: 1em; }
.question {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative; /* ermöglicht absolute Positionierung von Skip-Button */
}

.question p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.likert {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.likert label {
  flex: 1;
  min-width: 120px;
  background: #eef2f7;
  padding: 0.4rem 0.6rem;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

#progress-container {
  width: 100%;
  background-color: #eee;
  border-radius: 8px;
  margin-bottom: 1.5em;
  height: 20px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background-color: #4CAF50;
  transition: width 0.3s ease;
}

#pidtool-intro {
  background: #f5f5f5;
  border-left: 4px solid #007ACC;
  padding: 1em;
  margin-bottom: 1.5em;
  font-size: 1rem;
  line-height: 1.6;
}

/* Container für Balkenanzeige */
.score-bar-container {
  width: 100%;
  background-color: #eee;
  height: 20px;
  border-radius: 5px;
  margin: 10px 0;
  overflow: hidden;
}

/* Eigentliche farbige Balkenanzeige */
.score-bar {
  height: 100%;
  transition: width 0.5s ease;
}

.pid-description {
  font-size: 0.9em;
  color: #555;
  margin-top: 5px;
}

.result-info {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
  margin: 1.2rem 0;
}
.result-info a {
  color: #0077cc;
  text-decoration: underline;
}

.result-contact-note {
  margin-top: 1em;
  font-style: italic;
}

.statement-scores {
  margin-top: 0.5em;
  font-size: 0.8em;
}
.mini-score {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 2px;
  max-width: 800px; /* optional */
}

.mini-score-label {
  width: 120px;
  font-size: 0.8em;
  white-space: nowrap;
}

.error-message {
  color: #b00020;              /* kräftiges Rot */
  background-color: #ffe6e6;   /* hellroter Hintergrund */
  border: 2px solid #b00020;
  border-radius: 6px;
  padding: 1em;
  margin: 1em 0;
  font-weight: bold;
  font-size: 1em;
}

.importance-option {
  margin-top: 1em; /* etwas mehr Abstand zu den Radio-Buttons */
  font-size: 0.9em;
  color: #444;
  display: block;
}

.skip-option {
  text-align: right;      /* Button nach rechts ausrichten */
  margin-top: 0.5em;      /* etwas Abstand oberhalb */
}

.clear-btn {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.3em 0.8em;
  font-size: 0.85em;
  cursor: pointer;
  color: #333;
}

.clear-btn:hover {
  background-color: #e0e0e0;
  border-color: #999;
}

/* Container für die kleinen Score-Balken */
.statement-scores {
  margin-top: 0.5em;
}

/* Jede PID-Zeile */
.mini-score {
  display: flex;
  align-items: center;
  margin: 0.3em 0;
}

/* Label (PID-Name) */
.mini-score-label {
  flex: 0 0 120px; /* fester Platz für den Namen */
  font-size: 0.9em;
  color: #333;
}

/* Der farbige Balken */
.mini-bar {
  height: 14px;          /* einheitlich */
  border-radius: 7px;
  transition: width 0.4s;
  flex-grow: 0;          /* verhindert, dass Balken sich strecken */
  display: inline-block; /* JS-width greift sicher */
}

/* macht die ganze Kachel klickbar und fokussierbar */
.likert label {
  position: relative;
  border: 1px solid #dbe1ea;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

/* Radio unsichtbar, aber fokussierbar & klickbar */
.likert label input[type="radio"] {
  position: absolute;
  inset: 0;          /* füllt das ganze Label */
  opacity: 0;        /* bleibt fokussierbar */
  cursor: pointer;
}

/* Hover-Feedback */
.likert label:hover {
  background: #f5f8fc;
}

/* aktiver Klick */
.likert label:active {
  transform: translateY(1px);
}

/* gewählte Option (kein Farbwechsel-Drama, nur dezent) */
.likert label:has(input:checked) {
  background: #e8f0ff;
  border-color: #4f7cff;
  box-shadow: 0 0 0 2px rgba(79,124,255,.15) inset;
}

/* Tastaturfokus sichtbar machen */
.likert label:has(input:focus-visible) {
  outline: 2px solid #4f7cff;
  outline-offset: 2px;
}

/* Style for the foldable results */
details {
  border: 1px solid #ccc; /* Rand der Box */
  background-color: #f0f0f0; /* Hintergrundfarbe */
  padding: 10px; /* Innenabstand */
  margin-bottom: 15px; /* Außenabstand */
  font-size: 0.95rem;
  color: #333;
}
