/* ==========================================================================
   Benölken – Theme-Styles
   Farben, Schrift und Abstände kommen aus theme.json (CSS-Variablen).
   ========================================================================== */

:root {
	--bnk-radius: 16px;
	--bnk-radius-sm: 10px;
	--bnk-shadow: 0 1px 2px rgba(24, 33, 39, 0.06), 0 8px 24px rgba(24, 33, 39, 0.08);
	--bnk-shadow-lg: 0 2px 4px rgba(24, 33, 39, 0.06), 0 18px 48px rgba(24, 33, 39, 0.14);
	--bnk-header-offset: var(--wp-admin--admin-bar--height, 0px);
	--bnk-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--contrast);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--bnk-focus, var(--wp--preset--color--accent));
	outline-offset: 2px;
	border-radius: 4px;
}

/* Auf dunklen Flächen hellen Fokusrahmen verwenden (Kontrast) */
.bnk-topbar,
.bnk-hero,
.bnk-section--dark,
.bnk-cta,
.bnk-contact-card,
.bnk-footer {
	--bnk-focus: var(--wp--preset--color--accent-soft);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.bnk-main {
	margin-top: 0;
}

/* Vollbreite Abschnitte ohne Lücken aneinanderreihen */
.bnk-main.bnk-main > *,
.wp-block-post-content.wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

/* Abstand zwischen Header, Main und Footer entfernen */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */
.bnk-site-header {
	position: sticky;
	top: var(--bnk-header-offset);
	z-index: 100;
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 0 var(--wp--preset--color--line);
	transition: box-shadow 0.3s var(--bnk-ease);
}

body.bnk-scrolled .bnk-site-header {
	box-shadow: 0 6px 24px rgba(24, 33, 39, 0.1);
}

.bnk-topbar {
	background: var(--wp--preset--color--contrast);
	color: #d9dee2;
	font-size: 0.84rem;
	line-height: 1.3;
	max-height: 60px;
	overflow: hidden;
	transition: max-height 0.35s var(--bnk-ease), opacity 0.25s;
}

.bnk-topbar > .wp-block-group {
	padding-block: 0.5rem;
	gap: 0.25rem 1.5rem;
}

.bnk-topbar p {
	margin: 0;
}

.bnk-topbar a {
	color: #fff;
	text-decoration: none;
}

.bnk-topbar a:hover {
	color: var(--wp--preset--color--accent-soft);
}

.bnk-topbar__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
}

body.bnk-scrolled .bnk-topbar {
	max-height: 0;
	opacity: 0;
}

.bnk-mainbar__inner {
	padding-block: 0.85rem;
	gap: 1.5rem;
	transition: padding 0.3s var(--bnk-ease);
}

body.bnk-scrolled .bnk-mainbar__inner {
	padding-block: 0.55rem;
}

/* Wortmarke */
.bnk-brand {
	margin: 0;
	flex-shrink: 0;
	line-height: 1;
}

.bnk-brand a {
	display: inline-grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 0.7rem;
	row-gap: 0.25rem;
	align-items: center;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

/* Bildmarke: rotes Quadrat (Akzentfarbe) mit vier weißen Fensterscheiben – identisch mit dem Favicon */
.bnk-brand a::before {
	content: "";
	grid-row: 1 / span 2;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 22.5%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23fff' d='M11 9a2 2 0 0 0-2 2v7.5h9.5V9H11Zm10.5 0v9.5H31V11a2 2 0 0 0-2-2h-7.5ZM9 21.5V29a2 2 0 0 0 2 2h7.5v-9.5H9Zm12.5 0V31H29a2 2 0 0 0 2-2v-7.5h-9.5Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
		var(--wp--preset--color--accent);
}

.bnk-brand strong {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	align-self: end;
	color: var(--wp--preset--color--accent);
}

.bnk-brand span {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	align-self: start;
}

.bnk-brand--light a,
.bnk-brand--light strong {
	color: #fff; /* Auf dunklem Grund hell – Rot wäre dort schlecht lesbar. */
}

.bnk-brand--light span {
	color: #aeb8bf;
}

.bnk-brand--light a::before {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* Navigation */
.bnk-mainbar .wp-block-navigation {
	flex: 1 1 auto;
	justify-content: flex-end;
}

.bnk-mainbar .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	padding: 0.45rem 0.1rem;
	position: relative;
}

.bnk-mainbar .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--bnk-ease);
}

