/* GWG Wohnungswunschanfrage - ein optisch zurueckhaltendes responsives Formular. */
.gwg-wwa {
  --gwg-wwa-accent: var(--e-global-color-primary, #9b1c31);
  --gwg-wwa-text: #20252a;
  --gwg-wwa-border: #d7dce1;
  --gwg-wwa-muted: #626c74;
  color: var(--gwg-wwa-text);
  max-width: 960px;
  margin: 0 auto;
  font: inherit;
  line-height: 1.5;
}
.gwg-wwa *, .gwg-wwa *::before, .gwg-wwa *::after { box-sizing: border-box; }
.gwg-wwa-header { margin: 0 0 28px; }
.gwg-wwa-eyebrow { color: var(--gwg-wwa-muted); margin: 0 0 6px; font-size: .95rem; }
.gwg-wwa-header h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; color: inherit; }
.gwg-wwa-header > p:last-child { margin: 0; }
.gwg-wwa-section,
.gwg-wwa-more,
.gwg-wwa-finish {
  margin: 0 0 22px;
  border: 1px solid var(--gwg-wwa-border);
  border-radius: 10px;
  background: #fff;
  padding: 22px;
}
.gwg-wwa-section { min-width: 0; }
.gwg-wwa-section legend {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0 9px;
  color: inherit;
}
.gwg-wwa-hint { margin: 0 0 14px; color: var(--gwg-wwa-muted); font-size: .92rem; }
.gwg-wwa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.gwg-wwa-field { display: grid; gap: 6px; margin: 0; font-size: .95rem; font-weight: 600; min-width: 0; color: inherit; }
.gwg-wwa-field input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px;
  min-height: 46px;
  border: 1px solid #aeb6bd;
  border-radius: 6px;
  background: #fff;
  color: #20252a;
  font: inherit;
  font-weight: 400;
  box-shadow: none;
}
.gwg-wwa-field input:focus-visible,
.gwg-wwa-check input:focus-visible,
.gwg-wwa-submit:focus-visible,
.gwg-wwa-more summary:focus-visible {
  outline: 3px solid var(--gwg-wwa-accent);
  outline-offset: 2px;
}
.gwg-wwa-field input::placeholder { color: #747d85; opacity: 1; }
.gwg-wwa-required { color: #b0122b; font-weight: 700; }
.gwg-wwa-more { padding: 0; }
.gwg-wwa-more summary { cursor: pointer; font-weight: 650; padding: 18px 22px; }
.gwg-wwa-more-content { padding: 0 22px 22px; }
.gwg-wwa-subhead { font-weight: 700; margin: 22px 0 12px; }
.gwg-wwa-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.gwg-wwa-check-grid-short { max-width: 490px; }
.gwg-wwa-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.gwg-wwa-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 1px 0 0;
  accent-color: var(--gwg-wwa-accent);
}
.gwg-wwa-finish { background: #f9fafb; }
.gwg-wwa-acknowledge { font-weight: 600; margin: 0 0 15px; }
.gwg-wwa-privacy { color: var(--gwg-wwa-muted); font-size: .9rem; margin: 0 0 12px; }
.gwg-wwa-privacy a { color: var(--gwg-wwa-accent); text-decoration: underline; }
.gwg-wwa-submit {
  display: inline-block;
  max-width: 100%;
  margin-top: 9px;
  padding: 13px 23px;
  background: var(--gwg-wwa-accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  text-align: center;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.gwg-wwa-submit:hover { filter: brightness(.91); color: #fff; }
.gwg-wwa-message { padding: 17px 20px; border-radius: 6px; margin: 0 0 20px; font-weight: 600; }
.gwg-wwa-message-success { background: #f1f8f2; border: 1px solid #88b992; color: #1e5b30; }
.gwg-wwa-message-error { background: #fff7f6; border: 1px solid #d2a29b; color: #862b1c; }
.gwg-wwa-trap { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 650px) {
  .gwg-wwa-grid, .gwg-wwa-check-grid { grid-template-columns: 1fr; }
  .gwg-wwa-section, .gwg-wwa-finish { padding: 16px; }
  .gwg-wwa-more summary { padding: 16px; }
  .gwg-wwa-more-content { padding: 0 16px 16px; }
  .gwg-wwa-submit { width: 100%; }
}
