/*
Theme Name: Skischule Jöbstl
Theme URI: https://kjoebstl.at
Author: Studio Code
Description: Custom block theme for Skischule & Skiverleih Kurt Jöbstl. Ruled-grid Swiss-style design — scaffolded by Studio Code.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: joebstl
*/

/* ---------- Base ---------- */
:root {
	--jp-primary: var(--wp--preset--color--primary, #e8441c);
	--jp-text: var(--wp--preset--color--text, #14181d);
	--jp-paper: var(--wp--preset--color--paper, #f4f2ee);
	--jp-muted: var(--wp--preset--color--muted, #6b7280);
	--jp-line: 1px solid currentColor;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
body { -webkit-font-smoothing: antialiased; }

.jp-eyebrow {
	font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jp-primary);
	display: inline-block;
	margin-bottom: 0.5rem;
}

/* Light text on hero / inverse bands */
.jp-hero h1, .jp-hero p, .jp-hero .jp-eyebrow, .jp-hero a { color: #fff; }
.jp-hero .jp-eyebrow { color: #fff; }
.jp-hero-link { text-decoration: underline; text-underline-offset: 3px; }
.jp-hero .wp-block-cover__inner-container { max-width: 62rem; margin-left: auto; margin-right: auto; }
/* Full-bleed bands: keep the background edge-to-edge but inset their columns from the edges */
.wp-block-group.alignfull > .wp-block-columns.alignwide,
.wp-block-group.alignfull > .wp-block-group.alignwide:not(.wp-block-columns) {
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}

/* Price tables: inset from the band edges so cells/text never touch the viewport edge */
.jp-table {
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}

/* Ink (dark) band: white text. The closing CTA is the only ink-background group. */
.wp-block-group.has-ink-background-color h1,
.wp-block-group.has-ink-background-color h2,
.wp-block-group.has-ink-background-color p,
.wp-block-group.has-ink-background-color .jp-eyebrow { color: #fff; }

/* No white crack between two consecutive full-bleed color bands */
.wp-block-group.alignfull.has-background + .wp-block-group.alignfull.has-background { margin-top: 0 !important; }

/* ---------- Ruled grid ---------- */
.jp-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0;
	border-top: 1px solid var(--jp-text);
	border-left: 1px solid var(--jp-text);
}
/* Neutralize WordPress block-gap margins on grid items so the ruled lines connect */
.jp-grid > .wp-block-group { margin: 0 !important; }
.jp-cell {
	border-right: 1px solid var(--jp-text);
	border-bottom: 1px solid var(--jp-text);
	padding: clamp(1.25rem, 3vw, 2.5rem);
	min-width: 0;
}
.jp-cell--nogrid { border: 0; padding: 0; }
.jp-span2 { grid-column: span 2; }
.jp-span3 { grid-column: span 3; }
.jp-span4 { grid-column: span 4; }
.jp-span6 { grid-column: span 6; }
.jp-grid .wp-block-image { margin: 0; }
.jp-grid .wp-block-image img { width: 100%; display: block; height: auto; }
.jp-tile img { aspect-ratio: 4 / 3; object-fit: cover; }
.jp-muted { color: var(--jp-muted); }
.jp-stat {
	font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif);
	font-weight: 800; color: var(--jp-primary); line-height: 1; letter-spacing: -0.03em;
	font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 0.6rem;
}
.jp-step {
	font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif);
	font-weight: 800; color: var(--jp-primary); line-height: 1; font-size: 1.1rem;
	display: inline-block; border: 1.5px solid var(--jp-primary); padding: 0.4rem 0.75rem; margin: 0 0 0.75rem;
}
.jp-sectionhead .jp-muted { margin: 0; text-align: right; }

@media (max-width: 960px) {
	.jp-grid { grid-template-columns: repeat(2, 1fr); }
	.jp-span2, .jp-span3, .jp-span4 { grid-column: span 1; }
}
@media (max-width: 640px) {
	.jp-grid { grid-template-columns: 1fr; }
	.jp-span2, .jp-span3, .jp-span4 { grid-column: auto; }
}

/* ---------- Start: Unser Angebot card grid ---------- */
.jp-cardgrid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border: 0; }
.jp-cardgrid > .wp-block-group.jp-cell {
	border: 1px solid rgba(20,24,29,0.08);
	border-radius: 16px;
	padding: 1.8rem 1.7rem 1.6rem;
	background: #fff;
	box-shadow: 0 16px 40px rgba(20,24,29,0.10);
}
.jp-cardgrid .jp-tile h3 { margin: 0 0 0.55rem; }
.jp-cardgrid .jp-tile p { margin: 0; color: var(--jp-muted); }
/* Two-column card variant (feature tiles with photo) */
.jp-cardgrid--2 { grid-template-columns: repeat(2, 1fr); }
.jp-cardgrid .jp-tile > .wp-block-image {
	margin: calc(-1.8rem) calc(-1.7rem) 1.5rem;
	border-radius: 16px 16px 0 0;
	overflow: hidden;
}
.jp-cardgrid .jp-tile > .wp-block-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.jp-cardgrid .jp-tile .wp-block-buttons { margin-top: auto; padding-top: 1.25rem; }
.jp-cardgrid .jp-tile h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.15; margin: 0 0 0.7rem; }
.jp-cardgrid .jp-tile ul { margin: 0.8rem 0 0 1.1rem; padding: 0; }
.jp-cardgrid .jp-tile ul li { margin: 0 0 0.4rem; }
.jp-cardgrid .jp-tile .wp-block-button { width: 100%; margin: 0; }
.jp-cardgrid .jp-tile .wp-block-button__link { width: 100%; justify-content: center; }
/* Check-in CTAs larger */
.jp-checkin { gap: 1rem; }
.jp-checkin .wp-block-button { flex: 1 1 0; min-width: 0; }
.jp-checkin .wp-block-button__link {
	width: 100%; justify-content: center;
	padding: 1.2rem 1.6rem; font-size: 1.1rem;
}

/* Check-in highlight note (red, prominent, above the buttons) */
.jp-checkin-note {
	color: var(--wp--preset--color--primary) !important;
	font-weight: 700 !important;
	font-size: 1.6rem !important;
	line-height: 1.35;
	max-width: 70ch;
}
.jp-checkin-note strong {
	font-weight: 800;
}
.jp-checkin-note a {
	color: inherit;
}

/* Check-in arrow pointing down to both buttons */
.jp-checkin-arrow {
	color: var(--wp--preset--color--primary) !important;
	font-size: 2rem !important;
	line-height: 1;
	margin: 1rem 0 0.5rem !important;
}
@media (max-width: 900px) {
	.jp-cardgrid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
	.jp-cardgrid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.jp-cardgrid--2 { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 560px) {
	.jp-cardgrid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Start: Wie es funktioniert step cards ---------- */
.jp-stepcard {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(20,24,29,0.08);
	border-radius: 16px;
	padding: 1.7rem 1.6rem 1.5rem;
	box-shadow: 0 14px 36px rgba(20,24,29,0.09);
}
.jp-stepcard .jp-step { border-radius: 999px; padding: 0.35rem 0.75rem; margin: 0 0 1rem; }
.jp-stepcard h3 { margin: 0 0 0.5rem; }
.jp-stepcard p:not(.jp-step) { margin: 0 0 0.25rem; color: var(--jp-muted); }
.jp-stepcard .wp-block-buttons { margin-top: auto; padding-top: 1.4rem; }
.jp-stepcard .wp-block-button { width: 100%; margin: 0; }
.jp-stepcard .wp-block-button__link {
	width: 100%; justify-content: center;
	padding: 0.9rem 1.4rem; font-size: 0.98rem;
}

/* ---------- Warum Jöbstl: 4-across card row ---------- */
.jp-cardgrid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .jp-cardgrid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .jp-cardgrid--4 { grid-template-columns: 1fr; } }

/* ---------- Start: Bereit für die Piste? Standort cards ---------- */
.jp-stand {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(20,24,29,0.08);
	border-radius: 16px;
	padding: 2rem 1.9rem 1.8rem;
	box-shadow: 0 18px 44px rgba(20,24,29,0.14);
}
.jp-stand h3 { color: var(--jp-text) !important; margin: 0 0 0.7rem; }
.jp-stand p:not(.jp-eyebrow) { margin: 0 0 1.5rem; color: var(--jp-muted) !important; }
.jp-stand .jp-eyebrow { color: var(--jp-primary) !important; margin-bottom: 0.4rem; }
.jp-stand .wp-block-buttons { margin-top: auto; }
.jp-stand { position: relative; }
.jp-stand .jp-stretch a::after { content: ""; position: absolute; inset: 0; }
.jp-stand .wp-block-button.is-style-outline { position: relative; z-index: 2; }
.jp-stand .is-style-outline .wp-block-button__link { border-color: var(--jp-text); color: var(--jp-text); }
.jp-stand .wp-block-image {
	margin: calc(-2rem) calc(-1.9rem) 1.5rem;
	border-radius: 15px 15px 0 0;
	overflow: hidden;
}
.jp-stand .wp-block-image img {
	width: 100%; height: auto; display: block;
	aspect-ratio: 16 / 9; object-fit: cover;
}

/* ---------- Buttons (secondary = outline) ---------- */
.wp-block-button__link,
.wp-element-button {
	font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: none;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--jp-text);
	border: 1.5px solid var(--jp-text);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--jp-text);
	color: #fff;
}

/* Outline-Buttons auf dunklem Grund sichtbar machen (weißer Rahmen/Text) */
.has-ink-background-color .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: #fff !important;
	color: #fff !important;
}
.has-ink-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff !important;
	color: var(--jp-text) !important;
}
.wp-block-button.is-style-fill .wp-block-button__link:hover { background: var(--jp-text); }

