/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ==================================================
   HEADER – Adresse, Telefon und E-Mail
   ================================================== */

.header-contact {
	display: flex;
	flex-direction: column;
	gap: 6px;

	color: var(--theme-palette-color-3);

	font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
	font-style: normal;
}

.header-contact div {
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-contact a {
	color: inherit;
	text-decoration: none;
}

.header-contact a:hover {
	color: var(--theme-palette-color-1);
}

.icon-contact {
	display: inline-block;
	width: 22px;
	flex-shrink: 0;
	text-align: center;

	color: var(--theme-palette-color-6);
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
}

/* =========================================
   HAUPTNAVIGATION – HOVER & AKTIV
   ========================================= */

/* Weicher Übergang */
.ct-menu-link {
    transition: background-color 0.2s ease;
}

/* Hover */
.ct-menu-link:hover {
    background-color: var(--theme-palette-color-7) !important;
}

/* Hover bleibt erhalten, wenn das Dropdown geöffnet ist */
.menu-item:hover > .ct-menu-link,
.menu-item:focus-within > .ct-menu-link {
    background-color: var(--theme-palette-color-7) !important;
}

/* Aktuelle Seite */
.ct-menu-link[aria-current="page"] {
    background-color: var(--theme-palette-color-5) !important;
}

/* Übergeordneter aktiver Menüpunkt */
.current-menu-item > .ct-menu-link,
.current-menu-parent > .ct-menu-link,
.current-menu-ancestor > .ct-menu-link,
.current_page_item > .ct-menu-link,
.current_page_parent > .ct-menu-link,
.current_page_ancestor > .ct-menu-link {
    background-color: var(--theme-palette-color-5) !important;
}

/* ==================================================
   BEGRÜSSUNG
   ================================================== */

.hero-welcome {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	gap: 6px;
	margin: 0;

	text-align: center;
	letter-spacing: 0.025em;
}

/* Erste Zeile */
.hero-welcome-static {
	display: block;
	width: fit-content;
	color: var(--theme-palette-color-3);
}

/* Zweite, animierte Zeile */
.hero-welcome-typed {
	display: block;
	width: 41ch;

	color: var(--theme-palette-color-3);
	white-space: nowrap;
	text-align: left;
}

/* Anfangsbuchstaben des Schulnamens */
.school-initial {
	color: var(--theme-palette-color-1);
	font-weight: 700;
}

/* Aufrufezeichen */
.school-exclamation {
	color: var(--theme-palette-color-6);
	font-weight: 700;
}

/* Schreibmaschinen-Text */
.typed-text {
	position: relative;
	display: inline-block;
	overflow: hidden;

	width: 0;
	white-space: nowrap;
	text-align: left;
	vertical-align: bottom;

	animation: typing 4.5s steps(42, end) 0.7s forwards;
}

/* Blinkender Cursor */
.typing-caret {
	position: absolute;
	right: 0;
	top: 0.08em;

	width: 3px;
	height: 0.95em;

	background: var(--theme-palette-color-6);
	border-radius: 2px;

	animation:
		caret-blink 0.8s step-end 6,
		caret-hide 0.01s linear 5.2s forwards;
}

@keyframes typing {
	from {
		width: 0;
	}

	to {
		width: 41ch;
	}
}

@keyframes caret-blink {
	50% {
		opacity: 0;
	}
}

@keyframes caret-hide {
	to {
		opacity: 0;
	}
}

/* Keine Animation bei reduzierter Bewegung */
@media (prefers-reduced-motion: reduce) {
	.typed-text {
		width: auto;
		animation: none;
	}

	.typing-caret {
		display: none;
		animation: none;
	}
}

/* Auf Desktop */
.mobile-an-der {
    display: none;
}

.desktop-an-der {
    display: inline;
}


/* Begrüßung – Mobile */
@media (max-width: 767px) {
    .hero-welcome {
        font-size: clamp(18px, 5vw, 22px);
        line-height: 1.25;
        gap: 4px;
        padding-inline: 2px;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-welcome-static {
        margin-inline: auto;
        text-align: center;
    }

    .hero-welcome-typed {
        width: 33ch;
        max-width: 100%;
        margin-inline: auto;
        text-align: left;
    }

    .mobile-an-der {
        display: inline;
    }

    .desktop-an-der {
        display: none;
    }

    .typed-text {
        animation: typing-mobile 4.5s steps(35, end) 0.7s forwards;
    }
}

@keyframes typing-mobile {
    from {
        width: 0;
    }

    to {
        width: 34ch;
    }
}

/* ==================================================
   KALENDER
   ================================================== */

.school-calendar {
	background: var(--theme-palette-color-8);
	border: 1px solid var(--theme-palette-color-7);
	border-radius: 12px;
	overflow: hidden;
}

.school-calendar iframe {
	display: block;
	width: 100%;
	height: 900px;
	border: 0;
}


/* ==================================================
   TEXTLINKS
   ================================================== */

.text-link,
.text-link * {
	color: var(--theme-palette-color-2);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;

	transition: color 0.25s ease;
}


/* ==================================================
   SCHNELLZUGRIFF
   ================================================== */

.quick-card {
	background: var(--theme-palette-color-8);
	border: 1px solid var(--theme-palette-color-7);
	border-radius: 12px;

	cursor: pointer;
	text-decoration: none;

	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

/* SVG normal */
.quick-card .quick-icon svg,
.quick-card .quick-icon svg * {
	stroke: var(--theme-palette-color-6) !important;
	transition: stroke 0.25s ease;
}

/* Ganze Karte bei Hover */
.quick-card:hover {
	background: var(--theme-palette-color-5);
	border-color: var(--theme-palette-color-4);
	transform: translateY(-2px);
	text-decoration: none;
}

/* SVG bei Hover */
.quick-card:hover .quick-icon svg,
.quick-card:hover .quick-icon svg * {
	stroke: var(--theme-palette-color-1) !important;
}

.quick-card:hover .text-link,
.quick-card:hover .text-link * {
	color: var(--theme-palette-color-1) !important;
}

/* Tastatur-Navigation */
.quick-card:focus-visible {
	outline: 3px solid var(--theme-palette-color-1);
	outline-offset: 3px;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 767px) {

	.hero-welcome {
		gap: 4px;
		letter-spacing: 0.015em;
	}

	.school-calendar iframe {
		height: 600px;
	}
}

/* ==================================================
   SEITENTITEL
   Elementor + Blocksy Archive-Titel
   ================================================== */

.school-page-title,
.school-page-title h1 {
	display: inline-block;

	font-size: clamp(28px, 2.5vw, 33px) !important;
	font-weight: 500 !important;
	line-height: 1.1 !important;

	letter-spacing: 0.13em !important;
	text-transform: none !important;

	text-shadow: none;
	-webkit-text-stroke: 0;
}

.school-page-title {
	margin: 0 0 18px;
}

.school-page-title,
.school-page-title *,
.school-page-title h1 {
	color: var(--theme-palette-color-3) !important;
}

/* Wenn die Klasse direkt am H1 steht */
.school-page-title::first-letter,

/* Wenn Blocksy den H1 innerhalb des Containers erzeugt */
.school-page-title h1::first-letter {
	color: var(--theme-palette-color-6) !important;
	font-size: 1.05em;
	font-weight: 500;
}

/* ==================================================
   SEITEN – ABSCHNITTSÜBERSCHRIFTEN - H2
   ================================================== */

.school-section-title {
    margin-top: 30px;
    margin-bottom: 12px;

    color: var(--theme-palette-color-3) !important;

    font-size: 23px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}

/* ==================================================
   SEITEN – FLIESSTEXT
   ================================================== */

.school-text {
    text-align: justify;

    -webkit-hyphens: auto;
    hyphens: auto;

    line-height: 1.7;
}

/* ==================================================
   KONTAKT
   ================================================== */

.contact-card {
	width: fit-content !important;
	max-width: 100%;

	margin-left: auto;
	margin-right: auto;

	background: var(--theme-palette-color-8);

	border: 2px solid var(--theme-palette-color-4);
	border-radius: 12px;

	padding: 30px;
	box-sizing: border-box;
}

.contact-item {
	display: grid;
	grid-template-columns: 105px 1fr;
	gap: 18px;

	padding: 10px 0;

	border-bottom: 1px solid var(--theme-palette-color-4);
}

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

.contact-label {
	color: var(--theme-palette-color-2);
}

.contact-item a {
	color: inherit;
	text-decoration: none;
}

.contact-item a:hover {
	color: var(--theme-palette-color-1);
}


/* ==================================================
   BANKVERBINDUNGEN
   ================================================== */

.bank-card {
	background: var(--theme-palette-color-8);

	border: 2px solid var(--theme-palette-color-4);
	border-radius: 12px;

	padding: 28px;
	box-sizing: border-box;
}

.bank-card h3 {
	margin-top: 0;
}

.bank-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--theme-palette-color-4);
}

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

.bank-label {
	color: var(--theme-palette-color-2);
	margin-bottom: 3px;
}

.bank-value {
	overflow-wrap: anywhere;
}


/* ==================================================
   AKTUELLES – SEKTION
   ================================================== */

.aktuelles-section {
	background: var(--theme-palette-color-7);
	padding: 40px 0;
}


/* ==================================================
   AKTUELLES – TABS
   Ruhige Navigation statt Buttons
   ================================================== */

.aktuelles-tabs .e-n-tabs-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;

	gap: 28px;
	margin-bottom: 26px;

	border-bottom: 1px solid var(--theme-palette-color-4);
}

