/*
Theme Name: Samariter Grosswangen
Theme URI: https://samaritergrosswangen.ch/
Author: Samariter Grosswangen
Description: Modernes Block-Theme für den Samariterverein Grosswangen (Design A3 «Bilderreihe»), mit CD-Farben und Samis auf den Unterseiten.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: samariter-grosswangen
*/

/* ---------- Grundgerüst ---------- */
.sg-topbar { height: 6px; background: var(--wp--preset--color--rot); }
.sg-wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
@media (max-width: 600px) { .sg-wrap { padding-left: 18px; padding-right: 18px; } }

/* ---------- Kopfzeile ---------- */
.sg-header { padding-top: 20px; padding-bottom: 20px; gap: 16px; }
.sg-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--wp--preset--color--schwarz); }
.sg-brand:hover { color: var(--wp--preset--color--schwarz); }
.sg-brand img { display: block; width: auto; }
.sg-brand .sg-logo { height: 60px; }
.sg-brand .sg-sami { height: 64px; }
.sg-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.sg-brand-name { font-weight: 800; font-size: 22px; }
.sg-brand-sub { font-size: 14px; color: var(--wp--preset--color--grau); }
@media (max-width: 600px) { .sg-brand .sg-logo { height: 44px; } .sg-brand .sg-sami { height: 52px; } .sg-brand-name { font-size: 19px; } }

.sg-header .wp-block-navigation { font-size: 17px; font-weight: 600; gap: 4px 22px; }
.sg-header .wp-block-navigation a { padding: 10px 0; text-decoration: none; color: var(--wp--preset--color--schwarz); }
.sg-header .wp-block-navigation a:hover { color: var(--wp--preset--color--rot-text); }
.sg-header .wp-block-navigation .current-menu-item > a,
.sg-header .wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--rot-text); box-shadow: inset 0 -3px 0 var(--wp--preset--color--rot); }
.sg-header .wp-block-navigation .sg-nav-intern a { color: var(--wp--preset--color--grau); font-weight: 400; }

