/* Mühlenfreunde – Mühlentag 2027 | Formular-Design v1.2.0
   Enfold-freundlich und ausschließlich innerhalb #mft27 wirksam. */
.mft27-wrap {
  --mft-navy: #214c6d;
  --mft-navy-dark: #193c57;
  --mft-ink: #263d4e;
  --mft-muted: #566d7d;
  --mft-line: #dce6ed;
  --mft-light: #f3f7fa;
  width: 100%;
  max-width: none;
  margin: 22px 0 40px;
  padding: 0;
  color: var(--mft-ink);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
.mft27-wrap *, .mft27-wrap *::before, .mft27-wrap *::after { box-sizing: border-box; }
.mft27-wrap .mft27-form { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.mft27-wrap .mft27-card {
  display: block;
  width: 100%;
  max-width: none;
  background: #fff;
  border: 1px solid var(--mft-line);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(25, 65, 95, .055);
}
/* Intro des Formulars: keine Dopplung des bereits vorhandenen Seitentitels. */
.mft27-wrap .mft27-form-head {
  margin: 0;
  padding: 27px 32px 25px;
  background: var(--mft-light);
  border-bottom: 1px solid var(--mft-line);
}
.mft27-wrap .mft27-kicker {
  color: #4e7693;
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1.05px;
}
.mft27-wrap .mft27-form-head h2 {
  color: var(--mft-navy);
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 650;
  line-height: 1.3;
  text-transform: none;
}
.mft27-wrap .mft27-form-head p {
  max-width: 850px;
  margin: 0;
  padding: 0;
  color: #455e70;
  font-size: 15px;
  line-height: 1.7;
}
.mft27-wrap .mft27-deadline-note {
  display: inline-block;
  margin-top: 15px;
  padding: 7px 11px;
  color: #315a76;
  background: #e5eff5;
  border: 1px solid #d8e5ed;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.5;
}
/* Feldsets behalten ihre semantische Gruppierung; die Styles sind auf
   das Formular beschränkt und berühren keine übrigen Enfold-Formulare. */
.mft27-wrap fieldset.mft27-section {
  display: block;
  float: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 27px 32px 30px;
  margin: 0;
  border: 0;
  background: #fff;
}
.mft27-wrap fieldset.mft27-section + fieldset.mft27-section { border-top: 1px solid #e9eff3; }
.mft27-wrap fieldset.mft27-section legend {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 0 0 21px;
  padding: 0;
  color: var(--mft-navy);
  border: 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.55;
  text-transform: none;
}
.mft27-wrap .mft27-step {
  display: inline-block;
  vertical-align: baseline;
  min-width: 34px;
  margin-right: 9px;
  padding: 5px 7px;
  border-radius: 3px;
  background: #edf4f8;
  color: #4f7895;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
/* 12-Spalten-Raster: Straßenadresse 8/12, PLZ 4/12, übrige Felder 6/12. */
.mft27-wrap .mft27-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 19px 22px;
  margin: 0;
  padding: 0;
  width: 100%;
}
.mft27-wrap .mft27-grid--choices {
  margin-top: 19px;
  padding-top: 20px;
  border-top: 1px dashed #e5edf2;
}
.mft27-wrap .mft27-grid > .mft27-field { grid-column: span 6; min-width: 0; }
.mft27-wrap .mft27-grid > .mft27-field.mft27-span-2 { grid-column: 1 / -1; }
.mft27-wrap .mft27-grid > .mft27-field.mft27-span-8 { grid-column: span 8; }
.mft27-wrap .mft27-grid > .mft27-field.mft27-span-4 { grid-column: span 4; }
.mft27-wrap .mft27-field { min-width: 0; }
.mft27-wrap .mft27-field label {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  color: #29445a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.mft27-wrap .mft27-field label span, .mft27-wrap .mft27-checkbox span span { color: #aa473b; }
/* Die stärkere Spezifität setzt sich auch gegen Enfold-Inputvorgaben durch. */
#top .mft27-wrap .mft27-field input[type="text"],
#top .mft27-wrap .mft27-field input[type="email"],
#top .mft27-wrap .mft27-field input[type="tel"],
#top .mft27-wrap .mft27-field textarea,
#top .mft27-wrap .mft27-field select,
.mft27-wrap .mft27-field input[type="text"],
.mft27-wrap .mft27-field input[type="email"],
.mft27-wrap .mft27-field input[type="tel"],
.mft27-wrap .mft27-field textarea,
.mft27-wrap .mft27-field select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 11px 13px;
  color: var(--mft-ink);
  background: #fcfdfe;
  border: 1px solid #cad7e1;
  border-radius: 4px;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#top .mft27-wrap .mft27-field textarea,
.mft27-wrap .mft27-field textarea { min-height: 128px; resize: vertical; }
.mft27-wrap .mft27-field input::placeholder,
.mft27-wrap .mft27-field textarea::placeholder { color: #7b8c98; opacity: 1; }
#top .mft27-wrap .mft27-field input:focus,
#top .mft27-wrap .mft27-field select:focus,
#top .mft27-wrap .mft27-field textarea:focus,
.mft27-wrap .mft27-field input:focus,
.mft27-wrap .mft27-field select:focus,
.mft27-wrap .mft27-field textarea:focus {
  outline: none;
  border-color: #537f9e;
  box-shadow: 0 0 0 3px rgba(83, 127, 158, .13);
  background: #fff;
}
.mft27-wrap :focus-visible { outline: 3px solid #bad4e4; outline-offset: 2px; }
.mft27-wrap .mft27-form-footer {
  padding: 25px 32px 28px;
  background: #f9fbfc;
  border-top: 1px solid var(--mft-line);
}
.mft27-wrap .mft27-privacy {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #dce6ed;
  border-radius: 4px;
}
.mft27-wrap .mft27-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: #284356;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}
#top .mft27-wrap .mft27-checkbox input[type="checkbox"],
.mft27-wrap .mft27-checkbox input[type="checkbox"] {
  display: inline-block;
  flex: 0 0 19px;
  width: 19px;
  min-width: 19px;
  height: 19px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #214c6d;
}
.mft27-wrap .mft27-privacy p {
  color: var(--mft-muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 9px 0 0 31px;
}
.mft27-wrap .mft27-small {
  font-size: 13px;
  color: var(--mft-muted);
  line-height: 1.65;
  margin: 14px 0 18px;
}
.mft27-wrap a { color: var(--mft-navy); text-decoration: underline; text-underline-offset: 2px; }
#top .mft27-wrap button.mft27-submit,
.mft27-wrap button.mft27-submit {
  display: inline-block;
  width: auto;
  min-height: 49px;
  margin: 0;
  padding: 13px 23px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: none;
  text-decoration: none;
  text-align: left;
  color: #fff;
  background: var(--mft-navy);
  border: 1px solid var(--mft-navy);
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
#top .mft27-wrap button.mft27-submit:hover,
.mft27-wrap button.mft27-submit:hover { background: var(--mft-navy-dark); color: #fff; border-color: var(--mft-navy-dark); }
.mft27-wrap button.mft27-submit:disabled { opacity: .66; cursor: wait; }
.mft27-wrap .mft27-contact { margin: 15px 0 0; }
.mft27-wrap .mft27-feedback {
  padding: 17px 20px;
  margin: 0 0 16px;
  border: 1px solid var(--mft-line);
  border-left: 4px solid #6f8ea3;
  border-radius: 5px;
  background: #f3f7fa;
  color: var(--mft-ink);
  font-size: 15px;
  line-height: 1.7;
}
.mft27-wrap .mft27-feedback--success { border-left-color: #54846a; border-color: #b6d6be; background: #f0f8f3; }
.mft27-wrap .mft27-feedback--error { border-left-color: #ac514b; border-color: #e6bab6; background: #fff3f2; }
.mft27-wrap .mft27-feedback--closed { border-left-color: #b8954b; border-color: #e0d2b5; background: #fffaf1; }
.mft27-wrap .mft27-hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.mft27-wrap .mft27-feedback[hidden], .mft27-wrap .mft27-card[hidden], .mft27-wrap .mft27-form > [hidden] { display: none !important; }
@media (max-width: 700px) {
  .mft27-wrap { margin: 18px 0 30px; }
  .mft27-wrap .mft27-form-head { padding: 23px 21px; }
  .mft27-wrap .mft27-form-head h2 { font-size: 21px; }
  .mft27-wrap fieldset.mft27-section { padding: 24px 21px 25px; }
  .mft27-wrap .mft27-grid { gap: 15px; }
  .mft27-wrap .mft27-grid > .mft27-field,
  .mft27-wrap .mft27-grid > .mft27-field.mft27-span-2,
  .mft27-wrap .mft27-grid > .mft27-field.mft27-span-8,
  .mft27-wrap .mft27-grid > .mft27-field.mft27-span-4 { grid-column: 1 / -1; }
  .mft27-wrap .mft27-form-footer { padding: 22px 21px 25px; }
  .mft27-wrap .mft27-privacy p { margin-left: 0; }
  #top .mft27-wrap button.mft27-submit, .mft27-wrap button.mft27-submit { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mft27-wrap *, .mft27-wrap *::before, .mft27-wrap *::after { transition: none !important; scroll-behavior: auto !important; }
}
