/*
Theme Name: GeneratePress Child – Vereinspaket
Template: generatepress
Description: Child-Theme für Vereins-Websites (PW IT Solutions Vereinspaket)
Version: 3.0
*/

/* Grundfarben/Typografie/Größen laufen über theme.json — hier nur visuelle Verfeinerung. */

/* ---------- Eyebrow-Badge (statt reinem Text) ---------- */

.vp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.8rem;
	color: var(--wp--preset--color--accent-dark);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 14%, transparent);
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */

.wp-block-button__link {
	box-shadow: 0 4px 14px color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	box-shadow: none;
	border-width: 2px;
}

/* ---------- Bilder ---------- */

.wp-block-image img,
.wp-block-media-text__media img,
.wp-block-post-featured-image img {
	box-shadow: 0 10px 30px rgba(13, 22, 38, 0.12);
}

.wp-block-gallery img,
.fg-gallery-container img {
	border-radius: 12px;
}

/* ---------- Vorstand / Team (wp:media-text) als Karten ---------- */

.wp-block-media-text {
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 1.75rem;
	box-shadow: 0 6px 20px rgba(13, 22, 38, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-media-text:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(13, 22, 38, 0.1);
}

.wp-block-media-text__media img {
	box-shadow: none;
	border-radius: 0;
	height: 100%;
	object-fit: cover;
}

.wp-block-media-text__content {
	padding: 1.75rem 2rem;
}

/* ---------- Vorstand / Team – kompaktes Karten-Grid (Alternative zu media-text) ---------- */

.vp-board-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.vp-board-card {
	text-align: center;
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: 1.5rem 1.25rem;
	box-shadow: 0 6px 20px rgba(13, 22, 38, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vp-board-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(13, 22, 38, 0.1);
}

.vp-board-card__photo {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto 1rem;
	box-shadow: 0 4px 12px rgba(13, 22, 38, 0.15);
}

.vp-board-card__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.15rem;
	font-size: 1.02rem;
}

.vp-board-card__role {
	color: var(--wp--preset--color--accent-dark);
	font-size: 0.85rem;
	font-weight: 600;
	margin: 0 0 0.6rem;
}

.vp-board-card__bio {
	color: var(--wp--preset--color--text-muted);
	font-size: 0.88rem;
	line-height: 1.5;
	margin: 0;
}

.vp-highlight-quote {
	max-width: 640px;
	margin: 2.5rem auto 0;
	text-align: center;
}

.vp-highlight-quote .wp-block-quote {
	border-left: none;
	border-radius: 16px;
	padding: 2rem;
	font-size: 1.25rem;
}

/* ---------- Aktuelles – News-Grid (Query-Loop-Block) ---------- */
/* Klasse "vp-news-grid" auf dem Post-Template-Block — Kartenoptik analog
   zu .vp-board-card, damit auch ein einzelner Beitrag (z. B. der WP-
   Standard-Demobeitrag direkt nach dem Deploy) nicht wie unformatierter
   Text wirkt. Spaltenbreite bewusst über auto-fit/minmax statt über eine
   feste 3-Spalten-Vorgabe (wie .vp-board-grid) — passt sich so der
   normalen Inhaltsbreite an, statt bei wenigen Beiträgen eine überbreite,
   größtenteils leere Fläche zu erzeugen. */

/* Doppelte Klasse (statt nur ".vp-news-grid") erhöht bewusst die Spezifität:
   WP generiert für den Query-Loop-Block automatisch eine eigene,
   gleich spezifische Regel (".wp-container-core-post-template-is-layout-…"
   mit auto-fill/12rem) inline im Dokument — die stünde sonst je nach
   Ausgabereihenfolge über unserer eigenen Regel. */
.wp-block-post-template.vp-news-grid {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.vp-news-grid > li {
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: 0 6px 20px rgba(13, 22, 38, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vp-news-grid > li:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(13, 22, 38, 0.1);
}

.vp-news-grid .wp-block-post-title {
	margin: 0.75rem 0 0.5rem;
}

.vp-news-grid .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--primary);
}

.vp-news-grid .wp-block-post-excerpt {
	color: var(--wp--preset--color--text-muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

.vp-news-grid .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.6rem;
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--wp--preset--color--accent-dark);
	text-decoration: none;
}

.vp-news-grid .wp-block-post-excerpt__more-link:hover {
	text-decoration: underline;
}

/* ---------- Zitate ---------- */

.wp-block-quote {
	position: relative;
	background: var(--wp--preset--color--background-alt);
	border-radius: 0 12px 12px 0;
	padding: 1.25rem 1.5rem;
}

/* ---------- Spalten als Teaser-Karten ---------- */
/* Opt-in über die Klasse "vp-teaser-columns" auf dem äußeren Columns-Block —
   bewusst nicht auf alle Spalten global angewendet, sonst brechen verschachtelte
   Layouts (z. B. der Hero) durch doppelte Kartenoptik. */

.vp-teaser-columns .wp-block-column {
	background: var(--wp--preset--color--background-alt);
	border-radius: 16px;
	padding: 1.75rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vp-teaser-columns .wp-block-column:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(13, 22, 38, 0.08);
}

.vp-teaser-columns .wp-block-column a {
	font-weight: 600;
	text-decoration: none;
}

.vp-teaser-columns .wp-block-column a:hover {
	text-decoration: underline;
}

/* ---------- Hero (Startseite) ---------- */

.vp-hero {
	background: var(--wp--preset--gradient--hero-gradient);
	border-radius: 20px;
	padding: clamp(2.5rem, 6vw, 5rem);
	color: #ffffff;
}

.vp-hero h1,
.vp-hero p {
	color: #ffffff;
}

.vp-hero .vp-eyebrow {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.vp-hero .wp-block-image img {
	height: 320px;
	width: 100%;
	object-fit: cover;
}

/* Seitentitel auf der Startseite ausblenden — der Hero-Titel ersetzt ihn */
.home .entry-header {
	display: none;
}

/* ---------- Events (The Events Calendar) leichte Anpassung ---------- */

.tribe-events .tribe-events-calendar-list__event-title a,
.tribe-common .tribe-common-h4 {
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--primary);
}

/* ---------- Timeline (Aktuelles, Chronik) ---------- */

.vp-timeline {
	position: relative;
	margin-top: 2rem;
	padding-left: 1.75rem;
	border-left: 2px solid var(--wp--preset--color--border);
}

.wp-block-group.vp-timeline-item {
	position: relative;
	padding: 0 0 1.75rem 1.25rem;
}

.wp-block-group.vp-timeline-item:last-child {
	padding-bottom: 0;
}

.wp-block-group.vp-timeline-item::before {
	content: "";
	position: absolute;
	left: -1.9rem;
	top: 0.35rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 4px var(--wp--preset--color--background);
}

.vp-timeline-item__date {
	font-weight: 700;
	color: var(--wp--preset--color--accent-dark);
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
}

.vp-timeline-item p:last-child {
	margin: 0;
}

/* ---------- Chip-Reihe (Über uns: Vorstand-Übersicht) ---------- */

.vp-chip-row {
	flex-wrap: wrap;
	gap: 0.6rem !important;
	margin-top: 1.5rem;
}

.vp-chip-row .wp-block-column {
	flex: 0 0 auto;
	background: var(--wp--preset--color--background-alt);
	border-radius: 999px;
	padding: 0.5rem 1.1rem;
}

.vp-chip-row .wp-block-column p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--wp--preset--color--text);
}

