/* Hochzeitsfolder: Formular und Dialog · Farben aus dem Theme, Kontraste nach WCAG AA. */
.slf,
.slf-dialog {
  --slf-plum: var(--sl-plum, #574e56);
  --slf-pink-ink: var(--sl-pink-ink, #765960);
  --slf-gold-ink: var(--sl-gold-ink, #8c7a63);
  --slf-muted: var(--sl-muted, #625a5e);
  --slf-paper: var(--sl-paper, #f4f0e7);
  --slf-placeholder: #776e73;
  --slf-error: #a2424d;
  --slf-serif: var(--sl-serif, Baskervville, Georgia, serif);
  --slf-sans: var(--sl-sans, Montserrat, "Helvetica Neue", Arial, sans-serif);
}

.slf {
  width: 100%;
  color: var(--slf-plum);
  font-family: var(--slf-serif);
  text-align: left;
}

.slf *,
.slf *::before,
.slf *::after {
  box-sizing: border-box;
}

.slf p {
  margin: 0;
}

.slf [hidden] {
  display: none !important;
}

.slf--inline {
  scroll-margin-top: calc(var(--sl-header-h, 92px) + 24px);
}

.slf__form,
.slf__done {
  display: grid;
  gap: 16px;
}

.slf__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.slf__field {
  display: grid;
  gap: 7px;
}

.slf__field label {
  font-family: var(--slf-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.slf__opt {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--slf-muted);
}

.slf__field input {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--slf-plum);
  background: #fff;
  border: 1px solid rgba(140, 122, 99, 0.45);
  border-bottom: 2px solid var(--slf-gold-ink);
  border-radius: 3px 3px 0 0;
  box-shadow: none;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.slf__field input::placeholder {
  font-style: italic;
  color: var(--slf-placeholder);
  opacity: 1;
}

.slf__field input:hover {
  border-bottom-color: var(--slf-plum);
}

.slf__field input:focus {
  border-color: var(--slf-pink-ink);
  box-shadow: 0 0 0 3px rgba(118, 89, 96, 0.18);
}

.slf__field [aria-invalid="true"] {
  border-color: var(--slf-error) !important;
}

.slf__error,
.slf__form-error {
  font-family: var(--slf-sans);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--slf-error);
}

.slf__check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.slf__check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--slf-pink-ink);
  cursor: pointer;
}

.slf__check label {
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
}

.slf__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.slf__submit,
.slf__open {
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.slf__submit[aria-busy="true"] {
  cursor: progress;
}

.slf__note,
.slf__done-text {
  font-family: var(--slf-sans);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--slf-muted);
}

.slf a:not(.wp-element-button) {
  color: var(--slf-pink-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.slf__done {
  outline: none;
}

.slf__done-title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}

.slf__done-title::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.5em;
  margin-right: 0.45em;
  border-left: 2px solid var(--slf-pink-ink);
  border-bottom: 2px solid var(--slf-pink-ink);
  transform: translateY(-0.2em) rotate(-45deg);
}

.slf__next {
  padding-top: 14px;
  border-top: 1px solid rgba(140, 122, 99, 0.3);
  font-size: 0.95rem;
  line-height: 1.55;
}

.slf__admin-hint {
  margin-top: 10px;
  font-family: var(--slf-sans);
  font-size: 0.75rem;
}

.slf :focus-visible {
  outline: 2px solid var(--slf-pink-ink);
  outline-offset: 3px;
}

/* Dialog */
.slf-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--slf-plum);
  background: var(--slf-paper);
  border: 0;
  box-shadow: 0 24px 70px rgba(48, 38, 46, 0.35);
}

.slf-dialog::backdrop {
  background: rgba(48, 38, 46, 0.6);
}

.slf-dialog__box {
  position: relative;
  display: grid;
  gap: 12px;
  padding: clamp(26px, 5vw, 44px) clamp(20px, 5vw, 44px);
  font-family: var(--slf-serif);
}

.slf-dialog__box > .slf {
  margin-top: 10px;
}

.slf-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--slf-plum);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.slf-dialog__close:hover {
  background: rgba(140, 122, 99, 0.14);
}

.slf-dialog__close:focus-visible {
  outline: 2px solid var(--slf-pink-ink);
  outline-offset: 2px;
}

.slf-dialog__eyebrow {
  margin: 0;
  padding-right: 40px;
  font-family: var(--slf-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slf-pink-ink);
}

.slf-dialog__title {
  margin: 0;
  font-family: var(--slf-serif);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--slf-plum);
}

.slf-dialog__title em {
  color: var(--sl-pink, #9d7f84);
}

.slf-dialog__copy {
  margin: 0;
  line-height: 1.6;
  color: var(--slf-muted);
}

@media (prefers-reduced-motion: reduce) {
  .slf__field input {
    transition: none;
  }
}