.bnk-mainbar .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.bnk-mainbar .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after,
.bnk-mainbar .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

.bnk-mainbar .wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: var(--bnk-radius-sm);
	box-shadow: var(--bnk-shadow-lg);
	padding: 0.5rem 0;
	min-width: 240px !important;
	background: var(--wp--preset--color--base);
}

.bnk-mainbar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 1.1rem;
	font-weight: 500;
}

.bnk-mainbar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent);
}

/* Mobiles Menü (Overlay) */
.bnk-mainbar .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
	padding: 1.25rem clamp(1rem, 5vw, 2rem) 2rem;
}

.bnk-mainbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
}

.bnk-mainbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.2rem;
	padding: 0.4rem 0;
}

.bnk-mainbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	padding: 0 0 0.5rem 1rem !important;
	min-width: 0 !important;
}

.bnk-mainbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 1.05rem;
	padding: 0.3rem 0;
}

.bnk-mainbar .wp-block-navigation__responsive-container-open,
.bnk-mainbar .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--contrast);
}

.bnk-mainbar .wp-block-navigation__responsive-container-open svg {
	width: 30px;
	height: 30px;
}

.bnk-header-cta {
	flex-shrink: 0;
}

.bnk-header-cta .wp-block-button__link {
	padding: 0.7rem 1.25rem;
	font-size: 0.95rem;
}

@media (max-width: 900px) {
	.bnk-topbar__claim {
		display: none;
	}
	.bnk-topbar > .wp-block-group {
		justify-content: center !important;
	}
}

@media (max-width: 600px) {
	.bnk-mainbar .bnk-header-cta {
		display: none !important;
	}
	.bnk-brand strong {
		font-size: 1.35rem;
	}
	.bnk-brand a::before {
		width: 2.25rem;
		height: 2.25rem;
	}
}

/* --------------------------------------------------------------------------
   Allgemeine Bausteine
   -------------------------------------------------------------------------- */
.bnk-section {
	padding-block: var(--wp--preset--spacing--60);
}

.bnk-section--tight {
	padding-block: var(--wp--preset--spacing--50);
}

.bnk-section--surface {
	background: var(--wp--preset--color--surface);
}

.bnk-section--dark {
	background: var(--wp--preset--color--contrast);
	color: #e6eaed;
}

.bnk-section--dark :where(h1, h2, h3, h4, h5, h6) {
	color: #fff;
}

.bnk-section--dark a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--accent-soft);
}

.bnk-section--dark .wp-block-button.is-style-outline > .wp-block-button__link,
.bnk-cta .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
}

.bnk-section--dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.bnk-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: var(--wp--preset--color--contrast);
}

.bnk-kicker {
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.5rem !important;
}

.bnk-section--dark .bnk-kicker,
.bnk-hero .bnk-kicker {
	color: var(--wp--preset--color--accent-soft);
}

.bnk-lead {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
}

.bnk-section--dark .bnk-lead {
	color: #c9d0d5;
}

.bnk-section-head {
	margin-bottom: var(--wp--preset--spacing--50);
}

/* Einleitung direkt unter dem Seitentitel */
.bnk-section--intro + .bnk-section:not(.bnk-section--surface):not(.bnk-section--dark):not(.bnk-section--cta) {
	padding-top: var(--wp--preset--spacing--20);
}

/* Aufruf-Box am Seitenende */
.bnk-section--cta {
	padding-bottom: var(--wp--preset--spacing--60) !important;
}