/* ---------- Start: Standort-Auswahl (jp-locpick) CTAs ---------- */
.jp-locpick .wp-block-button { width: 100%; }
.jp-locpick .wp-block-button__link {
	width: 100%;
	justify-content: center;
	padding: 1.05rem 1.5rem;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
}
.jp-locpick .wp-block-buttons { margin-top: 1.4rem; }

/* ---------- Header ---------- */
.jp-header {
	position: relative;
	z-index: 50;
	background: #fff;
	box-shadow: 0 1px 0 rgba(20,24,29,0.05), 0 14px 34px -24px rgba(20,24,29,0.28);
}
.jp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.94rem 0;
}
.jp-header .jp-logo { margin: 0; line-height: 0; }
.jp-header .jp-logo img { height: 58px; width: auto; display: block; }
.jp-header .site-title {
	font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif);
	font-weight: 800;
	letter-spacing: -0.02em;
	font-size: 1.15rem;
	line-height: 1.1;
	text-decoration: none;
	color: var(--jp-text);
}
.jp-header .site-title a { color: inherit; text-decoration: none; }
.jp-nav {
	display: flex;
	align-items: center;
}
.jp-nav .wp-block-navigation__container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(0.75rem, 1.6vw, 1.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}
.jp-nav .wp-block-navigation-item { position: relative; }
.jp-nav .wp-block-navigation-item a {
	color: var(--jp-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.98rem;
	padding: 0.35rem 0;
}
.jp-nav .wp-block-navigation-item a:hover { color: var(--jp-primary); }
.jp-header .jp-nav a:focus-visible { outline: 2px solid var(--jp-primary); outline-offset: 2px; }

/* Dropdown submenus */
.jp-nav .wp-block-navigation__submenu-icon { font-size: 0.8em; vertical-align: middle; }
.jp-nav .wp-block-navigation__submenu-container {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--jp-text);
	margin: 0;
	padding: 0.4rem 0;
	list-style: none;
	z-index: 60;
}
.jp-nav .wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
.jp-nav .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container {
	display: block;
}
.jp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a {
	display: block;
	padding: 0.55rem 1rem;
	font-weight: 500;
	font-size: 0.95rem;
}
.jp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
	background: rgba(20,24,29,0.05);
	color: var(--jp-primary);
}
.jp-nav__cta { display: inline-block; }
.jp-nav__cta a {
	background: var(--jp-primary);
	color: #fff !important;
	padding: 0.7rem 1.1rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}
