/* Brand-Theming via CSS Custom Properties */

:root {
  --color-bg: #f1f1f2;
  --color-text: #282828;
  --color-text-muted: #6c757d;
  --color-border: #ebebeb;
  --color-disabled-bg: #ebebeb;
  --color-disabled-text: #b1acaa;
  --color-error: #c82828;
  --color-link: #5fc7bf;

  --font-family: 'Open Sans', sans-serif;
  --max-width: 1100px;
}

/* EWE (default) */
[data-brand="ewe"] {
  --brand-primary: #ffd500;
  --brand-primary-active: #efc207;
  --brand-text-on-primary: #282828;
  --brand-btn-radius: 2px;
  --brand-btn-min-width: 170px;
  --brand-btn-min-height: 42px;
  --brand-btn-font-size: 14px;
  --brand-btn-font-weight: 600;
  --brand-btn-text-transform: none;
  --brand-btn-letter-spacing: normal;
  --brand-nav-bg: radial-gradient(circle at 40% 65%, #a8a19e, #56524b);
  --brand-nav-height: 67px;
  --brand-footer-bg: #5f5e5a;
  --brand-footer-bg-image: url("https://www.ewe.de/ewe/frontend/tpl/assets/footer-back.svg");
  --brand-footer-text: #fff;
}

/* SWB */
[data-brand="swb"] {
  --brand-primary: #007269;
  --brand-primary-active: #007269;
  --brand-text-on-primary: #fff;
  --brand-btn-radius: 21px;
  --brand-btn-min-width: 250px;
  --brand-btn-min-height: 42px;
  --brand-btn-font-size: 14px;
  --brand-btn-font-weight: 600;
  --brand-btn-text-transform: none;
  --brand-btn-letter-spacing: normal;
  --brand-nav-bg: #f7f7f7;
  --brand-nav-height: 125px;
  --brand-footer-bg: #f7f7f7;
  --brand-footer-bg-image: none;
  --brand-footer-text: #333;
}

/* osnatel */
[data-brand="osnatel"] {
  --brand-primary: #f4364c;
  --brand-primary-active: #df3044;
  --brand-text-on-primary: #fff;
  --brand-btn-radius: 0.125rem;
  --brand-btn-min-width: 170px;
  --brand-btn-min-height: 42px;
  --brand-btn-font-size: 1.125rem;
  --brand-btn-font-weight: 600;
  --brand-btn-text-transform: uppercase;
  --brand-btn-letter-spacing: 2px;
  --brand-nav-bg: #25272a;
  --brand-nav-height: 100px;
  --brand-footer-bg: #25272a;
  --brand-footer-bg-image: none;
  --brand-footer-text: #fff;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/OpenSans-Light-Dzsombp_.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/OpenSans-Regular-oTYKLUqa.woff2') format('woff2');
}

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/assets/MaterialIcons-Regular-kAwBdRge.woff2') format('woff2');
}

.material-icons {
  font-family: 'Material Icons', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  display: flex;
  justify-content: center;
  height: 100%;
  background-color: var(--color-bg) !important;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-style: normal;
  font-weight: 300;
  color: var(--color-text);
  min-width: auto;
  max-width: var(--max-width);
  width: 100%;
  min-height: 100% !important;
  height: max-content;
}

body button:focus {
  outline: 1px !important;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Minimal spacing utilities (replacing Bootstrap) */
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
/* Template container */
.template-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 50px 30px 160px;
}

@media (max-width: 768px) {
  .template-container {
    margin-top: 10px;
  }
}

.container-title {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  margin: 0 15px;
  margin-bottom: 10px !important;
}

@media (max-width: 414px) {
  .container-title {
    text-align: left;
    margin: 0;
  }
}

/* NPS container */
.nps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  flex-direction: column;
  max-width: 850px;
  width: 100vw;
}

.nps-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .nps-container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .nps-subtitle {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    margin: 20px 15px 0;
  }
}

@media (max-width: 414px) {
  .nps-subtitle {
    text-align: left;
  }
}

/* Score / Rating buttons */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.count-btn {
  width: 45px;
  font-size: 20px;
  font-weight: bold;
  height: 45px;
  border-radius: 2px;
  padding: 0;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  background-color: var(--brand-primary);
  color: var(--brand-text-on-primary);
  transition: opacity 0.2s ease;
}

.count-btn:hover {
  opacity: 1;
}

.count-btn.active {
  opacity: 1;
  border: 1px solid #000;
  font-weight: bold;
  background-color: var(--brand-primary-active);
}

.count-btn.nicht-geloest-btn {
  width: unset;
  padding: 8px;
  margin-left: 10px;
  font-size: 20px;
  font-weight: 300;
}

.count-btn.nicht-geloest-btn.active {
  padding: 7px;
}

