.sv2026-course-list .sv2026-table,
.sv2026-partner-search {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

/* Schriftgroesse der Kursuebersicht zentral ueber --sv-table-size steuerbar
   (rem wie auf der restlichen Website, 1.2rem = Fliesstext der Startseite). */
.sv2026-course-list,
.sv2026-course-list .sv2026-table th,
.sv2026-course-list .sv2026-table td,
.sv2026-course-list .sv2026-table td a,
.sv2026-course-list .sv2026-table td select,
.sv2026-partner-search {
	font-size: var(--sv-table-size, 1.2rem);
	line-height: 1.5em;
}

.sv2026-table th,
.sv2026-table td {
	border: 1px solid #ddd;
	padding: 0.6em 0.8em;
	text-align: left;
	vertical-align: top;
}

.sv2026-table th {
	background: #f5f5f5;
}

.sv2026-form p {
	margin-bottom: 0.8em;
}

.sv2026-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.2em;
}

.sv2026-form input[type="text"],
.sv2026-form input[type="email"],
.sv2026-form select,
.sv2026-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 0.5em;
	box-sizing: border-box;
}

.sv2026-notice {
	padding: 1em 1.2em;
	margin-bottom: 1.5em;
	border-left: 4px solid #999;
}

.sv2026-notice-success {
	border-color: #2e7d32;
	background: #eaf6ea;
}

.sv2026-notice-error {
	border-color: #c62828;
	background: #fbeaea;
}

/* Buttons im Look der neuen Website (rot, Grossbuchstaben). Farbe zentral
   anpassbar ueber --sv-accent / --sv-accent-hover. */
.sv2026-button,
.sv2026-form button[type="submit"],
.sv2026-registration button[type="submit"] {
	--sv-accent: #c71c32;
	--sv-accent-hover: #a3182a;
	display: inline-block;
	padding: 0.3em 1em;
	background: var(--sv-accent);
	color: #fff;
	border: 1px solid var(--sv-accent);
	border-radius: 5px;
	font-family: inherit;
	/* Feste Groesse statt em: em wuerde sich mit der Schriftgroesse des
	   umgebenden Textmoduls hochschaukeln. Passend zu den Divi-Buttons. */
	font-size: var(--sv-button-size, 18px);
	font-weight: 300;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.7em;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sv2026-button:hover,
.sv2026-button:focus,
.sv2026-form button[type="submit"]:hover,
.sv2026-form button[type="submit"]:focus,
.sv2026-registration button[type="submit"]:hover,
.sv2026-registration button[type="submit"]:focus {
	background: var(--sv-accent-hover);
	border-color: var(--sv-accent-hover);
	color: #fff;
}

/* Tanzpartner-Suche: Aufklapp-Bereiche */
.sv2026-toggle__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sv2026-toggle__buttons .sv2026-button[aria-expanded="true"] {
	background: var(--sv-accent-hover);
	border-color: var(--sv-accent-hover);
}

.sv2026-toggle__count {
	display: inline-block;
	min-width: 1.6em;
	margin-left: 0.6em;
	padding: 0 0.4em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 0.8em;
	line-height: 1.6;
	text-align: center;
}

.sv2026-toggle__panel {
	margin-top: 24px;
	padding: 8px 24px 8px;
	background: rgba(255, 255, 255, 0.6);
	border-left: 3px solid #c71c32;
}

.sv2026-toggle__panel[hidden] {
	display: none !important;
}

.sv2026-toggle__panel .sv2026-partner-entry:last-child {
	border-bottom: 0;
}

.sv2026-button--ghost {
	background: transparent;
	color: #2e2d2c;
	border-color: #d3cac1;
}

.sv2026-button--ghost:hover,
.sv2026-button--ghost:focus {
	background: transparent;
	color: #c41e32;
	border-color: #c41e32;
}

/* Formular im Stil der Divi-Standardformulare: graue Flaechen, Beschriftung
   als Platzhalter, zweispaltiges Raster ueber die volle Breite. */
.sv2026-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sv2026-form--modern .sv2026-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	max-width: none;
}

.sv2026-form--modern .sv2026-field {
	margin: 0;
}

.sv2026-form--modern .sv2026-field--full {
	grid-column: 1 / -1;
}

.sv2026-form--modern input[type="text"],
.sv2026-form--modern input[type="email"],
.sv2026-form--modern select,
.sv2026-form--modern textarea {
	width: 100%;
	max-width: 100%;
	padding: 16px;
	background: #eee;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #333;
	font-family: inherit;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.2;
}

.sv2026-form--modern select {
	height: auto;
}

.sv2026-form--modern textarea {
	min-height: 150px;
	resize: vertical;
}

.sv2026-form--modern ::placeholder {
	color: #999;
	opacity: 1;
}

