/**
 * tele Mediadaten – components and block style variations.
 *
 * Loaded on the front end and in the editor. Tokens come from theme.json
 * (--wp--preset--*); custom blocks bring their own styles.
 */

/* ---------- Base ---------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.tele-page > *,
.tele-main > * {
	margin-block-start: 0;
}

:where(.tele-page) p,
:where(.tele-page) :is(h1, h2, h3, h4, h5, h6) {
	margin-top: 0;
	margin-bottom: 0;
}

/* Two-column rows that stack: every child grows from a 420px basis. */
.tele-cols > * {
	flex: 1 1 420px;
	min-width: 0;
}

.tele-intro {
	max-width: 760px;
	color: var(--wp--preset--color--muted);
}

.tele-body {
	color: var(--wp--preset--color--muted);
}

.tele-lead {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.35;
	color: var(--wp--preset--color--mauve);
}

.tele-source {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted-2);
}

:where(.is-layout-flow) > .tele-source {
	margin-block-start: 12px;
}

.tele-card-title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
}

.tele-card-subtitle {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-2);
}

:where(.is-layout-flow) > .tele-card-subtitle {
	margin-block-start: 4px;
}

.tele-subheading {
	font-weight: 500;
	color: var(--wp--preset--color--mauve);
}

:where(.is-layout-flow) > .tele-subheading {
	margin-block-start: 56px;
}

:where(.is-layout-flow) > .tele-subheading + * {
	margin-block-start: 6px;
}

.tele-more-link {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- Section header: chip, H2, accent rule ---------- */

.is-style-chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.5;
	text-transform: uppercase;
}

:where(.is-layout-flow) > .is-style-chip + * {
	margin-block-start: 12px;
}

.wp-block-separator.is-style-rule {
	width: 120px;
	max-width: 100%;
	height: 4px;
	margin-left: 0;
	margin-right: 0;
	border: 0;
	border-radius: 2px;
	opacity: 1;
}

:where(.is-layout-flow) > .wp-block-separator.is-style-rule {
	margin-block-start: 20px;
	margin-block-end: 28px;
}

:where(.is-layout-flow) > .is-style-rule + * {
	margin-block-start: 0;
}

:where(.is-layout-flow) > .tele-intro + * {
	margin-block-start: 28px;
}

.is-style-kicker {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--wp--preset--color--mauve);
}

.is-style-label {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--mauve);
}

:where(.is-layout-flow) > .is-style-label + * {
	margin-block-start: 14px;
}

.is-style-pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 800;
}

mark.tele-pill {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fbe3b3;
	color: var(--wp--preset--color--ochre);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
	vertical-align: 1px;
}

/* ---------- Group styles ---------- */

.wp-block-group.is-style-card {
	padding: 24px;
	border-radius: 20px;
	background: var(--wp--preset--color--white);
}

.wp-block-group.is-style-card-blue {
	padding: 20px;
	border-radius: 16px;
	background: var(--wp--preset--color--blue-tint);
}

.wp-block-group.is-style-highlight {
	gap: 16px;
	padding: 18px 20px;
	border-radius: 16px;
	background: var(--wp--preset--color--red-tint);
}

.wp-block-group.is-style-glass {
	padding: 20px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.1);
}

.wp-block-group.is-style-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	height: 200px;
	padding: 12px;
	border: 2px dashed var(--wp--custom--line-dashed);
	border-radius: 12px;
	background: #f4f3f7;
	color: var(--wp--preset--color--muted-2);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-align: center;

	&::before {
		content: "";
		width: 32px;
		height: 32px;
		background: currentcolor;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	> * {
		margin: 0 !important;
	}
}

.wp-block-group.is-style-badge {
	position: absolute;
	top: -20px;
	right: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	box-shadow: 0 12px 30px rgba(43, 37, 48, 0.25);
	text-align: center;
	transform: rotate(-8deg);

	> * {
		margin: 0;
	}
}

.tele-badge__value {
	font-size: var(--wp--preset--font-size--number-large);
	font-weight: 800;
	line-height: 1;
}

.tele-badge__label {
	margin-top: 6px !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

/* ---------- Images ---------- */

/*
 * Logos are sized by height only. In the editor the img also carries the
 * attachment's width attribute (e.g. 350), which would win over the
 * natural ratio and widen the block, so the width follows the height.
 */
.wp-block-image.is-resized img[style*="height"]:not([style*="width"]) {
	width: auto;
}

.wp-block-image.is-style-well {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: var(--tele-well-height, 240px);
	margin: 0;
	padding: 12px;
	border-radius: 12px;
	background: var(--wp--preset--color--well);
	overflow: hidden;

	img {
		width: auto;
		max-width: 100%;
		height: auto;
		max-height: 100%;
		object-fit: contain;
		box-shadow: var(--wp--custom--shadow-print);
	}
}

.wp-block-image.is-style-fill {
	display: flex;
	flex: 1 1 auto;
	margin: 0;

	img {
		width: 100%;
		height: 100%;
		min-height: 460px;
		object-fit: cover;
		object-position: 60% 50%;
		border-radius: 24px;
	}
}

/* ---------- Buttons ---------- */

.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 44px;
	padding-top: 0;
	padding-bottom: 0;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: 0 18px;
	border: 1.5px solid var(--wp--preset--color--mauve);
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-weight: 600;

	&:hover {
		background: var(--wp--preset--color--bg);
		color: var(--wp--preset--color--ink);
	}
}

.wp-block-button.is-style-white > .wp-block-button__link {
	border: 1.5px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);

	&:hover {
		border-color: var(--wp--preset--color--mauve);
		background: var(--wp--preset--color--white);
		color: var(--wp--preset--color--ink);
	}
}

.wp-block-button.is-style-tile {
	width: 100%;

	> .wp-block-button__link {
		justify-content: space-between;
		width: 100%;
		min-height: 48px;
		padding: 0 16px;
		border-radius: 12px;
		background: var(--wp--preset--color--bg);
		color: var(--wp--preset--color--ink);
		font-weight: 600;
		text-align: left;

		&:hover {
			background: var(--wp--preset--color--well);
			color: var(--wp--preset--color--ink);
		}
	}
}

