/*
Theme Name: SC Hochvogel (Astra)
Theme URI: https://sc-hochvogel.de
Description: Child-Theme für Astra. Richtet beim ersten Aktivieren Farben, Schriften, Header, Footer und Menüs für den SC Hochvogel e.V. München ein. Danach ist alles ganz normal im Customizer (Design → Customizer) und im Block-Editor bearbeitbar.
Author: Dennis Palau-Gatell / amiro-ai.de
Template: astra
Version: 2.1.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sc-hochvogel-astra
*/

/* ============ Grundlagen ============ */
.sch-placeholder { border-left: 4px solid var(--ast-global-color-1); background: var(--ast-global-color-5); padding: .75em 1em; font-size: .95rem; }
.entry-content p a { text-underline-offset: 3px; }
.entry-content p.has-large-font-size { font-size: 1.25rem !important; line-height: 1.55; }

/* ============ Header (Top-Bar + Hauptleiste, mitlaufend) ============ */
.site-header { position: sticky; top: 0; z-index: 999; }
.admin-bar .site-header { top: 32px; }
.ast-above-header-bar { font-size: .82rem; letter-spacing: .02em; }
.ast-above-header-bar p { margin: 0; }
.ast-primary-header-bar { border-bottom: 3px solid var(--ast-global-color-1); box-shadow: 0 2px 10px rgba(18,48,74,.08); }
.main-header-menu > .menu-item > .menu-link { text-transform: uppercase; font-weight: 700; font-size: .86rem; letter-spacing: .05em; color: var(--ast-global-color-2); }
.main-header-menu > .menu-item:hover > .menu-link,
.main-header-menu > .menu-item.current-menu-item > .menu-link,
.main-header-menu > .menu-item.current-menu-ancestor > .menu-link { color: var(--ast-global-color-1); }
.main-header-menu .sub-menu { border-top: 3px solid var(--ast-global-color-1) !important; min-width: 250px; box-shadow: 0 10px 30px rgba(18,48,74,.15); }
.main-header-menu .sub-menu .menu-link { font-size: .92rem; padding-top: .7em; padding-bottom: .7em; }
.site-title { font-weight: 800; letter-spacing: -.01em; }

/* ============ Startseite ============ */
.ast-page-builder-template .entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.ast-page-builder-template .site-content > .ast-container { padding: 0; }
.entry-content .is-layout-constrained > .alignwide { max-width: 1140px; margin-left: auto; margin-right: auto; }
.entry-content .wp-block-group.sch-section { padding: 64px 24px; }
.entry-content .sch-inner > * + * { margin-top: 1.2rem; }

/* Banner */
.entry-content .sch-banner { min-height: clamp(220px, 34vw, 460px) !important; }

/* Willkommen – linksbündig wie eine klassische Vereinsseite */
.entry-content .sch-welcome { padding-bottom: 24px !important; }
.sch-welcome-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; margin-bottom: .4em; }
.sch-lead { font-size: 1.15rem; max-width: 760px; }

/* Abschnitts-Überschrift mit roter Linie */
.sch-section-title { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .04em; margin: 0; padding-bottom: .45em; position: relative; }
.sch-section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--ast-global-color-1); }
.sch-section-head { margin-bottom: 1.6rem; }
.sch-more { margin: 0; font-weight: 700; font-size: .95rem; }
.sch-more a { text-decoration: none; }

/* News-Liste */
.sch-newslist .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.sch-newslist .wp-block-post { padding: 1.4rem 0; border-bottom: 1px solid var(--ast-global-color-7); margin: 0 !important; }
.sch-newslist .wp-block-post:first-child { padding-top: 0; }
.sch-newsitem { margin: 0 !important; gap: 1.6rem; }
.sch-newsthumb:empty, .sch-newsthumb:not(:has(img)) { display: none; }
.sch-newsthumb img { border-radius: 4px; }
.entry-content .sch-newslist h3.wp-block-post-title { font-size: 1.3rem !important; margin: .2em 0 .35em; line-height: 1.3; }
.sch-newslist .wp-block-post-title a { text-decoration: none; color: var(--ast-global-color-2); }
.sch-newslist .wp-block-post-title a:hover { color: var(--ast-global-color-1); }
.sch-newslist .wp-block-post-excerpt__more-link { font-weight: 700; text-decoration: none; }

