/* SCD Theme – Ergänzungen zu den übernommenen Oxygen-Regeln (assets/oxygen/). */

/* Oxygen hat die Hilfsklasse für Bildschirmleser selbst mitgebracht */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Von Oxygen direkt in die Seite geschrieben (Code-Block 559 der Seitenleiste) */
#code_block-554-2496 iframe {
	max-width: 100%;
	text-align: center;
	width: 100%;
}


/* Große Partner-Logos (Seitenleiste). Die bisherigen haben eigene Regeln über ihre Oxygen-ID (sidebar-2496.css). */
.sidebar-sponsor-image.scd-logo-gross:not([id]) {
	width: auto;
	max-height: 150px;
}
@media (max-width: 1200px) {
	.sidebar-sponsor-image.scd-logo-gross:not([id]) { max-height: 110px; }
}
@media (max-width: 767px) {
	.sidebar-sponsor-image.scd-logo-gross:not([id]) { max-height: 120px; }
}
/* Carl und Carla stand bisher ohne die 75-px-Grenze da (feste Höhe 100 px über die ID) */
#image-580-2496 { max-height: none; }

/* Fehlerbehebungen gegenüber dem bisherigen Aussehen (29.10.2026) */

/* Handy-Menü: oben unter dem Logo beginnen statt senkrecht zentriert – sonst rutscht ein langes (aufgeklapptes)
   Menü auf kleinen Bildschirmen unter Logo und Schließen-Kreuz bzw. steht in hohen Fenstern weit unten */
#header-navbar-menu .oxy-pro-menu-container.oxy-pro-menu-off-canvas-container {
	align-items: flex-start;
	padding-top: 90px;
	padding-bottom: 30px;
}

/* Lange Links/Wörter im Beitragstext umbrechen – sonst wird die ganze Seite auf dem Handy breiter als der Bildschirm */
#post-content {
	overflow-wrap: anywhere;
}

/* Brotkrumen überall gleich: Termine (Plugin „SCD Termine“) hatten einen eigenen Kasten mit kleiner Schrift; Links in
   Vereinsblau statt Browser-Blau/-Lila */
.scd-brotkrumen {
	margin: 10px 0 20px;
	padding: 0;
	border: 0;
	font-size: 16px;
}
.rank-math-breadcrumb a,
.rank-math-breadcrumb a:visited {
	color: #043883;
}

/* Knöpfe im Seiteninhalt (z. B. Trainingszeiten, Clubrangliste) nicht direkt an Überschrift/Text kleben */
.wp-block-buttons {
	margin-top: 1em;
	margin-bottom: 1.5em;
}

/* „Letzter/Nächster Beitrag“: lange Titel umbrechen; auf dem Handy untereinander statt überlappend */
#div_block-549-1580,
#div_block-550-1580 {
	overflow-wrap: anywhere;
}
@media (max-width: 767px) {
	#new_columns-548-1580 {
		flex-direction: column;
	}
	#div_block-549-1580,
	#div_block-550-1580 {
		width: 100%;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	/* Seitenleiste auf dem Handy: Videos mittig wie die Partner-Logos */
	#div_block-32-1573 .scd-yt,
	#div_block-32-1573 iframe {
		margin-left: auto;
		margin-right: auto;
	}
}

/* Seitenleiste als Block-Bereich (Design → Widgets): Bausteine sehen aus wie die bisherigen Oxygen-Elemente */
.scd-seitenleiste-bloecke {
	width: 100%;
}
.scd-seitenleiste-bloecke .scd-baustein {
	width: 100%;
}
.scd-seitenleiste-bloecke .wp-block-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 10px;
}
.scd-seitenleiste-bloecke .wp-block-button {
	width: 100%;
	margin: 0;
}
.scd-seitenleiste-bloecke .wp-block-button__link {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 120px;
	padding: 30px 0 0;
	border-radius: 15px;
	background-color: #279953;
	color: #ffffff;
	font-family: 'Nunito';
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
	transition: all 0.25s ease;
}
.scd-seitenleiste-bloecke .wp-block-button__link:hover {
	background-image: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .15));
	color: #ffffff;
}
@media (max-width: 991px) {
	.scd-seitenleiste-bloecke .wp-block-button__link { font-size: 1.3rem; }
}
@media (max-width: 767px) {
	/* auf dem Handy stehen die Knöpfe oben unter dem Menü */
	.scd-seitenleiste-bloecke .wp-block-buttons { display: none; }
}
.scd-seitenleiste-bloecke .wp-block-embed {
	margin: 0;
}
/* Videos wie bisher höchstens 270 px breit, mittig (das Vorschaubild bringt sonst die Breite von YouTube mit) */
.scd-seitenleiste-bloecke .scd-yt {
	max-width: 270px !important;
	margin: 0 auto 12px;
}
.scd-seitenleiste-bloecke .scd-baustein__titel,
.scd-seitenleiste-bloecke h2.wp-block-heading {
	margin: 10px 0 0;
	color: #043883;
	font-family: 'Nunito';
	font-size: 24px;
	font-weight: 600;
}
.scd-seitenleiste-bloecke p {
	margin: 0 0 12px;
}