/* Leere Auswahl wie ein Platzhalter grau darstellen. */
.sv2026-form--modern select:required:invalid {
	color: #999;
}

.sv2026-form--modern input:focus,
.sv2026-form--modern select:focus,
.sv2026-form--modern textarea:focus {
	outline: none;
	background: #e4e4e4;
	box-shadow: none;
}

.sv2026-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
}

@media (max-width: 640px) {
	.sv2026-form--modern .sv2026-form__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	/* 16px verhindert den Auto-Zoom beim Antippen auf iOS. */
	.sv2026-form--modern input[type="text"],
	.sv2026-form--modern input[type="email"],
	.sv2026-form--modern select,
	.sv2026-form--modern textarea {
		font-size: 16px;
	}
}

.sv2026-partner-entry {
	border-bottom: 1px solid #eee;
	padding: 1em 0;
}

/* Grundsaetzlich alles auf schmalen Screens nie breiter als der Viewport. */
.sv2026-course-list,
.sv2026-partner-search,
.sv2026-registration,
.sv2026-partner-form {
	max-width: 100%;
	box-sizing: border-box;
}

.sv2026-table {
	table-layout: fixed;
}

.sv2026-form input,
.sv2026-form select,
.sv2026-form textarea,
.sv2026-form button {
	font-size: 16px; /* verhindert Auto-Zoom beim Fokussieren auf iOS */
}

/* Ab hier: Tabelle -> gestapelte Karten statt Horizontal-Scroll. */
@media (max-width: 640px) {
	.sv2026-table,
	.sv2026-table tbody,
	.sv2026-table tr,
	.sv2026-table td {
		display: block;
		width: 100%;
	}

	.sv2026-table thead {
		display: none;
	}

	.sv2026-table tr {
		margin-bottom: 1.2em;
		border: 1px solid #ddd;
		border-radius: 4px;
		overflow: hidden;
	}

	.sv2026-table td {
		border: none;
		border-bottom: 1px solid #eee;
		padding: 0.6em 0.8em;
	}

	.sv2026-table td:last-child {
		border-bottom: none;
	}

	.sv2026-table td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-weight: 600;
		font-size: 0.85em;
		color: #666;
		margin-bottom: 0.2em;
	}

	.sv2026-form select,
	.sv2026-form input[type="text"],
	.sv2026-form input[type="email"] {
		max-width: 100%;
	}

	.sv2026-course-list form {
		display: flex;
		flex-direction: column;
		gap: 0.5em;
		align-items: stretch;
	}
}

/* Kursliste: Auswahl und Anmelden-Button passend zur Tabellenschrift */
.sv2026-course-list select {
	font-size: var(--sv-table-size, 1.2rem);
	font-family: inherit;
	font-weight: 300;
	padding: 0.35em 0.6em;
	margin-right: 0.5em;
	border: 1px solid #d3cac1;
	border-radius: 5px;
	background-color: #fff;
	color: #656364;
}

.sv2026-course-list .sv2026-button {
	--sv-button-size: 1.1rem;
	padding: 0.3em 0.9em;
}

/* Kursliste (Desktop/Tablet): Spaltenbreiten. Kurs und Beginn breiter,
   Dauer und Preis schmaler. Auf dem Handy stapelt sich die Tabelle ohnehin. */
@media (min-width: 641px) {
	.sv2026-course-list .sv2026-table {
		table-layout: fixed;
		width: 100%;
	}

	.sv2026-course-list .sv2026-table th:nth-child(1),
	.sv2026-course-list .sv2026-table td:nth-child(1) { width: var(--sv-col-kurs, 26%); }
	.sv2026-course-list .sv2026-table th:nth-child(2),
	.sv2026-course-list .sv2026-table td:nth-child(2) { width: var(--sv-col-beginn, 28%); }
	.sv2026-course-list .sv2026-table th:nth-child(3),
	.sv2026-course-list .sv2026-table td:nth-child(3) { width: var(--sv-col-dauer, 14%); }
	.sv2026-course-list .sv2026-table th:nth-child(4),
	.sv2026-course-list .sv2026-table td:nth-child(4) { width: var(--sv-col-preis, 11%); }
	.sv2026-course-list .sv2026-table th:nth-child(5),
	.sv2026-course-list .sv2026-table td:nth-child(5) { width: var(--sv-col-anmeldung, 21%); }
}

/* Kursliste: Anmeldung (Dropdown + Button) luftiger anordnen */
@media (min-width: 641px) {
	.sv2026-course-list .sv2026-table td:nth-child(5) form {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: var(--sv-form-gap, 0.9rem);
	}

	.sv2026-course-list .sv2026-table td:nth-child(5) select {
		margin: 0;
	}

	.sv2026-course-list .sv2026-table td:nth-child(5) {
		padding-top: 0.9rem;
		padding-bottom: 0.9rem;
	}
}
