/* =============================================================================
   Easy School – Frontend CSS
   ============================================================================= */


/* =============================================================================
   Globale Textumbrüche in Easy-School-Frontend-Ausgaben
   =============================================================================

   hyphens:auto nutzt die Spracheinstellung der Website (z. B. de-DE) für
   automatische Silbentrennung. overflow-wrap verhindert als Sicherheitsnetz,
   dass sehr lange Wörter, Links oder E-Mail-Adressen mobile Layouts sprengen.
*/

[class^="eschool-"],
[class*=" eschool-"],
[class*="elementor-widget-eschool_"] {
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
	word-break: normal;
	min-width: 0;
}

[class^="eschool-"] *,
[class*=" eschool-"] *,
[class*="elementor-widget-eschool_"] * {
	min-width: 0;
}

[class^="eschool-"] a,
[class*=" eschool-"] a,
[class*="elementor-widget-eschool_"] a {
	overflow-wrap: anywhere;
}

/* =============================================================================
   Zeiten-Widget
   ============================================================================= */

.eschool-tz-liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eschool-tz-slot {
	padding: 14px 14px 14px 18px;
	border-left: 4px solid var(--e-global-color-primary, #333);
	margin-bottom: 10px;
	background: rgba(0,0,0,0.02);
	border-radius: 0 4px 4px 0;
}

.eschool-tz-wochentag {
	font-weight: 700;
	font-size: 1em;
	margin-bottom: 6px;
	color: var(--e-global-color-primary, #333);
}

.eschool-tz-wiederholung {
	font-weight: 400;
	font-size: 0.82em;
	opacity: 0.6;
}

.eschool-tz-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px 20px;
	font-size: 0.9em;
	color: var(--e-global-color-text, #555);
}

.eschool-tz-meta-item {
	display: flex;
	align-items: center;
	gap: 7px;
}

.eschool-tz-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	opacity: 0.55;
}

.eschool-tz-icon svg {
	width: 100%;
	height: 100%;
}

.eschool-tz-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.eschool-tz-link:hover {
	color: var(--e-global-color-accent, #000);
}

.eschool-tz-leer {
	font-style: italic;
	opacity: 0.6;
}

@media ( max-width: 600px ) {
	.eschool-tz-meta {
		grid-template-columns: 1fr;
	}
}

/* =============================================================================
   Wochenplan-Widget – Tabelle & modernes Kartenlayout
   ============================================================================= */

.eschool-wochenplan-widget {
	width: 100%;
	max-width: 100%;
	container-type: inline-size;
	--eschool-wp-card-min: 330px;
}

.eschool-wp-layout-cards {
	display: block;
}

.eschool-wp-days {
	display: grid;
	gap: 18px;
}

.eschool-wp-day-section {
	border: 1px solid transparent;
	border-radius: 18px;
	overflow: hidden;
	background: rgba(0,0,0,0.018);
}

.eschool-wp-day-header,
.eschool-wp-header th {
	background-color: var(--e-global-color-primary, #333);
	color: #fff;
	text-align: left;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.9em;
}

.eschool-wp-day-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	padding: 13px 18px;
}

.eschool-wp-day-name {
	min-width: 0;
	overflow-wrap: anywhere;
}


.eschool-wp-day-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--eschool-wp-card-min)), 1fr));
	gap: 14px;
	padding: 14px;
}

.eschool-wp-columns-1 .eschool-wp-day-cards {
	grid-template-columns: 1fr;
}

.eschool-wp-columns-2 .eschool-wp-day-cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media ( max-width: 767px ) {
	.eschool-wp-columns-2 .eschool-wp-day-cards {
		grid-template-columns: 1fr;
	}
}

.eschool-wp-card {
	min-width: 0;
	padding: 16px 18px;
	border: 1px solid #e8e8e8;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,0.045);
	color: var(--e-global-color-text, #333);
}


.eschool-wp-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	min-width: 0;
}

