/*
Theme Name: JB Coaching
Theme URI: https://bambach.care
Author: Joachim Bambach
Description: Zweisprachiges Block-Theme (Englisch, Deutsch unter /de/) für JB Professional Life Coaching im Stil des Logos „Neuer Morgen“: Nachtblau, Sonnengelb, Koralle, Petrol und Oliv, Schriften Fraunces und Nunito (lokal eingebunden). Nach dem Aktivieren legt ein Button im Dashboard alle Seiten mit den vorbereiteten Texten an.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jb-coaching
*/

/* Überschriften in Fraunces, weich wie im Logo */
h1, h2, h3, h4, .wp-block-heading { font-variation-settings: "SOFT" 100, "WONK" 0; }

/* Abstände zwischen Kopf, Inhalt und Fuß entfernen */
.wp-site-blocks > * { margin-block-start: 0; }
.jb-main { margin-block-start: 0; padding-top: 0; padding-bottom: 0; }
.jb-main > .wp-block-post-content > * { margin-block-start: 0; }

/* Kopfzeile */
.jb-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid #EADFCC;
	padding-top: 10px; padding-bottom: 10px;
}
.admin-bar .jb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .jb-header { top: 0; } }
.jb-header .wp-block-site-logo img { width: 220px; height: auto; }
.jb-header .wp-block-navigation-item__content { padding: 8px 14px; border-radius: 999px; }
.jb-header .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--cream); }
.jb-header .wp-block-navigation__container { gap: 4px; }
.jb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.2rem; }

/* Sprachumschalter */
.jb-header .wp-block-navigation { margin-left: auto; }
.jb-header p:has(> .jb-lang) { margin: 0; }
.jb-lang {
	display: inline-block; padding: 5px 12px; border: 2px solid var(--wp--preset--color--navy); border-radius: 999px;
	color: var(--wp--preset--color--navy); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-decoration: none;
}
.jb-lang:hover { background: var(--wp--preset--color--navy); color: #fff; }

/* Kleine Textelemente */
.jb-eyebrow {
	text-transform: uppercase; letter-spacing: .22em; font-size: .78rem;
	font-weight: 800; color: var(--wp--preset--color--petrol-dark);
	margin-bottom: .2em;
}
.jb-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 40em; }
.jb-small { font-size: .88rem; color: var(--wp--preset--color--muted); }
.jb-more a { font-weight: 600; text-decoration: none; }
.jb-more a::after { content: " \2192"; }
.jb-note {
	background: #FDF0EC; border-left: 4px solid var(--wp--preset--color--coral);
	padding: 16px 20px; border-radius: 8px; font-size: .95rem;
}

