/* Quellenangabe Q13 gelesen und gelernt Start */
* {
  box-sizing: border-box;
}
/* Quellenangabe Q13 Ende */

/* Quellenangabe Q11/Q17 gelesen und angewendet Start */
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12pt;
  font-weight: 400;
  color: #000000;
  background-image: url("../media/lager-hintergrund.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}
/* Quellenangabe Q11/Q17 Ende */

/* Grundwissen Schule/Betrieb Start */
.site-header {
  padding: 18px 0 10px 0;
}

.header-inner {
  width: 100%;
  margin: 0;
  background-color: rgba(247, 241, 223, 0.95);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  text-align: left;
}

/* Quellenangabe Q17/Q18 eigenes Design Start */
.logo {
  width: 140px;
  height: auto;
  margin-bottom: 0;
  flex-shrink: 0;
}

.header-text {
  flex: 1;
}

.header-grafik {
  width: 140px;
  height: auto;
  flex-shrink: 0;
}

/* Quellenangabe Q15/Q16 Schriftquellen Start */
h1 {
  color: #21412c;
  margin-top: 0;
  margin-bottom: 6px;
  font-family: "am-novecento", "Inter", Arial, sans-serif;
  font-size: 35px;
  font-weight: 400;
  font-style: normal;
}

.subtitle {
  font-family: "Inter", Arial, sans-serif;
  font-size: 14pt;
  font-weight: 900;
  color: #000000;
}

h2,
h3,
legend,
.label-text {
  color: #21412c;
  margin-top: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12pt;
  font-weight: 700;
}
/* Quellenangabe Q15/Q16 Ende */

/* Quellenangabe Q17/Q18 Ende */
/* Grundwissen Schule/Betrieb Ende */

/* Grundwissen Schule/Betrieb Start */
.container {
  width: 92%;
  max-width: 900px;
  margin: 20px auto;
}

.form-box,
.success-box {
  background-color: rgba(255, 255, 255, 0.96);
  padding: 20px;
  border-radius: 14px;
  border: 2px solid #e6dec9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
/* Grundwissen Schule/Betrieb Ende */

/* Quellenangabe Q11/Q12 gelesen und angewendet Start */
.progress-box {
  margin-bottom: 18px;
}

#progress-text {
  font-weight: bold;
  margin-bottom: 8px;
  color: #21412c;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #ddd8cb;
  border-radius: 30px;
  overflow: hidden;
}

#progress-fill {
  width: 20%;
  height: 100%;
  background-color: #396547;
}
/* Quellenangabe Q11/Q12 Ende */

/* Quellenangabe Q3 gelesen und gelernt Start */
fieldset {
  border: 1px solid #d5ccb7;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.9);
}

legend {
  font-weight: bold;
  color: #21412c;
  padding: 0 8px;
}

label,
.label-text {
  display: block;
  margin-top: 12px;
  margin-bottom: 5px;
  font-weight: bold;
}

.choice-group label,
.checkbox-line label {
  font-weight: normal;
  margin-top: 6px;
}

/* Quellenangabe Q3/Q15 gelesen und angewendet Start */
input,
select,
textarea,
button {
  width: 100%;
  padding: 10px;
  border: 1px solid #bfb7a5;
  border-radius: 6px;
  font-size: 12pt;
  font-family: "Inter", Arial, sans-serif;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
/* Quellenangabe Q3/Q15 Ende */

textarea {
  resize: vertical;
}
/* Quellenangabe Q3 Ende */

/* Quellenangabe Q12 gelesen und angewendet Start */
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row button,
.button-link {
  display: inline-block;
  background-color: #21412c;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  width: auto;
}

.button-row button:hover,
.button-link:hover {
  background-color: #2f6b43;
}

#back-button {
  background-color: #6f6f6f;
}

#back-button:hover {
  background-color: #555555;
}
/* Quellenangabe Q12 Ende */

/* Quellenangabe Q13 gelesen und gelernt Start */
.error-summary,
.error,
.js-error,
.step-error {
  background-color: #ffe1e1;
  border: 1px solid #cf5555;
  color: #8a1111;
  padding: 10px;
  border-radius: 6px;
}

.error,
.js-error,
.step-error {
  margin-top: 8px;
}

.step-error[hidden] {
  display: none;
}
/* Quellenangabe Q13 Ende */

/* Quellenangabe Q13 gelesen und gelernt Start */
.input-error,
.choice-group.group-error,
.checkbox-line.group-error {
  border-color: #cf5555 !important;
  outline: 2px solid rgba(207, 85, 85, 0.18);
}

.choice-group,
.checkbox-line {
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.success-box {
  border-color: #78a875;
}

.hint,
#zeicheninfo {
  color: #555555;
  font-size: 14px;
}
/* Quellenangabe Q13 Ende */

/* Grundwissen Schule/Betrieb Start */
footer {
  text-align: center;
  padding: 20px;
  color: white;
}

footer a {
  color: white;
}
/* Grundwissen Schule/Betrieb Ende */

/* Quellenangabe Q14 gelesen und gelernt Start */
/* Quellenangabe Q19 */
@media (min-width: 700px) {
  .header-inner {
    padding: 22px 35px;
    gap: 30px;
  }

  .logo {
    width: 175px;
  }

  .header-grafik {
    width: 170px;
  }

  .form-box,
  .success-box {
    padding: 30px;
  }
}
/* Quellenangabe Q14 Ende */

/* Anpassung für kleine Bildschirme Start */
@media (max-width: 700px) {
  .header-grafik {
    display: none;
  }
}
/* Anpassung für kleine Bildschirme Ende */

/* Quellenangabe Q4 gelesen und gelernt Start */
input::placeholder,
textarea::placeholder {
  color: #777777;
}
/* Quellenangabe Q4 Ende */

/* Quellenangabe Q11/Q12 Start: Fehlermeldungen direkt unter Feldern. */
.js-error {
  margin-top: 6px;
  margin-bottom: 8px;
}
/* Quellenangabe Q11/Q12/Q19 Ende */