.aktuelles-tabs .e-n-tab-title {
	position: relative;

	flex: 0 0 auto;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 8px 2px 11px !important;

	/* Typografie ähnlich der Hauptnavigation */
	font-family: inherit !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	line-height: 1.2;
	letter-spacing: 0.02em;

	color: var(--theme-palette-color-3) !important;

	/* kein Button-Look */
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;

	cursor: pointer;

	transition: color .25s ease;
}

/* Elementor-Inhalte innerhalb des Tab-Titels */
.aktuelles-tabs .e-n-tab-title * {
	color: inherit !important;
	background: transparent !important;
	font: inherit;
}

/* Hover */
.aktuelles-tabs .e-n-tab-title:hover {
	color: var(--theme-palette-color-1) !important;
	background: transparent !important;
}

/* Aktiver Tab */
.aktuelles-tabs .e-n-tab-title[aria-selected="true"] {
    color: var(--theme-palette-color-1) !important;
    background: transparent !important;
}

/* grüne Linie des aktiven Tabs */
.aktuelles-tabs .e-n-tab-title[aria-selected="true"]::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 2px;

    background: var(--theme-palette-color-1);
}

/*Smartphone*/
@media (max-width: 767px) {
    .aktuelles-tabs .e-n-tabs-heading {
        gap: 20px;
    }

    .aktuelles-tabs .e-n-tab-title {
        font-size: 17px !important;
    }

}


