/*
 * inray Page-Blocks — Partnerportal (portal.inray.cloud)
 *
 * Eigenständiges Gestaltungssystem für die Bausteine, unabhängig vom
 * Avada-Builder. Alle Regeln hängen an .pb-page (Spezifität ≥ 0,2,0) und
 * gewinnen damit gegen Avadas `.post-content h2` & Co.
 *
 * Bei JEDER Änderung: Inray_Page_Blocks_Shortcode::ASSET_VERSION hochzählen.
 *
 * Aufbau
 *   1. Grundwerte (Farben, Schrift, Abstände) + Farbwelten je Produkt
 *   2. Grundgerüst (Band, Container, Überschriften, Fließtext, Buttons)
 *   3. Bausteine: Kopfbereich, Sprungnavigation, Abschnitt, Text + Bild,
 *      Kachel-Raster, Download-Kachel, Produkt-Kachel, Partner-Materialien
 *   4. Responsiv, Bewegung, Druck
 */

/* 1. Grundwerte ------------------------------------------------------- */

.pb-page {
	--pb-font: "Inter", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--pb-ink: #0f172a;
	--pb-ink-2: #334155;
	--pb-muted: #64748b;
	--pb-line: #e2e8f0;
	--pb-line-strong: #cbd5e1;
	--pb-surface: #ffffff;
	--pb-surface-2: #f8fafc;
	--pb-surface-3: #f1f5f9;

	--pb-radius: 14px;
	--pb-radius-sm: 10px;
	--pb-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
	--pb-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -6px rgba(15, 23, 42, 0.10);
	--pb-shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 48px -12px rgba(15, 23, 42, 0.18);

	--pb-container: 1200px;
	--pb-gutter: clamp(20px, 4vw, 40px);
	--pb-band-y: clamp(56px, 7vw, 96px);
	--pb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	/* Farbwelt (Standard: Portal-Violett) */
	--pb-accent: #6d5fd3;          /* Flächen: Buttons, Linien */
	--pb-accent-strong: #5646c2;   /* Hover */
	--pb-accent-ink: #ffffff;      /* Schrift auf Akzentfläche */
	--pb-accent-text: #5646c2;     /* Akzent als Schrift auf Weiß (Kontrast ≥ 4.5:1) */
	--pb-accent-soft: #f1effc;     /* sehr heller Hintergrund */
	--pb-hero-from: #17143a;
	--pb-hero-to: #3a2f8f;
	--pb-glow: rgba(130, 117, 216, 0.55);
}

.pb-accent--inray {
	/* inray-Hausfarben wie inray.de: Blau #005791 / #002c52, Orange #fd6220 */
	--pb-accent: #fd6220;
	--pb-accent-strong: #e04e10;
	--pb-accent-ink: #ffffff;
	--pb-accent-text: #005791;
	--pb-accent-soft: #eaf3fa;
	--pb-hero-from: #002c52;
	--pb-hero-to: #005791;
	--pb-glow: rgba(0, 135, 200, 0.45);
}

.pb-accent--manubes {
	--pb-accent: #fdbf00;
	--pb-accent-strong: #e5ac00;
	--pb-accent-ink: #1a1a1a;
	--pb-accent-text: #8a6500;
	--pb-accent-soft: #fff8e1;
	--pb-hero-from: #141619;
	--pb-hero-to: #2e2a1d;
	--pb-glow: rgba(253, 191, 0, 0.42);
}

.pb-accent--opc {
	--pb-accent: #ff8f1f;
	--pb-accent-strong: #ec7a07;
	--pb-accent-ink: #1b1204;
	--pb-accent-text: #1f5b3f;
	--pb-accent-soft: #f3faf6;
	--pb-hero-from: #0b2a1d;
	--pb-hero-to: #1f5b3f;
	--pb-glow: rgba(255, 143, 31, 0.38);
}

.pb-accent--pronubes {
	--pb-accent: #0e7c86;
	--pb-accent-strong: #0a646c;
	--pb-accent-ink: #ffffff;
	--pb-accent-text: #0a646c;
	--pb-accent-soft: #e7f5f6;
	--pb-hero-from: #062327;
	--pb-hero-to: #0e5a61;
	--pb-glow: rgba(45, 196, 208, 0.42);
}

