/* JAM Coaching Berlin – Header & Footer (ersetzt Elementor-Pro-Theme-Builder #13 / #22) */

.jam-header,
.jam-footer {
	--jam-green: #70a86a;
	--jam-navy: #333461;
	--jam-text: #7a7a7a;
	--jam-accent: #61ce70;
	--jam-font: "Kumbh Sans", sans-serif;
	font-family: var(--jam-font);
	box-sizing: border-box;
}
.jam-header *,
.jam-footer * { box-sizing: border-box; }

/* ---------- Header ---------- */
.jam-header { background: #fff; position: relative; }
.jam-header__inner {
	display: flex;
	max-width: 1281px;
	margin: 0 auto;
}
.jam-header img { display: block; max-width: 100%; height: auto; }

/* Desktop (>= 1025px) */
.jam-header__mobile { display: none; }
.jam-header__desktop { padding: 20px 0 10px; margin-bottom: 10px; }
.jam-header__desktop .jam-header__inner { min-height: 60px; }
.jam-header__desktop .jam-header__logo {
	flex: 0 0 40%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: flex-start;
}
.jam-header__desktop .jam-header__logo img { width: 46%; margin-bottom: -16px; }
.jam-header__nav { flex: 0 0 40%; display: flex; justify-content: flex-end; align-self: center; }
.jam-header__cta { flex: 0 0 20%; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }

.jam-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.jam-menu li { margin: 0; padding: 0; }
.jam-menu a {
	display: block;
	padding: 13px 20px;
	font-family: var(--jam-font);
	font-size: 20px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: -0.4px;
	color: var(--jam-text);
	text-decoration: none;
	transition: color 0.3s;
}
.jam-menu a:hover,
.jam-menu a:focus,
.jam-menu .is-active > a { color: var(--jam-accent); }

.jam-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--jam-green);
	color: #fff;
	font-family: var(--jam-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
	border-radius: 25px;
	padding: 11px 31px;
	text-decoration: none;
	transition: opacity 0.3s;
}
.jam-btn:hover,
.jam-btn:focus { color: #fff; opacity: 0.9; }
.jam-btn__icon { display: inline-flex; width: 23px; height: 23px; }
.jam-btn__icon svg { width: 100%; height: 100%; }

/* Tablet und Mobil (<= 1024px): Burger-Menü */
@media (max-width: 1024px) {
	.jam-header__desktop { display: none; }
	.jam-header__mobile { display: block; }
	.jam-header__mobile .jam-header__inner { align-items: stretch; }
	.jam-header__mobile .jam-header__logo {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-width: 0;
	}
	.jam-header__burger-wrap {
		flex: 0 0 33%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-end;
	}
}
.jam-burger {
	background: #fff;
	border: 0;
	border-radius: 0;
	padding: 0.25em;
	color: var(--jam-green);
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	margin-left: auto;
}
.jam-burger svg { width: 1em; height: 1em; fill: var(--jam-green); display: block; }
.jam-burger svg.jam-burger__close { display: none; }
.jam-burger[aria-expanded="true"] svg.jam-burger__open { display: none; }
.jam-burger[aria-expanded="true"] svg.jam-burger__close { display: block; }
.jam-burger:hover, .jam-burger:focus { background: #fff; color: var(--jam-green); }

.jam-mobile-nav {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	margin-top: 16px;
	z-index: 9998;
	background: rgba(255, 255, 255, 0.87);
}
.jam-mobile-nav[hidden] { display: none; }
.jam-mobile-nav .jam-menu { display: block; }
.jam-mobile-nav .jam-menu a {
	padding: 9px 14px;
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.7px;
	color: #616161;
}
.jam-mobile-nav .jam-menu a:hover,
.jam-mobile-nav .jam-menu a:focus,
.jam-mobile-nav .jam-menu .is-active > a { background: #c5cfc2; color: #616161; }

@media (max-width: 767px) {
	.jam-header__mobile { min-height: 64px; margin-bottom: 9px; padding-top: 17px; }
	.jam-header__mobile .jam-header__logo { flex: 0 0 66%; margin-left: 10px; align-items: flex-start; justify-content: flex-start; }
	.jam-header__mobile .jam-header__logo img { width: 80%; margin-bottom: -17px; }
	.jam-header__burger-wrap { flex: 0 0 30%; }
	.jam-burger { font-size: 30px; }
	.jam-mobile-nav { margin-top: 16px; }
}

/* Tablet (768-1024px): Logo nicht auf Spaltenbreite aufblasen */
@media (min-width: 768px) and (max-width: 1024px) {
	.jam-header__mobile .jam-header__logo img { max-width: 340px; }
	.jam-header__mobile .jam-header__inner { padding: 12px 20px; }
}

/* ---------- Footer ---------- */
.jam-footer { background: #e1e4df; padding: 64px 0 48px; }
.jam-footer__inner { display: flex; width: 70%; max-width: 100%; margin: 0 auto; }
.jam-footer__col { margin-bottom: 20px; padding: 10px; min-width: 0; }
.jam-footer__col--logo { flex: 0 0 23%; margin-right: 70px; text-align: center; }
.jam-footer__col:not(.jam-footer__col--logo) { flex: 0 1 38%; }
.jam-footer__col--logo a { display: block; margin-bottom: 20px; }
.jam-footer__col--logo img { width: 40%; max-width: 40%; height: auto; }

.jam-footer__title {
	margin: 0;
	font-family: var(--jam-font);
	font-size: 19px;
	font-weight: 400;
	line-height: 30px;
	letter-spacing: 0.3px;
	color: #333461;
	margin-bottom: 20px;
}
.jam-footer__title b { font-weight: 400; }
.jam-footer__list { list-style: none; margin: 0 0 20px; padding: 0; }
.jam-footer__list--contact { margin-bottom: 40px; }
.jam-footer__list li { margin: 0; padding: 0; }
.jam-footer__list li:not(:last-child) { padding-bottom: 6px; }
.jam-footer__list li:not(:first-child) { margin-top: 6px; }
.jam-footer__list a { display: flex; align-items: flex-start; text-decoration: none; }
.jam-footer__icon { flex: 0 0 27.5px; width: 27.5px; display: inline-flex; align-items: center; justify-content: flex-start; padding-top: 4px; }
.jam-footer__icon svg { width: 22px; height: 22px; fill: var(--jam-green); }
.jam-footer__text {
	font-family: var(--jam-font);
	font-size: 19px;
	font-weight: 400;
	line-height: 30px;
	letter-spacing: 0.3px;
	color: rgba(74, 85, 108, 0.5);
	transition: color 0.3s;
}
.jam-footer__list a:hover .jam-footer__text { color: rgba(74, 85, 108, 0.8); }

@media (max-width: 767px) {
	.jam-footer { padding: 41px; }
	.jam-footer__inner { flex-direction: column; width: 100%; }
	.jam-footer__col--logo { flex: none; width: 100%; margin-right: 0; }
	.jam-footer__col:not(.jam-footer__col--logo) { flex: none; width: 100%; margin-bottom: 55px; }
}

/* Startseite: ganze Karte klickbar ueber den Titel-Link (statt Container-Link mit langem Ankertext) */
.jam-card { position: relative; cursor: pointer; }
.jam-card .elementor-heading-title a { color: inherit; text-decoration: inherit; }
.jam-card .elementor-heading-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.jam-card .elementor-widget-heading,
.jam-card .elementor-widget-heading > .elementor-widget-container { position: static; }

/* Barrierefreiheit: Links im Cookie-Banner nicht nur ueber Farbe erkennbar */
.cmplz-cookiebanner .cmplz-message a { text-decoration: underline; }

/* Startseite: Umbruch in "Lassen Sie uns<br>loslegen." nur auf dem Desktop (ein Widget fuer alle Breakpoints) */
@media (max-width: 1024px) { .jam-heading-lassen br { display: none; } }

/* Startseite: auf Smartphones kleineres Hero-Bild (828px statt 1440px) */
@media (max-width: 767px) {
	.elementor-10 .elementor-element.elementor-element-db6e6a6:not(.elementor-motion-effects-element-type-background),
	.elementor-10 .elementor-element.elementor-element-db6e6a6 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
		background-image: url("/wp-content/uploads/2025/03/Group-42963-mobile.jpg") !important;
	}
}
