/* Quellverzeichnis 3 (Google) */
:root {
  --blue-hour: #535b72;
  --iced-blue: #8a92a4;
  --espresso-black: #1e1e1e;
  --foam-white: #f6f4f4;
}

html,
body {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Quellverzeichnis 5 - Grundlayout/Grid */
body {
  height: auto;
  margin: 0;
  font-family: "CarlMarx", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background-color: var(--blue-hour);
  flex-direction: column;
}

/* Header */
.site-header {
  width: 100%;
  margin-bottom: 40px;
  padding-top: 20px;
  text-align: center;
  color: var(--foam-white);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-title {
  margin: 0;
  color: var(--foam-white);
  text-align: center;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo img {
  width: 72px;
  height: auto;
  display: block;
}

/* Zwischentitel */
.section-title {
  padding-bottom: 10px;
  margin-bottom: -30px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
  color: var(--espresso-black);
}

.section {
  margin-bottom: 40px;
}

.webformular {
  width: 80%;
  height: auto;
  max-width: 1200px;
  border-radius: 28px;
  padding: 4%;
  background-color: var(--foam-white);
  margin: 0 auto;
}

/* Einleitungsbereich */
.workshop-einleitung {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.einleitung {
  display: none;
}

.einleitung h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

/* Quellverzeichnis 1 - Workshop Boxen */
.workshop {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.workshop label.barista,
.workshop label.study,
.workshop label.acoustic {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--foam-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  border-left: 6px solid transparent;
  transition: all 0.2s ease;
}

.workshop label.barista:hover,
.workshop label.study:hover,
.workshop label.acoustic:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Radio verstecken */
.workshop input[type="radio"] {
  display: none;
}

/* Quellverzeichnis 2 - Active State */
.workshop label:has(input[type="radio"]:checked) {
  background: #ffffff;
  border-left: 6px solid var(--blue-hour);
}

.workshop-asset {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.workshop h2 {
  margin: 0;
  font-size: 1rem;
}

.workshop p {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.zeit,
.daten,
.optionales {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label,
.field p {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

input,
select,
textarea {
  width: auto;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  box-sizing: border-box;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Quellverzeichnis 4 - Radio/Checkbox Styling */
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--blue-hour);
}

/* Submit Button */
.submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -25px;
}

.submit-button {
  padding: 16px 28px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  color: var(--foam-white);
  cursor: pointer;
  background-color: var(--blue-hour);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background-color: var(--iced-blue);
}

/* Footer */
.site-footer {
  width: 100%;
  margin-top: 60px;
  text-align: center;
  color: var(--foam-white);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.08);
}

/* Submit.php */
.box {
  width: 80%;
  max-width: 700px;
  margin: 60px auto;
  padding: 40px;
  background: var(--foam-white);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  color: var(--espresso-black);
}

.box h1 {
  margin-top: 0;
  font-size: 1.8rem;
  color: var(--blue-hour);
}

.box p {
  margin: 10px 0;
  line-height: 1.5;
}

.error {
  color: #d64545;
  font-size: 0.75rem;
  margin-top: 4px;
  font-style: italic;
}

/* Tablet */
@media (min-width: 768px) {
  body {
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .workshop-einleitung {
    flex-direction: column;
  }

  .einleitung h1 {
    font-size: 2rem;
  }

  .zeit,
  .daten,
  .optionales {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .daten .field:nth-child(3),
  .optionales .field:nth-child(1) {
    grid-column: 1 / -1;
  }

  .daten .field:nth-child(6),
  .daten .field:nth-child(7) {
    grid-column: span 1;
  }

  .optionales .field.checkbox-field {
    grid-column: 2 / 3;
  }

  .checkbox-field label {
    padding-top: 35px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .workshop-einleitung {
    flex-direction: row;
    align-items: flex-start;
  }

  .einleitung {
    width: 30%;
    text-align: left;
    display: block;
  }

  .workshop {
    width: 70%;
  }
}