.pb-accent--connubes {
	--pb-accent: #4f46e5;
	--pb-accent-strong: #4338ca;
	--pb-accent-ink: #ffffff;
	--pb-accent-text: #4338ca;
	--pb-accent-soft: #eef0fe;
	--pb-hero-from: #111237;
	--pb-hero-to: #2e2a85;
	--pb-glow: rgba(99, 102, 241, 0.5);
}

.pb-accent--orange {
	--pb-accent: #ff9921;
	--pb-accent-strong: #ee8507;
	--pb-accent-ink: #1b1204;
	--pb-accent-text: #005791;
	--pb-accent-soft: #fff4e6;
	--pb-hero-from: #04182b;
	--pb-hero-to: #00497a;
	--pb-glow: rgba(255, 153, 33, 0.4);
}

/* 2. Grundgerüst ------------------------------------------------------ */

.pb-page {
	font-family: var(--pb-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--pb-ink-2);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.pb-page *,
.pb-page *::before,
.pb-page *::after {
	box-sizing: border-box;
}

.pb-page :where(h1, h2, h3, p, ul, figure) {
	margin: 0;
}

.pb-page :where(ul[role="list"]) {
	list-style: none;
	padding: 0;
}

.pb-page img {
	display: block;
	max-width: 100%;
	height: auto;
}

.pb-page .pb-band {
	position: relative;
	padding-block: var(--pb-band-y);
}

.pb-page .pb-container {
	width: 100%;
	max-width: calc(var(--pb-container) + 2 * var(--pb-gutter));
	margin-inline: auto;
	padding-inline: var(--pb-gutter);
}

.pb-page .pb-bg--white {
	background: var(--pb-surface);
}

.pb-page .pb-bg--light {
	background: var(--pb-surface-2);
	box-shadow: inset 0 1px 0 var(--pb-line), inset 0 -1px 0 var(--pb-line);
}

.pb-page .pb-bg--tint {
	background: var(--pb-accent-soft);
}

/* Avada-Rahmen abschalten: #main hat sonst 60 px oben/unten und in der
   Vorlage „100% Width“ 30 px seitlich Innenabstand — die Bausteine sollen
   randlos direkt unter der Kopfzeile beginnen. Body-Klasse setzt
   Inray_Page_Blocks_Shortcode::body_class(); Spezifität (1,2,2) schlägt
   Avadas html.avada-is-100-percent-template #main.width-100 (1,2,1). */
html body.pb-blocks-page #main,
html body.pb-blocks-page #main.width-100 {
	padding: 0;
}

html body.pb-blocks-page #main .fusion-row {
	max-width: none;
	padding: 0;
}

html body.pb-blocks-page #content {
	margin-bottom: 0;
}

/* Kopfzeile über dem Hero: Beginnt die Seite mit einem Hero, läuft er bis
   ganz nach oben hinter die Kopfzeile, statt unter einem eigenen blauen
   Balken zu stehen. Avadas Kopfzeile war früher immer position: fixed; den
   Platz darunter hält sonst die .fusion-sticky-spacer frei. Im Ruhezustand ist
   die Kopfzeile transparent, beim Scrollen (Avada setzt dann
   .fusion-sticky-transition) bekommt sie ihr Blau zurück.
   Im Ruhezustand liegt die Kopfzeile inzwischen mit position: relative im
   Seitenfluss (gemessen am 2026-11-18: 114 px hoch) — transparent über dem
   weißen Seitenrahmen wäre das weißes Logo auf weißem Streifen über dem Hero.
   Deshalb wird sie hier ausdrücklich über den Hero gelegt (absolute am oberen
   Rand des Seitenrahmens, also unter der Admin-Leiste); der z-index hält sie
   über dem Hero und Menüs darüber aufklappbar.
   --pb-header-h = gemessene Höhe der Avada-Kopfzeile (ab 1200 px 129 px,
   darunter fließend ~100–125 px, bis 640 px zweizeilig 210 px); der Hero
   bekommt sie oben zusätzlich, damit der Text an derselben Stelle bleibt. */
html body.pb-blocks-page:has(.pb-page > .pb-hero:first-child) {
	--pb-header-h: 129px;
}