/* ---------- Startseite: Einstieg ---------- */
.sg-hero { padding-top: 48px; padding-bottom: 48px; gap: 48px; }
.sg-hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -1px; margin: 0; }
.sg-hero h1 .sg-rot { color: var(--wp--preset--color--rot); }
.sg-lead { font-size: 21px; line-height: 1.5; max-width: 560px; color: #3A3A38; }

.sg-termine { border: 1px solid #DCDCDA; border-radius: 10px; padding: 26px; }
.sg-termine h2, .sg-kicker { font-size: 15px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--wp--preset--color--grau); font-weight: 700; margin: 0 0 8px; }
.sg-termin { display: flex; gap: 16px; padding: 12px 0; margin: 0 !important; border-bottom: 1px solid #ECECEA; font-size: 17px; }
.sg-termin:last-child { border-bottom: 0; }
.sg-termin strong:first-child { width: 64px; flex: none; font-weight: 800; }
.sg-termin-mehr { margin-top: 12px !important; font-size: 16px; font-weight: 600; }

/* ---------- Bilderreihe ---------- */
.sg-reihe { padding-top: 8px; padding-bottom: 64px; gap: 20px; }
.sg-karte figure, .sg-karte .wp-block-image { margin: 0 0 14px; }
.sg-karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.sg-karte.sg-bus img { object-position: center 55%; }
.sg-karte h3 { font-size: 22px; margin: 0 0 6px; }
.sg-karte h3 a { color: var(--wp--preset--color--schwarz); text-decoration: none; }
.sg-karte h3 a:hover { color: var(--wp--preset--color--rot-text); }
.sg-karte p { font-size: 16px; color: #3A3A38; line-height: 1.45; margin: 0; }

/* ---------- Mitmachen im Verein ---------- */
.sg-mitmachen { background: var(--wp--preset--color--hellturkis-hell); }
.sg-mitmachen-inner { padding-top: 72px; padding-bottom: 72px; gap: 48px; align-items: center !important; }
.sg-mitmachen h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: 0 0 18px; }
.sg-mitmachen p { font-size: 19px; line-height: 1.55; color: #2E2E2C; }
.sg-mitmachen .sg-kicker, .sg-box .sg-kicker { color: var(--wp--preset--color--rot-text); font-size: 14px; }
.sg-fotos { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sg-fotos figure { margin: 0 !important; }
.sg-fotos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }
.sg-fotos .sg-treppe img { object-position: center 60%; }

/* ---------- Kurse ---------- */
.sg-kurse { background: #F6F6F4; padding-top: 64px; padding-bottom: 64px; }
.sg-kurse h2 { font-size: 36px; margin: 0 0 28px; }
.sg-kurs-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.sg-kurs { background: #fff; border-radius: 10px; overflow: hidden; border-top: 6px solid var(--wp--preset--color--rot); padding: 22px; margin: 0 !important; }
.sg-kurs.sg-turkis { border-top-color: var(--wp--preset--color--dunkelturkis); }
.sg-kurs.sg-violett { border-top-color: var(--wp--preset--color--violett); }
.sg-kurs.sg-gruen { border-top-color: var(--wp--preset--color--gruen); }
.sg-kurs h3 { font-size: 21px; margin: 0 0 8px; }
.sg-kurs h3 a { color: var(--wp--preset--color--schwarz); text-decoration: none; }
.sg-kurs h3 a:hover { color: var(--wp--preset--color--rot-text); }
.sg-kurs p { font-size: 16px; line-height: 1.45; color: #3A3A38; margin: 0; }

/* ---------- Unterseiten ---------- */
.sg-seite { padding-top: 40px; padding-bottom: 72px; }
.sg-seite .wp-block-post-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -1px; margin-bottom: 28px; }
.sg-seite iframe { max-width: 100%; }

/* ---------- Jahresprogramm ---------- */
.sg-motto { font-size: 26px; font-weight: 700; color: var(--wp--preset--color--rot); line-height: 1.3; }
.sg-box { background: #F6F6F4; border-radius: 10px; padding: 20px 24px; }
.sg-box p { margin: 0; font-size: 18px; }
.sg-box p.sg-gross { font-size: 20px; font-weight: 800; }
.sg-programm { border-top: 2px solid var(--wp--preset--color--schwarz); margin-top: 32px; }
.sg-anlass { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 20px 0; margin: 0 !important; border-bottom: 1px solid #DCDCDA; align-items: baseline; }
.sg-anlass.sg-hervor { background: var(--wp--preset--color--hellturkis-hell); padding-left: 16px; padding-right: 16px; }
.sg-anlass .sg-datum { width: 150px; flex: none; font-weight: 800; font-size: 20px; margin: 0; }
.sg-anlass .sg-was { flex: 1 1 380px; margin: 0; font-size: 17px; color: #3A3A38; }
.sg-anlass .sg-was strong { display: block; font-size: 21px; color: var(--wp--preset--color--schwarz); }
.sg-tag { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--wp--preset--color--rot); }
.sg-tag.sg-turkis { background: var(--wp--preset--color--dunkelturkis); }
.sg-tag.sg-violett { background: var(--wp--preset--color--violett); }
.sg-tag.sg-gruen { background: var(--wp--preset--color--gruen); color: var(--wp--preset--color--schwarz); }
.sg-tag.sg-dunkelrot { background: var(--wp--preset--color--dunkelrot); }
.sg-tag.sg-gelb { background: var(--wp--preset--color--gelb); color: var(--wp--preset--color--schwarz); }
.sg-anlass.sg-spaeter .sg-datum, .sg-anlass.sg-spaeter strong { color: var(--wp--preset--color--grau); }
.sg-einladung { background: var(--wp--preset--color--hellturkis-hell); border-radius: 12px; padding: 36px; gap: 32px; margin-top: 48px; }
.sg-einladung img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.sg-einladung h2 { font-size: 34px; margin: 0 0 12px; }

/* ---------- Fusszeile ---------- */
.sg-footer { background: var(--wp--preset--color--schwarz); color: #fff; border-top: 6px solid var(--wp--preset--color--rot); padding-top: 40px; padding-bottom: 40px; font-size: 16px; }
.sg-footer a { color: #fff; }
.sg-footer a:hover { color: var(--wp--preset--color--hellturkis); }
.sg-footer p { margin: 0; }

/* ---------- Allgemein ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid var(--wp--preset--color--schwarz); color: var(--wp--preset--color--schwarz); background: transparent; padding: 12px 24px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--schwarz); color: #fff; }
:where(a):focus-visible, .wp-element-button:focus-visible { outline: 3px solid var(--wp--preset--color--dunkelturkis); outline-offset: 2px; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.sg-hero { padding-top: 28px; padding-bottom: 28px; gap: 28px; }
	.sg-hero > * { flex-basis: 100% !important; flex-shrink: 1 !important; }
	.sg-lead { font-size: 19px; }
	.sg-mitmachen-inner { padding-top: 48px; padding-bottom: 48px; }
	.sg-anlass .sg-datum { width: 100%; }
	.sg-einladung { padding: 24px; }
}

/* ---------- Feinschliff ---------- */
.sg-tag { display: table; }
.sg-termin a { color: var(--wp--preset--color--schwarz); font-weight: 700; text-decoration: none; }
.sg-termin a:hover { color: var(--wp--preset--color--rot-text); text-decoration: underline; }

/* Gruppenfoto über die ganze Breite */
.sg-fotos .sg-gruppe { grid-column: 1 / -1; }
.sg-fotos .sg-gruppe img { aspect-ratio: 3 / 2; object-position: center 40%; }