.bnk-cta {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 100% 0%, rgba(232, 105, 107, 0.2), transparent 55%),
		var(--wp--preset--color--contrast);
	color: #dfe4e7;
	border-radius: calc(var(--bnk-radius) * 1.25);
	padding: clamp(1.75rem, 5vw, 3.5rem);
}

.bnk-cta > * {
	margin-block: 0;
	max-width: 760px;
}

.bnk-cta > * + * {
	margin-top: 1rem;
}

.bnk-cta h2 {
	color: #fff;
}

.bnk-cta .bnk-lead {
	color: #c9d0d5;
}

.bnk-cta .wp-block-buttons {
	margin-top: 1.75rem !important;
}

.bnk-section-head > * {
	margin-block: 0;
}

.bnk-section-head > * + * {
	margin-top: 0.85rem;
}

/* Bild-Blöcke mit weicher Rundung und Schatten */
.bnk-media img,
.bnk-media.wp-block-image img {
	border-radius: var(--bnk-radius);
	box-shadow: var(--bnk-shadow);
	width: 100%;
	height: auto;
}

.bnk-media--tall img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.bnk-media--wide img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Häkchen-Liste */
.bnk-checklist {
	list-style: none;
	padding-left: 0;
}

.bnk-checklist li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.6rem;
}

.bnk-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%238e0c0f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}

.bnk-section--dark .bnk-checklist li::before {
	background-color: rgba(232, 105, 107, 0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23e8696b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Chips / Tags */
.bnk-chips {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.bnk-chips li {
	margin: 0;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	font-weight: 600;
	font-size: 0.95rem;
}

/* Outline-Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 2px solid currentColor;
	padding: calc(0.85rem - 2px) calc(1.6rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: #fff;
}

.wp-block-button__link {
	transition: background-color 0.2s, color 0.2s, transform 0.2s var(--bnk-ease), box-shadow 0.2s;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(142, 12, 15, 0.28);
}

/* Pfeil-Link */
.bnk-arrow-link a {
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.bnk-arrow-link a::after {
	content: "→";
	transition: transform 0.2s var(--bnk-ease);
}

.bnk-arrow-link a:hover::after {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Hero mit animierter Diashow
   -------------------------------------------------------------------------- */
.bnk-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(88vh, 880px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: var(--wp--preset--color--contrast);
	color: #fff;
	padding-top: var(--wp--preset--spacing--70) !important;
	padding-bottom: var(--wp--preset--spacing--60) !important;
	margin-block-start: 0 !important;
}

.bnk-hero > .bnk-hero__slides {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
}

.bnk-hero__slides > figure,
.bnk-hero__slides > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.7s ease-in-out;
	overflow: hidden;
}

.bnk-hero__slides > figure:first-child,
.bnk-hero__slides.is-ready > figure.is-active,
.bnk-hero__slides.is-ready > figure.is-prev {
	opacity: 1;
}

.bnk-hero__slides.is-ready > figure:not(.is-active):not(.is-prev) {
	opacity: 0;
}

.bnk-hero__slides.is-ready > figure.is-active {
	z-index: 2;
}

.bnk-hero__slides.is-ready > figure.is-prev {
	z-index: 1;
}

.bnk-hero__slides img {
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: scale(1.02);
	will-change: transform;
}

/* Ken-Burns-Effekt: langsamer Zoom, abwechselnd aus verschiedenen Richtungen */
.bnk-hero__slides > figure:first-child img,
.bnk-hero__slides.is-ready > figure.is-active img,
.bnk-hero__slides.is-ready > figure.is-prev img {
	animation: bnk-kenburns 9s ease-out forwards;
}

.bnk-hero__slides.is-ready > figure:not(.is-active):not(.is-prev) img {
	animation: none;
}

.bnk-hero__slides > figure:nth-child(3n + 1) img { transform-origin: 30% 60%; }
.bnk-hero__slides > figure:nth-child(3n + 2) img { transform-origin: 70% 40%; }
.bnk-hero__slides > figure:nth-child(3n + 3) img { transform-origin: 50% 80%; }

@keyframes bnk-kenburns {
	from { transform: scale(1.02); }
	to { transform: scale(1.14); }
}

.bnk-hero.is-paused .bnk-hero__slides img {
	animation-play-state: paused !important;
}

/* Abdunklung für gute Lesbarkeit */
.bnk-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(16, 22, 26, 0.78) 0%, rgba(16, 22, 26, 0.45) 45%, rgba(16, 22, 26, 0.05) 80%),
		linear-gradient(0deg, rgba(16, 22, 26, 0.6) 0%, rgba(16, 22, 26, 0) 45%);
	pointer-events: none;
}

.bnk-hero__content {
	position: relative;
	z-index: 3;
	width: 100%;
}

.bnk-hero__content > * {
	max-width: 760px;
	margin-left: 0 !important;
}

.bnk-hero h1 {
	color: #fff;
	text-wrap: balance;
	margin-block: 0.25rem 1rem;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.bnk-hero p {
	color: #eef1f3;
}

.bnk-hero .bnk-lead {
	color: #e3e8eb;
	max-width: 620px;
}

.bnk-hero .wp-block-buttons {
	margin-top: 1.75rem;
}

.bnk-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(4px);
	background: rgba(255, 255, 255, 0.06);
}

.bnk-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--contrast);
	border-color: #fff;
}

