.dndfb-form-wrapper {
	max-width: 100%;
	box-sizing: border-box;
}
.dndfb-form-wrapper *,
.dndfb-form-wrapper *::before,
.dndfb-form-wrapper *::after {
	box-sizing: border-box;
}

.dndfb-form-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}
.dndfb-form-message.is-success {
	background: #edf9ee;
	color: #1e5b25;
	border: 1px solid #b6e2ba;
}
.dndfb-form-message.is-error {
	background: #fbeaea;
	color: #8a1f1f;
	border: 1px solid #f0b8b8;
}

.dndfb-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

.dndfb-fields-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.dndfb-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.dndfb-width-half {
	width: calc(50% - 8px);
}

.dndfb-width-third {
	width: calc(33.333% - 11px);
}

@media (max-width: 640px) {
	.dndfb-width-half,
	.dndfb-width-third {
		width: 100%;
	}
}

.dndfb-label {
	font-weight: 600;
	font-size: 14px;
}

.dndfb-required-mark {
	color: #c0392b;
}

.dndfb-field input[type="text"],
.dndfb-field input[type="email"],
.dndfb-field input[type="tel"],
.dndfb-field input[type="number"],
.dndfb-field input[type="date"],
.dndfb-field input[type="file"],
.dndfb-field select,
.dndfb-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
}

.dndfb-field input:focus,
.dndfb-field select:focus,
.dndfb-field textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

/* Browser stylen <select> ohne Reset oft schmaler/niedriger als normale
   Textfelder (eigenes Systemaussehen). Damit ein Dropdown genauso groß
   wirkt wie die Nachbarspalten (E-Mail, Telefon, ...), Systemaussehen
   abschalten und Höhe/Innenabstand exakt angleichen. */
.dndfb-field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 36px;
	line-height: 1.4;
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646970' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
}
.dndfb-field select::-ms-expand {
	display: none;
}

.dndfb-fieldset {
	border: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.dndfb-fieldset legend {
	font-weight: 600;
	font-size: 14px;
	padding: 0;
	margin-bottom: 4px;
}

.dndfb-choice-label,
.dndfb-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}
.dndfb-choice-label input,
.dndfb-consent-label input {
	margin-top: 3px;
}

.dndfb-heading {
	margin: 8px 0 0;
}

.dndfb-divider {
	width: 100%;
	border: none;
	border-top: 1px solid #dcdcde;
	margin: 8px 0;
}

.dndfb-submit-row {
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.dndfb-submit-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}
.dndfb-submit-btn:hover {
	background: #1a5a8e;
}
.dndfb-submit-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.dndfb-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #ccd0d4;
	border-top-color: #2271b1;
	border-radius: 50%;
	display: inline-block;
	animation: dndfb-spin .7s linear infinite;
}
.dndfb-spinner[hidden] {
	/* Ohne diese Regel überschreibt "display: inline-block" oben das
	   hidden-Attribut (gleiche CSS-Spezifität, Autoren-Stylesheet gewinnt),
	   wodurch der Kreis dauerhaft sichtbar war und lief. */
	display: none;
}

@keyframes dndfb-spin {
	to { transform: rotate(360deg); }
}

/* =========================================================================
 * Zweispaltiges Kontakt-Layout (Info-Spalte links + Formular-Karte rechts).
 * Wird nur gerendert, wenn in den Formular-Einstellungen "Zweispaltiges
 * Kontakt-Layout" aktiviert ist – normale, einspaltige Formulare sind von
 * diesem Block komplett unberührt.
 *
 * Alle Farben/Schriften über CSS-Variablen hier oben leicht anpassbar.
 * ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

.dndfb-contact-layout {
	--dndfb-card-bg: #ffffff;
	--dndfb-accent: #e2825f;
	--dndfb-accent-dark: #c96b49;
	--dndfb-input-bg: #fbf1e8;
	--dndfb-input-border: #eeddc9;
	--dndfb-icon-bg: #f3e3d6;
	--dndfb-icon-color: #2b2420;
	--dndfb-highlight-bg: #fbeadd;
	--dndfb-highlight-border: #c9a05a;
	--dndfb-heading-color: #2b2420;
	--dndfb-text-color: #6b5f55;
	--dndfb-label-color: #8a7c6c;
	--dndfb-font-heading: 'Playfair Display', Georgia, serif;
	--dndfb-max-width: 1160px;

	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 56px;
	align-items: start;
	max-width: var(--dndfb-max-width);
	margin-left: auto;
	margin-right: auto;
}

/* Optionaler "Ausbruch" aus einer schmalen Editor-/Theme-Spalte (z.B.
   Gutenberg-Content-Breite), wenn in den Formular-Einstellungen aktiviert.
   Zentriert den Block relativ zum Browser-Fenster statt zum (schmalen)
   Elternelement. Funktioniert am besten, wenn der umgebende Bereich
   horizontal zentriert ist – bei Sidebar-Layouts ggf. abschalten. */