/* ==================================================
   AKTUELLES – BEITRAGSLISTE
   ================================================== */

.aktuelles-list .eael-grid-post {
	width: 100% !important;
	margin-bottom: 20px;
}

/* EA-eigenen äußeren Kartenstil neutralisieren */

.aktuelles-list .eael-grid-post-holder {
	width: 100% !important;

	background: transparent !important;
	border: none !important;
}

/* Eigentliche Karte */

.aktuelles-list .eael-grid-post-holder-inner {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch !important;

	width: 100% !important;
	box-sizing: border-box;

	background: var(--theme-palette-color-8);

	border: 1px solid var(--theme-palette-color-4);
	border-radius: 12px;

	overflow: hidden;

	transition: transform .25s ease;
}

/* Nur leichtes Anheben – keine dunklere Rahmenfarbe */

.aktuelles-list .eael-grid-post-holder-inner:hover {
	transform: translateY(-2px);
}


/* ==================================================
   AKTUELLES – BILD
   ================================================== */

.aktuelles-list .eael-entry-media {
	order: 1;

	flex: 0 0 220px !important;
	width: 220px !important;

	margin: 0 !important;
}

.aktuelles-list .eael-entry-media img {
	display: block;

	width: 100% !important;
	height: 100% !important;
	min-height: 180px;

	object-fit: cover;
}


