/*
 * Broschueren-Gate und Kontaktformular (Plan h8-website, Arbeitspaket 7).
 *
 * Gestaltet seite/vorlagen/teile/broschueren-gate.html. Uebernommen aus dem Bestandssnippet
 * 930, ohne dessen Elementor-Reste. Mobil zuerst, Seitenrand mindestens 16 px, Bedienflaechen
 * mindestens 48 px hoch.
 *
 * Die eine Regel, die hier nicht nur Geschmack ist: .am-honig schiebt den Honigtopf aus dem
 * Bild, statt ihn per display:none zu verstecken. Ein Feld mit display:none oder type=hidden
 * fuellen viele Skripte gar nicht erst aus, und dann faengt die Falle nichts.
 */

.am-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(20, 22, 25, .72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.am-gate.am-auf { display: flex; }

.am-gate [hidden] { display: none !important; }

.am-gate .am-karte {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 20px 24px;
  border-radius: 6px;
  background: #fff;
  color: #1d2125;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  font-family: inherit;
}

.am-gate .am-titel {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: #1d2125;
}

.am-gate .am-unter {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #5a6470;
}

.am-gate .am-zu {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #9aa3ad;
  cursor: pointer;
}

.am-gate .am-zu:hover,
.am-gate .am-zu:focus-visible { color: #1d2125; }

.am-gate .am-reihe { display: block; }

.am-gate .am-feld {
  display: block;
  margin-bottom: 12px;
}

.am-gate .am-marke {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: #5a6470;
}

.am-gate input,
.am-gate textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #ccd2d9;
  border-radius: 4px;
  background: #fff;
  color: #1d2125;
  /* 16 px, sonst zoomt iOS beim Hineintippen in das Feld. */
  font-size: 16px;
  font-family: inherit;
}

.am-gate textarea {
  min-height: 84px;
  resize: vertical;
}

.am-gate input:focus,
.am-gate textarea:focus {
  outline: 0;
  border-color: #1d2125;
  box-shadow: 0 0 0 2px rgba(29, 33, 37, .12);
}

/* Honigtopf: aus dem Bild geschoben, nicht abgeschaltet. Siehe Kopfkommentar. */
.am-gate .am-honig {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.am-gate .am-bot {
  margin: 4px 0 12px;
  min-height: 0;
}

.am-gate .am-los {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 4px;
  background: #1d2125;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.am-gate .am-los:hover { background: #000; }

.am-gate .am-los[disabled] {
  opacity: .55;
  cursor: default;
}

.am-gate .am-hinweis {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5a6470;
}

/* Der 502-Satz mit der Telefonnummer landet hier. Er muss auffallen, ohne zu schreien. */
.am-gate .am-hinweis.am-rot { color: #b3261e; }
.am-gate .am-hinweis.am-gruen { color: #1e7a44; }

.am-gate .am-fuss {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #7b8590;
}

.am-gate .am-fuss a { color: #7b8590; }

.am-gate .am-erfolg p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #5a6470;
}

.am-gate .am-link {
  display: inline-block;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 4px;
  background: #1d2125;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 560px) {
  .am-gate .am-karte { padding: 32px 28px 26px; }
  .am-gate .am-reihe {
    display: flex;
    gap: 10px;
  }
  .am-gate .am-reihe > .am-feld {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-gate { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