.jp-nav__cta a:hover { background: var(--jp-text); }

/* Online-Check-in button: white bg, black outline/text, invert on hover */
.jp-checkin .wp-block-button__link {
	background: #fff !important;
	color: var(--jp-text) !important;
	border: 1.5px solid var(--jp-text) !important;
}
.jp-checkin .wp-block-button__link:hover {
	background: var(--jp-text) !important;
	color: #fff !important;
}

/* Header CTA: check-in button must match the size of the buchen button
   (the generic .jp-checkin rule below is for the large page CTAs) */
.jp-nav__cta .jp-checkin .wp-block-button__link {
	font-size: 13px !important;
	line-height: 1.2 !important;
	padding-top: 10.2px !important;
	padding-bottom: 10.2px !important;
	padding-left: 17.6px !important;
	padding-right: 17.6px !important;
}

/* Keep logo, nav and CTA on one row: nav flexes in the middle */
.jp-header__inner { flex-wrap: nowrap; }
.jp-header .jp-logo img { height: 68px; }
@media (min-width: 1101px) {
	.jp-header .jp-logo img { height: 78px; }
}
.jp-header .jp-nav { flex: 1 1 auto; justify-content: flex-end; flex-wrap: nowrap; }
.jp-header .jp-nav__cta { gap: 0.6rem; flex-wrap: nowrap; }
@media (max-width: 1100px) {
	.jp-header .jp-nav { gap: 0.9rem; }
	.jp-header .jp-nav .wp-block-navigation-item a { font-size: 0.94rem; }
}