/* Icons: masks so they take the text colour. */
.wp-block-button:is(.has-download-icon, .has-arrow-icon, .has-phone-icon, .has-mail-icon) > .wp-block-button__link::after,
.wp-block-button:is(.has-phone-icon, .has-mail-icon) > .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentcolor;
	mask: var(--tele-icon) center / contain no-repeat;
}

.wp-block-button.has-download-icon {
	--tele-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
}

.wp-block-button.has-arrow-icon {
	--tele-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
}

.wp-block-button.has-phone-icon {
	--tele-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

.wp-block-button.has-mail-icon {
	--tele-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

/* The download icon sits before the label in the header button. */
.tele-header .wp-block-button.has-download-icon > .wp-block-button__link {
	flex-direction: row-reverse;
}

.wp-block-button:is(.has-phone-icon, .has-mail-icon) > .wp-block-button__link {
	justify-content: flex-start;
	gap: 12px;

	&::after {
		display: none;
	}

	&::before {
		width: 20px;
		height: 20px;
	}
}

/* ---------- Lists ---------- */

.wp-block-list.is-style-plain {
	padding-left: 0;
	list-style: none;
}

/* ---------- Tables ---------- */

.wp-block-table:is(.is-style-price, .is-style-spec, .is-style-definitions) {
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;

	table {
		width: 100%;
		border-collapse: collapse;
		table-layout: auto;
		font-size: var(--wp--preset--font-size--medium);
	}

	:is(thead, tbody, tfoot, tr, th, td) {
		border: 0;
	}

	th {
		text-align: left;
	}
}

.wp-block-table.is-style-price {
	border-radius: 20px;
	background: var(--wp--preset--color--white);

	table {
		min-width: 760px;
	}

	thead tr {
		background: var(--wp--preset--color--red);
		color: var(--wp--preset--color--white);
	}

	thead th {
		padding: 14px 12px;
		font-weight: 700;
	}

	tbody tr {
		border-bottom: 1px solid var(--wp--preset--color--line-2);
	}

	tbody tr:last-child {
		border-bottom: 0;
	}

	tbody tr:has(.tele-pill) {
		background: var(--wp--preset--color--premium);
	}

	td {
		padding: 12px;
		color: var(--wp--preset--color--muted);
	}

	tbody th {
		padding: 12px 20px;
		font-weight: 600;
	}

	:is(th, td):first-child {
		padding-left: 20px;
	}

	:is(th, td):last-child {
		padding-right: 20px;
	}

	&.tele-price-list :is(th, td):last-child {
		font-weight: 700;
		text-align: right;
	}

	&.tele-price-list td:last-child {
		color: var(--wp--preset--color--ink);
	}
}

/* Format diagrams: out of the flow, so wrapped names stay aligned. */
.wp-block-table.tele-price-list tbody th:first-child {
	position: relative;
	padding-left: 90px;
}

.tele-format-icon {
	position: absolute;
	top: 50%;
	left: 20px;
	width: 55px;
	height: 30px;
	transform: translateY(-50%);
}

:where(.is-layout-flow) > .wp-block-table.tele-price-list {
	margin-block-start: 32px;
}

/* Issue dates: tighter rows, normal text colour. */
.wp-block-table.is-style-price.tele-dates {

	table {
		min-width: 560px;
	}

	thead th {
		padding-top: 12px;
		padding-bottom: 12px;
	}

	tbody tr {
		border-top: 1px solid var(--wp--preset--color--line-2);
		border-bottom: 0;
	}

	td,
	tbody th {
		padding-top: 9px;
		padding-bottom: 9px;
		color: var(--wp--preset--color--ink);
	}

	tbody th {
		font-weight: 700;
	}
}

/* Themenplanung of a special (Specials & Angebote): one table per month. */
.wp-block-table.is-style-price.tele-schedule {

	thead tr {
		background: var(--wp--preset--color--ochre);
	}

	tbody tr:nth-child(even) {
		background: var(--wp--preset--color--premium);
	}

	/* Same columns in every month. */
	table {
		min-width: 900px;
		table-layout: fixed;
	}

	:is(th, td):nth-child(-n + 2) {
		width: 100px;
	}

	:is(th, td):nth-child(3) {
		width: 150px;
	}

	:is(th, td):nth-child(5) {
		width: 190px;
	}
}

.tele-angebot > .tele-body {
	max-width: 760px;
}

.tele-schedule-month {
	display: inline-block;
	padding-bottom: 4px;
	border-bottom: 3px solid var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--ochre);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 900;
	text-transform: uppercase;
}

:where(.is-layout-flow) > .tele-schedule-month {
	margin-block-start: 32px;
}

:where(.is-layout-flow) > .tele-schedule-month + .tele-schedule {
	margin-block-start: 12px;
}

.wp-block-buttons.tele-angebot-actions {
	gap: 12px;
	margin-block-start: 32px;

	/* Main button in the colours of the Themenplanung, not tele red. */
	.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
		background: var(--wp--preset--color--ochre);

		&:hover,
		&:focus-visible {
			background: var(--wp--preset--color--ink);
		}
	}
}

