/*
Theme Name: Kadence Child
Theme URI: https://polsterei-brueckl.com/
Description: Custom Kadence child theme for Polsterei Brueckl. Includes a simplified business-focused header and footer, page-title handling in editable content, legacy material URL redirects via mu-plugin, and front-end styling tailored for the local redevelopment workflow.
Author: Semy WEB
Author URI: https://semyweb.de/de
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
Requires at least: 6.3
Requires PHP: 7.4
*/

:root {
	--pb-header-border: rgba(127, 14, 61, 0.12);
	--pb-header-surface: rgba(255, 252, 248, 0.94);
	--pb-header-text: #3a1f28;
	--pb-header-muted: #7d6770;
	--pb-header-accent: #7f0e3d;
	--pb-header-accent-hover: #651033;
	--pb-header-shadow: 0 14px 40px rgba(73, 34, 46, 0.08);
	--pb-footer-surface: #f6f4f1;
	--pb-footer-text: #5d5752;
	--pb-footer-title: #2f2b28;
	--pb-footer-border: #ddd7d1;
}

body.pb-kadence-child {
	background: #f7f4f1;
}

.pb-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(14px);
	box-shadow: var(--pb-header-shadow);
}

#wrapper,
#inner-wrap,
.site,
.site-container {
	overflow: visible;
}

.pb-site-header__bar {
	background: var(--pb-header-surface);
	border-bottom: 1px solid var(--pb-header-border);
}

.pb-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 88px;
}

.pb-site-header__brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-width: 0;
	flex: 0 0 auto;
}

.pb-site-header__logo .custom-logo-link,
.pb-site-header__logo .custom-logo {
	display: block;
}

.pb-site-header__logo img {
	display: block;
	width: auto;
	max-height: 54px;
}

.pb-site-header__identity {
	display: inline-flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.2rem 0;
	text-decoration: none;
}

.pb-site-header__title {
	color: var(--pb-header-text);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	white-space: nowrap;
}

.pb-site-header__identity:hover .pb-site-header__title,
.pb-site-header__identity:focus .pb-site-header__title {
	color: var(--pb-header-accent);
}

.pb-site-header__tagline {
	color: var(--pb-header-muted);
	font-size: 0.88rem;
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-transform: uppercase;
	white-space: nowrap;
}

.pb-site-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
	position: relative;
}

.pb-site-nav__toggle {
	display: none;
}

.pb-site-nav__list,
.pb-site-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-site-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.pb-site-nav__list > li {
	position: relative;
}

.pb-site-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	padding: 0.85rem 1rem;
	color: var(--pb-header-text);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border-radius: 999px;
}

.pb-site-nav__list > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-left: 0.45rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-1px) rotate(45deg);
	opacity: 0.7;
}

.pb-site-nav__list > li > a:hover,
.pb-site-nav__list > li:hover > a,
.pb-site-nav__list > li.current-menu-item > a,
.pb-site-nav__list > li.current-menu-ancestor > a {
	background: rgba(127, 14, 61, 0.08);
	color: var(--pb-header-accent);
}

.pb-site-nav__list ul.sub-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	z-index: 1002;
	min-width: 240px;
	padding: 0.65rem;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid var(--pb-header-border);
	border-radius: 18px;
	box-shadow: 0 18px 44px rgba(45, 20, 29, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.pb-site-nav__list li:hover > ul.sub-menu,
.pb-site-nav__list li:focus-within > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pb-site-nav__list ul.sub-menu a {
	display: block;
	padding: 0.8rem 0.95rem;
	color: var(--pb-header-text);
	text-decoration: none;
	border-radius: 12px;
}

.pb-site-nav__list ul.sub-menu a:hover,
.pb-site-nav__list ul.sub-menu a:focus {
	background: rgba(127, 14, 61, 0.06);
	color: var(--pb-header-accent);
}

.pb-site-nav__list ul.sub-menu li.current-menu-item > a,
.pb-site-nav__list ul.sub-menu li.current-menu-ancestor > a,
.pb-site-nav__list ul.sub-menu li.current-page-ancestor > a {
	background: rgba(127, 14, 61, 0.1);
	color: var(--pb-header-accent);
	font-weight: 700;
}

.pb-site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	white-space: nowrap;
}

.pb-site-header__phone {
	color: var(--pb-header-text);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.pb-site-header__phone:hover,
.pb-site-header__phone:focus {
	color: var(--pb-header-accent);
}

.pb-site-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.9rem 1.2rem;
	border-radius: 999px;
	background: var(--pb-header-accent);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 12px 28px rgba(127, 14, 61, 0.18);
}

.pb-site-header__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.pb-site-header__cta-icon svg {
	display: block;
	width: 1rem;
	height: 1rem;
}

.pb-site-header__cta:hover,
.pb-site-header__cta:focus {
	background: var(--pb-header-accent-hover);
	color: #fff;
}

.content-area {
	margin-top: 3rem;
	margin-bottom: 3rem;
}