/* ==================================================
   AKTUELLES – INHALT
   ================================================== */

.aktuelles-list .eael-entry-wrapper {
	order: 2;

	display: flex;
	flex-direction: column;

	flex: 1 1 auto !important;
	min-width: 0;
	width: auto !important;

	padding: 22px 26px;
}


/* Kategorie / Metadaten oben */

.aktuelles-list .eael-entry-meta {
	order: 1;

	margin-bottom: 6px;

	color: var(--theme-palette-color-3);
}

.aktuelles-list .eael-entry-meta a {
	color: var(--theme-palette-color-6) !important;
	text-decoration: none;
}

.aktuelles-list .eael-entry-meta a:hover {
	color: var(--theme-palette-color-1) !important;
}


/* Titel */

.aktuelles-list .eael-entry-title {
	order: 2;
}

.aktuelles-list .eael-entry-title,
.aktuelles-list .eael-entry-title a {
	color: var(--theme-palette-color-2) !important;
}

.aktuelles-list .eael-entry-title a:hover {
	color: var(--theme-palette-color-1) !important;
}


/* Text */

.aktuelles-list .eael-entry-content {
	order: 3;
}


/* ==================================================
   AKTUELLES – WEITERLESEN
   gleiche Logik wie auf der News-Seite
   ================================================== */

.aktuelles-list .eael-post-elements-readmore-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	width: fit-content;

	margin-top: 12px;
	padding: 7px 13px;

	background: var(--theme-palette-color-4);
	color: var(--theme-palette-color-3) !important;

	border-radius: 7px;

	font-weight: 500;
	text-decoration: none;

	transition:
		background-color .25s ease,
		color .25s ease;
}

.aktuelles-list .eael-post-elements-readmore-btn::after {
	content: "→";
}

.aktuelles-list .eael-post-elements-readmore-btn:hover {
	background: var(--theme-palette-color-1);
	color: var(--theme-palette-color-8) !important;
}


/* ==================================================
   AKTUELLES – LINK ZUR NEWS-SEITE
   ================================================== */

.aktuelles-all-link {
	width: 100%;
	margin-top: 10px;

	text-align: center;

	border-bottom: 1px solid var(--theme-palette-color-4);
}

.aktuelles-all-link a {
	position: relative;
	display: inline-block;

	padding: 0 2px 10px;

	text-decoration: none !important;
}

/* grüner Abschnitt auf der hellen Linie */
.aktuelles-all-link a::after {
	content: "";
	position: absolute;

	left: 0;
	right: 0;
	bottom: -1px;

	height: 2px;

	background: var(--theme-palette-color-1);
}


/* ==================================================
   TABLET
   ================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

	.aktuelles-list .eael-entry-media {
		flex-basis: 190px !important;
		width: 190px !important;
	}
}


/* ==================================================
   SMARTPHONE
   ================================================== */