.wp-block-table.is-style-spec {

	table {
		min-width: 560px;
	}

	thead th {
		padding: 8px;
		color: var(--wp--preset--color--muted-2);
		font-size: var(--wp--preset--font-size--x-small);
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	tbody tr {
		border-top: 1px solid var(--wp--preset--color--line-2);
	}

	td,
	tbody th {
		padding: 10px 8px;
	}

	tbody th {
		font-weight: 700;
	}

	:is(th, td):first-child {
		padding-left: 0;
	}

	:is(th, td):last-child {
		padding-right: 0;
	}
}

.wp-block-table.is-style-definitions {
	overflow: visible;

	tbody th,
	td {
		padding: 5px 12px 5px 0;
		vertical-align: top;
	}

	tbody th {
		width: 150px;
		font-weight: 700;
	}

	td {
		padding-right: 0;
	}
}

/* ---------- Header ---------- */

/* Sticky below the admin bar (which scrolls away on small screens). */
header.wp-block-template-part:has(.tele-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

@media (max-width: 600px) {

	header.wp-block-template-part:has(.tele-header) {
		top: 0;
	}
}

.tele-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-group.tele-header__bar {
	gap: 12px 28px;
	padding-top: 14px;
	padding-bottom: 14px;
}

/* The logo link covers the whole group, so "tele Media" is one target. */
.wp-block-group.tele-brand {
	position: relative;
	gap: 12px;

	a::after {
		content: "";
		position: absolute;
		inset: 0;
	}

	.wp-block-image {
		margin: 0;
	}

	/* An inline link would add a line box below the logo and push it off-centre. */
	a,
	img {
		display: block;
	}
}

.tele-brand__label {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--mauve);
}

.wp-block-navigation.tele-nav {
	flex: 1 1 520px;
	min-width: 0;

	.wp-block-navigation__container {
		gap: 4px 22px;
	}

	.wp-block-navigation-item__content {
		padding: 10px 0;
	}

	/* PDF link: in the menu only, the header shows it as a button. */
	.tele-nav__menu-only {
		display: none;
	}

	.wp-block-navigation__responsive-container-open {
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 999px;

		&:hover {
			background: var(--wp--preset--color--bg);
		}

		svg {
			width: 28px;
			height: 28px;
		}
	}

	/* Open menu: big links, stacked. */
	.wp-block-navigation__responsive-container.is-menu-open {
		/* Top padding = where the centred hamburger sits in the header row, so
		 * the close button (pinned to the dialog's corner) covers it exactly. */
		padding: 15px 24px 32px;

		.wp-block-navigation__responsive-container-close {
			top: 0;
			right: 0;
			display: flex;
			align-items: center;
			justify-content: center;
			width: 44px;
			height: 44px;

			svg {
				width: 28px;
				height: 28px;
			}
		}

		.wp-block-navigation__responsive-container-content {
			padding-top: 72px;
		}

		.wp-block-navigation__container {
			gap: 0;
			width: 100%;
		}

		.wp-block-navigation-item {
			width: 100%;
			border-bottom: 1px solid var(--wp--preset--color--line-2);
		}

		.wp-block-navigation-item__content {
			display: block;
			width: 100%;
			padding: 14px 0;
			font-size: var(--wp--preset--font-size--x-large);
		}

		.tele-nav__menu-only {
			display: block;
		}
	}
}

.wp-block-buttons.tele-header__actions {
	gap: 10px;

	.wp-block-button:not(.is-style-outline) .wp-block-button__link {
		padding: 0 20px;
	}
}

/*
 * Below 1220px the links don't fit next to logo and buttons: hamburger.
 * Core switches at 600px, so its rules are repeated up to 1220px.
 */
@media (max-width: 1219.98px) {

	.wp-block-group.tele-header__bar {
		flex-wrap: nowrap;
		gap: 12px;
	}

	.wp-block-navigation.tele-nav {
		flex: 0 0 auto;
		order: 3;

		.wp-block-navigation__responsive-container-open:not(.always-shown) {
			display: flex;
		}

		.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
			display: none;
		}
	}

	.wp-block-buttons.tele-header__actions {
		flex-wrap: nowrap;
		margin-left: auto;
	}
}

@media (max-width: 781.98px) {

	.tele-header__actions .wp-block-button.has-download-icon {
		display: none;
	}
}

/* ---------- Hero ---------- */

.wp-block-group.tele-hero__row {
	gap: 40px;
}

.tele-hero__text {
	display: flex;
	flex: 0 1 560px;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

:where(.tele-hero__text) > * {
	margin-block-start: 0;
}

.tele-hero__text .is-style-kicker {
	margin-bottom: 20px;
}

.tele-hero__title {
	font-size: clamp(32px, 8.4vw, 76px);
	white-space: nowrap;
}

.tele-hero__claim {
	margin-top: 24px !important;
	margin-bottom: 32px !important;
	font-size: clamp(22px, 2.6vw, 32px);
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--mauve);
}

.wp-block-buttons.tele-hero__buttons {
	gap: 12px;

	.wp-block-button__link {
		min-height: 52px;
		padding: 0 26px;
		font-size: var(--wp--preset--font-size--normal);
	}
}

.tele-hero__media {
	position: relative;
	display: flex;
	flex: 1 1 420px;
	min-width: 0;
}

:where(.tele-hero) > .tele-kpis {
	margin-block-start: 48px;
}

.tele-kpi.is-style-card {
	padding-bottom: 20px;
}

.tele-kpi__value {
	font-weight: 700;
	line-height: 1.1;
}

.tele-kpi__label {
	margin-top: 6px !important;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted-2);
}

:where(.tele-hero) > .tele-source {
	margin-block-start: 14px;
}

/* ---------- Partner marquee ---------- */

.tele-partners__label {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.16em;
	text-align: center;
	color: var(--wp--preset--color--muted-2);
}

/* ---------- Reach ---------- */

.tele-lead + .tele-body {
	margin-block-start: 16px;
}

:where(.is-layout-flow) > .tele-body + .is-style-label {
	margin-block-start: 28px;
}

.tele-partner-grid {
	container-type: inline-size;
}

.wp-block-group.tele-partner {
	padding: 12px 14px;
	border-radius: 14px;

	> * {
		margin: 0;
	}
}

@container (min-width: 560px) {

	.tele-partner.is-combined {
		display: none;
	}
}

@container (max-width: 559.98px) {

	.tele-partner.is-split {
		display: none;
	}
}

.tele-partner__region {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted-2);
}

.tele-partner__titles {
	margin-top: 2px !important;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.tele-partner__titles a {
	color: inherit;
	text-decoration: none;
}

.tele-partner__titles a:hover {
	color: var(--wp--preset--color--red);
	text-decoration: underline;
}

:where(.is-layout-flow) > .tele-reach__more {
	margin-block-start: 28px;
}

.tele-chart-card .tele-chart {
	margin-block-start: 20px;
}

.wp-block-group.tele-stats {
	gap: 12px;
	margin-block-start: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.tele-stat > * {
	margin: 0;
}

.tele-stat__value {
	font-weight: 700;
}

.tele-stat__label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-2);
}

