/* =========================================================
 * EHC Regensburg – Block-Stile (Frontend + Editor)
 * Gilt für Core-Blöcke und funktioniert neben Spectra-Blöcken.
 * ========================================================= */

/* Einleitung, Überzeile, Kennzahl */
.is-style-ehc-lead { font-size: 20px; line-height: 1.55; font-weight: 500; color: #14305E; }
.is-style-ehc-eyebrow {
	font-family: Manrope, system-ui, sans-serif; font-size: 11px !important; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase; color: #2A5298; line-height: 1.4;
}
.is-style-ehc-fact {
	font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 24px; font-weight: 700;
	line-height: 1.15; color: #14305E; margin-top: 6px !important;
}
.is-style-ehc-eyebrow + * { margin-top: 6px !important; }

/* Abschnitt mit Linie */
h2.is-style-ehc-ruled {
	font-size: 32px; line-height: 1.15; letter-spacing: -.02em;
	padding-bottom: 16px; border-bottom: 2px solid #14305E;
	margin-top: 72px !important; margin-bottom: 28px !important;
}
.entry-content > h2.is-style-ehc-ruled:first-child { margin-top: 0 !important; }

/* Karte */
.wp-block-group.is-style-ehc-card {
	background: #fff; border: 1px solid #E8E6E0; border-radius: 8px; padding: 24px 28px; height: 100%;
}
.wp-block-group.is-style-ehc-card > :first-child { margin-top: 0; }
.wp-block-group.is-style-ehc-card h3 { font-size: 20px; margin: 4px 0 8px; }
.wp-block-group.is-style-ehc-card p { font-size: 15px; }

/* Flächen */
.wp-block-group.is-style-ehc-dark,
.wp-block-group.is-style-ehc-blue {
	position: relative; overflow: hidden; border-radius: 12px; padding: 48px; color: #fff;
	margin-top: 72px !important;
}
.wp-block-group.is-style-ehc-dark { background: #14305E; }
.wp-block-group.is-style-ehc-blue { background: #2A5298; }
.is-style-ehc-dark h2, .is-style-ehc-dark h3, .is-style-ehc-dark p,
.is-style-ehc-blue h2, .is-style-ehc-blue h3, .is-style-ehc-blue p { color: #fff; }
.is-style-ehc-dark h2, .is-style-ehc-blue h2 { font-size: 36px; margin-top: 0; }
.is-style-ehc-dark p, .is-style-ehc-blue p { color: rgba(255, 255, 255, .88); max-width: 560px; }
.is-style-ehc-dark a:not(.wp-block-button__link), .is-style-ehc-blue a:not(.wp-block-button__link) { color: #fff; }
.is-style-ehc-dark .is-style-outline .wp-block-button__link,
.is-style-ehc-blue .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .45); }
.is-style-ehc-dark .is-style-outline .wp-block-button__link:hover,
.is-style-ehc-blue .is-style-outline .wp-block-button__link:hover { border-color: #fff; background: transparent; }
@media (max-width: 768px) {
	.wp-block-group.is-style-ehc-dark, .wp-block-group.is-style-ehc-blue { padding: 32px 24px; }
	.is-style-ehc-dark h2, .is-style-ehc-blue h2 { font-size: 28px; }
}

/* Fakten-Leiste */
.wp-block-columns.is-style-ehc-facts {
	gap: 0 !important; background: #fff; border: 1px solid #E8E6E0; border-radius: 12px; overflow: hidden;
}
.wp-block-columns.is-style-ehc-facts > .wp-block-column { padding: 22px 26px; border-left: 1px solid #E8E6E0; margin: 0 !important; }
.wp-block-columns.is-style-ehc-facts > .wp-block-column:first-child { border-left: 0; }
.wp-block-columns.is-style-ehc-facts p:not(.is-style-ehc-eyebrow):not(.is-style-ehc-fact) { font-size: 13px; margin-top: 2px; }
@media (max-width: 781px) {
	.wp-block-columns.is-style-ehc-facts > .wp-block-column { border-left: 0; border-top: 1px solid #E8E6E0; }
	.wp-block-columns.is-style-ehc-facts > .wp-block-column:first-child { border-top: 0; }
}

/* Bilder */
.wp-block-image.is-style-ehc-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.wp-block-image.is-style-ehc-portrait { margin: 0 0 16px !important; }
/* Logos in Karten: feste Logo-Fläche, damit breite und hohe Logos optisch ähnlich groß wirken */
.wp-block-image.is-style-ehc-logo { margin: 0 0 16px !important; height: 96px; display: flex; align-items: center; }
.wp-block-image.is-style-ehc-logo img { max-height: 96px; max-width: min(220px, 100%); width: auto; height: auto; object-fit: contain; border-radius: 0; }

/* Sprungmarken */
.wp-block-button.is-style-ehc-chip .wp-block-button__link {
	background: #fff; color: #444; border: 1px solid #E8E6E0; border-radius: 4px;
	font-size: 13px; font-weight: 600; padding: 8px 14px;
}
.wp-block-button.is-style-ehc-chip .wp-block-button__link:hover { background: #fff; color: #14305E; border-color: #2A5298; }
.wp-block-buttons:has(.is-style-ehc-chip) { gap: 8px; }

/* Aufklapp-Elemente (FAQ) */
.wp-block-details { border-bottom: 1px solid #E8E6E0; padding: 18px 0; }
.wp-block-details + .wp-block-details { margin-top: 0 !important; }
.wp-block-details summary {
	position: relative; padding-right: 40px; cursor: pointer; list-style: none;
	font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 18px; font-weight: 700; line-height: 1.35; color: #14305E;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
	border-right: 2px solid #2A5298; border-bottom: 2px solid #2A5298;
	transform: translateY(-70%) rotate(45deg); transition: transform 200ms cubic-bezier(.2, .6, .2, 1);
}
.wp-block-details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.wp-block-details > :not(summary) { margin-top: 12px; }
.wp-block-details > p:last-child { margin-bottom: 4px; }

/* Zitat */
.wp-block-quote { border-left: 3px solid #14305E; padding-left: 20px; margin-left: 0; }
.wp-block-quote p { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 600; font-size: 20px; line-height: 1.4; color: #14305E; }
.wp-block-quote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: #444; }

/* Spalten-Abstände */
.entry-content .wp-block-columns { gap: 24px; margin-bottom: 0; }
.wp-block-column > :first-child { margin-top: 0 !important; }
.wp-block-column > :last-child { margin-bottom: 0; }
.wp-block-group.is-style-ehc-card > :last-child { margin-bottom: 0; }
.wp-block-group.is-style-ehc-card .wp-block-list { padding-left: 1.2em; }
.entry-content .wp-block-buttons { gap: 12px; }
.entry-content > .wp-block-columns.is-style-ehc-facts { margin-top: 32px; }
.entry-content > .wp-block-columns.is-style-ehc-facts + .wp-block-buttons { margin-top: 24px; }
[id] { scroll-margin-top: 100px; }
.wp-block-columns + .wp-block-columns { margin-top: 24px !important; }

/* Seiten: Inhalt linksbündig unter dem Titel (wie Mannschaftsseiten) */
.page .entry-content > :not(.alignfull) { margin-left: 0; }

/* Trainerkarten: Bild höchstens ca. 10 % breiter als das Foto einer Spielerkarte (Kader-Raster ab 200 px, Kartenrand 29 px) */
.wp-block-columns.ehc-trainers { gap: 20px; flex-wrap: wrap !important; justify-content: flex-start; }
.wp-block-columns.ehc-trainers > .wp-block-column { flex: 0 0 auto !important; width: min(100%, 300px); }
@media (max-width: 600px) {
	.wp-block-columns.ehc-trainers { gap: 12px; }
	.wp-block-columns.ehc-trainers > .wp-block-column { width: min(100%, calc((100% - 12px) / 2 * 1.1 + 20px)); }
	.wp-block-columns.ehc-trainers .is-style-ehc-card { padding: 10px; }
}
/* Trainerfoto oben ausrichten, damit Stirn und Haare nicht angeschnitten werden */
.wp-block-columns.ehc-trainers .wp-block-image.is-style-ehc-portrait img { object-position: 50% 0; }
