/* IBE-Akademie – Seite „Dozent:in werden“ (ergänzt site.css) */

/* ---------- Kopfbereich mit Bild ---------- */
.dw-held { position: relative; background: #efe6dc; overflow: hidden; border-bottom: 3px solid var(--gold); }
.dw-held-bild { width: 100%; height: clamp(440px, 46vw, 640px); object-fit: cover; object-position: 70% 40%; }
.dw-held::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,243,237,.94) 0%, rgba(247,243,237,.82) 32%, rgba(247,243,237,0) 55%); pointer-events: none; }
.dw-held-text { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); left: max(20px, calc((100% - var(--breite)) / 2 + 20px)); width: min(440px, 34%); }
.dw-held h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.08; margin: 0 0 16px; color: var(--navy); }
.dw-held-unter { font-size: 19px; color: var(--text); margin: 0 0 26px; }

@media (max-width: 900px) {
  .dw-held::after { display: none; }
  .dw-held-bild { height: auto; aspect-ratio: 16 / 10; object-position: 75% 40%; }
  .dw-held-text { position: static; transform: none; width: auto; padding: 30px 20px 38px; background: var(--grund); }
  .dw-held h1 { font-size: clamp(32px, 8vw, 42px); }
  .dw-held-unter { font-size: 17.5px; }
}

/* ---------- Formularbereich ---------- */
.dw-rahmen { max-width: 820px; }
.dw-kopf { text-align: center; margin-bottom: 40px; }
.dw-kopf .goldlinie { margin-left: auto; margin-right: auto; }
.dw-kopf .einleitung { margin: 0 auto; }

.dw-formular, .dw-danke { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); border-top: 4px solid var(--gold); padding: 40px 44px; }
.dw-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.dw-feld { margin: 0 0 26px; }
.dw-feld label, .dw-bereiche legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 16.5px; }
.dw-bereiche { border: 0; padding: 0; min-width: 0; }
.dw-bereiche legend { padding: 0; }
.dw-pflicht { color: var(--gold); }
.dw-optional { font-weight: 400; color: var(--grau); }
.dw-hinweis { color: var(--grau); font-size: 15px; margin: -2px 0 10px; line-height: 1.55; }

.dw-formular input[type="text"],
.dw-formular input[type="email"],
.dw-formular textarea { width: 100%; font: inherit; font-size: 16.5px; color: var(--text); background: var(--grund); border: 1.5px solid var(--linie); border-radius: 10px; padding: 13px 15px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.dw-formular textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.dw-formular input:focus, .dw-formular textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,39,.16); }
.dw-formular .dw-ungueltig input, .dw-formular .dw-ungueltig textarea { border-color: #b4483a; }
.dw-zaehler { text-align: right; font-size: 13.5px; color: var(--grau); margin: 6px 0 0; }

/* Auswahl-Chips */
.dw-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dw-chip { position: relative; display: inline-flex; margin: 0 !important; font-weight: 400 !important; cursor: pointer; }
.dw-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dw-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--linie); background: var(--grund); color: var(--text); font-size: 15.5px; line-height: 1.3; transition: all .15s ease; }
.dw-chip span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--gold); transition: background .15s ease; }
.dw-chip:hover span { border-color: var(--gold-hell); }
.dw-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.dw-chip input:checked + span::before { background: var(--gold); border-color: var(--gold); }
.dw-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.dw-bereiche.dw-ungueltig .dw-chip span { border-color: #e2b9b2; }
.dw-anderes-feld { margin: 16px 0 0; max-width: 420px; }

/* Spam-Falle */
.dw-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Einwilligung */
.dw-einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); line-height: 1.55; margin: 6px 0 24px; cursor: pointer; }
.dw-einwilligung input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.dw-einwilligung.dw-ungueltig { color: #b4483a; }

.dw-fehler { background: #fbeceA; color: #8f3326; border-radius: 10px; padding: 12px 16px; font-size: 15px; margin: 0 0 20px; }
.dw-absenden { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.dw-absenden .dw-hinweis { margin: 0; }
.dw-absenden .knopf[disabled] { opacity: .65; cursor: wait; transform: none; }

/* Danke */
.dw-danke { text-align: center; padding: 56px 40px; }
.dw-danke:focus { outline: none; }
.dw-danke-zeichen { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.dw-danke-zeichen svg { width: 30px; height: 30px; }
.dw-danke p { color: var(--grau); font-size: 18px; margin: 0; }

@media (max-width: 640px) {
  .dw-formular, .dw-danke { padding: 28px 20px; }
  .dw-reihe { grid-template-columns: 1fr; }
  .dw-absenden { flex-direction: column; align-items: stretch; }
  .dw-absenden .knopf { width: 100%; }
}