.vp-chip-row .wp-block-column p strong {
	color: var(--wp--preset--color--primary);
}

/* ---------- Navigation ---------- */

#masthead {
	background: var(--wp--preset--color--primary);
	position: sticky;
	top: 0;
	z-index: 100;
}

#masthead .inside-header {
	padding-top: 1rem;
	padding-bottom: 0.25rem;
}

#masthead .main-title {
	font-size: 1.25rem;
}

#masthead .main-title,
#masthead .main-title a,
#masthead .main-title a:hover {
	color: #ffffff;
}

#masthead .site-description {
	color: rgba(255, 255, 255, 0.7);
}

#site-navigation.main-navigation {
	background: transparent;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#site-navigation .inside-navigation {
	min-height: 0;
}

#site-navigation .main-nav > ul {
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 0.25rem;
}

#site-navigation .main-nav ul li a {
	color: rgba(255, 255, 255, 0.8);
	font-weight: 500;
	font-size: 0.88rem;
	padding: 0.7rem 0.75rem;
	white-space: nowrap;
}

#site-navigation .main-nav ul li a:hover,
#site-navigation .main-nav ul li.current-menu-item > a,
#site-navigation .main-nav ul li.current_page_item > a {
	color: var(--wp--preset--color--accent);
}

#site-navigation .main-nav ul li.current-menu-item > a,
#site-navigation .main-nav ul li.current_page_item > a {
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--accent);
}

#site-navigation .main-nav ul ul {
	background: var(--wp--preset--color--primary-dark);
}

#site-navigation .main-nav ul ul li a {
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
}

.menu-toggle {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Footer ---------- */

.site-info {
	background: var(--wp--preset--color--primary-dark);
	color: rgba(255, 255, 255, 0.65);
	text-align: center;
	padding: 1.5rem 1.25rem;
	font-size: 0.88rem;
}

.site-info a {
	color: rgba(255, 255, 255, 0.9);
	font-weight: 600;
}

.site-info a:hover {
	color: var(--wp--preset--color--accent);
}

/* ---------- Utilities ---------- */

.vp-text-center {
	text-align: center;
}
