/*
Theme Name: SAC Grenchen
Description: Theme der Sektion Grenchen des SAC, nach Startseiten-Entwurf (Nov. 2026). Benötigt das Plugin «SAC Grenchen – Vereinsfunktionen».
Version: 0.4.2
Author: SAC Sektion Grenchen
Requires PHP: 8.1
Requires at least: 6.4
Text Domain: sac-grenchen
*/

/* ---------- Grundlagen ---------- */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
:root {
	--akzent: #C8102E;
	--link: #B8001C;
	--link-hover: #7A0012;
	--dunkel: #1A1D21;
	--text2: #4A525B;
	--linie: #DDE1E6;
	--hell: #F2F4F6;
	--platzhalter: #E9ECEF;
	--fuss-text: #E6E8EB;
	--fuss-linie: #3A4149;
	--fuss-copy: #B7BDC4;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--dunkel); background: #fff; font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--dunkel); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--schmal { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.sekundaer { color: var(--text2); }
.kicker { margin: 0 0 6px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--akzent); }
.kicker--hell { color: #fff; }
.mehr { font-weight: 700; font-size: 15px; }
.mehr--gross { font-size: 16px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 4px; font-weight: 700; text-decoration: none; line-height: 1.2; border: 2px solid transparent; }
.btn--akzent { background: var(--akzent); color: #fff; }
.btn--akzent:hover { background: var(--link-hover); color: #fff; }
.btn--dunkel { background: var(--dunkel); color: #fff; }
.btn--dunkel:hover { background: #000; color: #fff; }
.btn--outline { border-color: var(--dunkel); color: var(--dunkel); }
.btn--weiss { background: #fff; color: var(--dunkel); }
.btn--outline-weiss { border-color: #fff; color: #fff; }
.btn--outline-weiss:hover, .btn--weiss:hover { color: var(--dunkel); background: #F2F4F6; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pill { color: #fff; text-decoration: none; font-weight: 700; border: 1.5px solid #fff; border-radius: 999px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 8px; }
.pill:hover { color: var(--dunkel); background: #fff; }
.pill--btn { background: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 8px 16px; }
.badge { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--dunkel); color: #fff; padding: 4px 8px; border-radius: 3px; }

/* Raster */
.raster { display: grid; gap: 20px; }
.raster--340 { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.raster--300 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.sektion { padding-top: 72px; padding-bottom: 32px; }
.sektion--klein { padding: 40px 0 16px; }
.sektion__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.sektion__h2 { margin-bottom: 28px; }
.seite__h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 24px; }

/* ---------- Topbar & Kopf ---------- */
.topbar { background: var(--dunkel); color: #fff; font-size: 14px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; line-height: 1.2; }
.topbar__links > a:not(.pill) { color: #fff; padding: 7px 0; }
.topbar__sep { color: #8A929B; }
.kopf { border-bottom: 1px solid var(--linie); background: #fff; }
.kopf__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.kopf__logo img { height: 88px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 16px; font-weight: 600; }
.nav-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav-liste a { color: var(--dunkel); text-decoration: none; padding: 12px 0; display: inline-block; }
.nav-liste a:hover, .nav-liste .current-menu-item > a { color: var(--akzent); text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 2px solid var(--dunkel); border-radius: 4px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
	.kopf__logo img { height: 64px; }
	.nav-toggle { display: inline-flex; }
	.nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
	.nav--offen { display: flex; }
	.nav-liste { flex-direction: column; gap: 0; }
	.nav-liste a { display: block; padding: 12px 0; border-top: 1px solid var(--linie); }
	.nav .btn { text-align: center; margin: 8px 0; }
}

/* ---------- Slider «Aktuell» ---------- */
.slider { background: var(--dunkel); color: #fff; }
.slide, .intro { position: relative; }
.slide[hidden] { display: none; }
.slide__bild, .intro__bild { display: block; width: 100%; height: 520px; object-fit: cover; }
.slide__band { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(20, 23, 27, 0.78); color: #fff; }
.slide__text { padding-top: 28px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.slide__titel { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.01em; }
h1.slide__titel { font-size: 52px; letter-spacing: -0.02em; line-height: 1.05; }
.slide__lead { margin: 0; font-size: 18px; max-width: 720px; color: var(--fuss-text); }
.slider__leiste { padding-top: 16px; padding-bottom: 28px; }
.slider__zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.slider__pos { font-size: 14px; color: var(--fuss-copy); }
.slider__aktionen { display: flex; gap: 16px; align-items: center; }
.slider__alle { color: #fff; font-weight: 700; font-size: 15px; }
.slider__alle:hover { color: #fff; }
.slider__kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.kachel { display: block; padding: 0; text-align: left; background: #2B3138; color: #fff; border: 3px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; font-family: inherit; opacity: 0.65; }
.kachel[aria-current="true"] { border-color: #fff; opacity: 1; }
.kachel[aria-current="true"] .kachel__titel { font-weight: 800; }
.kachel:hover { opacity: 1; }
.kachel img { display: block; width: 100%; height: 110px; object-fit: cover; }
.kachel__text { display: block; padding: 10px 12px 12px; }
.kachel__datum { display: block; font-size: 13px; color: var(--fuss-copy); }
.kachel__titel { display: block; font-size: 15px; line-height: 1.3; font-weight: 600; }
@media (max-width: 700px) {
	.slide__bild, .intro__bild { height: 380px; }
	.slide__titel { font-size: 28px; }
	h1.slide__titel { font-size: 34px; }
	.slide__lead { font-size: 16px; }
}

/* ---------- Karten ---------- */
.tourkarte { border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.tourkarte__kopf { background: var(--hell); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tourkarte__datum { font-size: 15px; font-weight: 700; }
.tourkarte__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.tourkarte__titel { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.tourkarte__titel a { color: var(--dunkel); text-decoration: none; }
.tourkarte__titel a:hover { text-decoration: underline; }
.tourkarte .mehr { margin-top: auto; padding-top: 8px; }
.tourkarte--abgesagt .tourkarte__titel a { text-decoration: line-through; }
.hinweis { margin: 0; }
.hinweis--box { border: 2px solid var(--dunkel); border-radius: 6px; padding: 12px 16px; margin-bottom: 24px; }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; color: var(--text2); }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; }
.kv--gross { font-size: 16px; gap: 8px 20px; margin-top: 24px; color: var(--dunkel); }

.newskarte { border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.newskarte__bild img, .newskarte__bild .platzhalter { display: block; width: 100%; height: 200px; object-fit: cover; background: var(--platzhalter); }
.newskarte__body { padding: 20px; }
.newskarte__body p { margin: 0 0 8px; }
.newskarte .meta { font-size: 13px; color: var(--text2); }
.newskarte__titel { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.newskarte__titel a { color: var(--dunkel); text-decoration: none; }
.newskarte__titel a:hover { text-decoration: underline; }

/* Gruppen */
.gruppe { text-decoration: none; color: var(--dunkel); border: 1px solid var(--linie); border-radius: 6px; display: flex; overflow: hidden; min-height: 132px; }
.gruppe:hover { border-color: var(--dunkel); color: var(--dunkel); }
.gruppe__bild { width: 132px; flex-shrink: 0; background: var(--platzhalter); display: flex; align-items: center; justify-content: center; color: var(--text2); }
.gruppe__bild img { width: 100%; height: 100%; object-fit: cover; }
.gruppe__text { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.gruppe__saison { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text2); }
.gruppe__name { font-size: 20px; font-weight: 700; }
.gruppe__beschrieb { font-size: 15px; color: var(--text2); line-height: 1.45; }
.gruppe__mehr { font-size: 14px; font-weight: 700; color: var(--akzent); margin-top: 4px; }

/* Hütte + Mitglied */
.huette-mitglied { gap: 24px; padding-bottom: 72px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.huette { border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.huette__bild { display: block; width: 100%; height: 280px; object-fit: cover; object-position: center 45%; }
.huette__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.huette__body p { margin: 0; }
.huette__h2 { font-size: 30px; }
.dienste { margin-top: 12px; }
.dienste__titel { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.dienst { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie); font-size: 15px; line-height: 1.45; }
.dienst__datum { font-weight: 700; }
.dienst__bem { display: block; font-size: 14px; color: var(--text2); }
.dienste__monat { margin: 24px 0 4px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2); }
.dienste--gross .dienst { grid-template-columns: 180px minmax(0, 1fr); }
.mitglied { background: var(--akzent); color: #fff; border-radius: 6px; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.mitglied p { margin: 0; font-size: 17px; }
.mitglied__h2 { font-size: 34px; line-height: 1.15; }

/* ---------- Tour-Detail ---------- */
.tour__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 8px; }
.tour__datum { font-weight: 700; font-size: 18px; }
.status { font-size: 15px; color: var(--text2); }
.tour__raster { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.tour__box { background: var(--hell); border-radius: 6px; padding: 24px; }
.tour__box .kv { font-size: 15px; margin-bottom: 16px; }
.tour__bild, .beitrag__bild { margin: 0 0 24px; }
.tour__bild img, .beitrag__bild img { border-radius: 6px; display: block; }
@media (max-width: 860px) { .tour__raster { grid-template-columns: 1fr; } .seite__h1 { font-size: 34px; } }

/* Fliesstext aus dem Editor */
.inhalt { font-size: 17px; }
.inhalt > * { max-width: 72ch; }
.inhalt img { border-radius: 6px; }
.inhalt h2 { font-size: 28px; margin: 32px 0 12px; }
.inhalt h3 { font-size: 21px; margin: 24px 0 8px; }
.inhalt .alignwide, .inhalt .alignfull, .inhalt figure { max-width: none; }

/* Schriftgrössen aus dem Editor */
.has-small-font-size { font-size: 14px !important; }
.has-normal-font-size, .has-medium-font-size { font-size: 17px !important; }
.has-large-font-size { font-size: 20px !important; line-height: 1.5; }
.has-x-large-font-size, .has-xx-large-font-size { font-size: 24px !important; line-height: 1.4; }

/* Galerie (Shortcode) */
.inhalt .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 12px; margin: 32px 0 !important; max-width: none; }
.inhalt .gallery-item { margin: 0 !important; width: auto !important; }
.inhalt .gallery-icon img { width: 100%; height: 160px; object-fit: cover; border: 0 !important; border-radius: 6px; display: block; }
.inhalt .gallery-caption { font-size: 13px; color: var(--text2); margin: 4px 0 0; text-align: left; }
.inhalt .gallery br { display: none; }

/* Filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter__link { border: 1.5px solid var(--dunkel); border-radius: 999px; padding: 6px 14px; color: var(--dunkel); text-decoration: none; font-weight: 600; font-size: 15px; }
.filter__link:hover { background: var(--hell); color: var(--dunkel); }
.filter__link[aria-current="page"] { background: var(--dunkel); color: #fff; font-weight: 800; }

/* Seitennavigation */
.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.page-numbers { padding: 6px 12px; border: 1px solid var(--linie); border-radius: 4px; text-decoration: none; }
.page-numbers.current { background: var(--dunkel); color: #fff; font-weight: 700; }

/* ---------- Fusszeile ---------- */
.fuss { background: var(--dunkel); color: var(--fuss-text); }
.fuss a { color: var(--fuss-text); }
.fuss a:hover { color: #fff; }
.fuss__grid { padding-top: 56px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; font-size: 15px; line-height: 1.6; }
.fuss__grid p { margin: 0; }
.fuss__titel { margin: 0 0 10px !important; font-weight: 700; color: #fff; }
.fuss__titel--gross { font-size: 18px; font-weight: 800; }
.fuss__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fuss__copy { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--fuss-linie); font-size: 13px; color: var(--fuss-copy); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