/* Mobile menu toggle (higher specificity than .is-layout-flex so it wins the cascade) */
.jp-header .jp-burger { display: none; }
.jp-header .jp-mobile-menu { display: none; }
@media (max-width: 980px) {
	.jp-header .jp-nav { display: none; }
	.jp-header .jp-nav__cta { display: none; }
	.jp-header .jp-burger {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; cursor: pointer; user-select: none;
		border: 1px solid var(--jp-text); background: #fff; font-weight: 700; font-size: 1.4rem; line-height: 1;
	}
	.jp-header .jp-mobile-menu {
		display: none;
		flex-direction: column;
		gap: 0;
		border-top: 1px solid rgba(20,24,29,0.14);
		padding: 0; 
	}
	.jp-header .jp-mobile-menu > p { margin: 0; }
	.jp-header .jp-mobile-menu > p > a {
		display: block;
		padding: 0.85rem 0;
		border-bottom: 1px solid rgba(20,24,29,0.12);
		text-decoration: none; color: var(--jp-text); font-weight: 600; font-size: 1.02rem;
	}
	.jp-header .jp-mobile-menu .wp-block-buttons {
		display: flex; flex-direction: column; width: 100%;
		margin-top: 1.1rem; gap: 0.7rem;
	}
	.jp-header .jp-mobile-menu .wp-block-button { width: 100%; }
	.jp-header .jp-mobile-menu .wp-block-button__link {
		width: 100%; box-sizing: border-box;
		text-align: center; justify-content: center;
		padding: 0.95rem 1rem; font-size: 1rem; line-height: 1.3;
	}
	.jp-header .jp-mobile-menu.is-open { display: flex; }

	/* Skigebiete-Untermenüs (Akkoordion) im mobilen Menü */
	.jp-mobile-menu .jp-mm-item { border-bottom: 1px solid rgba(20,24,29,0.12); }
	.jp-mobile-menu .jp-mm-head {
		display: flex; align-items: center; justify-content: space-between;
		margin: 0;
	}
	.jp-mobile-menu .jp-mm-head > a {
		display: block; padding: 0.85rem 0;
		text-decoration: none; color: var(--jp-text); font-weight: 600; font-size: 1.02rem;
	}
	.jp-mobile-menu .jp-mm-toggle {
		background: none; border: none; cursor: pointer; padding: 0.4rem 0.3rem 0.4rem 0.8rem;
		color: var(--jp-primary); font-size: 1.05rem; line-height: 1;
	}
	.jp-mobile-menu .jp-mm-sub { display: block; }
	.jp-mobile-menu .jp-mm-sub.is-collapsed { display: none; }
	.jp-mobile-menu .jp-mm-sub p { margin: 0; }
	.jp-mobile-menu .jp-mm-sub a {
		display: block; padding: 0.6rem 0 0.6rem 1.1rem;
		text-decoration: none; color: var(--jp-muted); font-weight: 500; font-size: 0.98rem;
		border-top: 1px solid rgba(20,24,29,0.07);
	}
	.jp-mobile-menu .jp-mm-sub a:hover { color: var(--jp-primary); }
}

/* Mobile sticky CTA */
.jp-sticky-cta { display: none; }
@media (max-width: 980px) {
	.jp-sticky-cta {
		display: block;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 60;
		margin: 0 !important;
		padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--jp-text);
	}
	.jp-sticky-cta .wp-block-button { width: 100%; margin: 0 !important; }
	.jp-sticky-cta .wp-block-button__link { width: 100%; display: block; text-align: center; }
	.jp-sticky-cta .wp-block-button.is-style-fill .wp-block-button__link { color: #fff !important; }
}