@media (max-width: 1199px) {
	html body.pb-blocks-page:has(.pb-page > .pb-hero:first-child) {
		--pb-header-h: calc(68px + 5vw);
	}
}

@media (max-width: 640px) {
	html body.pb-blocks-page:has(.pb-page > .pb-hero:first-child) {
		--pb-header-h: 210px;
	}
}

html body.pb-blocks-page:has(.pb-page > .pb-hero:first-child) .fusion-tb-header .fusion-sticky-spacer {
	display: none !important; /* Höhe setzt Avada per JS inline */
}

html body.pb-blocks-page:has(.pb-page > .pb-hero:first-child) .fusion-tb-header .fusion-sticky-container:not(.fusion-sticky-spacer):not(.fusion-sticky-transition) {
	background-color: transparent !important; /* Avada: --awb-background-color inline */
	position: absolute !important; /* Avada liefert im Ruhezustand position: relative */
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
}

html body.pb-blocks-page .pb-page > .pb-hero:first-child {
	padding-top: calc(clamp(64px, 9vw, 120px) + var(--pb-header-h, 0px));
}

/* Safari (macOS/iOS) zieht die Seite am oberen Rand elastisch nach unten
   („Gummiband“). Dabei erscheint über dem Hero der Dokumenthintergrund —
   sonst weiß, und die transparente Kopfzeile mit weißem Logo stünde auf einem
   weißen Balken. Deshalb auf Seiten mit Hero: Überziehen abschalten und als
   Rückfall den Dokumenthintergrund in der dunklen Hero-Farbe der Farbwelt. */
html:has(body.pb-blocks-page .pb-page > .pb-hero:first-child) {
	overscroll-behavior-y: none;
	background-color: #17143a;
}

html:has(body.pb-blocks-page .pb-accent--inray > .pb-hero:first-child) { background-color: #002c52; }
html:has(body.pb-blocks-page .pb-accent--manubes > .pb-hero:first-child) { background-color: #141619; }
html:has(body.pb-blocks-page .pb-accent--opc > .pb-hero:first-child) { background-color: #0b2a1d; }
html:has(body.pb-blocks-page .pb-accent--pronubes > .pb-hero:first-child) { background-color: #062327; }
html:has(body.pb-blocks-page .pb-accent--connubes > .pb-hero:first-child) { background-color: #111237; }
html:has(body.pb-blocks-page .pb-accent--orange > .pb-hero:first-child) { background-color: #04182b; }

/* Sprungmarken nicht unter der festen Avada-Kopfzeile verstecken */
.pb-page [id] {
	scroll-margin-top: 120px;
}

.pb-page .pb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pb-accent-text);
}

.pb-page .pb-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--pb-accent);
}

.pb-page .pb-eyebrow--on-dark {
	color: rgba(255, 255, 255, 0.82);
}

.pb-page .pb-heading {
	font-family: var(--pb-font);
	font-weight: 700;
	color: var(--pb-ink);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.pb-page .pb-heading--h2 {
	font-size: clamp(28px, 3.2vw, 38px);
	line-height: 1.18;
}

.pb-page .pb-heading--h3 {
	font-size: clamp(21px, 2.2vw, 25px);
	line-height: 1.3;
	letter-spacing: -0.012em;
}

.pb-page .pb-prose {
	max-width: 72ch;
	margin-top: 18px;
	color: var(--pb-ink-2);
}

.pb-page .pb-prose > * + * {
	margin-top: 1em;
}

.pb-page .pb-prose a {
	color: var(--pb-accent-text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pb-page .pb-prose a:hover {
	text-decoration-thickness: 2px;
}

.pb-page .pb-prose strong {
	color: var(--pb-ink);
	font-weight: 650;
}

.pb-page .pb-prose ul,
.pb-page .pb-prose ol {
	padding-left: 0;
	list-style: none;
}

.pb-page .pb-prose li {
	position: relative;
	padding-left: 26px;
}

.pb-page .pb-prose li + li {
	margin-top: 8px;
}

.pb-page .pb-prose ul > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pb-accent);
}

.pb-page .pb-prose ol {
	counter-reset: pb-ol;
}

.pb-page .pb-prose ol > li {
	counter-increment: pb-ol;
}

.pb-page .pb-prose ol > li::before {
	content: counter(pb-ol) ".";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--pb-accent-text);
}

.pb-page .pb-prose :is(h3, h4) {
	margin-top: 1.8em;
	font-family: var(--pb-font);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--pb-ink);
}

.pb-page .pb-prose h4 {
	font-size: 17px;
}

.pb-page .pb-prose :is(h3, h4) + * {
	margin-top: 0.5em;
}

.pb-page .pb-prose .pb-lead {
	font-size: 1.15em;
	color: var(--pb-ink);
}

/* Zitat / Kontakt-Hinweis im Fließtext */
.pb-page .pb-prose blockquote {
	margin: 1.6em 0 0;
	padding: 18px 22px;
	border: 1px solid var(--pb-line);
	border-left: 3px solid var(--pb-accent);
	border-radius: var(--pb-radius-sm);
	background: var(--pb-surface);
	font-size: 16px;
	font-style: normal;
	color: var(--pb-ink-2);
	quotes: none;
}

.pb-page .pb-prose blockquote::before,
.pb-page .pb-prose blockquote::after {
	content: none;
}

.pb-page .pb-prose blockquote > * + * {
	margin-top: 0.6em;
}

/* Aufklappbare Blöcke im Fließtext (z. B. Changelog je Version, aus
   Markdown erzeugt: tools/build-markdown-sections.php) */
.pb-page .pb-prose:has(> details) {
	max-width: 900px;
}

.pb-page .pb-prose details {
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius-sm);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow-sm);
}