.bnk-hero__toggle {
	position: absolute;
	right: clamp(1rem, 4vw, 2.5rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 4;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background: rgba(16, 22, 26, 0.35);
	backdrop-filter: blur(6px);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	transition: background 0.2s;
}

.bnk-hero__toggle:hover {
	background: rgba(16, 22, 26, 0.6);
}

.bnk-hero__toggle-icon {
	width: 12px;
	height: 14px;
	border-left: 4px solid currentColor;
	border-right: 4px solid currentColor;
	box-sizing: border-box;
}

.bnk-hero.is-paused .bnk-hero__toggle-icon {
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent currentColor;
	width: 0;
	height: 0;
	margin-left: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.bnk-hero__slides img {
		animation: none !important;
		transform: none !important;
	}
	.bnk-hero__slides > figure {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Fakten-Leiste
   -------------------------------------------------------------------------- */
.bnk-facts {
	position: relative;
	z-index: 5;
}

.bnk-facts .wp-block-columns {
	margin: calc(var(--wp--preset--spacing--50) * -1) 0 0;
	background: var(--wp--preset--color--base);
	border-radius: var(--bnk-radius);
	box-shadow: var(--bnk-shadow-lg);
	padding: var(--wp--preset--spacing--40);
	gap: var(--wp--preset--spacing--40);
}

.bnk-fact {
	padding-left: 1rem;
	border-left: 3px solid var(--wp--preset--color--accent);
}

.bnk-fact p {
	margin: 0;
}

.bnk-fact__value {
	font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--wp--preset--color--contrast);
}

.bnk-fact__label {
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
	margin-top: 0.3rem !important;
}

/* --------------------------------------------------------------------------
   Karten (Produkte, Angebotspalette)
   -------------------------------------------------------------------------- */
.bnk-cards {
	gap: var(--wp--preset--spacing--40) !important;
}

.bnk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bnk-radius);
	overflow: hidden;
	transition: transform 0.3s var(--bnk-ease), box-shadow 0.3s var(--bnk-ease), border-color 0.3s;
	height: 100%;
}

.bnk-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--bnk-shadow-lg);
	border-color: transparent;
}

.bnk-card > .wp-block-image,
.bnk-card > figure {
	margin: 0 !important;
	overflow: hidden;
}

.bnk-card > .wp-block-image img {
	border-radius: 0 !important;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
	transition: transform 0.6s var(--bnk-ease);
}

.bnk-card:hover > .wp-block-image img {
	transform: scale(1.05);
}

