@font-face {
  font-family: 'ABCDiatype';
  src: url('fonts/ABCDiatype-Regular.woff2') format('woff2'),
       url('fonts/ABCDiatype-Regular.woff') format('woff'),
       url('fonts/ABCDiatype-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NewsreaderDisplay';
  src: url('fonts/NewsreaderDisplay-Regular.woff2') format('woff2'),
       url('fonts/NewsreaderDisplay-Regular.woff') format('woff'),
       url('fonts/NewsreaderDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'ABCDiatype', Arial, sans-serif;
  background: #cbfb85;
  margin: 0;
  padding: 0;
  color: #002628;
  line-height: 1.5;
  max-width: 100vw;
  overflow-x: hidden;
}
.header {
  max-width: 900px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.container {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 36px 32px;
  box-sizing: border-box;
}
h1, h2, h3, h4 {
  font-family: 'ABCDiatype', Arial, sans-serif;
  font-weight: 400;
  color: #002628;
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.2;
}
h1 {
  font-size: 5.5em;
  margin-bottom: 18px;
  max-width: 620px;
  line-height: 1.0;
}
h2 {
  font-size: 2.5em;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.5em;
  margin-bottom: 8px;
  margin-top: 16px;
}
a {
  color: #fff;
  text-decoration: none;
}
strong {
  color: #83ae4b;
  font-size: 20px;
  font-weight: normal;
}
.divider {
  border: none;
  border-top: 2px solid #797979;
  margin: 24px 0;
}
.headline-logo {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.subline {
  font-family: 'NewsreaderDisplay', Arial, serif;
}
.header-image {
  max-width: 900px;
  margin-top: 40px;
}
.header-button {
  border: 1px solid #002628;
}
.intro-text {
  font-size: 1.5em;
  margin-bottom: 18px;
}
.goal-box {
  background: #797979;
  color: #fff;
  border-radius: 6px;
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.goal-box .goal-title {
  color: #83ae4b;
  font-size: 1.5em;
  font-style: italic;
  min-width: 120px;
}
.instructions {
  color: #83ae4b;
  font-size: 1.5em;
  font-style: italic;
  margin-bottom: 8px;
}
.instructions-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}
.instructions-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 1.5em;
  line-height: 2.1;
}
.instructions-list .step-num {
  color: #83ae4b;
  font-size: 1.5em;
  font-family: 'ABCDiatype', Arial, sans-serif;
  font-weight: 400;
  margin-right: 16px;
  min-width: 32px;
}
.scale-box {
  border: 1px solid #797979;
  padding: 18px 20px;
  margin: 24px 0 18px 0;
  color: #002628;
  font-size: 1em;
}
.scale-box .scale-title {
  color: #83ae4b;
  font-size: 1.5em;
  font-style: italic;
  margin-bottom: 8px;
  display: block;
}
.scale-box .scale-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}
.scale-box .scale-num {
  color: #83ae4b;
  margin-right: 8px;
  min-width: 18px;
}
.scale-box .scale-desc {
  font-size: 1em;
}
.reifegrad-box {
  background: #797979;
  color: #83ae4b;
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 1em;
  font-style: italic;
  margin-bottom: 24px;
}
.section {
  margin-bottom: 38px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid #e0e0e0;
}
.section h2 {
  color: #002628;
  font-size: 2em;
  margin-bottom: 10px;
}
.section-desc {
  color: #797979;
  font-size: 1em;
  margin-bottom: 12px;
  background-color: #797979;
  color: #fff;
  padding: 16px;
}
.question {
  margin-bottom: 18px;
  font-size: 1.1em;
  color: #002628;
  line-height: 1.4;
}
.answers label {
  margin-right: 22px;
  font-weight: normal;
  color: #002628;
  font-size: 1.1em;
  cursor: pointer;
}
.answers input[type="radio"] {
  accent-color: #83ae4b;
  width: 1.1em;
  height: 1.1em;
  margin-right: 4px;
}
.feedback {
  margin-top: 10px;
}
.feedback label {
  color: #002628;
  font-size: 1.1em;
}
.feedback-hint {
  color: #797979;
  font-size: 1em;
  font-style: italic;
}
textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #797979;
  padding: 8px;
  resize: vertical;
  font-family: 'ABCDiatype', Arial, sans-serif;
  font-size: 1em;
}
.user-info {
  margin: 28px 0 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.user-info label {
  flex: 1 0 120px;
  color: #002628;
}
.user-info input {
  flex: 2 0 220px;
  padding: 8px;
  border-radius: 6px;
  border: 1.5px solid #cbfb85;
  font-family: 'ABCDiatype', Arial, sans-serif;
  font-size: 1em;
  background: #f7f9fa;
}
.consent {
  margin: 18px 0 0 0;
  font-size: 1em;
  color: #002628;
}
.actions {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  margin-bottom: 22px;
  margin-top: 18px;
}
button {
  background: #002628;
  color: #fff;
  border: none;
  padding: 12px 26px;
  font-size: 1em;
  font-family: 'ABCDiatype', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 400;
  letter-spacing: 0.01em;
}
button:hover {
  background: #cbfb85;
  color: #002628;
}
#resultSection {
  margin-top: 38px;
  text-align: center;
  background: #6d6e71;
  padding: 24px 0 32px 0;
  border-radius: 0px !important;
  overflow-x: auto;
}
#resultSection h2 {
  color: #cbfb85;
  margin-bottom: 18px;
}
#resultWrapper {
  width: 600px;
  margin: 0 auto;
}
.stufe-headline {
  color: #83ae4b;
  font-family: 'NewsreaderDisplay', Arial, serif;
  font-size: 1.2em;
  margin: 18px 0 6px 0;
}
.stufe-label {
  color: #83ae4b;
  font-family: 'NewsreaderDisplay', Arial, serif;
  font-size: 1em;
  font-style: italic;
}
.reifegrad-ueberblick {
  color: #fff;
  background-color: #797979;
  padding:16px;
}
.qualitative-label {
  color: #cbfb85;
}
.green-accent {
  color: #cbfb85;
  font-family: 'NewsreaderDisplay', Arial, sans-serif;
  font-weight: normal;
  font-size: 1.2em;
}
#resultSection .actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
#resultSection .actions button {
  margin: 0 auto;
  display: block;
}
#resultSection .legend, #resultSection .chartjs-legend, .chartjs-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'ABCDiatype', Arial, sans-serif;
  color: #cbfb85;
  font-size: 1.1em;
  margin-top: 12px;
}
#chart-title {
  font-family: 'ABCDiatype', Arial, sans-serif;
  color: #fff;
  font-size: 2em;
  text-align: center;
  margin-top: 24px;
}
#chart-subtitle {
  font-family: 'NewsreaderDisplay', serif;
  color: #cbfb85;
  font-size: 22px;
  text-align: center;
  margin-top: 8px;
}

