/*
 * Blaupunkt Health Blog – Design-System (Frontend + Editor)
 * Aesthetik: Refined Health-Tech Editorial.
 * Grundsatz: statische, ruhige Elemente. Keine Entrance-Animationen,
 * keine einfahrenden Linien, keine Transform-Hover-Effekte.
 */

:root {
	--bph-primary: #003867;
	--bph-primary-hover: #00517a;
	--bph-primary-active: #6286a6;
	--bph-ink: #0d1b2a;
	--bph-muted: #5a6b7b;
	--bph-line: #e6ecf2;
	--bph-line-strong: #cdd8e3;
	--bph-card: #ffffff;
	--bph-surface: #f5f8fb;
	--bph-radius: 12px;
	--bph-radius-sm: 10px;
	--bph-shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.05), 0 1px 3px rgba(13, 27, 42, 0.04);
	--bph-shadow-md: 0 6px 18px rgba(0, 56, 103, 0.09);
}

/* ---------- Icon-Font (optional, Shop-Parität) ---------- */
@font-face {
	font-family: "Material Symbols Rounded";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../icons/icons.woff2") format("woff2");
}
.mi {
	font-family: "Material Symbols Rounded";
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	display: inline-block;
	white-space: nowrap;
	direction: ltr;
	-webkit-font-feature-settings: "liga";
	font-feature-settings: "liga";
	-webkit-font-smoothing: antialiased;
}

/* ---------- Basis ---------- */
body {
	color: var(--bph-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.bph-main {
	overflow: clip;
}

/* ---------- Kopfzeile ---------- */
.bph-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: #ffffff;
	border-bottom: 1px solid var(--bph-line);
}
.bph-head {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0.7rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.bph-logo {
	display: inline-flex;
	flex: 0 0 auto;
}
.bph-logo img {
	display: block;
	width: 160px;
	height: auto;
}

/* Desktop-Navigation */
.bph-nav-desktop {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.bph-nav-desktop > a {
	color: var(--bph-primary);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s ease;
}
.bph-nav-desktop > a:hover {
	color: var(--bph-primary-hover);
}
.bph-shop-btn {
	border: 1.5px solid var(--bph-primary);
	border-radius: 999px;
	padding: 0.5rem 1.2rem;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.bph-shop-btn:hover {
	background: var(--bph-primary);
	color: #ffffff !important;
}

/* Burger + Dropdown (mobil) */
.bph-burger {
	display: none;
	position: relative;
}
.bph-burger > summary {
	list-style: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--bph-line-strong);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: #ffffff;
}
.bph-burger > summary::-webkit-details-marker {
	display: none;
}
.bph-burger-icon {
	position: relative;
	display: block;
}
.bph-burger-icon,
.bph-burger-icon::before,
.bph-burger-icon::after {
	width: 20px;
	height: 2px;
	background: var(--bph-primary);
	border-radius: 2px;
}
.bph-burger-icon::before,
.bph-burger-icon::after {
	content: "";
	position: absolute;
	left: 0;
}
.bph-burger-icon::before {
	top: -6px;
}
.bph-burger-icon::after {
	top: 6px;
}
.bph-drawer {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	min-width: 210px;
	background: #ffffff;
	border: 1px solid var(--bph-line);
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(0, 56, 103, 0.16);
	padding: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	z-index: 40;
}
.bph-drawer > a {
	padding: 0.8rem 0.9rem;
	border-radius: 8px;
	color: var(--bph-primary);
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.15s ease;
}
.bph-drawer > a:hover {
	background: var(--bph-surface);
}
.bph-drawer .bph-shop-btn {
	text-align: center;
	margin-top: 0.35rem;
}

@media (max-width: 782px) {
	.bph-nav-desktop {
		display: none;
	}
	.bph-burger {
		display: block;
	}
	.bph-logo img {
		width: 132px;
	}
}

/* ---------- Homepage-Hero ---------- */
.bph-home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(72vh, 620px);
	display: flex;
	align-items: center;
}
.bph-home-hero .wp-block-cover__background {
	background: linear-gradient(115deg, rgba(0, 34, 63, 0.94) 0%, rgba(0, 56, 103, 0.78) 42%, rgba(0, 81, 122, 0.45) 100%) !important;
}
.bph-home-hero h1 {
	text-wrap: balance;
	text-shadow: 0 2px 30px rgba(0, 20, 40, 0.35);
}
.bph-home-hero p:last-child {
	opacity: 0.92;
}

/* ---------- Abschnitts-Überschriften ---------- */
.bph-page-title {
	font-weight: 700;
	letter-spacing: -0.01em;
}
.bph-page-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 0.6rem;
	border-radius: 4px;
	background: var(--bph-primary-active);
}

/* ---------- Beitrags-Karten ---------- */
.bph-card-grid {
	gap: 1.75rem !important;
}
.bph-card {
	position: relative;
	background: var(--bph-card) !important;
	border: 1px solid var(--bph-line);
	border-radius: var(--bph-radius) !important;
	overflow: hidden;
	box-shadow: var(--bph-shadow-sm);
	height: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bph-card:hover {
	border-color: var(--bph-line-strong);
	box-shadow: var(--bph-shadow-md);
}
.bph-card .wp-block-post-featured-image,
.bph-card-image {
	overflow: hidden;
	margin: 0;
}
.bph-card .wp-block-post-featured-image img,
.bph-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bph-card .wp-block-post-featured-image:not(:has(img)) {
	min-height: 180px;
	background: linear-gradient(135deg, var(--bph-surface), #e4ecf4);
}
.bph-card .wp-block-post-date {
	color: var(--bph-muted);
	font-size: 0.82rem;
	letter-spacing: 0.02em;
}
.bph-card .wp-block-post-title {
	letter-spacing: -0.01em;
}
.bph-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--bph-primary);
	transition: color 0.15s ease;
}
.bph-card:hover .wp-block-post-title a {
	color: var(--bph-primary-hover);
}
.bph-card .wp-block-post-excerpt {
	color: var(--bph-muted);
}
.bph-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.4rem;
	font-weight: 700;
	color: var(--bph-primary-hover);
	text-decoration: none;
}
.bph-card .wp-block-post-excerpt__more-link::after {
	content: " \2192";
}