.pb-page .pb-prose details + details {
	margin-top: 12px;
}

.pb-page .pb-prose summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	font-family: var(--pb-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--pb-ink);
	cursor: pointer;
	list-style: none;
}

.pb-page .pb-prose summary::-webkit-details-marker {
	display: none;
}

.pb-page .pb-prose summary::after {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--pb-accent-text);
	border-bottom: 2px solid var(--pb-accent-text);
	transform: translateY(-3px) rotate(45deg);
	transition: transform 0.2s var(--pb-ease);
}

.pb-page .pb-prose details[open] > summary::after {
	transform: translateY(2px) rotate(-135deg);
}

.pb-page .pb-prose summary:focus-visible {
	outline: 3px solid var(--pb-accent);
	outline-offset: 2px;
	border-radius: var(--pb-radius-sm);
}

.pb-page .pb-prose details > div {
	padding: 4px 20px 22px;
	border-top: 1px solid var(--pb-line);
}

.pb-page .pb-prose details > div > * + * {
	margin-top: 1em;
}

.pb-page .pb-prose details > div > h3:first-child {
	margin-top: 1em;
}

.pb-page .pb-prose li > ul {
	margin-top: 8px;
}

.pb-page .pb-prose code {
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--pb-surface-3);
	font-size: 0.92em;
}

.pb-page .pb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.pb-page .pb-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--pb-radius-sm);
	font-family: var(--pb-font);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s var(--pb-ease), border-color 0.2s var(--pb-ease), color 0.2s var(--pb-ease), transform 0.2s var(--pb-ease), box-shadow 0.2s var(--pb-ease);
}

.pb-page .pb-btn .pb-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s var(--pb-ease);
}

.pb-page .pb-btn:hover .pb-icon {
	transform: translateX(3px);
}

.pb-page .pb-btn--primary {
	background: var(--pb-accent);
	color: var(--pb-accent-ink);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 6px 16px -6px var(--pb-glow);
}

.pb-page .pb-btn--primary:hover {
	background: var(--pb-accent-strong);
	color: var(--pb-accent-ink);
	transform: translateY(-1px);
}

.pb-page .pb-btn--ghost-light {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
}

.pb-page .pb-btn--ghost-light:hover {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.pb-page a:focus-visible {
	outline: 3px solid var(--pb-accent);
	outline-offset: 3px;
	border-radius: 6px;
}

.pb-page .pb-icon {
	flex: none;
	width: 20px;
	height: 20px;
}

.pb-page .pb-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 3a. Kopfbereich ----------------------------------------------------- */

.pb-page .pb-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(64px, 9vw, 120px) clamp(72px, 9vw, 128px);
	background: linear-gradient(135deg, var(--pb-hero-from) 0%, var(--pb-hero-to) 100%);
	color: #ffffff;
}

