/* ==========================================================================
   FPA Layout 0.1.1 – kompakter Kopfbereich + schmales Themen-Banner
   für Theme „Business Consultant Finder“ / Child „BCF Shop“.
   Alle Regeln hängen an Body-Klassen des Plugins (fpa-layout-…), damit jeder
   Teil einzeln abschaltbar ist und nach dem Deaktivieren nichts zurückbleibt.
   Keine externen Schriften/Dienste – es werden die Schriften des Themes genutzt.
   ========================================================================== */

body.fpa-layout {
	--fpa-lay-akzent: #f65002;
	--fpa-lay-banner-d: 130px;       /* Banner-Höhe Desktop (aus den Einstellungen) */
	--fpa-lay-banner-m: 90px;        /* sichtbare Banner-Höhe Handy (aus den Einstellungen) */
	--fpa-lay-ueber-d: 24px;         /* so weit schiebt sich die weiße Inhaltskarte ins Banner (Theme: 50px) */
	--fpa-lay-ueber-m: 14px;
	--fpa-lay-kopf-m: 56px;          /* Höhe der festen Handy-Kopfzeile des Themes (RD Navbar „fixed“) */
	--fpa-lay-krumen-h: 20px;        /* Platz für die Brotkrumen-Zeile */
}

/* --------------------------------------------------------------------------
   1) Logo-/Slogan-Zeile (Desktop, RD Navbar „static“): 133 px → ca. 58 px
   -------------------------------------------------------------------------- */
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-panel {
	padding: 10px 0;
}
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-brand {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	column-gap: 16px;
	row-gap: 2px;
	float: none;
	width: auto;
	max-width: none;
	flex: none;
	padding-left: 0;
	padding-right: 0;
}
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-brand > a,
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-brand .site-title {
	display: inline-block;
	font-size: 28px;
	line-height: 1.25;
}
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-brand .site-description {
	clear: none;
	margin: 0;
	padding-left: 16px;
	border-left: 2px solid var(--fpa-lay-akzent);
	font-size: 14px;
	line-height: 1.3;
}
/* Falls später ein Logo-Bild im Customizer gesetzt wird: Höhe begrenzen. */
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-brand img,
body.fpa-layout-kopf .rd-navbar-static .custom-logo {
	max-height: 44px;
	width: auto;
	margin-right: 4px;
}

/* --------------------------------------------------------------------------
   2) Menüleiste (Desktop): 61 px → 47 px
   -------------------------------------------------------------------------- */
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-nav > li > a {
	padding-top: 11px;
	padding-bottom: 11px;
	font-size: 15px;
}

/* Aktiver Eltern-Menüpunkt (z. B. auf „Buchbare Touren“) in Markenorange statt Theme-Grün. */
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-nav > li.current_page_parent > a,
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-nav > li.current-menu-parent > a,
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-nav > li.current-menu-ancestor > a {
	color: var(--fpa-lay-akzent);
}
body.fpa-layout-kopf .rd-navbar-static .rd-navbar-nav > li.current_page_parent > a::before {
	border-color: var(--fpa-lay-akzent);
}

/* Handy: Menü-Knopf in Markenorange statt Theme-Grün. */
body.fpa-layout-kopf .rd-navbar-fixed .rd-navbar-toggle {
	background: var(--fpa-lay-akzent);
}

/* --------------------------------------------------------------------------
   3) Titelbereich → schmales Themen-Banner (Desktop 405 px → ca. 130 px)
   Das Motiv setzt das Theme selbst als Hintergrund (Filter
   business_consultant_finder_static_header_src); hier nur Größe, Lage, Verlauf.
   -------------------------------------------------------------------------- */
body.fpa-layout-banner #static_header_banner {
	background-color: #14171c;
	background-size: cover !important;
	background-position: 60% 70% !important;
	background-repeat: no-repeat !important;
	height: auto;
	overflow: hidden;
}
body.fpa-layout-banner #static_header_banner .content-text {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	min-height: var(--fpa-lay-banner-d) !important;
	height: auto;
	padding: 12px 0 calc(var(--fpa-lay-ueber-d) + 12px) !important;
	/* Theme legt 50 % Schwarz über alles – stattdessen Verlauf: links dunkel (Titel), rechts Motiv sichtbar. */
	background: linear-gradient(90deg, rgba(12, 15, 20, .82) 0%, rgba(12, 15, 20, .58) 36%, rgba(12, 15, 20, .12) 68%, rgba(12, 15, 20, 0) 100%) !important;
	/* Parallax-Reste des Themes (skrollr) neutralisieren. */
	transform: none !important;
	opacity: 1 !important;
}
body.fpa-layout-banner:not(.fpa-layout-motiv) #static_header_banner .content-text {
	background: none !important;
}
body.fpa-layout-krumen #static_header_banner .content-text {
	padding-bottom: calc(var(--fpa-lay-ueber-d) + var(--fpa-lay-krumen-h) + 16px) !important;
}
body.fpa-layout-banner #static_header_banner .content-text .container {
	width: 100%;
}
body.fpa-layout-banner #static_header_banner .content-text h1 {
	margin: 0;
	max-width: 70%;
	font-size: clamp(26px, 2.5vw, 36px);
	font-weight: 600;
	line-height: 1.15;
	color: #fff;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
	overflow-wrap: break-word;
	hyphens: auto;
	/* Sehr lange Titel (z. B. Produktnamen) auf 2 Zeilen kürzen. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Weiße Inhaltskarte nur noch leicht ins Banner schieben (Theme: −50 px). */