.eschool-wp-card-title {
	margin: 0;
	min-width: 0;
	color: var(--e-global-color-accent, #333);
	font-size: 1.12em;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.eschool-wp-card-time {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	max-width: 100%;
	color: var(--e-global-color-text, #333);
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.eschool-wp-card-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	margin-top: 14px;
}

.eschool-wp-card-meta-item {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	color: var(--e-global-color-text, #333);
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.eschool-wp-meta-label,
.eschool-wp-cell-label {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--e-global-color-primary, #333);
}

.eschool-wp-meta-value,
.eschool-wp-cell-value,
.eschool-wp-card-meta-item > span:not(.eschool-wp-icon),
.eschool-wp-card-meta-item > a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.eschool-wp-card-contact {
	grid-column: 1 / -1;
	display: grid;
	gap: 9px;
	padding: 12px 14px;
	border: 1px solid rgba(0,0,0,0.08);
	border-left: 4px solid var(--e-global-color-primary, #333);
	border-radius: 12px;
	background: #f7f7f7;
}

.eschool-wp-card-contact-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--e-global-color-primary, #333);
	font-size: 0.78em;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.055em;
}

.eschool-wp-card-contact-title {
	min-width: 0;
	overflow-wrap: anywhere;
}

.eschool-wp-card-contact-lines {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 6px 14px;
}


.eschool-wp-contact-stack {
	display: inline-grid;
	gap: 3px;
	min-width: 0;
}

.eschool-wp-contact-row {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.eschool-wp-card-contact-person {
	display: grid;
	gap: 5px;
	min-width: 0;
	align-content: start;
}

.eschool-wp-card-contact-person + .eschool-wp-card-contact-person {
	padding-top: 8px;
	border-top: 1px solid rgba(0,0,0,0.07);
}

.eschool-wp-card-contact-line {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	color: var(--e-global-color-text, #333);
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.eschool-wp-card-contact-line .eschool-wp-icon {
	margin-right: 0;
}

.eschool-wp-cell-label {
	display: none;
}

.eschool-wp-empty-day {
	padding: 16px 18px;
	font-style: italic;
	opacity: 0.65;
	color: var(--e-global-color-text, #333);
}

/* Klassische Tabellenansicht */
.eschool-wp-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
}

.eschool-wp-header th {
	padding: 10px 14px;
}

.eschool-wp-table td {
	padding: 10px 14px;
	vertical-align: middle;
	border-bottom: 1px solid #e8e8e8;
	color: var(--e-global-color-text, #333);
	font-size: inherit;
	line-height: 1.4;
}

.eschool-wp-table tbody tr.eschool-wp-termin-row:nth-child(even) td {
	background-color: rgba(0,0,0,0.025);
}

.eschool-wp-td-zeit {
	white-space: nowrap;
	font-weight: 600;
}

.eschool-wp-td-angebot {
	font-weight: 600;
}

.eschool-wp-td-zeit,
.eschool-wp-td-ort,
.eschool-wp-td-kontaktperson,
.eschool-wp-td-mail,
.eschool-wp-td-tel,
.eschool-wp-td-mindestalter,
.eschool-wp-td-max-teilnehmer {
	min-width: 0;
}

.eschool-wp-td-zeit,
.eschool-wp-td-ort,
.eschool-wp-td-kontaktperson,
.eschool-wp-td-mail,
.eschool-wp-td-tel,
.eschool-wp-td-mindestalter,
.eschool-wp-td-max-teilnehmer {
	white-space: nowrap;
}

.eschool-wp-angebot-link {
	text-decoration: none;
	color: var(--e-global-color-accent, #333);
}

.eschool-wp-angebot-link:hover {
	text-decoration: underline;
}

.eschool-wp-wiederholung {
	font-weight: 400;
	font-size: 0.82em;
	opacity: 0.6;
}

.eschool-wp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	margin-right: 4px;
	opacity: 0.65;
	vertical-align: -0.12em;
	color: currentColor;
}

.eschool-wp-card .eschool-wp-icon,
.eschool-ical-button .eschool-wp-icon {
	margin-right: 0;
}

.eschool-wp-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.eschool-wp-kontakt-link {
	min-width: 0;
	color: var(--e-global-color-text, #333);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.eschool-wp-kontakt-link:hover {
	text-decoration: underline;
}

.eschool-wp-td-leer {
	font-style: italic;
	opacity: 0.5;
	font-size: 0.88em;
}

/* Mittlere Breiten: Karten behalten Struktur, Meta wird lesbarer */
@container ( max-width: 680px ) {
	.eschool-wp-card-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.eschool-wp-card-time {
		white-space: normal;
	}

	.eschool-wp-card-meta,
	.eschool-wp-card-contact-lines {
		grid-template-columns: 1fr;
	}
}

/* Mobile: klassische Tabelle in Karten umwandeln */
@media ( max-width: 767px ) {

	.eschool-wp-table,
	.eschool-wp-table tbody,
	.eschool-wp-table tr,
	.eschool-wp-table td,
	.eschool-wp-table th {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box;
	}

	.eschool-wp-termin-row {
		margin-bottom: 10px;
		border: 1px solid #e8e8e8;
		border-radius: 6px;
		overflow: hidden;
		background: #fff;
	}

	.eschool-wp-table tbody tr.eschool-wp-termin-row:nth-child(even) td {
		background-color: transparent !important;
	}

	.eschool-wp-table td {
		padding: 7px 14px !important;
		border-bottom: none !important;
		display: flex !important;
		align-items: center;
		gap: 8px;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.eschool-wp-cell-label {
		display: inline;
	}

	.eschool-wp-td-zeit {
		padding-top: 12px !important;
	}

	.eschool-wp-termin-row td:last-child {
		padding-bottom: 12px !important;
	}

	.eschool-wp-td-leer-zelle {
		display: none !important;
	}

	.eschool-wp-day-cards {
		grid-template-columns: 1fr;
		padding: 10px;
	}

	.eschool-wp-day-section {
		border-radius: 14px;
	}

	.eschool-wp-day-header {
		padding: 12px 14px;
	}

	.eschool-wp-card {
		padding-left: 14px;
		padding-right: 14px;
	}

	.eschool-wp-card-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.eschool-wp-card-time {
		white-space: normal;
	}

	.eschool-wp-card-meta,
	.eschool-wp-card-contact-lines {
		grid-template-columns: 1fr;
	}
}


/* =============================================================================
   Galerie-Widget
   ============================================================================= */

.eschool-galerie-masonry {
	column-gap: 12px;
}

.eschool-galerie-item {
	break-inside: avoid;
	display: block;
	margin-bottom: 12px;
	position: relative;
	overflow: hidden;
	border-radius: 6px;
}

.eschool-galerie-item a {
	display: block;
	position: relative;
	overflow: hidden;
	line-height: 0;
}

.eschool-galerie-img {
	width: 100%;
	height: auto;
	display: block;
	object-position: center center;
	transition: transform 300ms ease;
}

.eschool-galerie-item:hover .eschool-galerie-img {
	transform: scale(1.06);
}

.eschool-galerie-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0,0,0,0.45);
	opacity: 0;
	transition: opacity 300ms ease;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: inherit;
}

.eschool-galerie-item:hover .eschool-galerie-overlay {
	opacity: 1;
}

.eschool-galerie-overlay-icon {
	color: #fff;
	font-size: 28px;
}

.eschool-galerie-overlay-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.eschool-galerie-leer {
	font-style: italic;
	opacity: 0.6;
}

/* =============================================================================
   Zeitplan-Widget
   ============================================================================= */

.eschool-zeitplan-widget {
	position: relative;
	padding-left: 32px;
}

.eschool-zp-linie {
	position: absolute;
	left: 7px;
	top: 0;
	bottom: 0;
	width: 2px;
	background-color: var(--e-global-color-primary, #333);
	opacity: 0.2;
}

.eschool-zp-liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eschool-zp-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.eschool-zp-item:last-child {
	border-bottom: none;
}

.eschool-zp-dot {
	position: absolute;
	left: -28px;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--e-global-color-primary, #333);
	flex-shrink: 0;
}

.eschool-zp-uhrzeit {
	font-weight: 700;
	font-size: 0.95em;
	white-space: nowrap;
	color: var(--e-global-color-primary, #333);
	min-width: 80px;
	flex-shrink: 0;
}

.eschool-zp-beschreibung {
	color: var(--e-global-color-text, #555);
	line-height: 1.4;
	flex: 1;
}

.eschool-zp-leer {
	font-style: italic;
	opacity: 0.6;
}

/* =============================================================================
   iCal-Button
   ============================================================================= */

.eschool-ical-wrap {
	margin-top: 16px;
}

.eschool-ical-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background-color: var(--e-global-color-primary, #333);
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 600;
	transition: opacity 200ms ease;
}

.eschool-ical-button:hover {
	opacity: 0.85;
	color: #fff;
	text-decoration: none;
}

.eschool-ical-button svg {
	width: 1.1em;
	height: 1.1em;
	flex-shrink: 0;
}

/* =============================================================================
   Kalender-Widget – FullCalendar Overrides
   ============================================================================= */

.eschool-kalender-widget {
	width: 100%;
	overflow: hidden;
}

.eschool-kalender-wrapper {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.eschool-kalender-container {
	height: 600px;
	width: 100%;
	overflow: hidden;
}

/* Toolbar: Buttons schön ausrichten */
.eschool-kalender-widget .fc .fc-toolbar {
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.eschool-kalender-widget .fc .fc-toolbar-title {
	font-size: 1.1em;
	white-space: nowrap;
}

/* Mobile Toolbar */
@media ( max-width: 767px ) {
	.eschool-kalender-widget .fc .fc-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.eschool-kalender-widget .fc .fc-toolbar-chunk {
		display: flex;
		align-items: center;
		gap: 6px;
		flex-wrap: wrap;
	}

	.eschool-kalender-widget .fc .fc-toolbar-title {
		font-size: 1em;
	}

	.eschool-kalender-widget .fc .fc-button {
		padding: 4px 10px;
		font-size: 0.85em;
	}
}

/* =============================================================================
   Blogbeiträge-Widget
   ============================================================================= */

.eschool-blog-widget,
.eschool-blog,
.eschool-blog-liste {
	width: 100%;
	box-sizing: border-box;
}

.eschool-blog--list {
	display: flex;
	flex-direction: column;
}

.eschool-blog-headline-wrap {
	margin: 0 0 24px;
}

.eschool-blog-headline {
	margin: 0;
	color: var(--e-global-color-primary, #333);
}

.eschool-blog-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 28px 0 0;
}

.eschool-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid rgba(0,0,0,0.14);
	border-radius: 999px;
	background: #fff;
	color: var(--e-global-color-primary, #333);
	text-decoration: none;
	line-height: 1;
	box-sizing: border-box;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.eschool-blog-pagination .page-numbers.current,
.eschool-blog-pagination a.page-numbers:hover,
.eschool-blog-pagination a.page-numbers:focus {
	background: var(--e-global-color-primary, #333);
	border-color: var(--e-global-color-primary, #333);
	color: #fff;
	text-decoration: none;
}


.eschool-blog--list .eschool-blog-item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px;
	align-items: flex-start;
}

.eschool-blog--list .eschool-blog-item + .eschool-blog-item {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(0,0,0,0.08);
}

.eschool-blog--cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 24px;
	align-items: stretch;
}

.eschool-blog--cards .eschool-blog-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 12px;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.eschool-blog--cards .eschool-blog-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.eschool-blog--list .eschool-blog-item,
.eschool-blog--cards .eschool-blog-item,
.eschool-blog-bild,
.eschool-blog-mehr,
.eschool-blog-datum,
.eschool-blog-leer {
	box-sizing: border-box;
}

.eschool-blog-bild-link {
	display: block;
	flex-shrink: 0;
}

.eschool-blog-bild {
	width: 120px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.eschool-blog--cards .eschool-blog-bild-link {
	width: 100%;
	overflow: hidden;
}

.eschool-blog--cards .eschool-blog-bild {
	width: 100%;
	height: 220px;
	border-radius: 0;
}

.eschool-blog-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.eschool-blog--cards .eschool-blog-content {
	flex: 1;
	gap: 8px;
	padding: 20px;
}

.eschool-blog-datum {
	font-size: 0.82em;
	opacity: 0.6;
	display: block;
	line-height: 1.3;
	width: fit-content;
	max-width: 100%;
}

.eschool-blog-titel {
	margin: 0;
	font-size: 1em;
	line-height: 1.3;
}

.eschool-blog-titel a {
	text-decoration: none;
	color: var(--e-global-color-primary, #333);
}

.eschool-blog-titel a:hover {
	text-decoration: underline;
}

.eschool-blog-auszug {
	margin: 4px 0 0;
	font-size: 0.9em;
	color: var(--e-global-color-text, #555);
	line-height: 1.5;
}

.eschool-blog-mehr {
	font-size: 0.85em;
	font-weight: 600;
	color: var(--e-global-color-accent, #333);
	text-decoration: none;
	margin-top: 4px;
	display: inline-block;
	width: fit-content;
	max-width: 100%;
	line-height: 1.25;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.eschool-blog--cards .eschool-blog-mehr {
	margin-top: auto;
	padding-top: 8px;
}

.eschool-blog-mehr--button {
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--e-global-color-accent, #333);
	color: #fff;
}

.eschool-blog-mehr--button:hover,
.eschool-blog-mehr--button:focus {
	color: #fff;
	text-decoration: none;
}

.eschool-blog-mehr:hover {
	text-decoration: underline;
}

.eschool-blog-leer {
	font-style: italic;
	opacity: 0.6;
}

/* Kein Bild: einspaltig in der Listenansicht */
.eschool-blog--list .eschool-blog-item--no-image {
	grid-template-columns: 1fr;
}

@media ( max-width: 1024px ) {
	.eschool-blog--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media ( max-width: 767px ) {
	.eschool-blog--cards {
		grid-template-columns: 1fr;
	}
}

@media ( max-width: 480px ) {
	.eschool-blog--list .eschool-blog-item {
		grid-template-columns: 1fr;
	}
	.eschool-blog--list .eschool-blog-bild {
		width: 100%;
		height: 160px;
	}
}

/* =============================================================================
   Anmeldeformular-Widget
   ============================================================================= */

.eschool-anmeldeformular {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.eschool-af-section {
	margin-bottom: 28px;
}

.eschool-af-section-title {
	font-size: 1.1em;
	font-weight: 700;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.eschool-af-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.eschool-af-span2 {
	grid-column: span 2;
}

.eschool-af-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.eschool-af-field label {
	font-weight: 600;
	font-size: 0.9em;
}

.eschool-af-field input,
.eschool-af-field select,
.eschool-af-field textarea {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1em;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

.eschool-af-field input:focus,
.eschool-af-field select:focus,
.eschool-af-field textarea:focus {
	outline: none;
	border-color: var(--e-global-color-primary, #333);
	box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.eschool-af-pflicht {
	color: #d63638;
}

/* ── Person ── */
.eschool-af-person {
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 12px;
	background: rgba(0,0,0,0.015);
}

.eschool-af-person-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding-left: 10px;
	border-left: 3px solid var(--e-global-color-primary, #333);
}

.eschool-af-person-remove {
	color: #d63638;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	padding: 2px 6px;
}

.eschool-af-zusatzfelder {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e8e8e8;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* ── Preisübersicht ── */
.eschool-af-preis-section {
	background: #f9f9f9;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	padding: 16px;
}

.eschool-af-preis-item {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 0.95em;
}

.eschool-af-preis-gesamt {
	display: flex;
	justify-content: space-between;
	padding-top: 10px;
	margin-top: 10px;
	border-top: 2px solid #333;
	font-size: 1.05em;
}

/* ── Button ── */
.eschool-af-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	background-color: var(--e-global-color-primary, #333);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 200ms;
	font-family: inherit;
}

.eschool-af-button:hover {
	opacity: 0.85;
}

.eschool-af-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.eschool-af-hinweis {
	margin-top: 8px;
	font-size: 0.82em;
	opacity: 0.6;
}

/* ── Meldungen ── */
.eschool-af-message {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	border: 1px solid;
}

.eschool-af-success {
	background: #d1f7e1;
	border-color: #00a32a;
	color: #0a4a1a;
}

.eschool-af-error,
.eschool-af-fehler {
	background: #fce8e8;
	border-color: #d63638;
	color: #5c1010;
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 12px;
	border: 1px solid;
}

.eschool-af-warning {
	background: #fff3cd;
	border-color: #ffc107;
	color: #7d5a00;
}

/* ── Responsive ── */
@media ( max-width: 600px ) {
	.eschool-af-grid,
	.eschool-af-zusatzfelder {
		grid-template-columns: 1fr;
	}
	.eschool-af-span2 {
		grid-column: span 1;
	}
}

/* =============================================================================
   Stripe Embedded Checkout Modal
   ============================================================================= */

#eschool-stripe-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.6);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

#eschool-stripe-modal {
	background: #fff;
	border-radius: 8px;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	padding: 20px;
	box-sizing: border-box;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

#eschool-stripe-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #666;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 200ms;
	z-index: 1;
}

#eschool-stripe-close:hover {
	background: rgba(0,0,0,0.08);
}

#eschool-stripe-container {
	margin-top: 8px;
}

@media ( max-width: 600px ) {
	#eschool-stripe-modal {
		max-height: 95vh;
		padding: 16px;
	}
}

/* =============================================================================
   Anmeldung Erfolgsseite
   ============================================================================= */

.eschool-erfolg-wrap {
	text-align: center;
	padding: 20px 0;
}

.eschool-erfolg-icon {
	width: 64px;
	height: 64px;
	background: #00a32a;
	color: #fff;
	border-radius: 50%;
	font-size: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.eschool-erfolg-titel {
	font-size: 1.6em;
	margin-bottom: 8px;
	color: var(--e-global-color-primary, #333);
}

.eschool-erfolg-sub {
	color: var(--e-global-color-text, #555);
	margin-bottom: 28px;
}

.eschool-erfolg-box {
	background: #f9f9f9;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 24px;
	text-align: left;
	max-width: 500px;
	margin: 0 auto;
}

.eschool-erfolg-box h3 {
	margin: 0 0 16px;
	font-size: 1em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.6;
	font-weight: 600;
}

.eschool-erfolg-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #e8e8e8;
	font-size: 0.95em;
}

.eschool-erfolg-row:last-child {
	border-bottom: none;
}

.eschool-erfolg-row span {
	opacity: 0.6;
	flex-shrink: 0;
}

.eschool-erfolg-person {
	margin-bottom: 4px;
}

.eschool-erfolg-betrag {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 2px solid #333 !important;
	font-size: 1.05em !important;
}


/* =============================================================================
   Design-Update 3.2.1 – Responsive Layouts, Modern Calendar, Form Widths
   ============================================================================= */

/* Zeiten: Container-basiertes Umbrechen statt nur Viewport-Breite. */
.eschool-tz-widget {
	width: 100%;
	container-type: inline-size;
}

.eschool-tz-slot {
	box-sizing: border-box;
}

.eschool-tz-widget > .eschool-ical-wrap {
	box-sizing: border-box;
	padding-inline: 18px 14px;
}

@container ( max-width: 560px ) {
	.eschool-tz-widget .eschool-tz-meta {
		grid-template-columns: 1fr;
	}
	.eschool-tz-widget > .eschool-ical-wrap {
		padding-inline: 18px 14px;
	}
}

/* Wochenplan: mittlere Breiten als zweispaltige Karten statt zu breite Tabelle. */
.eschool-wochenplan-widget {
	container-type: inline-size;
	overflow-x: clip;
}

.eschool-wp-table {
	min-width: 0;
}

.eschool-wp-table td {
	overflow-wrap: anywhere;
}

@container ( max-width: 980px ) and ( min-width: 641px ) {
	.eschool-wp-table,
	.eschool-wp-table tbody {
		display: block;
		width: 100%;
	}

	.eschool-wp-header,
	.eschool-wp-header th {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.eschool-wp-header th {
		border-radius: 8px 8px 0 0;
	}

	.eschool-wp-termin-row {
		display: grid;
		grid-template-columns: minmax(110px, 0.45fr) minmax(180px, 1fr);
		gap: 7px 18px;
		align-items: start;
		padding: 12px 14px;
		border: 1px solid #e8e8e8;
		border-top: 0;
		background: #fff;
	}

	.eschool-wp-table tbody tr.eschool-wp-termin-row:nth-child(even) td {
		background-color: transparent;
	}

	.eschool-wp-table td {
		display: block;
		padding: 0 !important;
		border-bottom: 0;
		background: transparent;
		min-width: 0;
	}

	.eschool-wp-cell-label {
		display: inline;
	}

	.eschool-wp-td-zeit {
		grid-column: 1;
		white-space: normal;
	}

	.eschool-wp-td-angebot {
		grid-column: 2;
	}

	.eschool-wp-td-ort,
	.eschool-wp-td-kontaktperson,
	.eschool-wp-td-mail,
	.eschool-wp-td-tel {
		grid-column: 2;
		white-space: normal;
		font-size: 0.92em;
	}

	.eschool-wp-leer-row,
	.eschool-wp-leer-row td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
}

/* Formulare: Widget-Inhalt konsequent 100% breit. */
.eschool-anmeldeformular,
.eschool-helfer-formular {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.eschool-helfer-formular {
	margin-top: 0;
}

.eschool-helfer-formular .eschool-af-button {
	margin-top: 12px;
}

.eschool-helfer-meldung {
	margin-top: 10px;
}

/* Modernes Kalender-/Coming-Up-Design.
   Default orientiert am warmen Easy-School/Wireframe-Stil: klare Karten,
   große Datumsplakette, gut lesbare lineare Struktur. */
.eschool-modern-events,
.eschool-coming-up {
	width: 100%;
	box-sizing: border-box;
}

.eschool-coming-up {
	padding: clamp(24px, 4vw, 46px);
	border: 1px solid rgba(31, 37, 42, 0.14);
	border-radius: clamp(22px, 3vw, 40px);
	background: #fff;
	color: #202124;
}

.eschool-coming-up-title {
	margin: 0 0 clamp(18px, 2.5vw, 28px);
	color: var(--e-global-color-primary, #202124);
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.045em;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.eschool-modern-event-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(14px, 2vw, 20px);
}

.eschool-modern-event-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(16px, 2.5vw, 28px);
	align-items: center;
	padding: clamp(16px, 2.4vw, 28px);
	border: 1px solid rgba(74, 67, 58, 0.12);
	border-left: 1px solid rgba(74, 67, 58, 0.12);
	border-radius: clamp(20px, 2.6vw, 32px);
	background: #f4eee8;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
	box-sizing: border-box;
}

.eschool-modern-event-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: clamp(76px, 9vw, 116px);
	min-height: clamp(60px, 7.5vw, 92px);
	padding: 10px 16px;
	border-radius: clamp(16px, 2vw, 26px);
	background: #fff;
	color: var(--e-global-color-primary, #202124);
	line-height: 1;
	text-align: center;
	box-sizing: border-box;
}

.eschool-modern-event-day {
	display: block;
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	font-weight: 850;
	letter-spacing: -0.04em;
}

.eschool-modern-event-month {
	display: block;
	margin-top: 3px;
	font-size: clamp(0.9rem, 1.5vw, 1.08rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(32,33,36,0.62);
}

.eschool-modern-event-body {
	min-width: 0;
}

.eschool-modern-event-topline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 4px;
	font-size: 0.84em;
	font-weight: 700;
}

.eschool-modern-event-time {
	color: var(--e-global-color-accent, #333);
}

.eschool-modern-event-type {
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(0,0,0,0.06);
	font-size: 0.86em;
}

.eschool-modern-event-title {
	margin: 0;
	font-size: clamp(1.2rem, 2.35vw, 2rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--e-global-color-primary, #202124);
	overflow-wrap: anywhere;
	hyphens: auto;
}

.eschool-modern-event-title a {
	color: inherit;
	text-decoration: none;
}

.eschool-modern-event-title a:hover,
.eschool-modern-event-title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.eschool-modern-event-meta {
	margin-top: 8px;
	font-size: clamp(1rem, 1.8vw, 1.45rem);
	font-weight: 750;
	line-height: 1.25;
	color: var(--e-global-color-text, rgba(32,33,36,0.63));
	overflow-wrap: anywhere;
}

.eschool-modern-event-hint {
	margin: 8px 0 0;
	font-size: 0.9em;
	color: var(--e-global-color-text, #555);
	opacity: 0.85;
}

.eschool-modern-events-empty {
	margin: 0;
	font-style: italic;
	opacity: 0.7;
}

.eschool-coming-up.is-compact .eschool-modern-event-card {
	padding: clamp(14px, 2vw, 24px);
	gap: clamp(14px, 2vw, 24px);
	border-radius: clamp(18px, 2vw, 28px);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.eschool-coming-up.is-compact .eschool-modern-event-date {
	min-width: clamp(72px, 8vw, 104px);
	min-height: clamp(58px, 7vw, 84px);
	border-radius: clamp(14px, 1.8vw, 24px);
}

.eschool-coming-up.is-compact .eschool-modern-event-day {
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.eschool-coming-up.is-compact .eschool-modern-event-title {
	font-size: clamp(1.15rem, 2.1vw, 1.8rem);
}

@media ( max-width: 640px ) {
	.eschool-coming-up {
		padding: 22px;
		border-radius: 24px;
	}
	.eschool-modern-event-card {
		gap: 14px;
		padding: 14px;
	}
}

@media ( max-width: 480px ) {
	.eschool-modern-event-card {
		grid-template-columns: 1fr;
	}
	.eschool-modern-event-date {
		width: 86px;
	}
}


/* =============================================================================
   Downloads-Widget
   ============================================================================= */

.eschool-downloads-widget {
	width: 100%;
	max-width: 100%;
}

.eschool-downloads-headline {
	margin: 0 0 18px;
	color: var(--e-global-color-primary, #222);
}

.eschool-downloads-list {
	display: grid;
	gap: 18px;
}

.eschool-downloads--cards {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.eschool-downloads--list,
.eschool-downloads--compact {
	grid-template-columns: 1fr;
}

.eschool-download-item {
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,0.045);
	color: var(--e-global-color-text, #333);
}

.eschool-downloads--list .eschool-download-item {
	display: grid;
	grid-template-columns: minmax(180px, 28%) minmax(0, 1fr);
}

.eschool-downloads--list .eschool-download-item--no-thumb {
	grid-template-columns: 1fr;
}

.eschool-downloads--compact .eschool-download-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
}

.eschool-download-thumb {
	display: block;
	position: relative;
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: rgba(0,0,0,0.04);
}

.eschool-downloads--list .eschool-download-thumb {
	height: 100%;
	min-height: 190px;
}

.eschool-download-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eschool-download-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 9px;
	padding: 18px;
	min-width: 0;
}

.eschool-downloads--compact .eschool-download-content {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto auto;
	align-items: center;
	gap: 8px 16px;
	width: 100%;
	padding: 0;
}

.eschool-download-category {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(0,0,0,0.06);
	color: var(--e-global-color-text, #333);
	font-size: 0.78em;
	font-weight: 700;
	line-height: 1.2;
}

.eschool-download-year {
	color: var(--e-global-color-accent, #333);
	font-size: 0.86em;
	font-weight: 700;
	line-height: 1.25;
}

.eschool-download-title {
	margin: 0;
	color: var(--e-global-color-primary, #222);
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.eschool-download-title a {
	color: inherit;
	text-decoration: none;
}

.eschool-download-title a:hover {
	text-decoration: underline;
}

.eschool-download-description {
	margin: 0;
	color: var(--e-global-color-text, #555);
	line-height: 1.45;
}

.eschool-download-meta {
	color: var(--e-global-color-text, #666);
	font-size: 0.86em;
	line-height: 1.35;
}

.eschool-download-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--e-global-color-primary, #222);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.eschool-download-button:hover {
	color: #fff;
	background: var(--e-global-color-accent, #000);
	transform: translateY(-1px);
	text-decoration: none;
}

.eschool-downloads-empty {
	font-style: italic;
	opacity: .7;
}

@media (max-width: 1024px) {
	.eschool-downloads--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.eschool-downloads--cards,
	.eschool-downloads--list {
		grid-template-columns: 1fr;
	}

	.eschool-downloads--list .eschool-download-thumb {
		height: 220px;
		min-height: 0;
	}

	.eschool-downloads--compact .eschool-download-item {
		align-items: stretch;
		flex-direction: column;
	}

	.eschool-downloads--compact .eschool-download-content {
		display: flex;
		align-items: flex-start;
	}
}

/* =============================================================================
   Hinweise für Gruppen ohne feste Zeiten
   ============================================================================= */

.eschool-tz-hinweis-box,
.eschool-wp-no-fixed-card {
	padding: 16px 18px;
	border: 1px solid rgba(0,0,0,0.08);
	border-left: 4px solid #d71920;
	border-radius: 12px;
	background: #f7f7f7;
	color: #222222;
}

.eschool-tz-hinweis-kicker {
	margin: 0 0 6px;
	color: #d71920;
	font-size: 0.78em;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.055em;
}

.eschool-tz-hinweis-text,
.eschool-wp-no-fixed-text {
	line-height: 1.55;
}

.eschool-tz-hinweis-text p,
.eschool-wp-no-fixed-text p {
	margin: 0 0 0.75em;
}

.eschool-tz-hinweis-text p:last-child,
.eschool-wp-no-fixed-text p:last-child {
	margin-bottom: 0;
}

.eschool-wp-no-fixed-section {
	margin-top: 22px;
}

.eschool-wp-no-fixed-title {
	margin: 0 0 12px;
	font-size: 1.05em;
	font-weight: 800;
	line-height: 1.25;
	color: #222222;
}

.eschool-wp-no-fixed-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--eschool-wp-card-min, 330px)), 1fr));
	gap: 14px;
}

.eschool-wp-no-fixed-card {
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.eschool-wp-no-fixed-offer {
	margin: 0 0 8px;
	font-size: 1.08em;
	font-weight: 800;
	line-height: 1.25;
	color: #222222;
}

.eschool-wp-no-fixed-offer a {
	color: inherit;
}


/* =============================================================================
   Easy School – Ansprechpartner
   ============================================================================= */

.eschool-contacts {
	--eschool-contact-group-gap: 24px;
	display: flex;
	flex-direction: column;
	gap: calc(var(--eschool-contact-group-gap) * 1.5);
}

.eschool-contact-group {
	display: flex;
	flex-direction: column;
	gap: var(--eschool-contact-group-gap);
}

.eschool-contact-group__title {
	margin: 0;
	font-size: clamp(1.35rem, 2vw, 2rem);
	line-height: 1.2;
	color: var(--e-global-color-primary, #0f172a);
}

.eschool-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.eschool-contacts-columns-1 .eschool-contact-grid {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.eschool-contacts-columns-2 .eschool-contact-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eschool-contacts-columns-3 .eschool-contact-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eschool-contacts-columns-4 .eschool-contact-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eschool-contact-card {
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	min-width: 0;
	padding: 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.eschool-contact-card__media {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #e0f2fe;
	border-radius: 999px;
}

.eschool-contact-card__media picture,
.eschool-contact-card__media img,
.eschool-contact-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eschool-contact-card__initial {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: #0369a1;
	text-transform: uppercase;
}

.eschool-contact-card__body {
	min-width: 0;
	flex: 1 1 auto;
}

.eschool-contact-card__role {
	margin: 0 0 5px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--e-global-color-primary, #0369a1);
}

.eschool-contact-card__name {
	margin: 0 0 10px;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--e-global-color-text, #111827);
}

.eschool-contact-card__links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.eschool-contact-card__link {
	color: var(--e-global-color-text, #4b5563);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.eschool-contact-card__link:hover,
.eschool-contact-card__link:focus {
	color: var(--e-global-color-primary, #0284c7);
	text-decoration: underline;
}

.eschool-contact-card__link span {
	font-weight: 700;
}

.eschool-contact-card__note {
	margin-top: 12px;
	color: var(--e-global-color-text, #4b5563);
	font-size: 0.95rem;
	line-height: 1.55;
}

.eschool-contact-card__note p {
	margin: 0 0 0.5em;
}

.eschool-contact-card__note p:last-child {
	margin-bottom: 0;
}

.eschool-contacts--compact .eschool-contact-card {
	padding: 16px;
	box-shadow: none;
}

.eschool-contacts--compact .eschool-contact-card__media {
	width: 64px;
	height: 64px;
}

.eschool-contacts--compact .eschool-contact-card__name {
	font-size: 1.05rem;
}

.eschool-contacts-empty {
	padding: 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	color: #475569;
}

@media (max-width: 1024px) {
	.eschool-contacts-columns-3 .eschool-contact-grid,
	.eschool-contacts-columns-4 .eschool-contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.eschool-contact-grid,
	.eschool-contacts-columns-1 .eschool-contact-grid,
	.eschool-contacts-columns-2 .eschool-contact-grid,
	.eschool-contacts-columns-3 .eschool-contact-grid,
	.eschool-contacts-columns-4 .eschool-contact-grid {
		grid-template-columns: 1fr;
	}

	.eschool-contact-card {
		flex-direction: column;
	}

	.eschool-contact-card__media {
		width: 88px;
		height: 88px;
	}
}

/* Helferformular – Aufgaben & Token-Bestätigung */
.eschool-helfer-aufgaben-auswahl {
	margin: 16px 0;
}

.eschool-helfer-aufgaben-title {
	display: block;
	margin-bottom: 10px;
}

.eschool-helfer-aufgaben-list {
	display: grid;
	gap: 10px;
}

.eschool-helfer-aufgabe-option {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.68);
	cursor: pointer;
}

.eschool-helfer-aufgabe-option input {
	margin-top: 4px;
}

.eschool-helfer-aufgabe-option span {
	display: grid;
	gap: 3px;
}

.eschool-helfer-aufgabe-option small {
	font-size: 0.85em;
	opacity: 0.8;
}

.eschool-helfer-aufgabe-option em {
	font-size: 0.9em;
	font-style: normal;
	opacity: 0.75;
}

.eschool-helfer-aufgabe-option.is-full {
	opacity: 0.55;
	cursor: not-allowed;
}

.eschool-helfer-token-status {
	margin-bottom: 14px;
}


/* Easy School – Helferformular Honeypot */
.eschool-hf-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Optionale Widget-Headline für Easy School-Elementor-Widgets */
.eschool-widget-headline {
	margin: 0 0 1rem;
}

/* =============================================================================
   Feinschliff 3.4.8: Timeline, Formular-Abstände und responsive Spalten
   ============================================================================= */

.eschool-zeitplan-widget {
	--eschool-zp-line-x: 8px;
	--eschool-zp-content-offset: 36px;
	--eschool-zp-dot-size: 10px;
	padding-left: var(--eschool-zp-content-offset);
}

.eschool-zp-linie {
	left: var(--eschool-zp-line-x);
	transform: translateX(-50%);
}

.eschool-zp-dot {
	left: calc(var(--eschool-zp-line-x) - var(--eschool-zp-content-offset));
	width: var(--eschool-zp-dot-size) !important;
	height: var(--eschool-zp-dot-size) !important;
	margin-left: 0 !important;
	transform: translate(-50%, -50%);
}

.eschool-anmeldeformular,
.eschool-helfer-formular {
	display: flow-root;
	margin-top: 0;
}

.eschool-anmeldeformular > :first-child,
.eschool-helfer-formular > :first-child {
	margin-top: 0;
}

.eschool-anmeldeformular .eschool-af-section-title {
	margin: 0 0 14px;
}

.eschool-helfer-formular .eschool-af-grid,
.eschool-anmeldeformular .eschool-af-grid,
.eschool-af-zusatzfelder {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.eschool-af-person-header strong {
	font: inherit;
	font-weight: 600;
}

.eschool-af-person-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-left: 12px;
	padding: 6px 12px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	color: inherit;
	font: inherit;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.eschool-af-person-add:hover,
.eschool-af-person-add:focus {
	background: rgba(255, 255, 255, 0.95);
	text-decoration: none;
}

.eschool-helfer-aufgabe-option,
.eschool-helfer-aufgabe-option * {
	box-sizing: border-box;
}

.eschool-helfer-aufgabe-option span {
	min-width: 0;
}

.eschool-helfer-aufgabe-option strong,
.eschool-helfer-aufgabe-option small,
.eschool-helfer-aufgabe-option em {
	line-height: 1.35;
}

@media ( max-width: 480px ) {
	.eschool-af-section-title {
		align-items: flex-start;
		flex-direction: column;
	}

	.eschool-af-person-add {
		margin-left: 0;
	}
}

/* =============================================================================
   Feinschliff 3.4.10: Sprungnavigation und präzisere Zeitplan-Spalten
   ============================================================================= */

.eschool-widget-anchor {
	display: block;
	position: relative;
	top: 0;
	width: 0;
	height: 0;
	overflow: hidden;
	scroll-margin-top: 110px;
}

.eschool-sprungnavigation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	max-width: 100%;
}

.eschool-sprungnavigation__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	padding: 8px 14px;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #fff;
	color: #666;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.eschool-sprungnavigation__link:hover,
.eschool-sprungnavigation__link:focus {
	color: var(--e-global-color-primary, #222);
	border-color: currentColor;
	text-decoration: none !important;
	transform: translateY(-1px);
}

.eschool-sprungnavigation__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: currentColor;
}

.eschool-sprungnavigation__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.eschool-sprungnavigation__text {
	min-width: 0;
	white-space: nowrap;
}

.eschool-zeitplan-widget {
	--eschool-zp-time-width: 80px;
}

.eschool-zp-item {
	display: grid;
	grid-template-columns: var(--eschool-zp-time-width) minmax(0, 1fr);
	column-gap: 16px;
	align-items: center;
}

.eschool-zp-uhrzeit {
	grid-column: 1;
	min-width: 0;
	width: var(--eschool-zp-time-width);
}

.eschool-zp-beschreibung {
	grid-column: 2;
	min-width: 0;
}

@media (max-width: 480px) {
	.eschool-sprungnavigation__link {
		padding: 7px 11px;
	}

	.eschool-sprungnavigation__text {
		white-space: normal;
	}
}

/* Newsletter-Opt-in im Anmeldeformular */
.eschool-af-newsletter-field {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
}

.eschool-af-newsletter-field .eschool-af-checkbox-label {
  display: inline-flex !important;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  max-width: 100%;
  margin: 0;
  line-height: 1.35;
  cursor: pointer;
}

.eschool-af-newsletter-field .eschool-af-checkbox-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  min-width: 1em;
  margin: 0.18em 0 0;
}

.eschool-af-newsletter-field .eschool-af-checkbox-label span {
  display: block;
  min-width: 0;
  max-width: 70ch;
}

.eschool-af-newsletter-hinweis {
  margin-top: 0.35rem;
  margin-bottom: 0;
  padding-left: calc(1em + 10px);
}

/* =============================================================================
   3.4.25 – Downloads/Kalender behalten, Wochenplan-Sonderfall stabilisieren
   ============================================================================= */

/* Downloads: Listenansicht wird auf kleinen Geräten zur sauberen Karte. */
@media (max-width: 767px) {
	.eschool-downloads--list .eschool-download-item {
		display: flex;
		flex-direction: column;
	}

	.eschool-downloads--list .eschool-download-thumb {
		height: 220px;
		min-height: 0;
	}
}

/* Downloads: kompakte Liste heißt ab jetzt wirklich kompakt. */
.eschool-downloads--compact .eschool-download-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px 16px;
	padding: 14px 16px;
}

.eschool-downloads--compact .eschool-download-file-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35em;
	height: 2.35em;
	border-radius: 999px;
	background: rgba(0,0,0,0.06);
	color: var(--e-global-color-primary, #222);
	font-size: 1.1em;
	flex: 0 0 auto;
}

.eschool-downloads--compact .eschool-download-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: auto;
	min-width: 0;
	padding: 0;
}

.eschool-downloads--compact .eschool-download-title {
	font-size: 1em;
	line-height: 1.25;
}

.eschool-downloads--compact .eschool-download-meta {
	font-size: 0.84em;
}

.eschool-downloads--compact .eschool-download-button {
	white-space: nowrap;
}

@media (max-width: 520px) {
	.eschool-downloads--compact .eschool-download-item {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
	}

	.eschool-downloads--compact .eschool-download-button {
		grid-column: 2;
		justify-self: start;
	}
}

/* Wochenplan: Hinweise-only wird ohne Wochenplan-Raster gerendert. Keine Parent-Resets. */
.eschool-wochenplan-hinweise-only {
	width: 100%;
	max-width: 100%;
}

.eschool-wochenplan-hinweise-only .eschool-wp-no-fixed-section {
	margin-top: 0;
	margin-bottom: 0;
}

.eschool-wochenplan-hinweise-only .eschool-wp-no-fixed-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--eschool-wp-card-min, 330px)), 1fr));
	align-items: start;
}

.eschool-wochenplan-hinweise-only .eschool-wp-no-fixed-section + .eschool-ical-wrap {
	margin-top: 14px;
}

@media (max-width: 767px) {
	.eschool-wochenplan-hinweise-only .eschool-wp-no-fixed-section {
		padding-inline: 0;
	}

	.eschool-wochenplan-hinweise-only .eschool-wp-no-fixed-grid {
		grid-template-columns: 1fr;
	}

	.eschool-wochenplan-hinweise-only .eschool-wp-no-fixed-card {
		margin-bottom: 0;
	}
}

/* Kalender: Desktop mit Punkt + Titel, mobil nur Punkte mit Tap-Infobox. */
.eschool-kalender-widget,
.eschool-kalender-wrapper {
	overflow: visible;
}

.eschool-kalender-wrapper {
	position: relative;
}

.eschool-kalender-container--responsive .fc-daygrid-event,
.eschool-kalender-container--responsive .fc-daygrid-dot-event {
	min-width: 0;
	margin: 1px 2px;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
}

.eschool-kalender-container--responsive .fc-event-main {
	min-width: 0;
	max-width: 100%;
}

.eschool-kalender-container--responsive .eschool-fc-event-inner {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	min-width: 0;
	padding: 2px 5px;
	border-radius: 999px;
	line-height: 1.25;
}

.eschool-kalender-container--responsive .eschool-fc-dot {
	display: inline-block;
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	box-shadow: 0 0 0 2px rgba(255,255,255,0.85);
}

.eschool-kalender-container--responsive .eschool-fc-event-title {
	display: block;
	min-width: 0;
	overflow: hidden;
	color: var(--e-global-color-text, #222);
	font-size: 0.78em;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.eschool-kalender-container--responsive .fc-daygrid-more-link,
.eschool-kalender-container--responsive .fc-more-link {
	display: none !important;
}

.eschool-fc-popover {
	position: absolute;
	z-index: 50;
	width: min(280px, calc(100% - 24px));
	padding: 12px 14px;
	border: 1px solid rgba(0,0,0,0.12);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 35px rgba(0,0,0,0.18);
	color: var(--e-global-color-text, #222);
}

.eschool-fc-popover-title,
.eschool-fc-popover-meta,
.eschool-fc-popover-hint,
.eschool-fc-popover-link {
	display: block;
}

.eschool-fc-popover-title {
	margin-bottom: 5px;
	color: var(--e-global-color-primary, #222);
	font-size: 0.95em;
	line-height: 1.25;
}

.eschool-fc-popover-meta,
.eschool-fc-popover-hint {
	font-size: 0.84em;
	line-height: 1.35;
}

.eschool-fc-popover-hint {
	margin-top: 6px;
}

.eschool-fc-popover-link {
	margin-top: 8px;
	font-size: 0.84em;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 767px) {
	.eschool-kalender-container {
		height: auto !important;
		min-height: 0 !important;
		overflow: visible;
	}

	.eschool-kalender-widget .fc,
	.eschool-kalender-widget .fc-view-harness,
	.eschool-kalender-widget .fc-view-harness-active {
		height: auto !important;
		min-height: 0 !important;
	}

	.eschool-kalender-widget .fc .fc-daygrid-day-frame {
		min-height: 48px;
	}

	.eschool-kalender-widget .fc .fc-daygrid-day-events {
		display: grid !important;
		grid-template-columns: 1fr !important;
		justify-items: center !important;
		align-content: start !important;
		gap: 4px !important;
		padding: 2px 0 4px !important;
		margin: 0 !important;
	}

	.eschool-kalender-container--responsive .fc-daygrid-event,
	.eschool-kalender-container--responsive .fc-daygrid-dot-event {
		display: inline-flex;
		justify-content: center !important;
		width: 100% !important;
		margin: 0 !important;
	}

	.eschool-kalender-container--responsive .eschool-fc-event-inner {
		justify-content: center;
		width: 100% !important;
		padding: 2px 0 !important;
	}

	.eschool-kalender-container--responsive .eschool-fc-dot {
		width: 9px;
		height: 9px;
		margin-inline: auto !important;
	}

	.eschool-kalender-container--responsive .eschool-fc-event-title {
		display: none !important;
	}

	.eschool-kalender-container--responsive .fc-daygrid-day-bottom,
	.eschool-kalender-container--responsive .fc-daygrid-more-link,
	.eschool-kalender-container--responsive .fc-more-link {
		display: none !important;
	}

	.eschool-kalender-widget .fc .fc-toolbar {
		align-items: stretch;
	}

	.eschool-fc-popover {
		width: auto;
		max-width: none;
	}
}

/* =============================================================================
   3.4.26 – Wochenplan robust in Elementor-Containern mit Innenabstand
   ============================================================================= */

.elementor-widget-eschool_wochenplan,
.elementor-widget-eschool_wochenplan > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.eschool-wochenplan-root {
	--eschool-wp-mobile-inner: 30px;
	display: flow-root;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	clear: both;
}

.eschool-wochenplan-root,
.eschool-wochenplan-root * {
	box-sizing: border-box;
}

.eschool-wochenplan-root > :first-child {
	margin-top: 0;
}

.eschool-wochenplan-root > :last-child {
	margin-bottom: 0;
}

/*
 * Der Wochenplan nutzte bisher CSS-Container-Queries. In Elementor-Containern
 * mit seitlichem Padding kann das auf iOS/Safari zu falschen Höhenberechnungen
 * führen. Deshalb wird nur der Wochenplan wieder viewport-/media-query-basiert
 * gerendert. Kalender und andere Widgets bleiben unverändert.
 */
.eschool-wochenplan-root .eschool-wochenplan-widget {
	container-type: normal;
	overflow-x: visible;
}

@media (max-width: 680px) {
	.eschool-wochenplan-root .eschool-wp-card-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.eschool-wochenplan-root .eschool-wp-card-time {
		white-space: normal;
	}

	.eschool-wochenplan-root .eschool-wp-card-meta,
	.eschool-wochenplan-root .eschool-wp-card-contact-lines {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 980px) and (min-width: 641px) {
	.eschool-wochenplan-root .eschool-wp-table,
	.eschool-wochenplan-root .eschool-wp-table tbody {
		display: block;
		width: 100%;
	}

	.eschool-wochenplan-root .eschool-wp-header,
	.eschool-wochenplan-root .eschool-wp-header th {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.eschool-wochenplan-root .eschool-wp-header th {
		border-radius: 8px 8px 0 0;
	}

	.eschool-wochenplan-root .eschool-wp-termin-row {
		display: grid;
		grid-template-columns: minmax(110px, 0.45fr) minmax(180px, 1fr);
		gap: 7px 18px;
		align-items: start;
		padding: 12px 14px;
		border: 1px solid #e8e8e8;
		border-top: 0;
		background: #fff;
	}

	.eschool-wochenplan-root .eschool-wp-table tbody tr.eschool-wp-termin-row:nth-child(even) td {
		background-color: transparent;
	}

	.eschool-wochenplan-root .eschool-wp-table td {
		display: block;
		padding: 0 !important;
		border-bottom: 0;
		background: transparent;
		min-width: 0;
	}

	.eschool-wochenplan-root .eschool-wp-cell-label {
		display: inline;
	}

	.eschool-wochenplan-root .eschool-wp-td-zeit {
		grid-column: 1;
		white-space: normal;
	}

	.eschool-wochenplan-root .eschool-wp-td-angebot,
	.eschool-wochenplan-root .eschool-wp-td-ort,
	.eschool-wochenplan-root .eschool-wp-td-kontaktperson,
	.eschool-wochenplan-root .eschool-wp-td-mail,
	.eschool-wochenplan-root .eschool-wp-td-tel {
		grid-column: 2;
	}

	.eschool-wochenplan-root .eschool-wp-td-ort,
	.eschool-wochenplan-root .eschool-wp-td-kontaktperson,
	.eschool-wochenplan-root .eschool-wp-td-mail,
	.eschool-wochenplan-root .eschool-wp-td-tel {
		white-space: normal;
		font-size: 0.92em;
	}

	.eschool-wochenplan-root .eschool-wp-leer-row,
	.eschool-wochenplan-root .eschool-wp-leer-row td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 767px) {
	.eschool-wochenplan-root--mobile-full {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding-left: var(--eschool-wp-mobile-inner, 30px);
		padding-right: var(--eschool-wp-mobile-inner, 30px);
	}

	.eschool-wochenplan-root .eschool-wochenplan-hinweise-only,
	.eschool-wochenplan-root .eschool-wochenplan-widget,
	.eschool-wochenplan-root .eschool-wp-no-fixed-section,
	.eschool-wochenplan-root .eschool-wp-no-fixed-grid,
	.eschool-wochenplan-root .eschool-wp-no-fixed-card,
	.eschool-wochenplan-root .eschool-ical-wrap {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.eschool-wochenplan-root .eschool-wp-no-fixed-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =============================================================================
   3.4.29 – Auszeichnungen
   ============================================================================= */
.eschool-auszeichnungen-widget,
.eschool-auszeichnungen-widget * {
	box-sizing: border-box;
}

.eschool-auszeichnungen-widget {
	width: 100%;
}

.eschool-auszeichnungen-headline {
	margin: 0 0 14px;
}

.eschool-auszeichnungen-intro {
	max-width: 820px;
	margin: 0 0 30px;
	font-size: 1.08rem;
	line-height: 1.55;
}

.eschool-auszeichnungen {
	display: grid;
	gap: 44px;
	width: 100%;
}

.eschool-auszeichnungen-year {
	display: grid;
	gap: 18px;
}

.eschool-auszeichnungen-year-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 4.5rem);
	line-height: 1;
}

.eschool-auszeichnungen-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.eschool-auszeichnung-card {
	min-width: 0;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
}

.eschool-auszeichnung-title {
	margin: 0 0 12px;
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.25;
}

.eschool-auszeichnung-names {
	margin: 0;
	padding-left: 1.15em;
	line-height: 1.45;
}

.eschool-auszeichnung-names li + li {
	margin-top: 2px;
}

.eschool-auszeichnungen-empty {
	padding: 14px 16px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	color: #475569;
}

@media (max-width: 900px) {
	.eschool-auszeichnungen-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.eschool-auszeichnungen-grid {
		grid-template-columns: 1fr;
	}

	.eschool-auszeichnung-card {
		padding: 18px;
	}
}