@media (max-width: 767px) {

	/* Tabs */

	.aktuelles-tabs .e-n-tabs-heading {
		gap: 20px;
	}

	.aktuelles-tabs .e-n-tab-title {
		flex: 0 0 auto;
	}


	/* Beiträge */

	.aktuelles-list .eael-grid-post-holder-inner {
		flex-direction: column !important;
	}

	.aktuelles-list .eael-entry-media {
		flex: none !important;
		width: 100% !important;
	}

	.aktuelles-list .eael-entry-media img {
		width: 100% !important;
		height: 210px !important;
		min-height: 0;
	}

	.aktuelles-list .eael-entry-wrapper {
		width: 100% !important;
		padding: 20px;
	}


	/* Link zur News-Seite */

	.aktuelles-all-link {
		margin-top: 6px;
		margin-left: 0;
		margin-right: 0;
	}
}


/* ==================================================
   EINZELBEITRAG – ZURÜCK OBEN
   ================================================== */

/* Navigationspfad und Zurück als ein Navigationsblock */
.single-post .ct-breadcrumbs {
    margin-bottom: 0 !important;
}

.single-post .news-back-top {
    margin-top: 0 !important;
}

.news-back-top {
	display: flex;

	width: 100%;
	flex: 0 0 100%;
	grid-column: 1 / -1;

	align-items: center;
	gap: 5px;

	margin: 0 0 12px;

	color: var(--theme-palette-color-3);
	text-decoration: none !important;

	/* gleiche Typografie wie Navigationspfad */
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;

	cursor: pointer;
}

/* Nur das Wort "Zurück" */
.news-back-top span:last-child {
	text-decoration-line: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--theme-palette-color-4);
	text-underline-offset: 4px;

	transition: text-decoration-color .2s ease;
}

/* Hover: nur Farbwechsel */
.news-back-top:hover {
	color: var(--theme-palette-color-1);
}

.news-back-top:hover span:last-child {
	text-decoration-color: var(--theme-palette-color-1);
}

.news-back-area-bottom {
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--theme-palette-color-4);
}

.news-back-bottom {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	width: fit-content;

	padding: 7px 13px;

	background: var(--theme-palette-color-4);
	color: var(--theme-palette-color-3);

	border-radius: 7px;

	font-weight: 500;
	text-decoration: none;

	cursor: pointer;

	transition:
		background-color .25s ease,
		color .25s ease;
}

.news-back-bottom:hover {
	background: var(--theme-palette-color-1);
	color: var(--theme-palette-color-8);
}

/* ==================================================
   NEWS + KATEGORIEN – PAGINATION
   ================================================== */


/* Blocksy-Standardpagination ausblenden */

body.blog .ct-pagination,
body.category .ct-pagination,
body.date .ct-pagination {
    display: none !important;
}


/* ==================================================
   BEREICHE
   ================================================== */

.school-news-nav {
    width: 100%;
    grid-column: 1 / -1;

    display: flex;
    justify-content: center;

    box-sizing: border-box;
}


/* Oben */

.school-news-nav--top {
    margin-bottom: 30px;
    padding-bottom: 20px;

    border-bottom: 1px solid var(--theme-palette-color-4);
}


/* Unten */

.school-news-nav--bottom {
    margin-top: 34px;
    padding-top: 20px;

    border-top: 1px solid var(--theme-palette-color-4);
}


/* ==================================================
   PAGINATION
   ================================================== */

.school-page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}


/* ---------- Zahlen-Gruppe ---------- */

.school-page-nav__numbers {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;
}


/* ==================================================
   GEMEINSAMES BUTTON-DESIGN
   ================================================== */

.school-page-nav__edge,
.school-page-nav .page-numbers:not(.dots) {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: var(--theme-palette-color-8);
    color: var(--theme-palette-color-3);

    border: 1px solid var(--theme-palette-color-4);
    border-radius: 7px;

    text-decoration: none !important;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}


/* ---------- Seitenzahlen: quadratisch ---------- */

.school-page-nav .page-numbers:not(.dots) {
    width: 34px;
    height: 34px;

    min-width: 34px;
    min-height: 34px;

    padding: 0;
}


