.wp-block-valnew-tab-accordion {
	width: 100%;
	/* Im Backend einstellbar – Fallback-Werte für den Fall fehlender Inline-Vars.
	   WICHTIG: Variable NICHT "--border-width" nennen! WordPress-Core hat die Regel
	   html :where([style*="border-width"]) { border-style: solid; } – die würde sonst
	   greifen (Inline-Style enthält den Text "border-width") und einen 3px-Rahmen erzeugen. */
	--tab-border: 1px;
	/* Icon skaliert mit der Bildschirmbreite, damit die Kacheln auch auf
	   Mobil quadratisch bleiben (Inhalt passt in die Fläche). */
	--icon-size: clamp(34px, 8vw, 64px);
	/* Abstand zwischen den Kacheln – sorgt für getrennte Konturen ohne umschließenden Container-Rahmen */
	--gap: 1rem;
}

/* ── Tabs row ─────────────────────────────────────────── */

.wp-block-valnew-tab-accordion__tabs {
	display: grid;
	grid-template-columns: repeat(var(--tab-count, 4), 1fr);
	gap: var(--gap, 1rem);
}

.wp-block-valnew-tab-accordion__tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(0.45rem, 2vw, 1rem);
	aspect-ratio: 1;
	padding: clamp(0.6rem, 2.5vw, 1.5rem);
	background: none;
	/* Dünne schwarze Kontur rundherum – Strichstärke per Variable, jede Kachel eigenständig */
	border: var(--tab-border, 1px) solid #1a1a1a;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	text-align: center;
	width: 100%;
	color: inherit;
}

.wp-block-valnew-tab-accordion__tab:hover:not(.is-active) {
	/* Kein grauer Hover – stattdessen Kontur 1px dicker (inset, daher kein Umbruch) */
	box-shadow: inset 0 0 0 1px #1a1a1a;
}

.wp-block-valnew-tab-accordion__tab.is-active {
	background-color: #1a1a1a;
	color: #ffffff;
}

/* ── Icon ─────────────────────────────────────────────── */

.wp-block-valnew-tab-accordion__icon {
	width: var(--icon-size, 64px);
	height: var(--icon-size, 64px);
	object-fit: contain;
	display: block;
	transition: filter 0.2s ease;
}

.wp-block-valnew-tab-accordion__tab.is-active .wp-block-valnew-tab-accordion__icon {
	filter: invert(1);
}

/* ── Animiertes Isometrie-Icon (iso.js) ──────────────── */
/* Strich in Kachel-Schwarz, Flächen weiß; im aktiven Zustand dreht die
   bestehende invert-Regel (.is-active …__icon) das Icon wie die Bild-Icons um. */

.wp-block-valnew-tab-accordion__iso img,
.wp-block-valnew-tab-accordion__iso svg {
	display: block;
	width: 100%;
	height: 100%;
}