.bnk-card__body {
	padding: 1.4rem 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.bnk-card__body > * {
	margin-block: 0;
}

.bnk-card__body > * + * {
	margin-top: 0.6rem;
}

.bnk-card__body h3 {
	font-size: 1.3rem;
}

.bnk-card__body p {
	color: var(--wp--preset--color--muted);
	font-size: 0.98rem;
}

.bnk-card__body .bnk-arrow-link {
	margin-top: auto !important;
	padding-top: 0.9rem;
}

/* ganze Karte klickbar über den Pfeil-Link */
.bnk-card .bnk-arrow-link a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.bnk-card--plain {
	padding: 1.5rem;
	background: var(--wp--preset--color--base);
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: break-word;
}

.bnk-card--plain > * {
	margin-block: 0;
}

.bnk-card--plain > * + * {
	margin-top: 0.6rem;
}

.bnk-card--plain h3 {
	font-size: 1.25rem;
}

.bnk-card--plain ul {
	padding-left: 1.1rem;
	color: var(--wp--preset--color--muted);
}

.bnk-card--plain ul li {
	margin-bottom: 0.25rem;
}

.bnk-cards + .wp-block-columns {
	margin-top: var(--wp--preset--spacing--40) !important;
}

.bnk-card--plain ol {
	padding-left: 1.3rem;
}

.bnk-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 12px;
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--accent);
	display: grid !important;
	place-items: center;
	font-weight: 800;
	font-size: 1.1rem !important;
	margin: 0 0 0.4rem !important;
}

/* --------------------------------------------------------------------------
   System-Karten (REHAU)
   -------------------------------------------------------------------------- */
.bnk-system {
	background: var(--wp--preset--color--base);
	border-radius: var(--bnk-radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: var(--bnk-shadow);
	height: 100%;
}

.bnk-section--dark .bnk-system {
	background: var(--wp--preset--color--anthracite);
	box-shadow: none;
	color: #e6eaed;
}

.bnk-system > * {
	margin-block: 0;
}

.bnk-system > * + * {
	margin-top: 0.8rem;
}

.bnk-system__badge {
	display: inline-block;
	font-size: 0.75rem !important;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--accent-dark);
}

.bnk-card .bnk-system__badge {
	align-self: flex-start;
}

.bnk-section--dark .bnk-system__badge {
	background: rgba(232, 105, 107, 0.16);
	color: var(--wp--preset--color--accent-soft);
}

/* Datentabelle */
.wp-block-table.bnk-specs {
	margin: 0.5rem 0 0;
	overflow-x: auto;
}

.wp-block-table.bnk-specs table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.97rem;
	border: 0;
}

.wp-block-table.bnk-specs td,
.wp-block-table.bnk-specs th {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.7rem 0.75rem 0.7rem 0;
	text-align: left;
	vertical-align: top;
}

.wp-block-table.bnk-specs tr:last-child td {
	border-bottom: 0;
}

.wp-block-table.bnk-specs td:first-child {
	color: var(--wp--preset--color--muted);
	width: 45%;
}

.wp-block-table.bnk-specs td:last-child {
	font-weight: 700;
}

.bnk-section--dark .wp-block-table.bnk-specs td,
.bnk-system .wp-block-table.bnk-specs td {
	border-bottom-color: var(--wp--preset--color--line);
}