/* ---------- Covers ---------- */

.wp-block-group.tele-section-head {
	gap: 12px 32px;
	margin-bottom: 20px;
}

.tele-section-head__text {
	flex: 1 1 520px;
	min-width: 0;

	> * + * {
		margin-block-start: 8px;
	}
}

/* ---------- Impact ---------- */

.tele-cols > .tele-impact {
	flex-basis: 520px;
}

:where(.tele-impact, .tele-exclusive) > :is(h2, h3) + .tele-body {
	margin-block-start: 8px;
}

:where(.tele-impact, .tele-exclusive) > .tele-body + * {
	margin-block-start: 24px;
}

.tele-impact > .is-style-highlight {
	margin-block-start: 28px;
}

.tele-highlight__text {
	flex: 1 1 260px;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

.tele-chart-title {
	font-size: var(--wp--preset--font-size--medium);
}

:where(.is-layout-flow) > .tele-chart-title + * {
	margin-block-start: 14px;
}

:where(.tele-impact, .tele-exclusive) > .tele-source {
	margin-block-start: 14px;
}

/* ---------- Print ---------- */

.wp-block-group.tele-sample {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px;
	--tele-well-height: 260px;

	> * {
		margin: 0;
	}
}

.wp-block-group.tele-sample__caption {
	gap: 8px;
	padding: 0 4px;
	align-items: baseline;
}

.tele-sample__name {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted-2);

	strong {
		font-size: var(--wp--preset--font-size--normal);
		color: var(--wp--preset--color--ink);
	}
}

.tele-sample__price {
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 700;
	white-space: nowrap;
	color: var(--wp--preset--color--red);
}

/* Offer cards: Sonderplatzierungen and inserts. */
.wp-block-group.tele-offer {
	display: flex;
	flex-direction: column;
	gap: 8px;

	> * {
		margin: 0;
	}
}

.wp-block-group.tele-special {
	padding: 14px 14px 22px;

	> :not(.wp-block-image) {
		margin-inline: 8px;
	}

	> .wp-block-image {
		margin-bottom: 8px;
	}
}

.wp-block-group.tele-insert {
	padding: 22px;
	--tele-well-height: 200px;

	> :is(.wp-block-image, .is-style-placeholder) {
		margin: -8px -8px 6px;
	}
}

.wp-block-group.tele-offer__head {
	gap: 8px;
	align-items: baseline;
}

.tele-offer__name {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.tele-offer__where {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--wp--preset--color--red);
}

.tele-offer__size {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--red);
}

.tele-offer__desc {
	flex: 1 1 auto;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

.tele-offer__price {
	padding-top: 10px;
	border-top: 1px solid var(--wp--preset--color--line-2);
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 700;
}

.tele-insert .tele-offer__price {
	font-size: 16px;
}

/* Megaseiten / Druckstrecke. */
.wp-block-group.tele-multipages {
	gap: 16px;
}

.tele-multipages > * {
	flex-basis: 480px;
}

.wp-block-group.tele-multipage {
	gap: 24px;
	padding: 26px;

	> .wp-block-image {
		flex: 1 1 200px;
		min-width: 0;
		height: auto;
		min-height: 340px;
		padding: 16px;
		border-radius: 14px;

		img {
			max-height: 420px;
			box-shadow: none;
		}
	}
}

.tele-multipage__body {
	flex: 1 1 260px;
	min-width: 0;

	> * {
		margin-block-start: 0;
	}
}

.wp-block-group.tele-multipage__head {
	gap: 8px;
	align-items: baseline;
}

.tele-multipage__size {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-2);
}

.tele-multipage__body > .tele-offer__desc {
	margin: 8px 0 16px;
}

.wp-block-list.tele-price-rows {
	display: flex;
	flex-direction: column;
	margin: 0;

	li {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 0;
		border-bottom: 1px solid var(--wp--preset--color--line-2);
		font-size: 16px;
	}
}

.tele-bonus {
	margin-top: 16px !important;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

:where(.is-layout-flow) > .tele-inserts {
	margin-block-start: 16px;
}

.wp-block-group.tele-advertorials {
	margin-block-start: 32px;
	padding: 26px;
	overflow-x: auto;

	.tele-card-title {
		font-weight: 700;
	}

	.tele-card-subtitle {
		font-size: var(--wp--preset--font-size--medium);
		color: var(--wp--preset--color--muted);
	}

	.wp-block-table {
		margin-block-start: 16px;
	}
}

/* ---------- Rubriken ---------- */

.wp-block-group.tele-rubric {
	padding: 14px 14px 26px;
	--tele-well-height: 220px;

	> .wp-block-image {
		margin-bottom: 18px;
		padding: 10px;

		img {
			box-shadow: none;
		}
	}
}

/*
 * Sample pages (gallery .tele-rubric-samples, assets/js/samples.js): only
 * the first page shows, framed like the other previews (well).
 */
.wp-block-gallery.tele-rubric-samples {
	margin: 0 0 18px;

	> figure.wp-block-image {
		position: relative;
		box-sizing: border-box;
		width: 100%;
		height: var(--tele-well-height, 240px);
		margin: 0;
		padding: 10px;
		border-radius: 12px;
		background: var(--wp--preset--color--well);

		&:nth-child(n + 2) {
			display: none;
		}

		a {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			height: 100%;
			border-radius: 4px;
			cursor: zoom-in;

			&:focus-visible {
				outline: 2px solid var(--wp--preset--color--blue);
				outline-offset: 2px;
			}
		}

		img {
			width: auto;
			max-width: 100%;
			height: auto;
			max-height: 100%;
			object-fit: contain;
			box-shadow: var(--wp--custom--shadow-print);
		}
	}
}

.tele-rubric-samples__badge {
	position: absolute;
	right: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 5px 8px;
	border-radius: 999px;
	background: rgb(43 37 48 / 0.82);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	line-height: 1.2;

	svg {
		width: 16px;
		height: 16px;
	}
}

.tele-rubric__body {
	padding: 0 12px;

	> * {
		margin-block-start: 0;
	}
}

.tele-rubric__name {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	color: var(--wp--preset--color--mauve);
}

.wp-block-separator.tele-rubric__rule {
	width: 64px;
	margin: 12px 0 14px !important;
}

.tele-rubric__claim {
	margin-bottom: 10px !important;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}

.tele-rubric__body .tele-offer__desc {
	margin-bottom: 14px;
}

.tele-rubric__fit {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted-2);
}

