/* =====================================================================
   Jostprint Vereinsshop – Theme-CSS
   Farben: --jp-primary / --jp-secondary setzt das Plugin pro Verein.
   ===================================================================== */

:root {
	--jp-rot: var(--jp-primary, #BA0F21);
	--jp-rot-dunkel: #8F0B19;
	--jp-ink: #1E1B18;
	--jp-text: #4A443C;
	--jp-muted: #6E675E;
	--jp-line: #E6E2DA;
	--jp-leinen: #F3F1EC;
	--jp-leinen-dunkel: #ECE9E2;
	--jp-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--jp-sans: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--jp-radius: 3px;
	--jp-wrap: 1240px;
}

/* Kadence-Palette im Vereinsshop auf die Vereinsfarbe umbiegen */
.jp-theme {
	--global-palette1: var(--jp-rot);
	--global-palette2: var(--jp-rot-dunkel);
	--global-palette3: var(--jp-ink);
	--global-palette4: var(--jp-text);
	--global-palette5: var(--jp-muted);
	--global-palette7: var(--jp-leinen);
	--global-palette8: var(--jp-leinen-dunkel);
	--global-palette9: #ffffff;
}
.jp-theme.jp-verein { --jp-rot-dunkel: var(--jp-secondary, #8F0B19); }

body.jp-theme {
	font-family: var(--jp-sans);
	color: var(--jp-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
.jp-theme h1, .jp-theme h2, .jp-theme h3, .jp-theme .jp-serif,
.jp-theme .woocommerce-loop-product__title, .jp-theme .price, .jp-theme .product_title {
	font-family: var(--jp-serif);
	font-weight: 500;
	letter-spacing: -.005em;
}
.jp-theme a { color: var(--jp-ink); text-decoration: none; }
.jp-theme a:hover { color: var(--jp-rot); }
.jp-theme :focus-visible { outline: 3px solid var(--jp-rot); outline-offset: 2px; }

/* Kadence-Header/-Footer sicher aus, falls sie trotz Ersetzung gerendert werden */
.jp-theme #masthead, .jp-theme #colophon, .jp-theme #mobile-header { display: none !important; }

.jp-wrap { max-width: var(--jp-wrap); margin: 0 auto; width: 100%; box-sizing: border-box; padding: 0 32px; }
.jp-section { padding: 56px 0; }
.jp-section h2 { font-size: 32px; margin: 0 0 24px; line-height: 1.15; }
.jp-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.jp-section-head h2 { margin: 0; }
.jp-section-intro { max-width: 60ch; margin-bottom: 36px; }
.jp-section-intro h2 { font-size: 36px; margin-bottom: 12px; }
.jp-section-intro p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--jp-text); }
.jp-textlink { font-size: 15px; font-weight: 500; border-bottom: 1.5px solid var(--jp-ink); padding-bottom: 2px; }
.jp-kicker { font-size: 14px; font-weight: 500; color: var(--jp-muted); }

/* Buttons */
.jp-btn, .jp-theme .button, .jp-theme button.button, .jp-theme input[type=submit],
.jp-theme .wc-block-components-button, .jp-theme .single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 24px; border-radius: var(--jp-radius);
	font-family: var(--jp-sans); font-weight: 600; font-size: 15px; line-height: 1.2;
	border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.jp-btn-primary, .jp-theme .button, .jp-theme button.button, .jp-theme input[type=submit], .jp-theme .single_add_to_cart_button {
	background: var(--jp-rot); color: #fff;
}
.jp-btn-primary:hover, .jp-theme .button:hover, .jp-theme button.button:hover, .jp-theme .single_add_to_cart_button:hover { background: var(--jp-rot-dunkel); color: #fff; }
.jp-btn-outline, .jp-theme .button.jp-btn-outline { background: #fff; color: var(--jp-ink); border-color: #D9D4CA; }
.jp-btn-outline:hover { border-color: var(--jp-ink); color: var(--jp-ink); }
.jp-btn-dark { background: var(--jp-ink); color: #fff; }
.jp-icon { flex: none; }

/* ---------- Header ---------- */
.jp-header { background: #fff; border-bottom: 1px solid var(--jp-line); position: relative; z-index: 50; }
.jp-infobar { background: var(--jp-ink); color: #CFC9BF; font-size: 13px; }
.jp-infobar .jp-wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 36px; align-items: center; flex-wrap: wrap; }
.jp-infobar a { color: #fff; font-weight: 500; }
.jp-infobar a:hover { color: #F6D7B0; }

.jp-masthead { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.jp-brand { display: flex; align-items: center; gap: 16px; flex: none; }
.jp-brand .custom-logo-link img, .jp-brand .custom-logo { height: 64px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.jp-textlogo { font-family: var(--jp-serif); font-size: 24px; font-weight: 600; }
.jp-brand-sep { width: 1px; height: 40px; background: var(--jp-line); }
.jp-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.jp-brand-title { font-family: var(--jp-serif); font-size: 19px; font-weight: 600; }
.jp-brand-sub { font-size: 12.5px; color: var(--jp-muted); }

.jp-search { flex: 1 1 320px; max-width: 520px; display: flex; margin: 0 auto; }
.jp-search input[type=search] {
	flex: 1; min-width: 0; height: 46px; border: 1.5px solid #D9D4CA; border-right: 0;
	border-radius: var(--jp-radius) 0 0 var(--jp-radius); padding: 0 16px; font: inherit; font-size: 15px; color: var(--jp-ink); background: #fff; box-shadow: none;
}
.jp-search button { height: 46px; padding: 0 16px; border: 0; border-radius: 0 var(--jp-radius) var(--jp-radius) 0; background: var(--jp-ink); color: #fff; cursor: pointer; display: inline-flex; align-items: center; }
.jp-search button:hover { background: var(--jp-rot); }

.jp-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.jp-action { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: var(--jp-radius); font-weight: 500; font-size: 15px; }
.jp-action-cart { background: var(--jp-leinen); padding-right: 12px; }
.jp-action-cart:hover { background: var(--jp-leinen-dunkel); color: var(--jp-ink); }
.jp-cart-count { background: var(--jp-rot); color: #fff; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

.jp-burger { display: none; background: none; border: 0; padding: 8px; margin-left: -8px; cursor: pointer; color: var(--jp-ink); }

.jp-catnav .jp-wrap { display: flex; align-items: center; gap: 32px; }
.jp-catlist { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.jp-catlist li { margin: 0; }
.jp-catlist a { display: inline-block; font-size: 15px; font-weight: 500; padding: 14px 0; border-bottom: 2px solid transparent; }
.jp-catlist a:hover, .jp-catlist .current-menu-item > a { border-bottom-color: var(--jp-rot); color: var(--jp-ink); }
.jp-catnav-right { margin-left: auto; font-size: 15px; font-weight: 500; padding: 14px 0; }

/* ---------- Startseite ---------- */
.jp-hero { background: var(--jp-leinen); }
.jp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.jp-hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.jp-hero-copy h1 { font-size: 56px; line-height: 1.05; margin: 0; }
.jp-hero-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--jp-text); }
.jp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.jp-hero-art { position: relative; min-height: 460px; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jp-hero-art .jp-hero-img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; display: block; }
.jp-hero-placeholder { background: radial-gradient(60% 50% at 50% 60%, #EFEBE3 0%, #fff 70%); width: 100%; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.jp-hero-placeholder svg { filter: drop-shadow(0 26px 28px rgba(30,27,24,.18)); }

.jp-trust { border-bottom: 1px solid var(--jp-line); }
.jp-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.jp-trust-item { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.jp-trust-item .jp-icon { color: var(--jp-rot); }

.jp-cats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.jp-cat { background: var(--jp-leinen); border-radius: var(--jp-radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 170px; justify-content: space-between; }
.jp-cat:hover { background: var(--jp-leinen-dunkel); color: var(--jp-ink); }
.jp-cat-img img { width: 64px; height: 64px; object-fit: contain; display: block; }
.jp-cat-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.jp-cat-name { font-size: 17px; font-weight: 600; }
.jp-cat-count { font-size: 13px; color: var(--jp-muted); }

.jp-ways { background: var(--jp-leinen); padding: 72px 0; }
.jp-ways-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.jp-ways-single { grid-template-columns: minmax(0, 720px); }
.jp-way { background: #fff; border-radius: 4px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.jp-way-head { display: flex; align-items: center; gap: 14px; font-family: var(--jp-serif); font-size: 26px; font-weight: 500; line-height: 1.2; }
.jp-way ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--jp-text); }
.jp-way-note { font-size: 14px; color: var(--jp-muted); margin-top: auto; }

.jp-faq { padding: 72px 0 80px; }
.jp-faq-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: start; }
.jp-faq-intro { display: flex; flex-direction: column; gap: 16px; max-width: 40ch; }
.jp-faq-intro h2 { font-size: 36px; margin: 0; }
.jp-faq-intro p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--jp-text); }
.jp-faq-intro .jp-btn { align-self: flex-start; }
.jp-faq-list { border-top: 1px solid var(--jp-line); }
.jp-faq-item { border-bottom: 1px solid var(--jp-line); }
.jp-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-size: 17px; font-weight: 500; }
.jp-faq-item summary::-webkit-details-marker { display: none; }
.jp-faq-item summary:hover { color: var(--jp-rot); }
.jp-faq-item summary .jp-icon { transition: transform .15s ease; }
.jp-faq-item[open] summary .jp-icon { transform: rotate(45deg); }
.jp-faq-item p { margin: 0; padding: 0 48px 20px 0; font-size: 15px; line-height: 1.65; color: var(--jp-text); }

/* ---------- WooCommerce: Produktkarten & Shop ---------- */
.jp-theme ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.jp-theme ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jp-theme ul.products li.product { margin: 0; padding: 0; width: auto; display: flex; flex-direction: column; gap: 10px; background: none; border: 0; box-shadow: none; }
.jp-theme ul.products li.product .product-image-wrap, .jp-theme ul.products li.product > a img,
.jp-theme ul.products li.product .attachment-woocommerce_thumbnail { background: var(--jp-leinen); border-radius: var(--jp-radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; display: block; }
.jp-theme ul.products li.product:hover img { opacity: .94; }
.jp-theme ul.products li.product .woocommerce-loop-product__title { font-size: 16px; font-weight: 600; font-family: var(--jp-sans); margin: 6px 0 0; line-height: 1.3; padding: 0; }
.jp-theme ul.products li.product:hover .woocommerce-loop-product__title { color: var(--jp-rot); }
.jp-theme ul.products li.product .price { font-size: 19px; color: var(--jp-ink); margin: 2px 0 0; }
.jp-theme ul.products li.product .price del { color: var(--jp-muted); font-size: 15px; }
.jp-theme ul.products li.product .button { min-height: 44px; font-size: 14px; align-self: flex-start; margin-top: 6px; }
.jp-theme ul.products li.product .onsale, .jp-theme span.onsale { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--jp-ink); border: 1px solid var(--jp-line); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 2px; min-height: 0; min-width: 0; line-height: 1.3; margin: 0; }
.jp-theme .star-rating { color: var(--jp-rot); }

.jp-theme .woocommerce-products-header__title, .jp-theme .archive-title h1 { font-size: 40px; }
.jp-theme .woocommerce-result-count { color: var(--jp-muted); font-size: 14px; }
.jp-theme .woocommerce-ordering select { border: 1.5px solid #D9D4CA; border-radius: var(--jp-radius); padding: 8px 12px; font: inherit; }

/* Einzelprodukt */
.jp-theme .single-product .product_title { font-size: 36px; }
.jp-theme .single-product .price { font-size: 26px; color: var(--jp-ink); }
.jp-theme .single-product .woocommerce-product-gallery img { background: var(--jp-leinen); border-radius: var(--jp-radius); }
.jp-theme .single-product table.variations td { padding: 6px 0; }
.jp-theme .single-product .variations select, .jp-theme select, .jp-theme .input-text, .jp-theme input[type=text], .jp-theme input[type=email], .jp-theme input[type=tel], .jp-theme textarea {
	border: 1.5px solid #D9D4CA; border-radius: var(--jp-radius); padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; box-shadow: none;
}
.jp-theme .single-product .quantity .qty { min-height: 50px; width: 72px; }
.jp-theme .woocommerce-tabs ul.tabs li a { font-weight: 500; }

/* Warenkorb & Kasse */
.jp-theme .woocommerce-message, .jp-theme .woocommerce-info, .jp-theme .woocommerce-error, .jp-theme .woocommerce-notice {
	border-top: 0; border-left: 4px solid var(--jp-rot); background: var(--jp-leinen); color: var(--jp-ink); border-radius: var(--jp-radius);
}
.jp-theme .woocommerce-info::before, .jp-theme .woocommerce-message::before { color: var(--jp-rot); }
.jp-theme table.shop_table { border: 1px solid var(--jp-line); border-radius: var(--jp-radius); }
.jp-theme table.shop_table th { font-weight: 600; }
.jp-theme .checkout h3, .jp-theme .cart_totals h2 { font-size: 24px; }
.jp-theme #payment { background: var(--jp-leinen); border-radius: var(--jp-radius); }
.jp-theme #payment .payment_box { background: #fff; }
.jp-theme #payment .payment_box::before { border-bottom-color: #fff; }
.jp-theme .woocommerce-checkout #place_order, .jp-theme .checkout-button { width: 100%; min-height: 54px; font-size: 16px; }
.jp-theme .wc-gzd-order-button-notice, .jp-theme .wc-gzd-additional-info { color: var(--jp-muted); font-size: 13px; }

/* ---------- Footer ---------- */
.jp-footer { background: var(--jp-ink); color: #B8B1A6; padding: 56px 0 28px; margin-top: auto; }
.jp-footer a { color: #D8D2C8; }
.jp-footer a:hover { color: #fff; }
.jp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.jp-footer-about { display: flex; flex-direction: column; gap: 14px; }
.jp-footer-name { font-family: var(--jp-serif); font-size: 22px; color: #fff; font-weight: 500; }
.jp-footer-about p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 44ch; }
.jp-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.jp-footer-col ul { list-style: none; margin: 0; padding: 0; display: contents; }
.jp-footer-col li { margin: 0; }
.jp-footer-head { color: #fff; font-weight: 600; margin-bottom: 4px; }
.jp-footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsiv ---------- */
@media (max-width: 1024px) {
	.jp-hero-copy h1 { font-size: 46px; }
	.jp-theme ul.products, .jp-cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.jp-wrap { padding: 0 20px; }
	.jp-burger { display: inline-flex; }
	.jp-search { order: 10; flex: 1 1 100%; max-width: none; }
	.jp-masthead { flex-wrap: wrap; gap: 14px; }
	.jp-brand .custom-logo-link img, .jp-brand .custom-logo { height: 48px; }
	.jp-brand-sep, .jp-brand-text { display: none; }
	.jp-action-label { display: none; }
	.jp-action { padding: 0 10px; }
	.jp-catnav { display: none; border-top: 1px solid var(--jp-line); }
	.jp-catnav.is-open { display: block; }
	.jp-catnav .jp-wrap { flex-direction: column; align-items: stretch; gap: 0; }
	.jp-catlist { flex-direction: column; gap: 0; }
	.jp-catlist a, .jp-catnav-right { display: block; padding: 12px 0; border-bottom: 1px solid var(--jp-line); }
	.jp-catnav-right { margin-left: 0; }
	.jp-hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
	.jp-hero-copy h1 { font-size: 38px; }
	.jp-hero-art, .jp-hero-placeholder { min-height: 320px; }
	.jp-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jp-theme ul.products, .jp-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.jp-ways-grid, .jp-faq-grid { grid-template-columns: 1fr; gap: 24px; }
	.jp-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.jp-section h2, .jp-section-intro h2, .jp-faq-intro h2 { font-size: 28px; }
}
@media (max-width: 520px) {
	.jp-trust-grid, .jp-footer-grid { grid-template-columns: 1fr; }
	.jp-infobar .jp-wrap span:last-child { display: none; }
	.jp-theme ul.products li.product .woocommerce-loop-product__title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.jp-theme * { transition: none !important; }
}
