/* Unterstützung von Quellenangabe 4 */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;700&display=swap");
@font-face {
  font-family: "KrungthepCustom";
  src: url("../media/fonts/Krungthep.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Ende Quellenangabe 4 */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 400;
  background: linear-gradient(180deg, #e6dac7 0%, #f4eee4 100%);
  color: #1f2a24;
}

.site-header,
.site-footer {
  margin: 32px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Unterstützung von Quellenangabe 4 */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  background: #cfbb99;
  clip-path: polygon(
    0% 80%,
    8% 60%,
    15% 75%,
    24% 48%,
    34% 78%,
    45% 62%,
    55% 85%,
    66% 55%,
    75% 70%,
    85% 42%,
    94% 65%,
    100% 52%,
    100% 100%,
    0% 100%
  );
  z-index: 0;
  opacity: 0.6;
}
/* Ende Quellenangabe 4 */

.site-footer p,
.site-footer a {
  position: relative;
  z-index: 1;
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 120px;
}

.logo {
  height: 90px;
  width: auto;
}

.site-header h1 {
  margin: 0;
  font-family: "KrungthepCustom", serif;
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.page-spacing {
  padding: 32px;
}

.welcome-page {
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Unterstützung von Quellenangabe 4 */
.welcome-card,
.form-card {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 56px 68px;
  background: linear-gradient(135deg, #ffffff 0%, #fbf5ed 100%);
  border-radius: 30px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.12);
}
/* Ende Quellenangabe 4 */

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

h2,
legend {
  margin-top: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 700;
  color: #1f2a24;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

legend {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.button,
button {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 34px;
  border: none;
  border-radius: 999px;
  background: #cfbb99;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(207, 187, 153, 0.35);
  transition: 0.25s ease;
}

button:hover,
.button:hover {
  background: #b8a17b;
  transform: translateY(-3px);
}

.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 36px 0 52px;
}

.progress-step {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e6dac7;
  color: #1f2a24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.progress-step.active {
  background: #e6dac7;
  outline: 5px solid #899064;
  color: #1f2a24;
}

.progress-step.done {
  background: #899064;
  color: #ffffff;
}

.progress-line {
  width: 120px;
  height: 4px;
  background: #899064;
  border-radius: 999px;
}

.form-step {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
}

.form-step.active {
  display: block;
}

label,
.label-title {
  display: block;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #c9cfc6;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 400;
  font-family: "Source Sans 3", Arial, sans-serif;
  background: #ffffff;
  color: #1f2a24;
}

/* Unterstützung von Quellenangabe 4 */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  height: 10px;
  background: #e6dac7;
  border: none;
  border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #899064;
  border: none;
  cursor: pointer;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #899064;
  box-shadow: 0 0 0 3px rgba(137, 144, 100, 0.18);
}
/* Ende Quellenangabe 4 */

textarea {
  min-height: 120px;
  resize: vertical;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.choice input {
  width: auto;
}

.error {
  min-height: 20px;
  margin: 6px 0 0;
  color: #b00020;
  font-size: 0.9rem;
}

.form-buttons {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 32px;
}

.form-buttons button {
  width: auto;
}

.site-footer a {
  color: #1f2a24;
}

/* Unterstützung von Quellenangabe 4 */
@media (max-width: 1150px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
  }
  .logo {
    height: 80px;
  }
  .site-header h1 {
    font-size: 3.2rem;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .site-header,
  .site-footer {
    margin: 12px;
    padding: 16px;
  }
  .site-header h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }
  .page-spacing {
    padding: 16px;
  }
  .welcome-card,
  .form-card {
    padding: 20px;
  }
  .progress-step {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .progress-line {
    width: 50px;
  }
}
/* Ende Quellenangabe 4 */
