/* Demo dialog of the live site: the five fields of the former form #dmForm in the look of the prototype dialog
   (.fenster rules in style.css). Sizes, colours and radii follow those rules. */

.fenster-karte { max-width: 520px; }

.fenster-felder { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 14px; }
.fenster-feld { display: flex; min-width: 0; flex-direction: column; }
@media (min-width: 560px) {
  .fenster-felder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fenster-feld-breit { grid-column: 1 / -1; }
}

.fenster textarea {
  display: block; width: 100%; min-height: 96px; margin-bottom: 14px; resize: vertical;
  border-radius: 8px; border: 1px solid var(--z200); background: #fff; padding: 10px 12px;
  font: inherit; font-size: 16px; line-height: 1.5; letter-spacing: inherit; color: inherit; outline: none;
  transition: box-shadow .15s var(--tw), border-color .15s var(--tw);
}
.fenster textarea::placeholder { color: var(--z400); opacity: 1; }
.fenster textarea:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hauch); }

/* Required field missing or invalid after a send attempt */
.fenster input.ist-falsch { border-color: #c2413b; }
.fenster input.ist-falsch:focus { box-shadow: 0 0 0 3px #fbe9e7; }

.fenster [type="submit"][disabled] { cursor: progress; opacity: .72; transform: none; box-shadow: none; }

/* Privacy note and error note below the form (wording of the former page) */
.fnote { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 13px; line-height: 19.5px; color: var(--z500); }
.fnote svg { flex: none; margin-top: 3px; color: var(--z500); }
.fnote a { color: var(--schwarz); text-decoration: underline; text-decoration-color: var(--z300); text-underline-offset: 3px; }
.fnote a:hover { text-decoration-color: var(--schwarz); }
.fnote.dm-err { display: block; border-radius: 8px; border: 1px solid #f0cfcb; background: #fdf4f3; padding: 10px 12px; font-size: 14px; line-height: 21px; color: #8a2621; }
.fnote.dm-err a { color: inherit; font-weight: 500; text-decoration-color: currentColor; }
.fnote.dm-err[hidden] { display: none; }