.wp-block-valnew-tab-accordion__iso svg {
	overflow: visible;
	fill: none;
	stroke: #1a1a1a;
	stroke-width: calc(1px / var(--nsk, 1));
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wp-block-valnew-tab-accordion__iso .ol { stroke-width: calc(3px / var(--nsk, 1)); }   /* sichtbare Außenkontur 2 px */
.wp-block-valnew-tab-accordion__iso .f { fill: #ffffff; }
.wp-block-valnew-tab-accordion__iso .g { stroke-width: calc(0.7px / var(--nsk, 1)); }
.wp-block-valnew-tab-accordion__iso .dash { stroke-width: calc(0.7px / var(--nsk, 1)); stroke-dasharray: 3 5; }
/* Strichstärken in Bildschirmpixeln passend zu den Kachelrändern: Innenlinien 1 px wie der
   normale Rand, Außenkontur 2 px wie der Rand beim Hover. iso.js setzt --nsk = Icon-Breite / 200;
   Teile mit non-scaling-stroke (Zahnräder, Screen, Megafon) bekommen die px-Werte direkt. */
.wp-block-valnew-tab-accordion__iso [vector-effect] { stroke-width: 1px; }
.wp-block-valnew-tab-accordion__iso .g[vector-effect] { stroke-width: 0.7px; }
.wp-block-valnew-tab-accordion__iso text { fill: #1a1a1a; stroke: none; font-family: ui-monospace, "Space Mono", Consolas, monospace; font-weight: 700; }

/* Aktive Kachel: Iso-Icon nicht per invert umdrehen (Weiß würde zu reinem #000 statt Kachel-Schwarz),
   sondern direkt einfärben – Flächen im Schwarz der Kachel, Linien und Schrift weiß.
   Ohne SVG (Fallback-Bild) greift weiter die invert-Regel oben. */
.wp-block-valnew-tab-accordion__iso svg { transition: stroke 0.2s ease; }
.wp-block-valnew-tab-accordion__iso .f,
.wp-block-valnew-tab-accordion__iso text { transition: fill 0.2s ease; }
.wp-block-valnew-tab-accordion__tab.is-active .wp-block-valnew-tab-accordion__iso:has(svg) { filter: none; }
.wp-block-valnew-tab-accordion__tab.is-active .wp-block-valnew-tab-accordion__iso svg { stroke: #ffffff; }
.wp-block-valnew-tab-accordion__tab.is-active .wp-block-valnew-tab-accordion__iso .f { fill: #1a1a1a; }
.wp-block-valnew-tab-accordion__tab.is-active .wp-block-valnew-tab-accordion__iso text { fill: #ffffff; }

/* ── Tab title ────────────────────────────────────────── */

.wp-block-valnew-tab-accordion__tab-title {
	font-size: var(--tab-title-size, var(--vn-fs-subheading, clamp(1.2rem, 2vw, 1.5rem)));
	font-weight: var(--vn-fw-subheading, 700);
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.4;
}

/* ── Panel (accordion content) ───────────────────────── */

.wp-block-valnew-tab-accordion__panel {
	background-color: #1a1a1a;
	/* Gleicher Abstand zur Button-Reihe wie zwischen den Buttons */
	margin-top: var(--gap, 1rem);
	/* Inhalt beginnt immer links in der Fläche – unabhängig vom aktiven Button */
	padding: 3rem;
}

.wp-block-valnew-tab-accordion__items {
	list-style: none;
	margin: 0;
	padding-left: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.65rem 3rem;
}

.wp-block-valnew-tab-accordion__item {
	color: #ffffff;
	font-size: var(--tab-item-size, var(--vn-fs-normal, 1.0625rem));
	line-height: 1.5;
	/* Hängender Einzug: Der Punkt sitzt im Einzug (::before), der Text bekommt die volle
	   Spaltenbreite. Sonst bleibt bei langen Wörtern (z. B. „Businessplanentwicklung“)
	   der Punkt allein stehen und das Wort rutscht in die nächste Zeile. */
	position: relative;
	padding-left: 1em;
	/* Trennung nur bei wirklich zu langen Wörtern, nie mit 1–3 Buchstaben am Zeilenende/-anfang */
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 10 4 4;
	overflow-wrap: break-word;
}

.wp-block-valnew-tab-accordion__item::before {
	content: "•";
	position: absolute;
	left: 0.1em;
	top: 0;
}

/* ── Responsive ───────────────────────────────────────── */

/* Tablet: immer mindestens zwei Kacheln nebeneinander */
@media (max-width: 900px) {
	.wp-block-valnew-tab-accordion__tabs {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile: weiterhin mindestens zwei Kacheln nebeneinander */
@media (max-width: 540px) {
	.wp-block-valnew-tab-accordion__tabs {
		grid-template-columns: repeat(2, 1fr);
	}

	.wp-block-valnew-tab-accordion__panel {
		padding: 2rem 1.5rem;
	}

	.wp-block-valnew-tab-accordion__items {
		grid-template-columns: 1fr;
	}
}