/* Chart.js Anpassungen */
/* Die Chart-Labels und Ticks werden per Chart.js-Optionen auf ABCDiatype gesetzt, aber für Sicherheit: */
.chartjs-render-monitor, .chartjs-size-monitor {
  font-family: 'ABCDiatype', Arial, sans-serif !important;
}

/* Stufenbeschriftungen (Chart.js: .stufe-label) */
.stufe-label, .chartjs-stufe-label {
  font-family: 'ABCDiatype', Arial, sans-serif !important;
  background: #6D6E71 !important;
  border-radius: 30px !important;
  color: #cbfb85 !important;
  padding: 2px 16px !important;
  display: inline-block;
  font-size: 1.1em;
  margin-bottom: 4px;
}

/* Chart-Elemente grün auf #cbfb85 */
/* Die Chart.js-Optionen für borderColor, pointBorderColor, legend etc. werden im Script angepasst. */

#custom-legend {
  margin-top: 12px;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-family: 'ABCDiatype', Arial, sans-serif;
  color: #cbfb85;
  font-size: 1.1em;
}
#custom-legend span {
  font-family: 'ABCDiatype', Arial, sans-serif;
  color: #cbfb85;
  font-size: 1.1em;
}
#custom-legend .legend-rect {
  display: inline-block;
  width: 38px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}
#custom-legend .legend-ist {
  background: #7d8a6a;
  border: 2px solid #cbfb85;
}
#custom-legend .legend-ziel {
  background: transparent;
  border: 2px dashed #cbfb85;
}

@media (max-width: 700px) {
  .container {
    padding: 20px;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .user-info {
    flex-direction: column;
    gap: 10px;
  }
  button {
    width: 100%;
  }
  .goal-box {
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
  }
  h1 {
    font-size: 15vw;
    padding-left: 20px;
  }
  h2 {
    word-break: break-word;
    hyphens: auto;
  }
  .subline {
    font-size: 7vw;
  }
  .logo-image {
    width: 90px;
    height: 81px;
    padding-left: 20px;
  }
  textarea {
    width: 95%;
  }
  .headline-logo {
    padding: 0;
  }
}

@media (max-width: 570px) {
  .headline-logo {
    flex-direction: column;
  }
  .logo-image {
    order: 1;
  }
  h1 {
    order: 2;
  }
  .headline-logo {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
  }
  .subline {
    margin: 0 20px;
  }
  .header-button {
    margin: 0 20px;
  }
  .actions {
    flex-direction: column;
  }
  h2, .section h2 {
    font-size: 8vw;
  }
}