.dndfb-contact-layout.dndfb-breakout {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
	padding-left: max(20px, calc((100vw - var(--dndfb-max-width)) / 2));
	padding-right: max(20px, calc((100vw - var(--dndfb-max-width)) / 2));
}

@media (max-width: 900px) {
	.dndfb-contact-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.dndfb-contact-info {
	padding: 4px 0;
}

.dndfb-info-heading {
	font-family: var(--dndfb-font-heading);
	font-weight: 700;
	font-size: 2rem;
	line-height: 1.2;
	color: var(--dndfb-heading-color);
	margin: 0 0 12px;
}

.dndfb-info-text {
	color: var(--dndfb-text-color);
	line-height: 1.6;
	margin: 0 0 28px;
}

.dndfb-info-blocks {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-bottom: 28px;
}

.dndfb-contact-item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dndfb-contact-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--dndfb-icon-bg);
	color: var(--dndfb-icon-color);
	display: flex;
	align-items: center;
	justify-content: center;
}
.dndfb-contact-icon svg {
	width: 20px;
	height: 20px;
}

.dndfb-contact-item-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dndfb-contact-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dndfb-label-color);
}

a.dndfb-contact-value {
	color: var(--dndfb-accent);
	text-decoration: none;
	font-size: 15px;
}
a.dndfb-contact-value:hover {
	color: var(--dndfb-accent-dark);
	text-decoration: underline;
}
span.dndfb-contact-value {
	color: var(--dndfb-heading-color);
	font-size: 15px;
}

.dndfb-highlight-box {
	background: var(--dndfb-highlight-bg);
	border-left: 4px solid var(--dndfb-highlight-border);
	border-radius: 8px;
	padding: 20px 24px;
}

.dndfb-highlight-title {
	font-family: var(--dndfb-font-heading);
	font-style: italic;
	font-weight: 600;
	font-size: 1.3rem;
	color: var(--dndfb-heading-color);
	margin: 0 0 8px;
}

.dndfb-highlight-text {
	margin: 0;
	color: var(--dndfb-text-color);
	line-height: 1.5;
}

.dndfb-contact-form-card {
	background: var(--dndfb-card-bg);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .07);
}

@media (max-width: 560px) {
	.dndfb-contact-form-card {
		padding: 28px 20px;
	}
}

.dndfb-form-card-heading {
	font-family: var(--dndfb-font-heading);
	font-weight: 700;
	font-size: 1.6rem;
	color: var(--dndfb-heading-color);
	margin: 0 0 24px;
}

/* Formularfelder innerhalb der Kontakt-Karte im Screenshot-Look einfärben.
   Bewusst auf .dndfb-contact-form-card beschränkt, damit normale,
   einspaltige Formulare an anderer Stelle der Seite unverändert bleiben. */
.dndfb-contact-form-card .dndfb-label,
.dndfb-contact-form-card .dndfb-fieldset legend {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dndfb-label-color);
}

.dndfb-contact-form-card input[type="text"],
.dndfb-contact-form-card input[type="email"],
.dndfb-contact-form-card input[type="tel"],
.dndfb-contact-form-card input[type="number"],
.dndfb-contact-form-card input[type="date"],
.dndfb-contact-form-card select,
.dndfb-contact-form-card textarea {
	/* background-color statt background (Kurzform): sonst überschreibt das
	   den Dropdown-Pfeil (background-image) der .dndfb-field select-Regel. */
	background-color: var(--dndfb-input-bg);
	border: 1px solid var(--dndfb-input-border);
	border-radius: 10px;
}

.dndfb-contact-form-card input:focus,
.dndfb-contact-form-card select:focus,
.dndfb-contact-form-card textarea:focus {
	border-color: var(--dndfb-accent);
	box-shadow: 0 0 0 1px var(--dndfb-accent);
}

.dndfb-contact-form-card .dndfb-submit-btn {
	background: var(--dndfb-accent);
	border-radius: 999px;
	padding: 14px 32px;
	width: 100%;
	justify-content: center;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.dndfb-contact-form-card .dndfb-submit-btn:hover {
	background: var(--dndfb-accent-dark);
}

.dndfb-contact-form-card .dndfb-submit-row {
	margin-top: 24px;
}