/* Smiley buttons */
.count-btn.smiley {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  background-color: transparent !important;
  color: #2d8a2d;
  border: 1px solid #b1acaa;
  opacity: 1 !important;
}

.count-btn.smiley .material-icons {
  font-size: 38px;
}

.count-btn.smiley:hover,
.count-btn.smiley.active {
  color: #fff;
}

.count-btn.smiley:nth-of-type(1) { color: #2d8a2d; }
.count-btn.smiley:nth-of-type(1):hover,
.count-btn.smiley:nth-of-type(1).active { background-color: #277a27 !important; color: #fff; border-color: #277a27; }

.count-btn.smiley:nth-of-type(2) { color: #8bc343; }
.count-btn.smiley:nth-of-type(2):hover,
.count-btn.smiley:nth-of-type(2).active { background-color: #8bc343 !important; color: #1a1a1a; border-color: #8bc343; }

.count-btn.smiley:nth-of-type(3) { color: #f5c800; }
.count-btn.smiley:nth-of-type(3):hover,
.count-btn.smiley:nth-of-type(3).active { background-color: #f5c800 !important; color: #1a1a1a; border-color: #f5c800; }

.count-btn.smiley:nth-of-type(4) { color: #f07830; }
.count-btn.smiley:nth-of-type(4):hover,
.count-btn.smiley:nth-of-type(4).active { background-color: #f07830 !important; color: #1a1a1a; border-color: #f07830; }

.count-btn.smiley:nth-of-type(5) { color: #c82828; }
.count-btn.smiley:nth-of-type(5):hover,
.count-btn.smiley:nth-of-type(5).active { background-color: #c82828 !important; color: #fff; border-color: #c82828; }

/* Score container (wraps btn-container + range) */
.nps-scoring {
  width: 100%;
}

/* Scale range labels */
.range {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 2px;
}

.range span {
  color: #282828;
  font-size: 18px;
  line-height: 20px;
}

@media (max-width: 414px) {
  .range span {
    font-size: 13px;
    line-height: 16px;
  }
}

/* NPS form */
.nps-form {
  display: flex;
  min-width: 450px;
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
}

.nps-form .wrapper {
  display: inline-flex;
  height: auto;
  width: 100%;
  align-items: center;
  justify-content: space-evenly;
  padding: 20px 0;
  flex-wrap: wrap;
}

.nps-form .wrapper .title {
  width: 100%;
  font-weight: bold;
  text-wrap: pretty;
}

.nps-form .wrapper .title span {
  font-weight: normal;
  display: block;
}

@media (max-width: 576px) {
  .nps-form {
    align-items: center;
    flex-direction: column;
    min-width: auto;
    flex-wrap: wrap;
  }
}

/* Choice options */
.option-label {
  display: inline-flex;
  height: 40px;
  width: 35%;
  align-items: center;
  justify-content: space-evenly;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  padding: 0 10px;
  transition: all 0.3s ease;
  opacity: 0.75;
}

.option-label.positive {
  background: #d5e29d;
}

.option-label.negative {
  background: #fdb79a;
}

.option-label.neutral {
  background: #e1e1e1;
}

.option-label.selected {
  opacity: 1;
  border: 1px solid #000;
}

.option-label.wiederholung {
  width: auto;
  margin: 10px;
  padding-left: 30px;
  padding-right: 30px;
}

/* Hidden radio inputs (the label handles visual state) */
input[type='radio'].sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Visually hidden text that is still announced by screen readers - used to
   give placeholder-only inputs an accessible name via a wrapping <label>. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* Label that wraps a control purely to associate an (sr-only) name with it,
   without introducing a layout box of its own. */
.field-label {
  display: contents;
}

/* Multi-choice toggle */
.css-button {
  border: none;
  width: fit-content !important;
  padding: 8px;
  border-radius: 2px;
  margin-bottom: 4px;
  opacity: 0.8;
  background-color: var(--brand-primary);
  color: var(--brand-text-on-primary);
  cursor: pointer;
  font-size: 20px;
  font-weight: 300;
}

.css-button.active {
  opacity: 1 !important;
  padding: 7px;
  font-weight: bold;
}

/* Text input / textarea */
.survey-input {
  height: 42px;
  width: 100%;
  border-radius: 2px;
  border: 1px solid var(--color-border);
  -webkit-appearance: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.62;
  padding-left: 10px;
  outline: 0;
  transition: all 0.3s;
  font-family: var(--font-family);
}

.survey-input:focus {
  border-color: var(--brand-primary);
}

.survey-textarea {
  min-height: 250px;
  resize: vertical;
}

.number-input {
  width: 40%;
  text-align: center;
  border-radius: 5px;
  border: 0;
  padding: 10px;
  opacity: 0.8;
  background: #f1f1f1;
  font-family: var(--font-family);
}

/* Submit button */
.submit-btn {
  min-height: var(--brand-btn-min-height);
  min-width: var(--brand-btn-min-width);
  background-color: var(--brand-primary);
  font-size: var(--brand-btn-font-size);
  font-weight: var(--brand-btn-font-weight);
  border-radius: var(--brand-btn-radius);
  border: none;
  color: var(--brand-text-on-primary);
  box-shadow: none;
  cursor: pointer;
  text-transform: var(--brand-btn-text-transform, none);
  letter-spacing: var(--brand-btn-letter-spacing, normal);
  transition: opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  opacity: 0.8;
}

.submit-btn:disabled {
  background-color: var(--color-disabled-bg);
  color: var(--color-disabled-text);
  cursor: not-allowed;
}

/* Validation error */
.validation-error {
  color: var(--color-error);
  margin-top: 1rem;
  text-align: center;
}

/* Text helpers */
.text-small {
  font-size: 0.875rem;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

.content-left {
  justify-content: left !important;
}

/* Loading spinner */
.loading-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
}

.spinner {
  width: 30px;
  height: 30px;
  position: relative;
  margin: 0 auto;
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #bbb;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: bounce 2s ease-in-out infinite;
}

.double-bounce2 {
  animation-delay: -1s;
}

@keyframes bounce {
  0%, 100% { transform: scale(0); }
  50% { transform: scale(1); }
}

/* Footer */
.survey-footer {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 30px;
  position: fixed;
  bottom: 0;
  background-color: var(--brand-footer-bg);
  background-image: var(--brand-footer-bg-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  height: 140px;
  max-width: var(--max-width);
  width: 100%;
}

@media (max-width: 576px) {
  .survey-footer {
    height: 80px;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 850px;
  width: 100%;
}

@media (max-width: 1100px) {
  .footer-links {
    width: 95vw !important;
  }
}

.footer-links a {
  color: var(--brand-footer-text);
  font-size: 1.15rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .footer-links a {
    font-size: 0.77rem;
  }
}

/* Star rating (CSAT 5er Likert) */
.star-rating {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  width: 100%;
  flex-wrap: nowrap;
  background: transparent;
}

.star-rating .star {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin: 0;
  line-height: 0;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.15s ease;
}

.star-rating .star:hover {
  transform: scale(1.08);
}

.star-rating .star:focus-visible {
  outline: 2px solid #282828;
  outline-offset: 2px;
  border-radius: 4px;
}

.star-rating .star .star-icon {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #888;
  stroke-width: 1.5px;
  stroke-linejoin: round;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.star-rating .star.star-filled .star-icon,
.star-rating .star.star-hover .star-icon {
  fill: var(--brand-primary);
  stroke: var(--brand-primary);
}

@media (max-width: 414px) {
  .star-rating {
    gap: 4px;
  }
  .star-rating .star {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 340px) {
  .star-rating .star {
    width: 38px;
    height: 38px;
  }
}

/* Required indicator */
.required-indicator {
  color: red;
}

/* EWE Nav */
.nav-ewe[data-v-6d97147c] {
  background-image: var(--brand-nav-bg);
  height: 67px;
  display: flex;
  align-items: center;
}
.nav-logo-img[data-v-6d97147c] {
  height: 30px;
  padding-left: 1.5rem;
}

/* SWB Nav */
.nav-swb[data-v-6d97147c] {
  width: 100%;
}
.swb-gradient[data-v-6d97147c] {
  height: 0.625rem;
  width: 100%;
  background: linear-gradient(to right, #62b32c, #e3000f);
}
.swb-logo-container[data-v-6d97147c] {
  background-color: #f7f7f7;
  height: 125px;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
}
.swb-logo[data-v-6d97147c] {
  display: inline-block;
  width: 6.25rem;
  height: 6.25rem;
}

/* osnatel Nav */
.nav-ot[data-v-6d97147c] {
  width: 100%;
}
.ot-meta-navigation[data-v-6d97147c] {
  height: 28px;
  background-color: #1f2124;
}
.ot-logo-container[data-v-6d97147c] {
  background-color: #25272a;
  display: flex;
  align-items: center;
  height: 72px;
  padding-left: 32px;
}
.ot-logo[data-v-6d97147c] {
  display: inline-block;
  width: 6.125rem;
  height: 2.0625rem;
}
@media (max-width: 1700px) {
.nav-ewe[data-v-6d97147c],
  .nav-swb[data-v-6d97147c],
  .nav-ot[data-v-6d97147c] {
    margin: auto;
}
}

.single-choice-container[data-v-b5594d66] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.single-choice-container.boolean-pair[data-v-b5594d66] {
  flex-wrap: nowrap;
}

.css-buttons[data-v-d1d02d59] {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.other-input[data-v-d1d02d59] {
  width: 100%;
}
.other-input label[data-v-d1d02d59] {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.feedback-form[data-v-ce24f5e4] {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
