/*
 * WPForms-Formulare der neuen Seiten (Klasse rh-wf am Formular) im Aussehen der Vorlage:
 * Beschriftung 14px/600 über dem Feld, Felder 52px eckig mit 1px Rahmen, Häkchen-Zeile 14px, Knopf Bordeaux.
 * Hintergrund der Felder je Formular über --rh-feld-bg (Standard weiß, Kontakt creme).
 */
/* Die Klasse rh-wf sitzt am .wpforms-container selbst. */
.rh-seite .wpforms-container.rh-wf { margin: 0 !important; max-width: none !important; }
.rh-seite .rh-wf { --rh-feld-bg: #fff; font-family: var(--rh-text); color: var(--rh-ink); }
.rh-seite .rh-wf .wpforms-field { padding: 0 !important; margin: 0 !important; min-width: 0; max-width: none !important; }
.rh-seite .rh-wf .wpforms-field-label { display: block; margin: 0 0 6px !important; padding: 0 !important; font-family: var(--rh-text) !important; font-size: 14px !important; font-weight: 600 !important; line-height: normal !important; color: var(--rh-ink) !important; }
.rh-seite .rh-wf .wpforms-required-label { color: inherit !important; font-weight: inherit; }
.rh-seite .rh-wf :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea) {
	height: 52px !important; max-width: none !important; width: 100% !important; padding: 0 14px !important; margin: 0 !important;
	border: 1px solid var(--rh-ink) !important; border-radius: 0 !important; box-shadow: none !important; background: var(--rh-feld-bg) !important;
	font-family: var(--rh-text) !important; font-size: 16px !important; font-weight: 400 !important; line-height: normal !important; color: var(--rh-ink) !important;
}
.rh-seite .rh-wf select { padding: 0 12px !important; }
/* Gleiche Spezifität wie die Feldregel oben (0,3,1) – wirkt nur, weil sie DANACH steht; nicht nach oben verschieben, sonst padding 0 und der Text klebt oben. */
.rh-seite .rh-wf .wpforms-field textarea { height: auto !important; min-height: 0 !important; padding: 12px 14px !important; line-height: 1.4 !important; resize: vertical; }
/* Höhe wie <textarea rows=N> der Vorlage (Newsreader 16px, Zeilenhöhe normal = 16,4px) */
.rh-seite .rh-wf .rh-wf-zeilen-3 textarea { height: 73px !important; }
.rh-seite .rh-wf .rh-wf-zeilen-4 textarea { height: 90px !important; }
.rh-seite .rh-wf .rh-wf-zeilen-5 textarea { height: 106px !important; }
.rh-seite .rh-wf :is(input, select, textarea):focus { outline: 3px solid var(--rh-gold) !important; outline-offset: 2px; }

/* Raster: volle Breite, zwei Felder nebeneinander mit Klasse rh-wf-halb */
.rh-seite .rh-wf .wpforms-field-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.rh-seite .rh-wf .wpforms-field-container > .wpforms-field:not(.rh-wf-halb) { grid-column: 1 / -1; }

/* Häkchen und Auswahlknöpfe */
.rh-seite .rh-wf :is(.wpforms-field-checkbox, .wpforms-field-radio) ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.rh-seite .rh-wf :is(.wpforms-field-checkbox, .wpforms-field-radio) li { display: flex !important; gap: 10px; align-items: flex-start; margin: 0 !important; padding: 0 !important; }
.rh-seite .rh-wf :is(.wpforms-field-checkbox, .wpforms-field-radio) li input { width: 13px !important; height: 13px !important; margin: 3px 0 0 !important; accent-color: var(--rh-bordeaux); flex: none; }
/* Browser-Häkchen statt der von WPForms gezeichneten 16px-Kästchen (wie Vorlage) */
.rh-seite .rh-wf :is(input[type=checkbox], input[type=radio]) { -webkit-appearance: auto !important; appearance: auto !important; }
.rh-seite .rh-wf :is(input[type=checkbox], input[type=radio])::before, .rh-seite .rh-wf :is(input[type=checkbox], input[type=radio])::after { display: none !important; content: none !important; }
.rh-seite .rh-wf .rh-wf-datenschutz li label { padding: 0 !important; font-family: var(--rh-text) !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.5 !important; color: var(--rh-muted) !important; margin: 0 !important; }
.rh-seite .rh-wf .rh-wf-datenschutz a { color: inherit; border-bottom: 1px solid; text-decoration: none; }

/* Fehlermeldungen */
.rh-seite .rh-wf label.wpforms-error, .rh-seite .rh-wf em.wpforms-error { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--rh-bordeaux) !important; }
.rh-seite .rh-wf :is(input, select, textarea).wpforms-error { border-color: var(--rh-bordeaux) !important; }

/* Absenden */
.rh-seite .rh-wf .wpforms-submit-container { margin: 16px 0 0 !important; padding: 0 !important; }
.rh-seite .rh-wf button.wpforms-submit, .rh-seite .rh-wf .wpforms-page-button {
	display: inline-flex !important; align-items: center; height: auto !important; min-height: 54px; padding: 0 28px !important; margin: 0 !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--rh-bordeaux) !important; color: var(--rh-paper) !important;
	font-family: var(--rh-display) !important; font-weight: 800 !important; font-size: 18px !important; letter-spacing: .06em !important; text-transform: uppercase; cursor: pointer; transition: none !important; transform: none !important;
}
.rh-seite .rh-wf button.wpforms-submit:hover { opacity: .8; }

/* Bestätigung nach dem Senden (F17) */
.rh-seite .wpforms-confirmation-container-full:has(.rh-wf-bestaetigung) { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.rh-seite .rh-wf-bestaetigung { background: #fff; border: 1px solid var(--rh-line); border-top: 4px solid var(--rh-bordeaux); padding: clamp(24px, 4vw, 40px); font-size: 17px; line-height: 1.55; color: var(--rh-ink); }
.rh-seite .rh-wf-bestaetigung .rh-wf-bestaetigung__titel { font-family: var(--rh-display); font-weight: 800; font-size: clamp(28px, 3vw, 32px); line-height: 1.05; color: var(--rh-bordeaux); margin: 0 0 10px; }
.rh-seite .rh-wf-bestaetigung p { margin: 0; padding: 0; }

/* Kontakt */
.rh-seite .rh-wf--kontakt { --rh-feld-bg: var(--rh-cream); }

/* Häkchen in Browsergröße (WPForms setzt 16px mit hoher Spezifität) */
.rh-seite .wpforms-container.rh-wf .wpforms-field :is(input[type=checkbox], input[type=radio]) { width: 13px !important; height: 13px !important; min-width: 0 !important; }

/* Fokus der Formular-Knöpfe wie überall: 3px Gold statt des blauen WPForms-Rahmens (gilt auch für #9087) */
.rh-seite .wpforms-container :is(button.wpforms-submit, .wpforms-page-button, button):focus { outline: none !important; box-shadow: none !important; }
.rh-seite .wpforms-container :is(button.wpforms-submit, .wpforms-page-button, button):focus-visible { outline: 3px solid var(--rh-gold) !important; outline-offset: 2px !important; }
.rh-seite .wpforms-container :is(button.wpforms-submit, .wpforms-page-button, button):is(:focus, :focus-visible)::after { content: none !important; display: none !important; }