/* ---------- Anfang / Vorherige / Nächste / Ende ---------- */

.school-page-nav__edge {
    min-height: 34px;

    padding: 0 11px;

    white-space: nowrap;
}


/* ==================================================
   HOVER
   ================================================== */

.school-page-nav a.school-page-nav__edge:hover,
.school-page-nav a.page-numbers:hover {
    background: var(--theme-palette-color-1);
    color: var(--theme-palette-color-8);

    border-color: var(--theme-palette-color-1);
}


/* ==================================================
   AKTUELLE SEITE
   ================================================== */

.school-page-nav .page-numbers.current {
    background: var(--theme-palette-color-1);
    color: var(--theme-palette-color-8);

    border-color: var(--theme-palette-color-1);

    font-weight: 600;
}


/* ==================================================
   AUSLASSUNGSPUNKTE
   ================================================== */

.school-page-nav .page-numbers.dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    height: 34px;

    min-width: 0;
    min-height: 34px;

    padding: 0 3px;

    background: transparent;
    color: var(--theme-palette-color-3);

    border: none;
}


/* ==================================================
   NICHT VERFÜGBARE NAVIGATION
   ================================================== */

.school-page-nav .is-disabled {
    background: var(--theme-palette-color-8);
    color: var(--theme-palette-color-4);

    border-color: var(--theme-palette-color-4);

    cursor: default;
}


/* ==================================================
   ZURÜCK ZU NEWS
   ================================================== */

.school-category-back-row {
    width: 100%;

    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid var(--theme-palette-color-4);
}


.school-category-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 13px;

    background: var(--theme-palette-color-4);
    color: var(--theme-palette-color-3);

    border-radius: 7px;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none !important;

    transition:
        background-color .2s ease,
        color .2s ease;
}


.school-category-back:hover {
    background: var(--theme-palette-color-1);
    color: var(--theme-palette-color-8);
}


/* ==================================================
   SMARTPHONE
   ================================================== */

@media (max-width: 767px) {

    .school-page-nav {
        gap: 9px;
    }

    .school-page-nav__numbers {
        gap: 7px;
    }

    /* Zahlen etwas kompakter */
    .school-page-nav .page-numbers:not(.dots) {
        width: 32px;
        height: 32px;

        min-width: 32px;
        min-height: 32px;
    }

    /* Textbuttons */
    .school-page-nav__edge {
        min-height: 32px;
        padding: 0 9px;
    }

    .school-page-nav .page-numbers.dots {
        height: 32px;
        min-height: 32px;
    }

    .school-category-back-row {
        text-align: center;
    }
}

/* ==================================================
   EINZELBEITRAG – INHALT
   ================================================== */

/* Lesebreite */
.single-post .entry-content {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;

    font-size: 18px;
    line-height: 1.75;
    color: var(--theme-palette-color-3);
}


/* Fließtext */
.single-post .entry-content p {
    margin-bottom: 1.15em;

    text-align: justify;

    -webkit-hyphens: auto;
    hyphens: auto;
}


/* Überschriften im Beitrag */
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    color: var(--theme-palette-color-2);
    text-align: left;
}


/* Listen nicht im Blocksatz */
.single-post .entry-content ul,
.single-post .entry-content ol {
    text-align: left;
}


/* ==================================================
   EINZELBEITRAG – BILDER
   ================================================== */

.single-post .entry-content figure.wp-block-image {
    max-width: 900px;

    margin-left: auto;
    margin-right: auto;
}


.single-post .entry-content figure.wp-block-image img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin-left: auto;
    margin-right: auto;
}

.single-post .entry-content figure.wp-block-image img,
.single-post .ct-featured-image img {
    border-radius: 10px;
}

/* Bildunterschriften */

.single-post .entry-content figcaption {
    margin-top: 8px;

    color: var(--theme-palette-color-3);

    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    font-style: italic;

    text-align: center;
}


