/*
 * Gemeinsame Header-/Footer-Layouts für Custom Header/Footer (seit Theme 2.1).
 * Farben und Schriften kommen aus der Stil-Variante der Site (var(--wp--preset--color--…)),
 * im Header-/Footer-HTML stehen nur noch Markup und Klassen.
 *
 * Leiste ("bar"):  weinify.de, mcp   -> header.site-header, footer.wf-footer
 * Karte ("card"):  family, ppnp       -> header.pnp-header,  footer.pnp-footer (family zusätzlich .pnp-footer--card)
 */

/* ---------- Leiste: Header ---------- */
.site-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 24px;
	padding: 16px 24px;
	background-color: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.site-header .header-left {
	justify-self: start;
}

.site-header .header-logo {
	display: block;
	width: auto;
	height: 96px;
	border-radius: 18px;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.site-header .header-center {
	text-align: center;
}

.site-header .Header1 {
	margin: 0;
	font-size: 72px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--wp--preset--color--on-surface);
}

.site-header .SubHeader {
	margin: 4px 0 0;
	font-size: 20px;
	font-weight: 400;
	color: var(--wp--preset--color--on-surface-muted);
}

.site-header .SubHeaderLink {
	color: var(--wp--preset--color--on-surface-muted);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--wp--preset--color--on-surface-muted) 50%, transparent);
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.site-header .SubHeaderLink:hover {
	color: var(--wp--preset--color--on-surface);
}

.site-header .header-right {
	justify-self: end;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
}

.weinhold-header-container:has(> .site-header) {
	--weinhold-header-menu-bg: var(--wp--preset--color--surface);
	--weinhold-header-menu-border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 50%, transparent);
	--weinhold-header-menu-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	--weinhold-header-menu-padding: 8px;
}

@media (max-width: 768px) {
	/* Handy: Logo links und Login rechts in einer Zeile, darunter Titel und Menü */
	.site-header {
		grid-template-columns: auto 1fr;
		grid-template-areas: "logo auth" "center center";
		row-gap: 8px;
		padding: 12px 16px;
	}

	.site-header .header-left {
		grid-area: logo;
	}

	.site-header .header-logo {
		height: 56px;
		border-radius: 12px;
	}

	.site-header .header-center {
		grid-area: center;
	}

	.site-header .header-right {
		grid-area: auth;
	}

	.site-header .Header1 {
		font-size: 32px;
	}

	.site-header .SubHeader {
		font-size: 15px;
	}

	.site-header .weinhold-header-buttons {
		gap: 8px;
	}

	.site-header .weinhold-header-btn-wrap {
		margin-right: 0;
	}

	.site-header .weinhold-header-buttons a {
		padding: 7px 12px;
		font-size: 15px;
	}
}

/* ---------- Leiste: Footer ---------- */
.wf-footer {
	padding: 40px 20px;
	text-align: center;
	color: var(--wp--preset--color--on-surface-muted);
	font-size: 18px;
	line-height: 1.6;
	background-color: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--line);
}

.wf-footer-inner {
	max-width: 900px;
	margin: 0 auto;
}

.wf-footer-claim {
	margin-bottom: 10px;
	font-size: 22px;
	font-weight: 500;
	color: var(--wp--preset--color--on-surface);
}

.wf-footer-copy {
	margin-top: 15px;
	font-size: 16px;
	opacity: 0.8;
}

/* ---------- Karte: Header ---------- */
.pnp-header {
	display: grid;
	grid-template-columns: 130px 1fr auto;
	align-items: center;
	gap: 22px;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	background:
		radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55), transparent 38%),
		linear-gradient(145deg, var(--wp--preset--color--surface), var(--wp--preset--color--surface-2));
	box-shadow: 0 12px 34px rgba(35, 24, 13, 0.12);
	margin-bottom: 24px;
}

.pnp-left {
	justify-self: start;
}

.pnp-center {
	text-align: center;
}

.pnp-right {
	justify-self: end;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.pnp-logo {
	display: block;
	width: 120px;
	height: auto;
	filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.16));
}

.pnp-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--cormorant-garamond, "Cormorant Garamond", serif);
	font-size: clamp(30px, 4vw, 50px);
	line-height: 1.03;
	color: var(--wp--preset--color--on-surface);
}

.pnp-subtitle {
	margin: 8px 0 16px;
	font-family: var(--wp--preset--font-family--cormorant-garamond, "Cormorant Garamond", serif);
	font-size: clamp(18px, 2.2vw, 27px);
	font-weight: 500;
	color: var(--wp--preset--color--on-surface-muted);
}

.pnp-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.pnp-header .button,
.pnp-header .wp-element-button {
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line);
	background: #fff;
	color: var(--wp--preset--color--on-surface);
	padding: 8px 14px;
	font-weight: 600;
	text-decoration: none;
}

.pnp-header .button:hover,
.pnp-header .wp-element-button:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

@media (max-width: 900px) {
	.pnp-header {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 18px;
	}

	.pnp-left,
	.pnp-right {
		justify-self: center;
	}

	.pnp-right {
		justify-content: center;
	}

	.pnp-logo {
		width: 98px;
	}
}

@media (max-width: 600px) {
	/* Handy: Logo links und Login rechts in einer Zeile, darunter Titel, Untertitel und Menü */
	.pnp-header {
		grid-template-columns: auto 1fr;
		grid-template-areas: "logo auth" "center center";
		gap: 6px 12px;
		padding: 12px 14px;
		margin-bottom: 16px;
	}

	.pnp-left {
		grid-area: logo;
		justify-self: start;
	}

	.pnp-right {
		grid-area: auth;
		justify-self: end;
	}

	.pnp-center {
		grid-area: center;
	}

	.pnp-logo {
		width: 64px;
	}

	.pnp-title {
		font-size: 28px;
	}

	.pnp-subtitle {
		margin: 2px 0 10px;
		font-size: 17px;
		line-height: 1.25;
	}

	.pnp-actions {
		gap: 8px;
	}

	/* btn_css der Sites steht im style-Attribut, daher !important */
	.pnp-header .weinhold-header-btn {
		padding: 6px 14px !important;
		font-size: 17px !important;
	}

	.pnp-header .weinhold-header-btn-wrap {
		margin-right: 0;
	}
}

/* ---------- Karte: Footer ---------- */
.pnp-footer {
	padding: 40px 20px;
	margin-top: 60px;
	text-align: center;
	font-family: var(--wp--preset--font-family--cormorant-garamond, "Cormorant Garamond", serif);
	font-size: 18px;
	line-height: 1.6;
	color: var(--wp--preset--color--on-surface);
	background: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--line);
}

.pnp-footer--card {
	background: linear-gradient(160deg, var(--wp--preset--color--surface), var(--wp--preset--color--surface-2));
	border-radius: 18px;
}

.pnp-footer-inner {
	max-width: 900px;
	margin: 0 auto;
}

.pnp-footer-title {
	margin-bottom: 8px;
	font-size: 22px;
	font-weight: 600;
}

.pnp-footer-muted {
	color: var(--wp--preset--color--on-surface-muted);
}

.pnp-footer-note {
	max-width: 640px;
	margin: 8px auto 0;
	font-size: 15px;
	opacity: 0.75;
}

.pnp-footer-note a {
	color: inherit;
}

.pnp-footer-rule {
	width: 60px;
	margin: 18px auto;
	border: none;
	border-top: 1px solid var(--wp--preset--color--line);
}

.pnp-footer-copy {
	margin-top: 12px;
	font-size: 15px;
	opacity: 0.8;
}