/* ---------- Kategorie-Chip (Detailseite) ---------- */
.bph-single .wp-block-post-terms a {
	display: inline-block;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: rgba(98, 134, 166, 0.14);
	color: var(--bph-primary-hover) !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
.bph-single .wp-block-post-terms a:hover {
	background: rgba(98, 134, 166, 0.24);
}

/* ---------- Detailseite: Lesetypografie ---------- */
.bph-single .wp-block-post-title,
.bph-page .wp-block-post-title {
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
	letter-spacing: -0.02em;
	line-height: 1.12;
}
.bph-hero-image img {
	width: 100%;
	object-fit: cover;
	box-shadow: var(--bph-shadow-md);
}
.bph-single .wp-block-post-content,
.bph-page .wp-block-post-content {
	font-size: 1.09rem;
	line-height: 1.75;
	color: #1f2c39;
}
.bph-single .wp-block-post-content > p:first-of-type {
	font-size: 1.28rem;
	line-height: 1.6;
	color: var(--bph-ink);
	font-weight: 500;
}
.bph-single .wp-block-post-content > h2,
.bph-page .wp-block-post-content > h2 {
	margin-top: 2.6rem;
	margin-bottom: 0.4rem;
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.9rem);
	letter-spacing: -0.01em;
}
.bph-single .wp-block-post-content > h3 {
	margin-top: 1.8rem;
}
.bph-single .wp-block-post-content a:not(.wp-element-button),
.bph-page .wp-block-post-content a:not(.wp-element-button) {
	color: var(--bph-primary-hover);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.bph-single .wp-block-post-content strong {
	color: var(--bph-primary);
}
.bph-single .wp-block-post-content blockquote,
.bph-page blockquote {
	border-left: 4px solid var(--bph-primary-active);
	padding: 0.4rem 0 0.4rem 1.4rem;
	margin-inline: 0;
	color: var(--bph-muted);
	font-style: italic;
	font-size: 1.15rem;
}
.wp-block-image.is-style-blaupunkt-rounded img,
.bph-single .wp-block-post-content img {
	border-radius: var(--bph-radius-sm);
}
.wp-block-post-navigation-link a {
	color: var(--bph-primary);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease;
}
.wp-block-post-navigation-link a:hover {
	color: var(--bph-primary-hover);
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
	font-weight: 700;
	letter-spacing: 0.01em;
	transition: background-color 0.15s ease, color 0.15s ease;
}

/* ---------- Feature-Grid ---------- */
.bph-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: linear-gradient(140deg, rgba(0, 56, 103, 0.08), rgba(98, 134, 166, 0.14));
	margin-bottom: 0.85rem;
	box-shadow: inset 0 0 0 1px rgba(0, 56, 103, 0.06);
}

/* ---------- Produkt-Hero (Pattern) ---------- */
.bph-pattern-hero {
	box-shadow: var(--bph-shadow-sm);
	border: 1px solid var(--bph-line);
}
.bph-pattern-hero img {
	box-shadow: var(--bph-shadow-md);
}