.pb-page .pb-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	opacity: 0.22;
	mix-blend-mode: luminosity;
}

.pb-page .pb-hero__glow {
	position: absolute;
	z-index: -1;
	inset: -40% -20% auto auto;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--pb-glow), transparent);
	filter: blur(10px);
	pointer-events: none;
}

.pb-page .pb-hero::after {
	/* feines Raster für Tiefe */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
	pointer-events: none;
}

.pb-page .pb-hero__inner {
	display: grid;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.pb-page .pb-hero--with-image .pb-hero__inner {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.pb-page .pb-hero__content {
	max-width: 760px;
}

.pb-page .pb-hero__title {
	font-family: var(--pb-font);
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #ffffff;
	text-wrap: balance;
}

.pb-page .pb-hero__text {
	max-width: 62ch;
	margin-top: 20px;
	font-size: clamp(17px, 1.5vw, 19px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.pb-page .pb-hero__media {
	display: flex;
	justify-content: center;
	padding: clamp(20px, 3vw, 36px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.pb-page .pb-hero__image {
	max-height: 340px;
	width: auto;
	border-radius: 10px;
}

/* Bild als Markenzeichen: kein Glasrahmen, Logo groß mit warmem Lichtschein */
.pb-page .pb-hero--image-mark .pb-hero__inner {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.pb-page .pb-hero--image-mark .pb-hero__media {
	position: relative;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.pb-page .pb-hero--image-mark .pb-hero__media::before {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 120%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(253, 98, 32, 0.22), rgba(0, 135, 200, 0.12) 55%, transparent);
	pointer-events: none;
}

.pb-page .pb-hero--image-mark .pb-hero__image {
	position: relative;
	max-height: 240px;
	border-radius: 0;
	filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

/* 3b. Sprungnavigation (steht mit Abstand unter dem Kopfbereich) --- */

.pb-page .pb-jump {
	padding-block: 0 clamp(40px, 5vw, 64px);
	background: var(--pb-surface);
}

.pb-page .pb-hero + .pb-jump {
	padding-top: clamp(28px, 3.5vw, 44px);
}

.pb-page .pb-jump + .pb-band {
	padding-top: clamp(40px, 5vw, 64px);
}

/* Kacheln direkt nach dem Kopfbereich (Startseite) stehen mit Abstand darunter */
.pb-page .pb-hero + .pb-band--tiles {
	padding-top: clamp(28px, 3.5vw, 44px);
	background: transparent;
}

.pb-page .pb-jump__label {
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pb-muted);
}

.pb-page .pb-hero + .pb-jump .pb-jump__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.pb-page .pb-jump__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-page .pb-jump__card {
	padding: 20px 20px 14px;
	border: 1px solid var(--pb-line);
	border-top: 3px solid var(--pb-accent);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.pb-page .pb-jump__title {
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--pb-ink);
}

.pb-page .pb-jump__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-page .pb-jump__links li {
	margin: 0;
	padding: 0;
}

.pb-page .pb-jump__links li + li {
	border-top: 1px solid var(--pb-surface-3);
}

.pb-page .pb-jump__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--pb-ink-2);
	text-decoration: none;
	transition: color 0.15s var(--pb-ease);
}

.pb-page .pb-jump__link .pb-icon {
	width: 16px;
	height: 16px;
	color: var(--pb-line-strong);
	transition: transform 0.2s var(--pb-ease), color 0.2s var(--pb-ease);
}

.pb-page .pb-jump__link:hover {
	color: var(--pb-accent-text);
}

.pb-page .pb-jump__link:hover .pb-icon {
	color: var(--pb-accent);
	transform: translateX(3px);
}

/* 3c. Abschnitt ------------------------------------------------------- */

.pb-page .pb-section__head {
	max-width: 760px;
}

.pb-page .pb-section--h3 {
	padding-top: clamp(40px, 5vw, 64px);
}

.pb-page .pb-section--h3 .pb-section__head {
	padding-top: 0;
}

/* Unterabschnitt direkt nach Kacheln: Trennlinie statt neuem Band */
.pb-page .pb-band--tiles + .pb-section--h3 {
	padding-top: 8px;
}

.pb-page .pb-band--tiles + .pb-section--h3 > .pb-container::before {
	content: "";
	display: block;
	height: 1px;
	margin-bottom: clamp(32px, 4vw, 48px);
	background: var(--pb-line);
}

.pb-page .pb-band--before-tiles {
	padding-bottom: 28px;
}

/* Unterabschnitt (H3) direkt nach einem Abschnitt mit gleichem Hintergrund:
   ein durchgehendes Band, keine doppelte Lücke und keine Trennlinie. */
.pb-page .pb-bg--white + .pb-section--h3.pb-bg--white,
.pb-page .pb-bg--light + .pb-section--h3.pb-bg--light,
.pb-page .pb-bg--tint + .pb-section--h3.pb-bg--tint {
	padding-top: 0;
}

.pb-page .pb-bg--light:has(+ .pb-section--h3.pb-bg--light) {
	box-shadow: inset 0 1px 0 var(--pb-line);
}

.pb-page .pb-bg--light + .pb-section--h3.pb-bg--light {
	box-shadow: inset 0 -1px 0 var(--pb-line);
}

.pb-page .pb-bg--light + .pb-section--h3.pb-bg--light:has(+ .pb-section--h3.pb-bg--light) {
	box-shadow: none;
}

.pb-page .pb-section:has(+ .pb-section--h3) {
	padding-bottom: clamp(32px, 4vw, 48px);
}

.pb-page .pb-note {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	max-width: 760px;
	margin-top: 22px;
	padding: 14px 18px;
	border: 1px solid var(--pb-line);
	border-left: 3px solid var(--pb-accent);
	border-radius: var(--pb-radius-sm);
	background: var(--pb-surface);
	font-size: 15px;
	line-height: 1.55;
	color: var(--pb-ink-2);
}

.pb-page .pb-note .pb-icon {
	margin-top: 1px;
	color: var(--pb-accent-text);
}

.pb-page .pb-note--confidential {
	border-color: #fde2c4;
	border-left-color: #d97706;
	background: #fffaf3;
}

.pb-page .pb-note--confidential .pb-icon {
	color: #b45309;
}

/* 3d. Text + Bild ----------------------------------------------------- */

.pb-page .pb-text-image__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.pb-page .pb-text-image--no-image .pb-text-image__inner {
	grid-template-columns: minmax(0, 1fr);
}

.pb-page .pb-text-image--image-left .pb-text-image__media {
	order: -1;
}

.pb-page .pb-media--card {
	padding: 10px;
	border: 1px solid var(--pb-line);
	border-radius: 18px;
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow-lg);
}

.pb-page .pb-media--card .pb-text-image__image {
	width: 100%;
	border-radius: 10px;
}

.pb-page .pb-media--plain .pb-text-image__image {
	margin-inline: auto;
}

/* 3e. Kachel-Raster --------------------------------------------------- */

.pb-page .pb-band--attached {
	padding-top: 0;
}

.pb-page .pb-grid {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-page .pb-grid__item {
	display: flex;
	margin: 0;
	padding: 0;
}

.pb-page .pb-grid__item > * {
	flex: 1;
}

.pb-page .pb-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-page .pb-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-page .pb-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pb-page .pb-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.pb-page .pb-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow-sm);
	transition: transform 0.25s var(--pb-ease), box-shadow 0.25s var(--pb-ease), border-color 0.25s var(--pb-ease);
}

.pb-page .pb-tile--linked:hover {
	transform: translateY(-3px);
	border-color: var(--pb-line-strong);
	box-shadow: var(--pb-shadow-lg);
}

.pb-page .pb-tile__title {
	font-family: var(--pb-font);
	font-size: 16.5px;
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: -0.005em;
	color: var(--pb-ink);
}

.pb-page .pb-tile__text {
	margin-top: 6px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--pb-muted);
}

/* Ganze Kachel klickbar, Fokus aber sichtbar an der Kachel */
.pb-page .pb-stretched::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.pb-page .pb-stretched:focus-visible {
	outline: none;
}

.pb-page .pb-tile:has(.pb-stretched:focus-visible) {
	outline: 3px solid var(--pb-accent);
	outline-offset: 3px;
}

/* 3f. Download-Kachel ------------------------------------------------- */

.pb-page .pb-download__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-bottom: 1px solid var(--pb-line);
	background: var(--pb-surface-3);
}

.pb-page .pb-download__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.5s var(--pb-ease);
}