/* ==================================================
   EINZELBEITRAG – SMARTPHONE
   ================================================== */

@media (max-width: 767px) {

    .single-post .entry-content {
        max-width: 100%;

        font-size: 17px;
        line-height: 1.7;
    }

    .single-post .entry-content p {
        text-align: left;
        hyphens: auto;
    }
}

/* ==================================================
   NEWS + KATEGORIEN – SEITENLEISTE AUSRICHTEN
   ================================================== */

@media (min-width: 1000px) {

    body.blog #sidebar,
    body.category #sidebar,
    body.date #sidebar {
        margin-top: 225px;
    }

}

/* ==================================================
   SEITENLEISTE – ÜBERSCHRIFTEN
   ================================================== */

#sidebar h4.wp-block-heading {
    margin: 0 0 0px;

    color: var(--theme-palette-color-3) !important;

    font-weight: 500 !important;
}

/* Erster Buchstabe */

#sidebar h4.wp-block-heading::first-letter {
    color: var(--theme-palette-color-6) !important;
}


/* ==================================================
   SEITENLEISTE – KATEGORIENLISTE
   ================================================== */

#sidebar .wp-block-categories-list {
    margin: 0;
    padding: 0;

    list-style: none;
}


/* Einzelne Kategorien */

#sidebar .wp-block-categories-list li {
    margin: 0 0 8px;
    padding: 0;

    font-size: 15px;
    line-height: 1.5;
}


/* Links */

#sidebar .wp-block-categories-list a {
    color: var(--theme-palette-color-3);

    font-weight: 400;
    text-decoration: none;

    transition: color .2s ease;
}


/* Hover */

#sidebar .wp-block-categories-list a:hover {
    color: var(--theme-palette-color-1);
}


/* Aktuelle Kategorie */

#sidebar .wp-block-categories-list .current-cat > a {
    color: var(--theme-palette-color-1);

    font-weight: 600;
}

#sidebar .wp-block-categories-list li:last-child {
    margin-bottom: 0;
}

/* ==================================================
   SEITENLEISTE – ARCHIV
   ================================================== */

#sidebar .wp-block-archives-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

#sidebar .wp-block-archives-list li {
    margin: 0 0 8px;
    padding: 0;

    font-size: 15px;
    line-height: 1.5;
}

#sidebar .wp-block-archives-list a {
    color: var(--theme-palette-color-3);

    font-weight: 400;
    text-decoration: none;

    transition: color .2s ease;
}

#sidebar .wp-block-archives-list a:hover {
    color: var(--theme-palette-color-1);
}

#sidebar .wp-block-archives-list li:last-child {
    margin-bottom: 0;
}


/* ==================================================
   FOOTER – RECHTLICHES
   ================================================== */

.footer-rechtliches {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact, .footer-rechtliches h4 {
    margin: 0 0 6px;

    color: var(--theme-palette-color-2);
    font-weight: 500;
}

.footer-contact, .footer-rechtliches h4::first-letter {
    color: var(--theme-palette-color-6);
}

.footer-rechtliches a {
    color: var(--theme-palette-color-3);
    text-decoration: none;

    transition: color .2s ease;
}

.footer-rechtliches a:hover {
    color: var(--theme-palette-color-1);
}

/* Footer - Kontakt*/
.footer-contact {
    color: var(--theme-palette-color-3);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact p {
    margin: 0 0 5px;
}

.footer-contact a {
    color: var(--theme-palette-color-3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--theme-palette-color-1);
}

/* =========================================
   STARTSEITE – BILDER-SLIDER
   ========================================= */

.school-slider .swiper-slide-image {
    display: block;
    width: 100%;
    aspect-ratio: 12 / 5;
    object-fit: cover;
    border-radius: 12px;
}

/* Slider sauber begrenzen */
.school-slider .elementor-image-carousel-wrapper {
    border-radius: 12px;
}