/* Formulare und Kurslisten des R4D-Plugins. Schrift und Grundfarben kommen vom Theme, Akzente aus dem Corporate Design. */
.r4d-form,
.r4d-kurs,
.r4d-kurse {
	--r4d-blau: #296bc9;
	--r4d-rot: #e90b00;
	--r4d-hellblau: #eaf1fa;
	max-width: 40rem;
}

.r4d-form .r4d-feld {
	margin: 0 0 1.1rem;
}

.r4d-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 600;
}

.r4d-form .r4d-freiwillig {
	font-weight: 400;
}

.r4d-form input[type="text"],
.r4d-form input[type="email"],
.r4d-form input[type="tel"],
.r4d-form select,
.r4d-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid #8a8a8a;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font: inherit;
}

.r4d-form textarea {
	resize: vertical;
}

.r4d-form input:focus-visible,
.r4d-form select:focus-visible,
.r4d-form textarea:focus-visible,
.r4d-form button:focus-visible {
	outline: 3px solid var(--r4d-blau);
	outline-offset: 1px;
}

.r4d-form [aria-invalid="true"] {
	border-color: var(--r4d-rot);
}

.r4d-form .r4d-feld--haken label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-weight: 400;
}

.r4d-form .r4d-feld--haken input {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.2rem;
}

.r4d-form .r4d-fehler {
	display: block;
	margin-top: 0.25rem;
	color: #b00900;
	font-size: 0.9em;
}

.r4d-form .r4d-fehler:empty {
	display: none;
}

.r4d-form .r4d-hinweis {
	margin: 0 0 1.1rem;
	padding: 0.7rem 0.9rem;
	border-left: 4px solid var(--r4d-blau);
	background: var(--r4d-hellblau);
	color: #333;
}

.r4d-form .r4d-hinweis--fehler {
	border-left-color: var(--r4d-rot);
}