/* Text + Video */
.sch-2col { gap: 2.5rem; align-items: flex-start; }
.sch-video-ph { aspect-ratio: 16/9; background: var(--ast-global-color-2); color: #fff; border-radius: 4px; gap: .3rem; }
.sch-video-ph p { margin: 0; color: #fff; }
.sch-video-ph p:first-child { font-size: 2.6rem; line-height: 1; }

/* Terminkalender */
.sch-month { margin: 1.8rem 0 .6rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ast-global-color-1); font-size: .95rem; border-bottom: 2px solid var(--ast-global-color-7); padding-bottom: .35rem; }
.sch-month:first-child, .sch-section-head + .sch-month { margin-top: 0 !important; }
.entry-content .sch-event { gap: 1.2rem; padding: .9rem 0; border-bottom: 1px solid var(--ast-global-color-7); margin: 0 !important; }
.sch-date { flex: 0 0 64px; width: 64px; height: 64px; background: var(--ast-global-color-2); color: #fff; border-radius: 4px; gap: 0 !important; text-align: center; }
.sch-date p { margin: 0 !important; color: #fff; line-height: 1.1; }
.sch-date-wd { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.sch-date-day { font-size: 1.6rem; font-weight: 800; }
.sch-event-body { gap: .15rem !important; }
.sch-event-body p { margin: 0 !important; }
.sch-event-title { font-size: 1.05rem; color: var(--ast-global-color-2); }
.sch-event-meta { font-size: .9rem; color: var(--ast-global-color-8); margin: 0; }
.sch-tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--ast-global-color-5); color: var(--ast-global-color-0); padding: .15em .6em; border-radius: 3px; margin-top: .3rem !important; }

/* Galerie-Platzhalter */
.sch-gallery-ph { gap: .6rem; margin: .8rem 0 1rem !important; }
.sch-tile { aspect-ratio: 4/3; background: var(--ast-global-color-7); border-radius: 3px; }
.sch-tile p { margin: 0; font-size: 1.4rem; opacity: .5; }
.sch-section h3 { margin-top: 1.6rem; }
.sch-section .sch-section-head + h3 { margin-top: 0; }

/* Buttons im Inhalt */
.entry-content .wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid var(--ast-global-color-2) !important; color: var(--ast-global-color-2) !important; background: transparent !important; }
.entry-content .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ast-global-color-2) !important; color: #fff !important; }

/* Unterseiten: Titel mit roter Linie */
.page:not(.ast-page-builder-template) .entry-title { text-transform: uppercase; letter-spacing: .03em; position: relative; padding-bottom: .4em; }
.page:not(.ast-page-builder-template) .entry-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--ast-global-color-1); }
.wp-block-details { border-bottom: 1px solid var(--ast-global-color-7); padding: .8em 0; }
.wp-block-details summary { font-weight: 700; color: var(--ast-global-color-2); cursor: pointer; }

/* ============ Footer ============ */
.site-primary-footer-wrap a, .site-below-footer-wrap a { color: #fff; text-decoration: none; }
.site-primary-footer-wrap a:hover, .site-below-footer-wrap a:hover { color: var(--ast-global-color-7); text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .7em; }
.site-footer .footer-nav-wrap .menu-link { color: #fff; }
.site-footer .ast-builder-social-element svg { fill: #fff !important; width: 22px; height: 22px; }
.site-primary-footer-wrap { border-top: 4px solid var(--ast-global-color-1); }

/* ============ Mobil ============ */
@media (max-width: 921px) {
	.site-branding, .ast-site-identity, .ast-site-title-wrap { max-width: none !important; flex: 1 1 auto; }
	.site-title, .site-title a { font-size: 1.1rem !important; white-space: nowrap; }
	.entry-content .wp-block-group.sch-section { padding: 44px 18px; }
	.sch-newsthumb { flex-basis: 100% !important; }
}

/* Feinschliff */
.entry-content .sch-date { justify-content: center !important; align-items: center !important; }
.sch-newslist .wp-block-post-excerpt { margin: .2em 0 0; }
.sch-newslist .wp-block-post-excerpt__excerpt { margin: 0 0 .3em; }
.sch-newslist .wp-block-post-excerpt__more-text { margin: 0; }
.entry-content .sch-newslist .wp-block-post { padding: 1.1rem 0; }
.sch-gallery-ph { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)) !important; }
.site-footer .ast-footer-social-1-wrap::before { content: "Folge uns"; display: block; color: #fff; font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9em; }