.bnk-section--dark .wp-block-table.bnk-specs td {
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

.bnk-section--dark .wp-block-table.bnk-specs td:first-child {
	color: #aeb8bf;
}

.wp-block-table.bnk-specs figcaption,
.bnk-note {
	font-size: 0.85rem !important;
	color: var(--wp--preset--color--muted);
	text-align: left;
}

.bnk-section--dark .bnk-note {
	color: #94a0a8;
}

/* --------------------------------------------------------------------------
   Unterseiten
   -------------------------------------------------------------------------- */
.bnk-page-hero {
	background:
		radial-gradient(ellipse at 85% 0%, rgba(142, 12, 15, 0.07), transparent 55%),
		var(--wp--preset--color--surface);
	padding-top: var(--wp--preset--spacing--60) !important;
	padding-bottom: var(--wp--preset--spacing--50) !important;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.bnk-page-hero h1 {
	margin: 0;
	font-size: clamp(2rem, 4.5vw, 3.4rem);
	text-wrap: balance;
}

.bnk-page-content {
	padding-bottom: var(--wp--preset--spacing--60);
}

.bnk-page-content > .bnk-section:last-child,
.bnk-page-content > .bnk-contact:last-child {
	margin-bottom: calc(var(--wp--preset--spacing--60) * -1);
}

.bnk-page-content > :first-child:not(.alignfull) {
	margin-top: var(--wp--preset--spacing--50);
}

/* Sprungmarken-Navigation auf Produktseiten */
.bnk-subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--40) !important;
}

.bnk-subnav a {
	display: inline-block;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	transition: border-color 0.2s, color 0.2s;
}

.bnk-subnav a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* Zeitstrahl Über uns */
.bnk-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
	border-left: 2px solid var(--wp--preset--color--line);
}

.bnk-timeline li {
	position: relative;
	padding: 0 0 1.6rem 1.75rem;
	margin: 0;
}

.bnk-timeline li::before {
	content: "";
	position: absolute;
	left: -8px;
	top: 0.35rem;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 4px var(--wp--preset--color--base);
}

.bnk-timeline strong {
	display: block;
	font-size: 1.25rem;
	color: var(--wp--preset--color--contrast);
}

/* Galerie */
.bnk-gallery.wp-block-gallery img {
	border-radius: var(--bnk-radius-sm);
}

/* --------------------------------------------------------------------------
   Diashow: Galerie-Block mit der CSS-Klasse „bnk-slideshow“.
   Ohne JavaScript (und im Editor) bleibt die Galerie ein normales Bildraster.
   -------------------------------------------------------------------------- */