.content-container.site-container {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.entry-hero-container-inner {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.site-main-header-wrap,
.site-top-header-wrap,
.site-bottom-header-wrap,
.site-footer-wrap {
	display: none !important;
}

.entry-content-wrap {
	padding: 0;
	box-shadow: none;
	background: transparent;
}

.content-bg,
body.content-style-boxed .content-bg {
	background: transparent;
}

.entry.single-entry,
.entry.loop-entry {
	box-shadow: none;
	border: 0;
	background: transparent;
}

.site-main .content-wrap,
.site-main article {
	margin-bottom: 0;
}

.single-content {
	padding: 0 1.5rem 1rem;
}

.pb-site-footer {
	margin-top: 0;
	border-top: 0;
	padding: 0rem 0 1.25rem;
	background: var(--pb-footer-surface);
	color: var(--pb-footer-text);
}

.pb-site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.8fr);
	gap: 2rem;
}

.pb-site-footer__title {
	margin: 0 0 0.85rem;
	color: var(--pb-footer-title);
	font-size: 1.2rem;
	font-weight: 600;
}

.pb-site-footer__text,
.pb-site-footer__address,
.pb-site-footer__copyright,
.pb-site-footer__credit,
.pb-site-footer__links {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
}

.pb-site-footer__address {
	margin-top: 1rem;
	font-style: normal;
}

.pb-site-footer__links {
	list-style: none;
	padding: 0;
}

.pb-site-footer__links li + li {
	margin-top: 0.7rem;
}

.pb-site-footer__links a {
	color: #4f4a46;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 500;
	text-decoration: none;
}

.pb-site-footer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.pb-site-footer__icon svg {
	display: block;
	width: 1rem;
	height: 1rem;
}

.pb-site-footer__links a:hover,
.pb-site-footer__links a:focus {
	color: #2f2b28;
}

.pb-site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--pb-footer-border);
}

.pb-site-footer__copyright {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--pb-footer-title);
}

.pb-site-footer__credit {
	text-align: right;
	font-size: 0.92rem;
	color: #6b645f;
}

.pb-site-footer__credit a {
	color: #4f4a46;
	font-weight: 600;
}

.pb-site-footer__credit a:hover,
.pb-site-footer__credit a:focus {
	color: #754519;
}


@media (max-width: 1080px) {
	.pb-site-header__inner {
		flex-wrap: wrap;
		gap: 1rem;
		padding-top: 1rem;
		padding-bottom: 1rem;
	}

	.pb-site-nav {
		order: 3;
		flex: 1 0 100%;
		justify-content: flex-start;
	}
}

@media (max-width: 767px) {
	.content-container.site-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.single-content {
		padding: 0 1rem 1rem;
	}

	.pb-site-header__inner {
		min-height: auto;
	}

	.pb-site-header__brand {
		flex: 1 1 auto;
		min-width: 0;
	}

	.pb-site-header__title {
		font-size: 1.18rem;
	}

	.pb-site-header__tagline {
		font-size: 0.84rem;
	}

	.pb-site-header__phone,
	.pb-site-header__cta {
		display: none;
	}

	.pb-site-nav {
		order: 2;
		flex: 0 0 auto;
		margin-left: auto;
	}

	.pb-site-nav__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.82rem 1rem;
		border: 1px solid var(--pb-header-border);
		border-radius: 999px;
		background: #fff;
		color: var(--pb-header-accent);
		font-size: 0.95rem;
		font-weight: 700;
	}

	.pb-site-nav__menu {
		display: none;
		position: absolute;
		top: calc(100% + 0.55rem);
		right: 0;
		z-index: 1001;
		width: min(22rem, calc(100vw - 2.5rem));
	}

	.pb-site-nav.is-open .pb-site-nav__menu {
		display: block;
	}

	.pb-site-nav__list {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 0.35rem 0;
		border: 1px solid var(--pb-header-border);
		border-radius: 18px;
		background: rgba(255, 255, 255, 0.98);
		box-shadow: 0 18px 36px rgba(45, 20, 29, 0.1);
	}

	.pb-site-nav__list > li {
		width: 100%;
	}

	.pb-site-nav__list > li > a {
		display: block;
		padding: 0.95rem 1rem;
		border-radius: 0;
		font-size: 1rem;
		line-height: 1.3;
	}

	.pb-site-nav__list > li.current-menu-item > a,
	.pb-site-nav__list > li.current-menu-ancestor > a,
	.pb-site-nav__list > li.current-page-ancestor > a,
	.pb-site-nav__list ul.sub-menu li.current-menu-item > a,
	.pb-site-nav__list ul.sub-menu li.current-menu-ancestor > a,
	.pb-site-nav__list ul.sub-menu li.current-page-ancestor > a {
		border-left: 3px solid var(--pb-header-accent);
		border-radius: 0;
		background: rgba(127, 14, 61, 0.04);
	}

	.pb-site-nav__list > li.menu-item-has-children > a::after {
		float: right;
		margin-top: 0.25rem;
	}

	.pb-site-nav__list ul.sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0.5rem 1rem;
		border: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.pb-site-nav__list ul.sub-menu a {
		padding: 0.65rem 1rem 0.65rem 0;
		color: var(--pb-header-muted);
		font-size: 0.95rem;
	}

	.pb-site-footer {
		padding-top: 2rem;
	}

	.pb-site-footer__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.pb-site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.pb-site-footer__credit {
		text-align: left;
	}
}