.r4d-form button[type="submit"] {
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: 4px;
	background: var(--r4d-blau);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.r4d-form button[type="submit"]:hover {
	background: #1f559f;
}

.r4d-form button[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Verstecktes Feld gegen Automaten: für Menschen unsichtbar und nicht ansteuerbar. */
.r4d-form .r4d-falle {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.r4d-form [hidden] {
	display: none !important;
}

.r4d-form input[type="date"],
.r4d-form input[type="number"] {
	box-sizing: border-box;
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid #8a8a8a;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font: inherit;
}

.r4d-form fieldset {
	margin: 0 0 1.4rem;
	padding: 0;
	border: 0;
}

.r4d-form legend {
	margin-bottom: 0.6rem;
	padding: 0;
	color: var(--r4d-blau);
	font-size: 1.15em;
	font-weight: 700;
}

.r4d-form .r4d-wahl {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.r4d-form .r4d-wahl label {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin: 0;
	padding: 0.6rem 1rem;
	border: 2px solid var(--r4d-blau);
	border-radius: 4px;
	font-weight: 700;
	cursor: pointer;
}

.r4d-form .r4d-wahl label:has(input:checked) {
	background: var(--r4d-hellblau);
}

.r4d-form .r4d-reihe {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 0 1rem;
}

.r4d-form .r4d-person {
	margin-bottom: 1.2rem;
	padding: 1rem 1rem 0.2rem;
	border-left: 4px solid var(--r4d-blau);
	background: var(--r4d-hellblau);
}

.r4d-form .r4d-person h4 {
	margin: 0 0 0.7rem;
	font-size: 1.05em;
	font-weight: 700;
}

.r4d-form .r4d-klein {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9em;
	font-weight: 400;
}

.r4d-form .r4d-summe {
	font-size: 1.1em;
	font-weight: 700;
}

.r4d-kurs__angaben {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1.2rem;
	max-width: 40rem;
	margin: 1.5rem 0;
	padding: 1rem 1.2rem;
	border-top: 3px solid var(--r4d-blau);
	background: var(--r4d-hellblau);
	color: #333;
}

.r4d-kurs__angaben dt {
	font-weight: 700;
}

.r4d-kurs__angaben dd {
	margin: 0;
}

/* Kurslisten und Dienstleistungslisten: grosse Zeilen, die als Ganzes anklickbar sind.
   Feste Grössen in px, weil das Theme den Fliesstext klein und grau setzt. */
.r4d-kurse {
	max-width: 60rem;
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
	container-type: inline-size;
}

.r4d-kurse__kurs {
	position: relative;
	display: grid;
	grid-template-columns: 12.5rem 1fr max-content;
	gap: 0.4rem 1.5rem;
	align-items: center;
	margin: 0 0 0.75rem;
	padding: 1.1rem 1.4rem;
	border: 1px solid #c9d9ef;
	border-left: 6px solid var(--r4d-blau);
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 19px;
	line-height: 1.35;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.r4d-kurse__kurs:hover,
.r4d-kurse__kurs:focus-within {
	background: var(--r4d-hellblau);
	box-shadow: 0 2px 8px rgba(41, 107, 201, 0.18);
}

.r4d-kurse__datum {
	color: #333;
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.r4d-kurse a.r4d-kurse__titel {
	color: var(--r4d-blau);
	font-size: 21px;
	font-weight: 700;
	text-decoration: none;
	min-width: 0;
	overflow-wrap: anywhere;
}

.r4d-kurse__kurs:hover a.r4d-kurse__titel,
.r4d-kurse a.r4d-kurse__titel:focus {
	text-decoration: underline;
}

/* Der Link deckt die ganze Zeile ab. */
.r4d-kurse a.r4d-kurse__titel::after {
	position: absolute;
	inset: 0;
	content: "";
}

.r4d-kurse a.r4d-kurse__titel:focus-visible {
	outline: none;
}

.r4d-kurse__kurs:has(a:focus-visible) {
	outline: 3px solid var(--r4d-blau);
	outline-offset: 2px;
}

.r4d-kurse__plaetze {
	padding: 0.3rem 0.9rem;
	border-radius: 999px;
	background: var(--r4d-hellblau);
	color: #1f559f;
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
}

.r4d-kurse__kurs:hover .r4d-kurse__plaetze {
	background: #fff;
}

.r4d-kurse__plaetze--voll,
.r4d-kurse__kurs:hover .r4d-kurse__plaetze--voll {
	background: #fde8e7;
	color: #b00900;
}

/* Dienstleistungen: Titel und Preis, ohne Datumsspalte. */
.r4d-angebote .r4d-kurse__kurs {
	grid-template-columns: 1fr max-content;
}

.r4d-kurse-leer {
	margin: 1rem 0;
	font-size: 18px;
}

@media (max-width: 700px) {
	.r4d-kurse__kurs,
	.r4d-angebote .r4d-kurse__kurs {
		grid-template-columns: 1fr;
		padding: 1rem 1.1rem;
	}

	.r4d-kurse__plaetze {
		justify-self: start;
	}
}

/* Auch in schmalen Spalten (Beaver Builder) untereinander statt nebeneinander. */
@container (max-width: 720px) {
	.r4d-kurse__kurs,
	.r4d-angebote .r4d-kurse__kurs {
		grid-template-columns: 1fr;
		padding: 1rem 1.1rem;
	}

	.r4d-kurse__plaetze {
		justify-self: start;
	}
}

/* Kurs- und Dienstleistungsseiten: Zeile «Von Ready 4 Drive GmbH | Datum» des Beaver-Themes ausblenden.
   Sie stammt aus der Vorlage für Blogbeiträge und sagt bei einem Kurs nichts aus (Befund Testkopie 17.11.2026). */
.single-r4d_kurs .fl-post-meta,
.single-r4d_angebot .fl-post-meta {
	display: none;
}

/* Kurs- und Dienstleistungsseiten mit Buchungs- und Bestellformular: grösser und dunkler (Auftrag Con 17.11.2026).
   Das Theme setzt den Fliesstext auf 14 px in hellem Grau und die Grundgrösse (rem) auf 10 px.
   Deshalb hier feste Grössen in px; Breiten in rem würden um ein Drittel zu schmal. */
.single-r4d_kurs .fl-post-content,
.single-r4d_angebot .fl-post-content {
	color: #333;
	font-size: 18px;
	line-height: 1.6;
}

.single-r4d_kurs .fl-post-content p,
.single-r4d_kurs .fl-post-content li,
.single-r4d_angebot .fl-post-content p,
.single-r4d_angebot .fl-post-content li {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.single-r4d_kurs .fl-post-content h3,
.single-r4d_angebot .fl-post-content h3 {
	margin: 32px 0 16px;
	color: #222;
	font-size: 26px;
	font-weight: 700;
}

.r4d-kurs__angaben {
	gap: 10px 24px;
	max-width: 760px;
	margin: 24px 0;
	padding: 18px 22px;
	font-size: 18px;
	line-height: 1.5;
}

.r4d-kurs,
.r4d-form {
	max-width: 760px;
	color: #333;
	font-size: 18px;
	line-height: 1.5;
}

.r4d-form legend {
	font-size: 22px;
}

.r4d-form .r4d-wahl label {
	padding: 12px 22px;
	color: #333;
	font-size: 18px;
}

.r4d-form input[type="radio"],
.r4d-form input[type="checkbox"],
.r4d-form .r4d-feld--haken input {
	width: 20px;
	height: 20px;
}

.r4d-form .r4d-person h4 {
	font-size: 20px;
}

.r4d-form .r4d-klein,
.r4d-form .r4d-fehler {
	font-size: 16px;
}

.r4d-form .r4d-summe {
	font-size: 22px;
}

.r4d-form button[type="submit"],
.r4d-form .r4d-offerte-knopf {
	padding: 14px 28px;
	font-size: 19px;
}

.r4d-form label {
	hyphens: auto;
}

.r4d-form .r4d-feld {
	margin-bottom: 18px;
}

.r4d-form .r4d-reihe {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 0 18px;
}

.r4d-form .r4d-person {
	padding: 18px 18px 4px;
}

.r4d-form input[type="text"],
.r4d-form input[type="email"],
.r4d-form input[type="tel"],
.r4d-form input[type="date"],
.r4d-form input[type="number"],
.r4d-form select,
.r4d-form textarea {
	padding: 10px 12px;
}
.r4d-platz{margin-bottom:1.5rem}.r4d-platz__gleich{margin-bottom:.5rem}