/* ---------- Footer ---------- */
/* Footer bündig unter dem letzten Abschnitt – kein weißer Streifen */
.wp-site-blocks > .wp-block-template-part:has(> .jp-footer) { margin-top: 0; }
/* Header bündig mit dem ersten Inhalt – kein Spalt unter der Header-Linie */
.wp-site-blocks > main { margin-top: 0; }
.jp-footer { padding-top: var(--wp--preset--spacing--xl, 64px); padding-bottom: var(--wp--preset--spacing--xl, 64px); border-top: 1px solid rgba(255,255,255,0.14); }
.jp-footer a { color: inherit; text-decoration: none; }
.jp-footer a:hover { color: var(--jp-primary); }
.jp-footer .jp-eyebrow { color: var(--jp-primary) !important; margin-bottom: 0.6rem; }
.jp-footer .wp-block-separator { border-color: rgba(255,255,255,0.18) !important; opacity: 1; margin-top: var(--wp--preset--spacing--lg, 40px); margin-bottom: var(--wp--preset--spacing--lg, 40px); }
.jp-footer .wp-block-columns .wp-block-column:nth-child(4) { text-align: right; }

/* ---------- Price block ---------- */
.jp-price {
	display: inline-flex;
	align-items: baseline;
	gap: 0.45rem;
	line-height: 1;
}
.jp-price__ab {
	font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--jp-muted);
}
.jp-price__value {
	font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif);
	font-weight: 800;
	font-size: clamp(1.6rem, 3.5vw, 2.8rem);
	letter-spacing: -0.03em;
	color: var(--jp-text);
}
.jp-price__note { color: var(--jp-muted); font-size: 0.85rem; }

/* ---------- Price tables ---------- */
.jp-table { margin-top: 1rem; overflow-x: auto; }
.jp-table__title {
	font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif);
	font-size: 1.3rem;
	margin: 0 0 0.75rem;
}
.jp-table table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 480px; }
.jp-table th, .jp-table td {
	border-bottom: 1px solid rgba(20,24,29,0.25);
	border-right: 1px solid rgba(20,24,29,0.25);
	padding: 0.72rem 0.9rem;
	text-align: left;
	vertical-align: top;
}
.jp-table tr:last-child th, .jp-table tr:last-child td { border-bottom: none; }
.jp-table th:last-child, .jp-table td:last-child { border-right: none; }
.jp-table thead th {
	font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif);
	font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--jp-muted); font-weight: 700;
}
.jp-table .jp-table__preis { font-weight: 700; white-space: nowrap; }
.jp-table__offer .jp-table__detail { display: block; color: var(--jp-muted); font-size: 0.85rem; font-weight: 400; }