/* Abschnitte */
.jb-section { padding-top: 76px; padding-bottom: 76px; }
.jb-tint { background: var(--wp--preset--color--cream); }
.jb-hero {
	background:
		radial-gradient(ellipse 60% 70% at 80% 55%, rgba(242, 169, 59, .16), transparent 70%),
		linear-gradient(180deg, #fff 0%, var(--wp--preset--color--cream) 100%);
	padding-top: 72px; padding-bottom: 80px;
}
.jb-hero-cols { align-items: center !important; gap: 48px; }
.jb-hero-logo { margin-left: auto; margin-right: auto; }
.jb-hero-logo img { width: min(320px, 100%) !important; }
.jb-page-hero {
	background: var(--wp--preset--color--cream);
	border-bottom: 1px solid #EADFCC;
	padding-top: 64px; padding-bottom: 56px;
}
.jb-page-hero h1 { margin-top: .2em; margin-bottom: .4em; }
.jb-hero-business { border-top: 5px solid var(--wp--preset--color--petrol); }
.jb-hero-recovery { border-top: 5px solid var(--wp--preset--color--sun); }
.jb-split { gap: 48px; }

/* Karten */
.jb-cards { margin-top: 36px; gap: 24px; }
.jb-cards + .jb-cards { margin-top: 24px; }
.jb-card {
	position: relative; padding: 36px 32px 32px; border-radius: 14px;
	background: #fff; border: 1px solid #EADFCC; border-top: 6px solid var(--wp--preset--color--petrol);
	box-shadow: 0 10px 30px rgba(31, 51, 82, .07);
}
.jb-card-recovery { border-top-color: var(--wp--preset--color--sun); }
.jb-card h3 { font-size: 1.6rem; margin-top: .2em; }
.jb-card-tag { font-size: .8rem; font-weight: 700; letter-spacing: .2em; color: var(--wp--preset--color--muted); margin: 0; }
.jb-topic { background: #fff; border-radius: 14px; padding: 28px; border: 1px solid #EADFCC; }
.jb-topic h3 { border-left: 4px solid var(--wp--preset--color--olive); padding-left: 12px; margin-top: 0; }
.jb-topic p { color: var(--wp--preset--color--muted); margin-bottom: 0; }
.jb-value h3 { border-left: 0; padding-left: 0; }
.jb-value h3::before {
	content: ""; display: block; width: 34px; height: 34px; margin-bottom: 12px;
	background: url("assets/img/sun.svg") no-repeat center / contain;
}

/* Listen */
.jb-steps { list-style: none; counter-reset: s; padding: 0; }
.jb-steps li { counter-increment: s; position: relative; padding: 0 0 22px 60px; }
.jb-steps li::before {
	content: counter(s); position: absolute; left: 0; top: -4px;
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--navy); color: #fff; font-weight: 700;
}
.jb-checks { list-style: none; padding: 0; max-width: 40em; margin-left: auto !important; margin-right: auto !important; }
.jb-checks li { position: relative; padding: 10px 0 10px 38px; border-bottom: 1px solid #EADFCC; }
.jb-checks li::before {
	content: ""; position: absolute; left: 4px; top: 17px; width: 16px; height: 9px;
	border-left: 3px solid var(--wp--preset--color--olive); border-bottom: 3px solid var(--wp--preset--color--olive);
	transform: rotate(-45deg);
}
.jb-timeline { list-style: none; margin-top: 32px; padding: 0 0 0 24px; border-left: 3px solid var(--wp--preset--color--petrol); }
.jb-timeline li { position: relative; padding: 0 0 24px 20px; color: var(--wp--preset--color--muted); }
.jb-timeline li::before {
	content: ""; position: absolute; left: -33px; top: 6px; width: 15px; height: 15px;
	border-radius: 50%; background: var(--wp--preset--color--sun); border: 3px solid var(--wp--preset--color--cream);
}
.jb-timeline strong, .jb-fact strong { color: var(--wp--preset--color--navy); }
.jb-fact { color: var(--wp--preset--color--muted); }

/* Über mich und Kontakt */
.jb-portrait {
	aspect-ratio: 4 / 5; border-radius: 14px; background: var(--wp--preset--color--cream);
	border: 2px dashed #EADFCC; display: flex; flex-direction: column; align-items: center; justify-content: center;
	color: var(--wp--preset--color--muted); font-size: .9rem;
}
.jb-contact-card { background: var(--wp--preset--color--cream); border-radius: 14px; padding: 36px; }
.jb-contact-card .wp-block-button__link { word-break: break-all; }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--navy); border: 2px solid var(--wp--preset--color--navy);
	padding: 11px 24px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; }
.wp-block-button.is-style-jb-light > .wp-block-button__link { background: var(--wp--preset--color--sun); color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-jb-light > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); }

/* Aufruf am Seitenende */
.jb-cta { background: var(--wp--preset--color--navy); color: #fff; padding-top: 56px; padding-bottom: 56px; }
.jb-cta h2 { color: #fff; margin-bottom: .3em; }
.jb-cta p { margin: 0; color: #D5DCE6; }

/* Fußzeile */
.jb-footer {
	background: var(--wp--preset--color--navy-dark); color: #D5DCE6;
	padding-top: 48px; padding-bottom: 24px; font-size: .92rem;
}
.jb-footer a { color: #fff; }
.jb-footer-title { color: #fff; font-weight: 700; margin-bottom: .4em; }
.jb-footer-links { list-style: none; padding: 0; margin: 0; }
.jb-footer-links li { margin-bottom: 6px; }
.jb-footer-links a { text-decoration: none; }
.jb-footer-links a:hover { text-decoration: underline; }
.jb-copyright {
	max-width: var(--wp--style--global--wide-size); margin-left: auto !important; margin-right: auto !important;
	border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; font-size: .82rem;
}

/* Blog und Sonderseiten */
.jb-blog { padding-top: 56px !important; padding-bottom: 76px !important; }

/* Mobil */
@media (max-width: 781px) {
	.jb-section { padding-top: 56px; padding-bottom: 56px; }
	.jb-hero { padding-top: 40px; padding-bottom: 56px; }
	.jb-hero-cols > .wp-block-column:last-child { order: -1; }
	.jb-hero-logo img { width: 200px !important; }
	.jb-hero-logo { margin-left: 0; }
	.jb-header .wp-block-site-logo img { width: 160px; }
	.jb-card { padding: 28px 22px; }
	.jb-contact-card { padding: 26px 20px; }
	.jb-portrait { max-width: 320px; }
}