/* ---------- Tabelle: Steckbrief ---------- */
.wp-block-table.is-style-blaupunkt-spec {
	box-shadow: var(--bph-shadow-sm);
	border-radius: var(--bph-radius-sm);
	overflow: hidden;
}
.wp-block-table.is-style-blaupunkt-spec table {
	border-collapse: collapse;
	width: 100%;
}
.wp-block-table.is-style-blaupunkt-spec td {
	border: none;
	border-bottom: 1px solid var(--bph-line);
	padding: 0.8rem 1.1rem;
}
.wp-block-table.is-style-blaupunkt-spec tr td:first-child {
	font-weight: 700;
	color: var(--bph-primary);
	width: 40%;
	background: var(--bph-surface);
}
.wp-block-table.is-style-blaupunkt-spec tr:first-child td {
	background: var(--bph-primary);
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* ---------- Tabelle: Zebra ---------- */
.wp-block-table.is-style-blaupunkt-zebra {
	overflow-x: auto;
	box-shadow: var(--bph-shadow-sm);
	border-radius: var(--bph-radius-sm);
}
.wp-block-table.is-style-blaupunkt-zebra table {
	border-collapse: collapse;
	width: 100%;
}
.wp-block-table.is-style-blaupunkt-zebra th {
	background: var(--bph-primary);
	color: #fff;
	font-weight: 700;
	padding: 0.8rem 1.1rem;
	text-align: left;
	border: none;
}
.wp-block-table.is-style-blaupunkt-zebra td {
	padding: 0.7rem 1.1rem;
	border: none;
	border-bottom: 1px solid var(--bph-line);
}
.wp-block-table.is-style-blaupunkt-zebra tbody tr:nth-child(odd) {
	background: var(--bph-surface);
}

/* ---------- CTA-Banner ---------- */
.bph-cta-banner {
	position: relative;
	overflow: hidden;
	box-shadow: var(--bph-shadow-md);
}
.bph-cta-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(80% 120% at 85% 0%, rgba(98, 134, 166, 0.40), transparent 55%);
	pointer-events: none;
}
.bph-cta-banner > * {
	position: relative;
}

/* ---------- FAQ ---------- */
.bph-faq .wp-block-details {
	background: var(--bph-card);
	border: 1px solid var(--bph-line);
	border-radius: var(--bph-radius-sm);
	padding: 0.4rem 1.2rem;
	box-shadow: var(--bph-shadow-sm);
	transition: border-color 0.15s ease;
}
.bph-faq .wp-block-details[open] {
	border-color: var(--bph-primary-active);
}
.bph-faq .wp-block-details summary {
	font-weight: 700;
	color: var(--bph-primary);
	cursor: pointer;
	padding: 0.7rem 0;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.bph-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}
.bph-faq .wp-block-details summary::after {
	content: "+";
	font-size: 1.5em;
	line-height: 1;
	color: var(--bph-primary-active);
}
.bph-faq .wp-block-details[open] summary::after {
	content: "\2013";
}

/* ---------- Slider ---------- */
.bph-slider__viewport { position: relative; }
.bph-slider__track {
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.5rem;
	scrollbar-width: none;
}
.bph-slider__track::-webkit-scrollbar { display: none; }
.bph-slider__slide {
	flex: 0 0 clamp(240px, 33%, 360px);
	scroll-snap-align: start;
	background: var(--bph-card);
	border: 1px solid var(--bph-line);
	border-radius: var(--bph-radius);
	overflow: hidden;
	box-shadow: var(--bph-shadow-sm);
}
.bph-slider__slide img {
	width: 100%;
	display: block;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.bph-slider__slide h3, .bph-slider__slide p { margin: 0.5rem 1rem; }
.bph-slider__slide h3 { color: var(--bph-primary); font-weight: 700; }
.bph-slider__slide p { font-size: 0.9rem; margin-bottom: 1rem; color: var(--bph-muted); }
.bph-slider__btn {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 50%;
	background: var(--bph-primary);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--bph-shadow-md);
	transition: background-color 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bph-slider__btn:hover { background: var(--bph-primary-hover); }
.bph-slider__btn--prev { left: -12px; }
.bph-slider__btn--next { right: -12px; }
.bph-slider__btn[hidden] { display: none; }
@media (max-width: 600px) { .bph-slider__btn { display: none; } }

/* ---------- Footer ---------- */
.bph-footer a {
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.15s ease;
}
.bph-footer a:hover {
	opacity: 1;
	text-decoration: underline;
}