.pb-page .pb-tile--linked:hover .pb-download__image {
	transform: scale(1.035);
}

.pb-page .pb-download__media--icon {
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 90% at 100% 0%, var(--pb-accent-soft), transparent 60%),
		var(--pb-surface-2);
}

.pb-page .pb-download__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 1px solid var(--pb-line);
	border-radius: 16px;
	background: var(--pb-surface);
	color: var(--pb-accent-text);
	box-shadow: var(--pb-shadow-sm);
}

.pb-page .pb-download__icon .pb-icon {
	width: 30px;
	height: 30px;
}

.pb-page .pb-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--pb-ink);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.pb-page .pb-download__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 18px 16px;
}

.pb-page .pb-download__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
}

.pb-page .pb-download__meta {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--pb-muted);
}

.pb-page .pb-download__action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	padding: 7px 12px;
	border-radius: 8px;
	background: var(--pb-accent-soft);
	color: var(--pb-accent-text);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
	transition: background-color 0.2s var(--pb-ease), color 0.2s var(--pb-ease);
}

.pb-page .pb-download__action .pb-icon {
	width: 17px;
	height: 17px;
}

.pb-page .pb-tile--linked:hover .pb-download__action {
	background: var(--pb-accent);
	color: var(--pb-accent-ink);
}

