/* Codepun (AN-1005, Plugin-Umstellung 2026-11-26): Kopfbild und Kontaktformular mit Codepun-Plugins wie bisher mit
 * Smart Slider 3 und WPForms. Maße aus der Messung der Render-Kopie vom 26.11.2026 (measurements/kopf-vorher.json,
 * form-vorher.json). */

/* Kopfbild (Codepun Slider): volle Fensterbreite, 600 px hoch (ab 2304 px Breite 1000/3840 der Breite), Bild füllt
 * die Fläche (Mitte). Breite, Lage und Höhe stellt dsh-kopfbild (functions.php) genau ein. */
.codepun-slider--slideshow {
	margin-block: 0;
	width: var(--dsh-kopf-w, 100vw);
	max-width: none;
	margin-inline: calc(50% - 50vw) 0;
}
.codepun-slider--slideshow .codepun-slider__slides {
	aspect-ratio: auto;
	height: var(--dsh-kopf-h, max(600px, 26.0417vw));
}
.codepun-slider--slideshow .codepun-slider__slide img {
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

/* Schriftzug im Kopfbild: dunkelblaue Fläche, links ausgerichtet, weiß, fett, 36/54 px, 20 px Innenabstand.
 * Lage wie bisher in drei Stufen (Smart Slider: Desktop ab 1200 px, Tablet 701–1199 px, Handy bis 700 px):
 * Desktop 24,79 % von links, 52,08 % breit, Mitte 6,59 % der Breite unter der Bildmitte; Tablet 4,4 %, 65,9 %,
 * Mitte 12,65 %; Handy 5,7 %, 91,3 %, Mitte 5,53 % über der Bildmitte, Schrift 25/37,5 px. */
.codepun-slider--slideshow .codepun-slider__caption {
	--dsh-versatz: 6.59vw;
	display: block;
	top: calc(50% + var(--dsh-versatz));
	bottom: auto;
	left: 24.79%;
	right: auto;
	width: 52.08%;
	max-height: none;
	overflow: visible;
	padding: 0;
	text-align: left;
	transform: translateY(-50%);
}
.codepun-slider--slideshow .codepun-slider__caption .codepun-slider__heading {
	box-sizing: border-box;
	margin: 0;
	padding: 20px;
	background: #232952;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 36px;
	font-weight: 700;
	line-height: 54px;
	text-align: left;
	text-shadow: none;
}
.codepun-slider--slideshow .codepun-slider__heading::after {
	content: none;
}
@media (max-width: 1199px) {
	.codepun-slider--slideshow .codepun-slider__caption {
		--dsh-versatz: 12.65vw;
		left: 4.4%;
		width: 65.9%;
	}
}
@media (max-width: 700px) {
	.codepun-slider--slideshow .codepun-slider__caption {
		--dsh-versatz: -5.53vw;
		left: 5.7%;
		width: 91.3%;
	}
	.codepun-slider--slideshow .codepun-slider__caption .codepun-slider__heading {
		font-size: 25px !important; /* style.css setzt bis 600 px jedes p auf 1rem !important */
		line-height: 37.5px;
	}
}

/* Kontaktformular (Codepun Forms) wie bisher bei WPForms: weiße Felder mit hellgrauem Rand, fette Beschriftung,
 * dunkelblauer Senden-Knopf ohne Pfeil. */
.codepun-form {
	--cpf-max-width: none;
	--cpf-field-bg: #fff;
	--cpf-border: rgba(0, 0, 0, .25);
	--cpf-border-hover: rgba(0, 0, 0, .45);
	--cpf-radius: 3px;
	--cpf-text: rgba(0, 0, 0, .7);
	--cpf-label: rgba(0, 0, 0, .85);
	--cpf-focus-color: #232952;
	--cpf-field-height: 43px;
	--cpf-button-bg: #232952;
	--cpf-button-fg: #fff;
	--cpf-button-hover: #161a36;
}
.codepun-form__label {
	font-size: 16px;
	font-weight: bold;
}
.codepun-form input:not([type=checkbox]):not([type=radio]) {
	height: 43px;
	min-height: 0;
}
.codepun-form textarea {
	min-height: 120px;
	height: 120px;
}
.codepun-form .codepun-form__submit {
	min-height: 41px;
	padding: 0 15px;
	border: 0;
	border-radius: 3px;
	background: #232952;
	color: #fff;
	font-size: 17px;
	font-weight: 500;
}
.codepun-form .codepun-form__submit:hover,
.codepun-form .codepun-form__submit:focus-visible {
	background: #161a36;
	color: #fff;
}
.codepun-form .codepun-form__submit-label::after {
	content: none;
}
/* Name, Telefonnummer und E-Mail-Adresse wie bisher 60 % breit (WPForms „mittel“): Raster mit 10 Spalten, Vor- und
 * Nachname je 3, Telefon und E-Mail 6, der Rest volle Breite. Ab 761 px; darunter stellt Codepun Forms alles
 * untereinander in voller Breite. */
@media (min-width: 761px) {
	.codepun-form {
		grid-template-columns: repeat(10, minmax(0, 1fr));
		column-gap: 20px;
	}
	.codepun-form .codepun-form__field--half {
		grid-column: span 3;
	}
	.codepun-form .codepun-form__field--phone,
	.codepun-form .codepun-form__field--email {
		grid-column: 1 / span 6;
	}
}