/* ---------- Cards / offer tiles ---------- */
.jp-tile { display: flex; flex-direction: column; height: 100%; }
.jp-tile img { width: 100%; height: auto; padding: 0; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.jp-tile h3 { margin: 0.9rem 0 0.4rem; }
.jp-tile p { margin: 0 0 1rem; }
.jp-tile .jp-tile__foot { margin-top: auto; }

/* ---------- Contact page ---------- */
.jp-page-head { text-align: center; padding-bottom: 0 !important; }
.jp-page-head .wp-block-post-title { text-align: center; }
.jp-lede { font-size: 1.15rem; max-width: 46rem; margin-left: auto !important; margin-right: auto !important; text-align: left; }
.jp-lede-track > .jp-lede { margin-left: auto !important; margin-right: auto !important; text-align: left; }
.jp-contactcard {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(20,24,29,0.08);
	border-radius: 18px;
	padding: 1.9rem 1.9rem 1.4rem;
	box-shadow: 0 18px 44px rgba(20,24,29,0.10);
}
.jp-contactcard h2 { margin: 0.3rem 0 0; }
.jp-contactcard .jp-addr { margin: 0.7rem 0 0; font-size: 1.05rem; }
.jp-contactcard .wp-block-separator { margin: 1.35rem 0; border-color: rgba(20,24,29,0.14); }
.jp-contactlist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.jp-contactlist li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px dashed rgba(20,24,29,0.12); }
.jp-contactlist li:last-child { border-bottom: 0; }
.jp-contactlist li span { color: var(--jp-muted); letter-spacing: 0.02em; }
.jp-contactlist a { color: var(--jp-text); font-weight: 600; text-decoration: none; }
.jp-contactlist a:hover { color: var(--jp-primary); }
.jp-treff { margin: 0 0 1.1rem; color: var(--jp-muted); font-size: 0.95rem; border-left: 3px solid var(--jp-primary); padding-left: 0.85rem; }
.jp-cardact { margin-top: auto; }
.jp-route-c { margin-top: auto; padding-top: 1.3rem; }
.jp-route-c a { display: block; text-align: center; border: 1px solid rgba(20,24,29,0.22); border-radius: 10px; padding: 0.72rem 1rem; font-weight: 600; color: var(--jp-text); text-decoration: none; }
.jp-route-c a:hover { border-color: var(--jp-primary); color: var(--jp-primary); }
.jp-contact-note { background: #fff; border: 1px solid rgba(20,24,29,0.08); border-radius: 16px; padding: 1.7rem 1.9rem; text-align: center; box-shadow: 0 12px 30px rgba(20,24,29,0.07); }
.jp-contact-note p:not(.jp-eyebrow) { margin: 0.35rem 0 0; }
.jp-cta-row { margin: 1.5rem auto 4.5rem !important; justify-content: center; }
/* Buchen: Whitespace vor dem Footer unter der letzten Sektion */
.page-id-335 .entry-content > .alignwide:last-child { margin-bottom: 4.5rem !important; }

/* ---------- Anfahrt map box ---------- */
.jp-map { max-width: 720px; margin: 2rem auto 0; }
.jp-map img { width: 100%; height: auto; display: block; background: #fff; padding: 0.6rem; border: 1px solid rgba(20,24,29,0.08); border-radius: 14px; box-shadow: 0 18px 44px rgba(20,24,29,0.12); }
@media (max-width: 781px) {
	.jp-map { margin-top: 1.5rem; }
}

/* ---------- Anfahrt image + info card ---------- */
.jp-anfahrt-cols { align-items: stretch; }
.jp-anfahrt-cols > .wp-block-column:first-child .wp-block-image {
	margin: 0; height: 100%;
}
.jp-anfahrt-cols > .wp-block-column:first-child .wp-block-image img {
	width: 100%; height: 100%; object-fit: cover;
	display: block; border-radius: 16px;
	box-shadow: 0 16px 40px rgba(20,24,29,0.10);
}
.jp-anfahrt {
	display: flex; flex-direction: column; height: 100%;
	background: #fff; border: 1px solid rgba(20,24,29,0.08); border-radius: 16px;
	padding: 1.9rem 1.9rem 1.7rem;
	box-shadow: 0 16px 40px rgba(20,24,29,0.10);
}
.jp-anfahrt .jp-eyebrow { margin-bottom: 0.6rem; }
.jp-anfahrt .jp-addr { font-weight: 700; font-size: 1.15rem; line-height: 1.35; margin: 0 0 1.2rem; }
.jp-anfahrt .wp-block-separator { margin-top: 0; margin-bottom: 1.25rem; border-color: rgba(20,24,29,0.14); }
.jp-anfahrt p:not(.jp-eyebrow):not(.jp-addr):not(.jp-anfahrt-links) { margin: 0; color: var(--jp-muted); }
.jp-anfahrt .jp-anfahrt-links { margin: 1.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(20,24,29,0.08); }
.jp-anfahrt a { color: var(--jp-primary); text-decoration: none; font-weight: 600; }
.jp-anfahrt a:hover { color: var(--jp-text); }
@media (max-width: 781px) {
	.jp-anfahrt { margin-top: 1.25rem; }
}

/* ---------- Section headings ---------- */
.jp-sectionhead { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; margin-bottom: 2rem; }
.jp-sectionhead .jp-eyebrow { margin-bottom: 0; }
.jp-sectionhead h2 { margin: 0; }

/* ---------- Motion (progressive enhancement) ---------- */
[data-reveal] { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
.js [data-reveal].is-hidden { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	[data-reveal].is-hidden, [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Standort-Umschalter ---------- */
.jp-standort-cards { gap: 1rem; margin-top: 1.25rem; }
.jp-standort-cards .wp-block-button__link { min-width: 12rem; justify-content: center; }
.jp-tabbar { gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.jp-tab { }
.jp-location-panel.is-hidden { display: none; }
.jp-location-panel { margin-top: 1.5rem; }
.jp-tab.is-active,
.jp-tabbtn.is-active { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.jp-tabbtn.is-active .wp-block-button__link { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: #fff; }
@media (prefers-reduced-motion: reduce) {
	.jp-tab, .jp-tabbtn { transition: none; }
}

#anfahrt figure.wp-block-image.size-full img { width: 100%; height: auto; }

/* ---------- Cookie-Banner ---------- */
.jp-cookiebar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 80;
	background: var(--jp-text);
	color: #fff;
	padding: 0.9rem 1.25rem;
	font-size: 0.95rem;
	box-shadow: 0 -6px 24px rgba(20,24,29,.14);
}
.jp-cookiebar__inner {
	max-width: 1160px;
	margin: 0 auto;
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.jp-cookiebar a { color: #fff; text-decoration: underline; }
.jp-cookiebar a:hover { color: var(--jp-primary); }
.jp-cookiebar__ok {
	background: var(--jp-primary);
	color: #fff;
	border: 1px solid var(--jp-primary);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 0.65rem 1.2rem;
	cursor: pointer;
	white-space: nowrap;
}
.jp-cookiebar__ok:hover { background: #fff; color: var(--jp-text); border-color: #fff; }
@media (max-width: 980px) {
	.jp-cookiebar { bottom: calc(3.1rem + env(safe-area-inset-bottom)); }
	.jp-cookiebar__inner { display: block; }
	.jp-cookiebar__ok { width: 100%; margin-top: 0.6rem; }
}

/* ---------- Angebots-Karten ---------- */
.jp-offergrid { gap: 1.75rem; }
.jp-offer {
	background: #fff;
	border: 1px solid rgba(20, 24, 29, 0.08);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(20,24,29,.05), 0 18px 40px -22px rgba(20,24,29,.35);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.jp-offer:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,24,29,.06), 0 28px 50px -22px rgba(20,24,29,.42); }
.jp-offer img { width: 100%; height: 120px; padding: 0; object-fit: cover; display: block; }
.jp-offer figure { margin: 0; line-height: 0; }
.jp-offer h3 { margin: 1.1rem 1.25rem 0.2rem; font-size: clamp(1.2rem, 2vw, 1.4rem); }
.jp-offer > p:not([class]) { margin: 0.2rem 1.25rem 0.4rem; font-size: 0.95rem; line-height: 1.5; color: var(--jp-muted); }
.jp-offer .jp-price { margin: 0.35rem 1.25rem 0.3rem; }
.jp-offer .jp-price__value { font-size: 2.15rem; }
.jp-offer .jp-table { margin: 0.25rem 1.25rem 0.5rem; }
.jp-offer .jp-table table, .jp-offer .jp-table__list { min-width: 0; width: 100%; border-collapse: collapse; }
.jp-offer .jp-table__list td { padding: 0.3rem 0.25rem; border-bottom: 1px solid rgba(20,24,29,0.1); font-size: 0.88rem; }
.jp-offer .jp-table__list .jp-table__offer { width: 40%; }
.jp-offer .jp-table__list .jp-table__offer strong { font-weight: 600; }
.jp-offer .jp-table__list .jp-table__offer .jp-table__detail { display: block; color: var(--jp-muted); font-size: 0.8rem; }
.jp-offer .jp-table__list .jp-table__dauer { text-align: right; color: var(--jp-muted); white-space: nowrap; }
.jp-offer .jp-table__list .jp-table__preis { text-align: right; font-weight: 700; font-family: var(--wp--preset--font-family--archivo, 'Archivo', sans-serif); white-space: nowrap; }
.jp-offer .jp-tile__foot { margin-top: auto; border-top: 1px solid rgba(20,24,29,0.1); padding: 0.9rem 1.25rem 1rem; }
.jp-offer .jp-tile__foot .wp-block-button { width: 100%; }
.jp-offer .jp-tile__foot .wp-block-button__link { width: 100%; justify-content: center; }
@media (max-width: 600px) {
	.jp-offergrid { gap: 1.25rem; grid-template-columns: 1fr !important; }
}

/* ---------- Offer rows (2026/27) ---------- */
.jp-offers { display: flex; flex-direction: column; }
.jp-offerrow { border-top: 1px solid rgba(20,24,29,0.14); padding: 1.7rem 0; }
.jp-offerrow:last-child { border-bottom: 1px solid rgba(20,24,29,0.14); }
.jp-offerrow__cols { align-items: flex-start !important; }
.jp-offerrow__cols .jp-offerrow__media { align-self: flex-start !important; }
.jp-offerrow__media figure { margin: 0; line-height: 0; }
.jp-offerrow__media img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; display: block; }
.jp-buchen-hero { margin-bottom: 6rem !important; }
.jp-backtop { margin-bottom: 4.5rem !important; }
.jp-verleih-img { max-width: 460px; }
.jp-verleih-img img { width: 100%; height: auto; border-radius: 12px; display: block; }
.jp-gallery { margin-top: 2rem; }
.jp-gallery .wp-block-image img { border-radius: 12px; }
.jp-offerrow h3 { margin-top: 0; font-size: clamp(1.55rem, 2.3vw, 1.8rem); letter-spacing: -0.01em; }
.jp-offerrow .jp-price__value { font-size: clamp(1.25rem, 1.6vw, 1.45rem); color: var(--jp-text); }
.jp-facts { margin: 0.5rem 0 0.9rem; padding: 0; list-style: none; color: var(--jp-muted); font-size: 0.95rem; line-height: 1.6; }
.jp-facts li { padding-left: 1.15rem; position: relative; }
.jp-facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5em; height: 1px; background: var(--jp-primary); }
.jp-offerrow .jp-price { margin-bottom: 0.9rem; }
.jp-offer-details summary { cursor: pointer; font-weight: 700; color: var(--jp-primary); font-family: var(--wp--preset--font-family--archivo,'Archivo',sans-serif); }
.jp-offer-details[open] { border-top: 1px solid rgba(20,24,29,0.14); padding-top: 0.7rem; }
.jp-offer-details .jp-table { margin-top: 0.7rem; }
.jp-offer-details .jp-table table { min-width: 0; }
.jp-offer-details .jp-table__list td { padding: 0.4rem 0.3rem; border-bottom: 1px solid rgba(20,24,29,0.1); }
.jp-offerrow__cta { margin-top: 0.5rem; }

/* Prominent route CTA at the top of the Anfahrt section */
.jp-route { margin: 1.4rem 0 0.4rem; }
.jp-route .wp-block-button__link { padding: 1rem 1.8rem; font-size: 1.05rem; font-weight: 700; }

/* Home hero split: text + company film */
.jp-hero-split { border-bottom: 1px solid rgba(20,24,29,0.14); }
.jp-hero-split__text h1 { margin-top: 0.4rem; }
.jp-hero-split__media .wp-block-embed { margin: 0; }
.jp-hero-split__media .wp-block-embed__wrapper iframe { border-radius: 12px; box-shadow: 0 16px 44px rgba(20,24,29,0.16); }
@media (max-width: 781px) {
	.jp-hero-split__media { margin-top: 2rem; }
}
@media (max-width: 781px) {
	.jp-offerrow__cols { gap: 1.2rem; }
	.jp-offerrow__media img { height: 190px; }
}

/* ---------- Kurstermine (monatliche Übersicht) ---------- */
.jp-kurstermine .jp-term__month {
	color: var(--wp--preset--color--primary) !important;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 700;
	font-size: .8rem;
	margin: 0 0 .85rem;
}
.jp-kurstermine .jp-term__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.jp-kurstermine .jp-term__list li {
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .42rem 0;
	border-bottom: 1px solid rgba(20,24,29,.08);
	margin: 0;
	font-weight: 500;
}
.jp-kurstermine .jp-term__list li:last-child { border-bottom: 0; }
.jp-kurstermine .jp-term__list li::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	flex: none;
}

/* Kurszeiten-Hinweis */
.jp-kurstermine .jp-kurstermine-time {
	background: rgba(232,68,28,.07);
	border: 1px solid rgba(232,68,28,.18);
	border-radius: 10px;
	padding: .75rem 1.1rem;
	margin: .25rem 0 1.6rem;
	font-weight: 500;
	color: var(--jp-text);
}

/* Sekundärer CTA unter den Buchungs-Buttons in Standort-Kacheln */
.jp-cardgrid .jp-tile .jp-link-cta { margin-top: 0.9rem; color: var(--jp-muted); }
.jp-cardgrid .jp-tile .jp-link-cta a {
	color: var(--jp-primary);
	font-weight: 600;
	text-decoration: none;
}
.jp-cardgrid .jp-tile .jp-link-cta a:hover { text-decoration: underline; }