body.fpa-layout-banner .site-content {
	margin-top: calc(-1 * var(--fpa-lay-ueber-d));
}

/* --------------------------------------------------------------------------
   4) Zusatzzeile im Banner: Brotkrumen links, Bereichs-Badge rechts
   -------------------------------------------------------------------------- */
body.fpa-layout-banner #masthead {
	position: relative;
}
.fpa-lay-zusatz {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--fpa-lay-ueber-d) + 10px);
	z-index: 2;
	pointer-events: none;
}
.fpa-lay-zusatz__innen {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}
.fpa-lay-krumen {
	pointer-events: auto;
	min-width: 0;
	font-size: 13px;
	line-height: var(--fpa-lay-krumen-h);
	color: rgba(255, 255, 255, .72);
	text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.fpa-lay-krumen ol {
	display: flex;
	flex-wrap: nowrap;
	gap: 0 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
	overflow: hidden;
}
.fpa-lay-krumen li {
	margin: 0;
	padding: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.fpa-lay-krumen li + li::before {
	content: "›";
	margin-right: 6px;
	color: var(--fpa-lay-akzent);
	font-weight: 700;
}
.fpa-lay-krumen a,
.fpa-lay-krumen a:visited {
	color: #fff;
	text-decoration: none;
}
.fpa-lay-krumen a:hover,
.fpa-lay-krumen a:focus {
	color: var(--fpa-lay-akzent);
	text-decoration: underline;
}
.fpa-lay-badges {
	display: flex;
	flex: none;
	gap: 4px;
	transform: translateY(6px);
}
.fpa-lay-badges img {
	display: block;
	width: auto;
	height: 60px;
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .45));
}

/* --------------------------------------------------------------------------
   5) Handy / feste Kopfzeile (RD Navbar „fixed“)
   Die feste Kopfzeile (56 px) liegt über dem Seitenanfang. Bisher verdeckte sie
   den Seitentitel – das Banner bekommt deshalb oben 56 px Luft.
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
	body.fpa-layout-banner #static_header_banner {
		padding-top: var(--fpa-lay-kopf-m);
		background-position: 72% center !important;
	}
	body.fpa-layout-banner #static_header_banner .content-text {
		min-height: var(--fpa-lay-banner-m) !important;
		padding: 10px 0 calc(var(--fpa-lay-ueber-m) + 10px) !important;
		background: linear-gradient(90deg, rgba(12, 15, 20, .82) 0%, rgba(12, 15, 20, .55) 60%, rgba(12, 15, 20, .25) 100%) !important;
	}
	body.fpa-layout-krumen #static_header_banner .content-text {
		padding-bottom: calc(var(--fpa-lay-ueber-m) + var(--fpa-lay-krumen-h) + 10px) !important;
	}
	body.fpa-layout-banner #static_header_banner .content-text h1 {
		max-width: 100%;
		font-size: 23px;
		line-height: 1.2;
	}
	body.fpa-layout-banner .site-content {
		margin-top: calc(-1 * var(--fpa-lay-ueber-m));
	}
	.fpa-lay-zusatz {
		bottom: calc(var(--fpa-lay-ueber-m) + 6px);
	}
	.fpa-lay-krumen {
		font-size: 12px;
	}
	.fpa-lay-badges {
		display: none;
	}
}
/* Tablets mit Touch nutzen im Theme ebenfalls die feste Kopfzeile – dort gleich behandeln. */
body.fpa-layout-banner #masthead:has(.rd-navbar-fixed) #static_header_banner {
	padding-top: var(--fpa-lay-kopf-m);
}
/* Mit Admin-Leiste (nur angemeldet) setzt das Theme die Handy-Kopfzeile tiefer. */
@media (max-width: 767.98px) {
	body.admin-bar.fpa-layout-banner #static_header_banner {
		padding-top: calc(var(--fpa-lay-kopf-m) + 6px);
	}
}

/* Druck: Banner schlicht. */
@media print {
	body.fpa-layout-banner #static_header_banner { background: none !important; }
	.fpa-lay-zusatz { display: none; }
}