.bnk-js .wp-block-gallery.bnk-slideshow,
.wp-block-gallery.bnk-slideshow.is-slideshow {
	--bnk-focus: #fff;
	position: relative;
	display: block !important;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	margin-top: 0;
	border-radius: var(--bnk-radius);
	background: #10161a;
	box-shadow: var(--bnk-shadow-lg);
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

.bnk-js .wp-block-gallery.bnk-slideshow > figure.wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* bis das Skript bereit ist: nur das erste Bild zeigen */
.bnk-js .wp-block-gallery.bnk-slideshow:not(.is-slideshow) > figure.wp-block-image:not(:first-of-type) {
	display: none;
}

.bnk-js .wp-block-gallery.bnk-slideshow > figure.wp-block-image img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	flex: none !important;
	object-fit: contain !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.wp-block-gallery.bnk-slideshow.is-slideshow > figure.wp-block-image {
	display: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.wp-block-gallery.bnk-slideshow.is-slideshow > figure.wp-block-image.is-near {
	display: flex;
}

.wp-block-gallery.bnk-slideshow.is-slideshow > figure.wp-block-image.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s ease, visibility 0s linear 0s;
}

/* unscharfer Hintergrund aus demselben Foto – füllt die Ränder bei Hoch-/Querformat */
.wp-block-gallery.bnk-slideshow.is-slideshow > figure.wp-block-image::before {
	content: "";
	position: absolute;
	inset: -48px;
	background: var(--bnk-slide-bg, none) center / cover no-repeat;
	filter: blur(28px) brightness(0.5) saturate(1.1);
}

.wp-block-gallery.bnk-slideshow.is-slideshow > figure.wp-block-image figcaption {
	z-index: 2;
}

.bnk-slideshow__btn {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: rgba(16, 22, 26, 0.45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s var(--bnk-ease);
}

.bnk-slideshow__btn:hover {
	background: rgba(16, 22, 26, 0.72);
}

.bnk-slideshow__btn svg {
	width: 22px;
	height: 22px;
}

.bnk-slideshow__btn--prev {
	left: clamp(0.5rem, 2vw, 1rem);
}

.bnk-slideshow__btn--next {
	right: clamp(0.5rem, 2vw, 1rem);
}

.bnk-slideshow__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 2rem clamp(0.75rem, 2vw, 1.1rem) 0.7rem;
	background: linear-gradient(0deg, rgba(10, 14, 17, 0.62), rgba(10, 14, 17, 0));
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	pointer-events: none;
}

.bnk-slideshow__bar > * {
	pointer-events: auto;
}

.bnk-slideshow__dots {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
}

.bnk-slideshow__dot {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.bnk-slideshow__dot::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	transition: background 0.2s, transform 0.2s;
}

.bnk-slideshow__dot:hover::before {
	background: rgba(255, 255, 255, 0.85);
}

.bnk-slideshow__dot[aria-current="true"]::before {
	background: #fff;
	transform: scale(1.35);
}

.bnk-slideshow__meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-left: auto;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.bnk-slideshow__count {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.bnk-slideshow__toggle {
	width: 36px;
	height: 36px;
	padding: 0;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: rgba(16, 22, 26, 0.45);
	color: #fff;
	cursor: pointer;
}

.bnk-slideshow__toggle:hover {
	background: rgba(16, 22, 26, 0.72);
}

.bnk-slideshow__toggle span {
	width: 10px;
	height: 12px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
	box-sizing: border-box;
}

.bnk-slideshow__toggle[aria-pressed="true"] span {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 3px;
}

.bnk-slideshow-caption {
	margin-top: 0.75rem !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.bnk-slideshow + .bnk-note {
	margin-top: 0.85rem;
}

@media (max-width: 600px) {
	.bnk-js .wp-block-gallery.bnk-slideshow,
	.wp-block-gallery.bnk-slideshow.is-slideshow {
		aspect-ratio: 4 / 3;
		border-radius: var(--bnk-radius-sm);
	}
	.bnk-slideshow__btn {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}
	.bnk-slideshow__dots {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.bnk-slideshow.is-slideshow > figure.wp-block-image,
	.wp-block-gallery.bnk-slideshow.is-slideshow > figure.wp-block-image.is-active {
		transition: none;
	}
}

/* Partner-Liste */
.bnk-partners {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
	gap: 0.75rem;
}

.bnk-partners li {
	margin: 0;
}

.bnk-partners a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	padding: 0.95rem 1.1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--bnk-radius-sm);
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	background: var(--wp--preset--color--base);
	transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.bnk-partners a::after {
	content: "↗";
	color: var(--wp--preset--color--accent);
}

.bnk-partners a:hover {
	border-color: var(--wp--preset--color--accent);
	box-shadow: var(--bnk-shadow);
}

/* Rechtstexte */
.bnk-legal h2 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: var(--wp--preset--spacing--50);
}

.bnk-legal h3 {
	font-size: var(--wp--preset--font-size--large);
	margin-top: var(--wp--preset--spacing--40);
}

.bnk-placeholder {
	background: #fff4d6;
	border: 1px dashed #c99a00;
	border-radius: 6px;
	padding: 0 0.35rem;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Kontaktbereich + Formular
   -------------------------------------------------------------------------- */
.bnk-contact {
	background:
		radial-gradient(ellipse at 0% 100%, rgba(142, 12, 15, 0.06), transparent 50%),
		var(--wp--preset--color--surface);
	padding-block: var(--wp--preset--spacing--60);
	scroll-margin-top: 90px;
}

.bnk-contact .wp-block-columns {
	gap: var(--wp--preset--spacing--50);
}

.bnk-contact-card {
	background: var(--wp--preset--color--contrast);
	color: #e6eaed;
	border-radius: var(--bnk-radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	margin-top: var(--wp--preset--spacing--40) !important;
}

.bnk-contact-card > * {
	margin-block: 0;
}

.bnk-contact-card > * + * {
	margin-top: 1.1rem;
}

.bnk-contact-card h3 {
	color: #fff;
	font-size: 1.15rem;
}

.bnk-contact-card a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(232, 105, 107, 0.6);
}

.bnk-contact-card a:hover {
	color: var(--wp--preset--color--accent-soft);
}

.bnk-contact-card .bnk-contact-row {
	display: grid;
	grid-template-columns: 6.5rem 1fr;
	gap: 0.25rem 0.75rem;
}

.bnk-contact-card .bnk-contact-row span:first-child {
	color: #aeb8bf;
	font-size: 0.9rem;
}

.bnk-form-wrap {
	background: var(--wp--preset--color--base);
	border-radius: var(--bnk-radius);
	box-shadow: var(--bnk-shadow-lg);
	padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

/* Formular – ergänzt die Basis-Styles des Plugins */
.bnk-form {
	--bnk-form-accent: var(--wp--preset--color--accent);
	--bnk-form-line: var(--wp--preset--color--line);
	--bnk-form-text: var(--wp--preset--color--contrast);
	--bnk-form-muted: var(--wp--preset--color--muted);
	--bnk-form-bg: var(--wp--preset--color--base);
	--bnk-form-soft: var(--wp--preset--color--surface);
	font-family: inherit;
}

/* --------------------------------------------------------------------------
   Fußbereich
   -------------------------------------------------------------------------- */
.bnk-footer {
	background: var(--wp--preset--color--contrast);
	color: #c9d0d5;
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--30);
	font-size: 0.97rem;
}

.bnk-footer a {
	color: #fff;
	text-decoration: none;
}

.bnk-footer a:hover {
	color: var(--wp--preset--color--accent-soft);
}

.bnk-footer__cols {
	gap: var(--wp--preset--spacing--50) !important;
}

.bnk-footer__text {
	margin-top: 1.25rem !important;
	max-width: 340px;
	color: #aeb8bf;
}

.bnk-footer__title {
	font-size: 0.8rem !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-soft) !important;
	margin-bottom: 1rem !important;
}

.bnk-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bnk-footer__links li {
	margin-bottom: 0.5rem;
}

.bnk-footer__address {
	line-height: 1.75;
}

.bnk-footer__bottom {
	margin-top: var(--wp--preset--spacing--50) !important;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.88rem;
	color: #94a0a8;
}

.bnk-footer__bottom p {
	margin: 0;
}

.bnk-footer__legal {
	display: flex;
	gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Kleine Bildschirme
   -------------------------------------------------------------------------- */
@media (max-width: 781px) {
	.bnk-hero {
		min-height: 80vh;
	}
	.bnk-hero::before {
		background: linear-gradient(0deg, rgba(16, 22, 26, 0.9) 0%, rgba(16, 22, 26, 0.72) 55%, rgba(16, 22, 26, 0.45) 100%);
	}
	.bnk-facts .wp-block-columns {
		margin-top: -1.5rem;
	}
	.bnk-contact-card .bnk-contact-row {
		grid-template-columns: 1fr;
	}
	.bnk-footer__legal {
		gap: 1rem;
	}
}

/* Editor: Diashow statisch als Raster anzeigen, damit alle Bilder bearbeitbar sind */
.editor-styles-wrapper .bnk-hero > .bnk-hero__slides {
	position: relative;
	inset: auto;
	z-index: 0;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
	margin-bottom: 1.5rem !important;
	padding: 8px !important;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
}

.editor-styles-wrapper .bnk-hero__slides > figure,
.editor-styles-wrapper .bnk-hero__slides > .wp-block-image {
	position: relative !important;
	inset: auto;
	opacity: 1 !important;
}

.editor-styles-wrapper .bnk-hero__slides img {
	aspect-ratio: 16 / 10;
	height: auto !important;
	animation: none !important;
	transform: none !important;
}

.editor-styles-wrapper .bnk-hero {
	justify-content: flex-start;
}
