/*
Theme Name: Guggenbichler
Theme URI: https://nvguggenbichler.de
Author: NV Guggenbichler e.V.
Description: Vereins-Theme für den Narrenverein Guggenbichler e.V. Ittendorf. Farben aus dem Häs: Maskengrün, rote Erde, Muttererde, Leinen. Ohne externe Schriften oder Tracking (DSGVO-freundlich).
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: guggenbichler
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

/* ---------- Kopfzeile ---------- */
.gb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(1.2) blur(8px);
	background: color-mix(in srgb, var(--wp--preset--color--leinen) 92%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--erde) 18%, transparent);
}
.admin-bar .gb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gb-header { top: 46px; } }

.gb-brand { gap: .7rem !important; }
.gb-brand .wp-block-site-title a { text-decoration: none; }
.gb-mark {
	width: 2.4rem; height: 2.4rem; flex: 0 0 auto;
	border-radius: 50%;
	background: var(--wp--preset--color--maske);
	box-shadow: inset 0 0 0 3px var(--wp--preset--color--moor), 0 0 0 2px var(--wp--preset--color--roteerde);
	display: grid; place-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800; color: var(--wp--preset--color--moor); font-size: 1.1rem;
}
.gb-tagline { margin: 0 !important; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

.gb-header .wp-block-navigation a { text-decoration: none; font-weight: 600; }
.gb-header .wp-block-navigation a:hover,
.gb-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--roteerde); }

/* ---------- Hero ---------- */
.gb-hero .wp-block-cover__inner-container { max-width: 1200px; }
.gb-kicker {
	display: inline-block;
	font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
	padding: .35rem .8rem; border-radius: 99px;
	background: var(--wp--preset--color--roteerde); color: #fff;
}
.gb-hero h1 { text-wrap: balance; }

/* ---------- Kennzahlen ---------- */
.gb-stat { border-top: 4px solid var(--wp--preset--color--roteerde); padding-top: 1rem; }
.gb-stat .gb-num {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; margin: 0;
	color: var(--wp--preset--color--moor);
}
.gb-stat p:last-child { margin-top: .4rem; }

/* ---------- Karten ---------- */
.gb-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px -12px rgb(40 30 20 / .25);
	height: 100%;
	transition: transform .2s ease, box-shadow .2s ease;
}
.gb-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(0 0 0 / .06), 0 16px 32px -14px rgb(40 30 20 / .35); }
.gb-card .wp-block-image, .gb-card .wp-block-post-featured-image { margin: 0 !important; }
.gb-card .wp-block-image img, .gb-card .wp-block-post-featured-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gb-card-body { padding: 1.2rem 1.4rem 1.5rem; }
.gb-card h3 a, .gb-card h2 a { text-decoration: none; }

/* ---------- Häs-Tabelle ---------- */
.gb-has table { border-collapse: collapse; width: 100%; }
.gb-has td { border: 0; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--erde) 20%, transparent); padding: .7rem .4rem; vertical-align: top; }
.gb-has td:first-child { font-weight: 700; width: 38%; color: var(--wp--preset--color--roteerde); }

/* ---------- Zeitstrahl ---------- */
.gb-timeline { list-style: none; padding: 0 !important; margin: 0; border-left: 3px solid var(--wp--preset--color--maske); }
.gb-timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; }
.gb-timeline li::before {
	content: ""; position: absolute; left: -9px; top: .45rem;
	width: 15px; height: 15px; border-radius: 50%;
	background: var(--wp--preset--color--leinen); border: 3px solid var(--wp--preset--color--roteerde);
}
.gb-timeline strong { font-family: var(--wp--preset--font-family--display); font-size: 1.15rem; margin-right: .5rem; }

/* ---------- Vorstandschaft ---------- */
.gb-person { text-align: center; }
.gb-person .wp-block-image img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--wp--preset--color--maske); }
.gb-person .wp-block-image { margin-bottom: .6rem; }
.gb-role { font-size: .75rem !important; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--roteerde); margin: 0 !important; }
.gb-name { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.15rem; margin: .2rem 0 0 !important; }
.gb-initials {
	width: 150px; height: 150px; margin: 0 auto .6rem !important; border-radius: 50%;
	display: grid !important; place-items: center;
	background: var(--wp--preset--color--moor); color: var(--wp--preset--color--maske);
	font-family: var(--wp--preset--font-family--display); font-size: 2.6rem; font-weight: 800;
	box-shadow: 0 0 0 3px var(--wp--preset--color--maske);
}

/* ---------- Logos Paten ---------- */
.gb-logos .wp-block-image img { max-height: 110px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .2s; }
.gb-logos .wp-block-image a:hover img { filter: none; opacity: 1; }

/* ---------- Nachruf ---------- */
.gb-nachruf { border-left: 4px solid var(--wp--preset--color--moor); }

/* ---------- Fußzeile ---------- */
.gb-footer a { color: var(--wp--preset--color--maske); text-decoration: none; }
.gb-footer a:hover { text-decoration: underline; }
.gb-footer .wp-block-heading { color: #fff; }
.gb-motto { font-family: var(--wp--preset--font-family--display); font-weight: 800; letter-spacing: .04em; color: var(--wp--preset--color--maske); }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: transform .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* ---------- Instagram & Jubiläum ---------- */
.gb-insta:not(:has(.gbi)) { display: none; }
.gb-insta { background: var(--wp--preset--color--weiss); border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--erde) 12%, transparent); }
.gb-header .gb-nav-jubi > a {
	background: var(--wp--preset--color--roteerde); color: #fff !important;
	padding: .35rem .85rem; border-radius: 999px;
}
.gb-header .gb-nav-jubi > a:hover { background: var(--wp--preset--color--erde); }
@media (max-width: 1100px) { .gb-header .wp-block-navigation { gap: 1rem !important; } }
