/******************
    User custom CSS
*/

body {
  margin-right: auto;
  margin-left: auto;
  max-width: 1170px;  /* max-width statt width – gibt auf kleinen Screens nach */
  width: 100%;
  padding: 0 15px;    /* verhindert, dass Inhalt am Rand klebt */
  box-sizing: border-box;
}

.radio-item label::before {
  border: 1px solid lightgrey;
}

.radio-item input[type="radio"]:checked + label::after {
  background: grey;
}

.checkbox-item label::before {
  border: 1px solid lightgrey;
}

.orange {
  color: #fff;
  background-color: #e68c1a;
  border-color: #2f3133;
}


.progress-bar {
  background-color: #EE0000 !important;
}
/* hidden-xs Block war falsch – er hat hidden-xs sichtbar gemacht statt versteckt.
   Bootstrap macht das bereits korrekt, also einfach weglassen oder so: */
@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }
}

.space-col {
  margin-top: 0em;
  margin-bottom: 0em;
}

body .top-container {
  margin-top: 10px;
}

body {
  font-size: 16px;
}

.navbar-default {
  background-color: #ffffff;
  border-color: #e7e7e7;
}

.navbar-fixed-top {
  position: inherit;
  margin-top: -60px;
}

.question-container {
  margin-bottom: 2em;
  border: 0px solid #e7e7e7;
  background-color: #ffffff;
}

.question-text {
  font-size: 20px;
  line-height: 1.42857143;
  color: #333;
}

/* Responsivere Schriftgröße für kleine Screens */
@media (max-width: 767px) {
  .question-text {
    font-size: 17px;
  }
}

.asterisk {
  visibility: hidden;
}

.survey-welcome {
  font-size: 18px;
  font-weight: normal;
  line-height: 1.62857143;
  color: #333;
}

.survey-name {
  text-align: left;
}

#welcome-container,
#welcome-container *,
.survey-welcome,
.survey-welcome * {
  color: #333;
}

#welcome-container a,
.survey-welcome a {
  color: #333;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background-color: #2f3133;
  border-color: #2f3133;
}

.btn-primary:hover {
  color: #fff;
  background-color: #000000;
  border-color: #000000;
}

.progress-bar {
  background-color: #000000;
}

.group-title {
  text-align: left;
}

.opt-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 6px;
  cursor: help;
  color: #888;
  font-size: 0.85em;
}

.opt-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #2f3133;
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
  width: max-content;
  max-width: 75%;
  border-radius: 4px;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.has-row-tooltip {
  position: relative;
}

.has-row-tooltip:hover {
  background-color: #f5f5f5;
}

.has-row-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: 100%;
  left: 0;
  background: #2f3133;
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
  width: max-content;
  max-width: 75%;
  border-radius: 4px;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-top: 4px;
}