.wp-block-group.tele-trust {
	gap: 12px 32px;
	margin-block-start: 24px;
	padding: 24px 26px;
}

.tele-trust__label {
	letter-spacing: 0.08em;
}

.tele-trust__text {
	flex: 1 1 400px;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

/* ---------- Online ---------- */

.tele-band + .tele-band {
	margin-block-start: 0;
}

.wp-block-group.tele-feature {
	padding: 16px 18px;

	> * {
		margin: 0;
	}
}

.tele-feature__title {
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 700;
	color: var(--wp--preset--color--blue);
}

.tele-feature__text {
	margin-top: 2px !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

:where(.is-layout-flow) > .tele-online-kpis {
	margin-block-start: 20px;
}

.tele-online-kpis .tele-kpi {

	> * {
		margin: 0;
	}

	.tele-kpi__value {
		font-size: 32px;
	}

	.tele-kpi__label {
		margin-top: 4px !important;
		font-size: var(--wp--preset--font-size--small);
		color: var(--wp--preset--color--muted);
	}
}

.tele-chart-row {
	margin-block-start: 16px;
}

.wp-block-group.tele-chart-tile {
	padding: 24px;
	border-radius: 20px;

	> .is-style-label {
		color: var(--wp--preset--color--blue);
	}
}

.tele-ad-formats {
	align-items: stretch;
}

.tele-ad-formats + .tele-source {
	margin-block-start: 12px;
}

:where(.tele-switcher__content) > .tele-subheading {
	margin-block-start: 48px;
}

:where(.tele-switcher__content) > .tele-intro + * {
	margin-block-start: 20px;
}

.wp-block-group.tele-content-offer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	border-radius: 20px;

	> * {
		margin: 0;
	}
}

.tele-content-offer__name {
	font-size: 20px;
}

.tele-content-offer__desc {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

.tele-content-offer__spec {
	flex: 1 1 auto;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

.tele-content-offer__price {
	padding-top: 10px;
	border-top: 1px solid #c9dce8;
}

/* ---------- Themenplan ---------- */

.wp-block-group.tele-month {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	border-radius: 18px;

	> * {
		margin: 0;
	}
}

.tele-month__name {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
}

.wp-block-list.tele-month__items {
	flex: 1 1 auto;
	padding-left: 18px;
	font-size: 16px;
}

.tele-month__tag {
	padding-top: 8px;
	border-top: 1px solid var(--wp--preset--color--line-2);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

/* ---------- Kombi ---------- */

/* Print | Crossmedia | Online: three columns or stacked, never 2 + 1. */
.wp-block-group.tele-band-stats {
	grid-template-columns: minmax(0, 1fr);
	margin-bottom: 28px;
	border-radius: 24px;
	overflow: hidden;

	@media (min-width: 768px) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.wp-block-group.tele-band-stat {
	padding: 28px;

	> * {
		margin: 0;
	}

	.is-style-label {
		font-size: var(--wp--preset--font-size--x-small);
		font-weight: 800;
		letter-spacing: 0.12em;
		color: inherit;
		opacity: 0.9;
	}

	&.has-purple-background-color {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

.tele-band-stat__value {
	margin-top: 8px !important;
	font-weight: 700;
	line-height: 1.1;
}

.tele-band-stat__label + .tele-band-stat__value {
	margin-top: 14px !important;
}

.tele-band-stat__label {
	font-size: var(--wp--preset--font-size--medium);
}

.tele-band-stat__text {
	margin-top: 14px !important;
	font-size: var(--wp--preset--font-size--medium);
	opacity: 0.95;
}

.wp-block-group.tele-cta {
	gap: 16px 32px;
	margin-block-start: 24px;
	padding: 28px 32px;
	border-radius: 24px;

	.wp-block-button.is-style-white > .wp-block-button__link {
		min-height: 52px;
		padding: 0 26px;
		border: 0;
		color: var(--wp--preset--color--purple);
		font-size: var(--wp--preset--font-size--normal);
	}
}

.tele-cta__text {
	flex: 1 1 420px;
	min-width: 0;

	p {
		margin-top: 6px;
		font-size: var(--wp--preset--font-size--normal);
		opacity: 0.95;
	}
}

.tele-cta__title {
	font-size: var(--wp--preset--font-size--xx-large);
	color: inherit;
}

/* ---------- Kreation ---------- */

.wp-block-group.tele-creative {
	gap: 40px;
	padding: clamp(28px, 4vw, 56px);
	border-radius: 28px;
}

.tele-creative__text {
	flex-basis: 380px;

	> * {
		margin-block-start: 0;
	}
}

.tele-creative__title {
	font-size: clamp(32px, 4vw, 48px);
	letter-spacing: 0;
	color: inherit;
}

.tele-creative__body {
	margin-top: 20px !important;
	font-size: 18px;
	opacity: 0.95;
}

.tele-creative__claim {
	margin-top: 20px !important;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
}

.tele-creative__text .tele-person {
	margin-top: 24px;
}

.tele-services {
	align-content: start;
}

.tele-service > * {
	margin: 0;
}

.tele-service__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	color: inherit;

	&::before {
		content: "";
		flex: none;
		width: 20px;
		height: 20px;
		background: var(--wp--preset--color--yellow-light);
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	}
}

.tele-service__text {
	margin-top: 8px !important;
	font-size: var(--wp--preset--font-size--medium);
	opacity: 0.92;
}

/* ---------- Technik ---------- */

.wp-block-group.tele-tech {
	padding: 26px;
}

.tele-tech__title {
	font-size: 20px;
}

:where(.tele-tech) > .tele-tech__title + * {
	margin-block-start: 14px;
}

.tele-tech__contact {
	margin-top: 16px !important;
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-buttons.tele-downloads {
	gap: 12px;
}

/* ---------- Kontakt ---------- */

.wp-block-group.tele-contact {
	gap: 24px;
	margin-bottom: 48px;

	> .tele-form {
		flex: 999 1 560px;
		min-width: 0;
	}
}

.tele-contact__aside {
	display: flex;
	flex: 1 1 300px;
	flex-direction: column;
	gap: 16px;
	min-width: 0;

	> * {
		margin: 0 !important;
	}
}

.wp-block-group.tele-direct {
	padding: 28px;
	border-radius: 24px;

	> * {
		margin-block-start: 0;
	}

	.tele-card-title {
		margin-bottom: 6px;
		font-weight: 700;
		color: inherit;
	}
}

.tele-direct__text {
	margin-bottom: 18px !important;
	font-size: 16px;
	opacity: 0.9;
}

.wp-block-buttons.tele-direct__buttons {
	gap: 10px;

	.wp-block-button.is-style-tile > .wp-block-button__link {
		min-height: 52px;
		padding: 0 18px;
		border-radius: 14px;
		background: rgba(255, 255, 255, 0.12);
		color: var(--wp--preset--color--white);
		font-size: 18px;
		font-weight: 700;

		&:hover {
			background: rgba(255, 255, 255, 0.2);
		}
	}

	.wp-block-button.is-primary > .wp-block-button__link {
		background: var(--wp--preset--color--red);

		&:hover {
			background: var(--wp--preset--color--red-dark);
		}
	}
}

.wp-block-group.tele-links {
	padding: 24px 28px;
	border-radius: 24px;
}

.tele-links__title {
	font-size: var(--wp--preset--font-size--normal);
}

.wp-block-list.tele-links__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
	padding-left: 20px;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

:where(.tele-contact) + .tele-subheading {
	margin-block-start: 0;
}

:where(.is-layout-flow) > .tele-subheading + .tele-team {
	margin-block-start: 18px;
}

/* ---------- Footer ---------- */

.tele-footer {
	color: #e9e6ee;

	a {
		color: var(--wp--preset--color--white);
		text-decoration: none;

		&:hover,
		&:focus-visible {
			color: var(--wp--preset--color--white);
			text-decoration: underline;
		}
	}
}

.wp-block-group.tele-footer__inner {
	gap: 32px 64px;
	padding-top: 48px;
	padding-bottom: 48px;

	> * {
		flex-basis: 300px;
	}
}

.tele-footer__brand {

	> * {
		margin: 0;
	}

	p {
		margin-top: 16px;
		font-size: var(--wp--preset--font-size--medium);
		line-height: 1.6;
	}
}

.tele-footer__meta {
	flex-basis: 100% !important;
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	color: #c9c4d1;

	a:not(:hover, :focus-visible) {
		color: inherit;
	}
}

/* ---------- Text pages (AGB …) ---------- */

.tele-prose {
	padding-bottom: var(--wp--preset--spacing--70);
}

.tele-prose > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.tele-prose > h2 {
	margin-block-start: var(--wp--preset--spacing--60);
	font-size: var(--wp--preset--font-size--subheading);
}

.tele-prose > h3 {
	margin-block-start: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.tele-prose > :is(h2, h3) + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* Default separators: a full-width hairline that stands out from the grey page. */
.tele-prose > .wp-block-separator:not(.is-style-rule, .is-style-dots) {
	width: 100%;
	height: 1px;
	background-color: var(--wp--custom--line-dashed);
	opacity: 1;
}

.tele-prose > :is(ol, ul) {
	padding-inline-start: 1.5em;

	> li + li {
		margin-block-start: var(--wp--preset--spacing--10);
	}
}

/* ---------- Presse ---------- */

.tele-press-section h2 {
	font-size: var(--wp--preset--font-size--subheading);
}

/* Lists on the left, cards in a sidebar; stacked on small screens. */
.tele-press-layout {
	display: grid;
	gap: var(--wp--preset--spacing--30);

	@media (min-width: 960px) {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		align-items: start;
	}
}

.tele-press-layout > *,
.tele-press-sidebar > * {
	margin-block: 0;
}

.tele-press-column + .tele-press-column {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* Inside a card the heading rule takes the place of the first dividing line. */
.tele-press-column .tele-press-list > li:first-child {
	padding-block-start: 0;
	border-top: 0;
}

.tele-press-column .tele-press-more {
	margin-block-start: 0;
}

.tele-press-sidebar {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.tele-press-section h2.tele-press-card__title {
	margin-block-end: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.tele-press-photos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	list-style: none;
}

.tele-press-photo {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: var(--wp--preset--spacing--30);
	border-radius: 20px;
	background: var(--wp--preset--color--white);

	.wp-block-button {
		margin-block-start: auto;
	}
}

.tele-press-photo__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

.tele-press-section h3.tele-press-photo__title {
	margin-block: var(--wp--preset--spacing--30) 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 700;
}

.tele-press-photo__caption {
	margin-block: 4px 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.tele-press-photo__copyright,
.tele-press-photo__details {
	margin-block: 4px 0;
	color: var(--wp--preset--color--muted-2);
	font-size: var(--wp--preset--font-size--x-small);
}

.tele-press-photo__details {
	margin-block-end: var(--wp--preset--spacing--30);
}

.tele-press-more-photos {
	margin-block-start: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--muted);
}

/* The SVG brings its own red background. As wide as one download button. */
.wp-block-image.tele-press-card__logo {
	width: calc((100% - var(--wp--preset--spacing--10)) / 2);
	margin: 0 0 var(--wp--preset--spacing--20);

	img {
		display: block;
		width: 100%;
		height: auto;
		border-radius: 12px;
	}
}

.tele-press-section .tele-press-logo-label {
	margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.wp-block-buttons.tele-press-logo-files {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--10);
	margin-block: 0;
}

.tele-press-list {
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 0;
	list-style: none;

	> li {
		margin-block: 0;
		padding-block: 20px;
		border-top: 1px solid var(--wp--preset--color--line);
	}

	.wp-block-post-title {
		margin: 4px 0 0;
		font-weight: 700;
	}

	.wp-block-post-title a {
		color: var(--wp--preset--color--ink);
		text-decoration: none;

		&:hover {
			color: var(--wp--preset--color--red);
		}

		&[target="_blank"]::after {
			content: " ↗";
		}
	}

	.wp-block-post-excerpt {
		margin-block: 4px 0;
		color: var(--wp--preset--color--muted);
	}

	.wp-block-post-excerpt__excerpt {
		margin: 0;
	}
}

.tele-press-list .wp-block-post-date,
.tele-press-meta {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-2);
}

.tele-press-empty {
	margin-block-start: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--muted);
}

.tele-press-more {
	font-weight: 700;
}

.tele-press-back {
	margin-block-end: var(--wp--preset--spacing--40);
}

.tele-press-pagination {
	margin-block-start: var(--wp--preset--spacing--40);
}

.tele-press-image {
	margin-block-start: var(--wp--preset--spacing--50);
}

.tele-main :is(.wp-block-query-title, .tele-press-title) {
	margin-block-end: var(--wp--preset--spacing--50);
}

.tele-press-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: var(--wp--preset--spacing--20);
}

/* ---------- Unternehmen ---------- */

/* Anchors (#geschichte, #team …) land below the sticky header. */
.tele-company-section[id] {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 112px);
}

.tele-company-section h2 {
	font-size: var(--wp--preset--font-size--subheading);
}

/* Running text keeps a readable line length on the wide sections. */
:where(.tele-company-section) :is(.tele-body, .tele-lead) {
	max-width: 760px;
}

:where(.tele-company-section) > .tele-lead {
	margin-block-start: 28px;
}

:where(.tele-company-section) > :is(.tele-body, .tele-partner-grid) + :is(.tele-partner-grid, .tele-body) {
	margin-block-start: 32px;
}

.tele-figures {

	.tele-stats {
		margin-block-start: 20px;
	}

	.tele-stat__label sup {
		line-height: 0;
	}

	.tele-source {
		margin-block-start: 24px;
		line-height: 1.6;
	}
}

.wp-block-table.tele-facts {
	max-width: 760px;

	td:first-child {
		width: 190px;
		font-weight: 700;
	}

	tr + tr td {
		border-top: 1px solid var(--wp--preset--color--line);
	}

	td {
		padding-block: 10px;
	}
}

@media (max-width: 600px) {

	.wp-block-table.tele-facts tr {
		display: grid;
		padding-block: 8px;

		td {
			width: auto;
			padding-block: 2px;
			border-top: 0;
		}
	}

	.wp-block-table.tele-facts tr + tr {
		border-top: 1px solid var(--wp--preset--color--line);
	}
}

.tele-claim {
	font-size: var(--wp--preset--font-size--subheading-large);
	font-weight: 900;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
}

:where(.tele-company-section) > .tele-claim + .wp-block-buttons {
	margin-block-start: 24px;
}

/* Group headings are plain h3; the first one follows the section rule directly. */
:where(.is-layout-flow) > .tele-team + .tele-team-group {
	margin-block-start: 48px;
}

:where(.is-layout-flow) > .tele-team-group + * {
	margin-block-start: 6px;
}

.tele-team-email {
	font-weight: 700;
}

:where(.is-layout-flow) > :is(.tele-team-group, .tele-team-email) + .tele-team {
	margin-block-start: 16px;
}

/* ---------- Startseite: Werbe-Teaser, Kontakt-Teaser ---------- */

.wp-block-group.tele-channel {
	display: flex;
	flex-direction: column;

	> * {
		margin: 0;
	}

	.tele-kpi__value {
		margin-top: 10px;
	}

	.tele-more-link {
		margin-top: auto;
		padding-top: 20px;
	}
}

.wp-block-list.tele-channel__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 18px;
	padding-left: 20px;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

:where(.is-layout-flow) > .tele-kombi-bar {
	margin-block-start: 16px;
}

.wp-block-group.tele-kombi-bar {
	gap: 16px 32px;
	padding: 20px 24px;
}

.tele-kombi-bar__text {
	flex: 1 1 360px;
	min-width: 0;
	font-size: var(--wp--preset--font-size--normal);
	color: var(--wp--preset--color--muted);

	strong {
		margin-right: 4px;
	}
}

.wp-block-buttons.tele-kombi-bar__buttons {
	gap: 10px;
}

.tele-contact-teaser__text > .wp-block-buttons {
	gap: 12px;
}

.wp-block-group.tele-contact-teaser > .tele-direct {
	flex: 0 1 380px;
}

/* ---------- tele.at & App ---------- */

.wp-block-group.tele-apps {
	padding: clamp(24px, 4vw, 48px);
}

.tele-apps__text > .wp-block-buttons {
	gap: 10px;
}

.wp-block-image.tele-apps__image {
	margin: 0;

	img {
		display: block;
		width: 100%;
		height: auto;
		mix-blend-mode: multiply;
	}
}

/* ---------- Werben mit tele ---------- */

:where(.tele-page-head) > .is-style-kicker + h1 {
	margin-block-start: 16px;
}

:where(.tele-page-head) > h1 + .tele-intro {
	margin-block-start: 20px;
}

:where(.tele-page-head) > .tele-page-head__buttons {
	margin-block-start: 28px;
}

.wp-block-buttons.tele-page-head__buttons {
	gap: 12px;
}

:where(.tele-page-head) > .tele-kpis {
	margin-block-start: 40px;
}

:where(.tele-page-head) > .tele-source {
	margin-block-start: 14px;
}

:where(.tele-page-head) > .tele-jump {
	margin-block-start: 32px;
}

.tele-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;

	a {
		padding: 6px 14px;
		border-radius: 999px;
		background: var(--wp--preset--color--white);
		color: var(--wp--preset--color--ink);
		font-size: var(--wp--preset--font-size--medium);
		font-weight: 600;
		text-decoration: none;

		&:hover {
			color: var(--wp--preset--color--red);
		}
	}
}

.tele-jump a[aria-current] {
	background: var(--wp--preset--color--red-tint);
	color: var(--wp--preset--color--red);
}

/*
 * Sticky copy of the jump links below the header (assets/js/jump-bar.js),
 * with the current section marked.
 */
.tele-jump-bar {
	--tele-jump-bar-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--tele-header-height, 73px));

	position: fixed;
	top: var(--tele-jump-bar-top);
	right: 0;
	left: 0;
	z-index: 49;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	transform: translateY(-100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;

	&.is-visible {
		transform: none;
		opacity: 1;
		visibility: visible;
		transition: transform 0.25s ease, opacity 0.25s ease;
	}

	@media (prefers-reduced-motion: reduce) {
		transition: none;

		&.is-visible {
			transition: none;
		}
	}
}

.tele-jump-bar__links {
	display: flex;
	gap: 6px;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: 8px var(--wp--style--root--padding-right) 8px var(--wp--style--root--padding-left);
	overflow-x: auto;
	scrollbar-width: none;

	&::-webkit-scrollbar {
		display: none;
	}

	a {
		flex: none;
		padding: 6px 14px;
		border-radius: 999px;
		color: var(--wp--preset--color--ink);
		font-size: var(--wp--preset--font-size--small);
		font-weight: 600;
		white-space: nowrap;
		text-decoration: none;

		&:hover {
			color: var(--wp--preset--color--red);
		}

		&[aria-current] {
			background: var(--wp--preset--color--red-tint);
			color: var(--wp--preset--color--red);
		}
	}
}

/*
 * Anchors land below header and bar. One offset on the scroll container
 * (it replaces the admin bar's scroll-padding), none per anchor.
 */
html.has-tele-jump-bar {
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--tele-header-height, 73px) + var(--tele-jump-bar-height, 50px) + 16px);

	[id] {
		scroll-margin-top: 0;
	}
}

/* Header and bar scroll with the page under the admin bar here (see header). */
@media (max-width: 600px) {

	.tele-jump-bar {
		--tele-jump-bar-top: var(--tele-header-height, 73px);
	}

	html.has-tele-jump-bar {
		scroll-padding-top: calc(var(--tele-header-height, 73px) + var(--tele-jump-bar-height, 50px) + 16px);
	}
}

/* TV-Highlights and Termine: the section header stays visible, the content opens on demand. */
.wp-block-details.tele-fold {

	> summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 16px 16px 16px 24px;
		border-radius: 20px;
		background: var(--wp--preset--color--white);
		font-size: var(--wp--preset--font-size--normal);
		font-weight: 700;
		list-style: none;
		cursor: pointer;

		&::-webkit-details-marker {
			display: none;
		}

		/* Plus that turns into a cross. */
		&::after {
			content: "";
			flex: none;
			width: 40px;
			height: 40px;
			border-radius: 50%;
			background:
				linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
				linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat,
				var(--wp--preset--color--bg);
			transition: transform 0.2s ease;
		}

		&:hover {
			color: var(--wp--preset--color--red);
		}

		&:focus-visible {
			outline: 2px solid var(--wp--preset--color--blue);
			outline-offset: 2px;
		}
	}

	&[open] > summary::after {
		transform: rotate(45deg);
	}

	> summary + * {
		margin-block-start: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.wp-block-details.tele-fold > summary::after {
		transition: none;
	}
}

/*
 * Viewer for the sample pages (assets/js/samples.js): one page at a time,
 * fitted to the screen; a click on the page shows it at full size.
 */
html.has-tele-viewer {
	overflow: hidden;
}

.tele-viewer {
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #17131b;
	color: var(--wp--preset--color--white);

	&::backdrop {
		background: #17131b;
	}

	&[open] {
		display: grid;
		grid-template-rows: auto minmax(0, 1fr) auto;
	}

	button {
		display: grid;
		place-items: center;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: rgb(255 255 255 / 0.12);
		color: inherit;
		cursor: pointer;
		transition: background 0.15s ease;

		&:hover {
			background: rgb(255 255 255 / 0.24);
		}

		&:focus-visible {
			outline: 2px solid var(--wp--preset--color--white);
			outline-offset: 2px;
		}
	}
}

.tele-viewer__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px 12px 24px;

	p {
		margin: 0;
		font-size: var(--wp--preset--font-size--medium);
	}
}

.tele-viewer__title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tele-viewer__count {
	flex: none;
	color: rgb(255 255 255 / 0.72);
	font-variant-numeric: tabular-nums;
}

.tele-viewer .tele-viewer__close {
	flex: none;
	width: 44px;
	height: 44px;
}

.tele-viewer__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 88px;
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
}