/* 3g. Produkt-Kachel -------------------------------------------------- */

.pb-page .pb-product {
	flex-direction: row;
	align-items: flex-start;
	gap: 22px;
	padding: 24px;
}

.pb-page .pb-product::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--pb-accent), var(--pb-accent-strong));
}

.pb-page .pb-product__logo {
	display: grid;
	flex: none;
	place-items: center;
	width: 96px;
	height: 96px;
	padding: 14px;
	border: 1px solid var(--pb-line);
	border-radius: 18px;
	background: var(--pb-surface-2);
}

.pb-page .pb-product__logo--dark {
	border-color: transparent;
	background: linear-gradient(135deg, var(--pb-hero-from), var(--pb-hero-to));
}

.pb-page .pb-product__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.pb-page .pb-product__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.pb-page .pb-product__title {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.pb-page .pb-product__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--pb-accent-text);
	font-size: 15px;
	font-weight: 650;
	text-decoration: none;
}

.pb-page .pb-product__link .pb-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s var(--pb-ease);
}

.pb-page .pb-tile--linked:hover .pb-product__link .pb-icon {
	transform: translateX(4px);
}

/* 3h. Partner-Materialien (Baustein materials) ------------------------ */

/* ZIP-Kachel „Complete Partner Package“: quer, hervorgehoben */
.pb-page .pb-band--package {
	padding-block: clamp(40px, 5vw, 64px) 0;
}

.pb-page .pb-band--package + .pb-section {
	padding-top: clamp(40px, 5vw, 64px);
}

.pb-page .pb-package {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: clamp(16px, 3vw, 32px);
	align-items: center;
	padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
	border-color: var(--pb-line-strong);
	border-left: 4px solid var(--pb-accent);
	background:
		radial-gradient(90% 140% at 100% 0%, var(--pb-accent-soft), transparent 65%),
		var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.pb-page .pb-package__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: var(--pb-accent);
	color: var(--pb-accent-ink);
}

.pb-page .pb-package__icon .pb-icon {
	width: 32px;
	height: 32px;
}

.pb-page .pb-package__body .pb-eyebrow {
	margin-bottom: 4px;
}

.pb-page .pb-package__title {
	margin: 0;
	font-family: var(--pb-font);
	font-size: clamp(19px, 2vw, 22px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--pb-ink);
}

.pb-page .pb-package__text {
	max-width: 680px;
	margin-top: 6px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--pb-ink-2);
}

.pb-page .pb-package__meta {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pb-muted);
}

.pb-page .pb-package .pb-btn {
	white-space: nowrap;
}

/* Frühere Releases: kleine Kacheln ohne Vorschaufläche */
.pb-page .pb-materials__tiles--compact .pb-download__media {
	aspect-ratio: auto;
	height: 72px;
}

.pb-page .pb-materials__tiles--compact .pb-download__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