.tele-viewer__img {
	flex: none;
	max-width: 100%;
	max-height: 100%;
	border-radius: 2px;
	box-shadow: 0 12px 48px rgb(0 0 0 / 0.5);
	cursor: zoom-in;
	user-select: none;
}

.tele-viewer.is-zoomed {

	.tele-viewer__stage {
		align-items: flex-start;
		justify-content: safe center;
		padding: 0;
		overflow: auto;
		touch-action: auto;
	}

	.tele-viewer__img {
		max-width: none;
		max-height: none;
		cursor: zoom-out;
	}
}

.tele-viewer .tele-viewer__nav {
	position: absolute;
	top: 50%;
	width: 52px;
	height: 52px;
	transform: translateY(-50%);
}

.tele-viewer__nav--prev {
	left: 20px;
}

.tele-viewer__nav--next {
	right: 20px;
}

.tele-viewer__hint {
	margin: 0;
	padding: 12px 16px 16px;
	color: rgb(255 255 255 / 0.6);
	font-size: var(--wp--preset--font-size--x-small);
	text-align: center;
}

.tele-viewer.is-single .tele-viewer__nav,
.tele-viewer.is-zoomed .tele-viewer__nav {
	display: none;
}

@media (max-width: 781px) {

	.tele-viewer__stage {
		padding: 0 16px;
	}

	/* Paging by swipe; the buttons sit below the page. */
	.tele-viewer .tele-viewer__nav {
		top: auto;
		bottom: 44px;
		width: 44px;
		height: 44px;
		transform: none;
	}

	.tele-viewer__nav--prev {
		left: 16px;
	}

	.tele-viewer__nav--next {
		right: 16px;
	}

	.tele-viewer__hint {
		padding: 24px 76px 20px;
	}
}