.pb-page .pb-materials__tiles--compact .pb-download__icon .pb-icon {
	width: 22px;
	height: 22px;
}

.pb-page .pb-materials__tiles--compact .pb-tile__title {
	font-size: 15px;
}

/* 3i. Neu im Portal (whats_new) ---------------------------------------- */

.pb-page .pb-download__kicker {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--pb-accent-text);
}

.pb-page .pb-badge--new {
	background: var(--pb-accent);
	color: var(--pb-accent-ink);
}

/* Hinweis für die Redaktion, solange der Index fehlt */
.pb-page .pb-materials-pending {
	padding-block: 24px;
}

.pb-page .pb-materials-pending .pb-note {
	max-width: none;
	margin: 0;
}

/* 4. Responsiv, Bewegung, Druck --------------------------------------- */

@media (max-width: 1100px) {
	.pb-page .pb-grid--cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.pb-page .pb-grid--cols-4,
	.pb-page .pb-grid--cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pb-page .pb-hero--with-image .pb-hero__inner,
	.pb-page .pb-text-image__inner { grid-template-columns: minmax(0, 1fr); }
	.pb-page .pb-text-image--image-left .pb-text-image__media { order: 0; }
	.pb-page .pb-hero__media { justify-self: start; max-width: 520px; }
	.pb-page .pb-hero--image-mark .pb-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.pb-page .pb-hero--image-mark .pb-hero__media { display: none; } /* Logo steht schon in der Kopfzeile */
}

@media (max-width: 760px) {
	.pb-page .pb-grid--cols-2,
	.pb-page .pb-grid--cols-3,
	.pb-page .pb-grid--cols-4,
	.pb-page .pb-grid--cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pb-page .pb-grid--product-tile { grid-template-columns: minmax(0, 1fr); }
	.pb-page .pb-hero + .pb-jump,
	.pb-page .pb-hero + .pb-band--tiles { padding-top: 24px; }
	.pb-page .pb-jump__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pb-page .pb-jump__card { padding: 14px 14px 8px; }
	.pb-page .pb-jump__link { font-size: 14px; }
	.pb-page .pb-jump__link .pb-icon { display: none; }
	.pb-page .pb-package { grid-template-columns: auto minmax(0, 1fr); }
	.pb-page .pb-package .pb-btn { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 520px) {
	.pb-page { font-size: 16px; }
	.pb-page .pb-grid--cols-2,
	.pb-page .pb-grid--cols-3,
	.pb-page .pb-grid--cols-4,
	.pb-page .pb-grid--cols-5 { grid-template-columns: minmax(0, 1fr); }
	/* Download-Kacheln im Querformat: Vorschau links, Text rechts */
	.pb-page .pb-download { flex-direction: row; }
	.pb-page .pb-download__media { flex: none; width: 112px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--pb-line); }
	.pb-page .pb-download__icon { width: 48px; height: 48px; border-radius: 12px; }
	.pb-page .pb-download__icon .pb-icon { width: 24px; height: 24px; }
	.pb-page .pb-download__body { padding: 14px; }
	.pb-page .pb-download__footer { padding-top: 10px; }
	.pb-page .pb-badge { top: 8px; left: 8px; font-size: 10px; padding: 3px 7px; }
	.pb-page .pb-tile__title { font-size: 15.5px; }
	.pb-page .pb-product { align-items: flex-start; gap: 16px; padding: 20px; }
	.pb-page .pb-product__logo { width: 72px; height: 72px; }
	.pb-page .pb-actions .pb-btn { flex: 1 1 100%; justify-content: center; }
	.pb-page .pb-materials__tiles--compact .pb-download__media { width: 72px; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.pb-page *,
	.pb-page *::before,
	.pb-page *::after {
		transition: none !important;
	}
}

@media print {
	.pb-page .pb-hero { background: none; color: var(--pb-ink); padding-block: 24px; }
	.pb-page .pb-hero__title,
	.pb-page .pb-hero__text { color: var(--pb-ink); }
	.pb-page .pb-hero::after,
	.pb-page .pb-hero__glow,
	.pb-page .pb-hero__bg,
	.pb-page .pb-jump { display: none; }
	.pb-page .pb-tile { break-inside: avoid; box-shadow: none; }
}
