/*
Theme Name: suissetec
Theme URI: https://suissetec.ch
Author: xeit AG
Author URI: https://www.xeit.ch
Description: Block-Theme für suissetec — Schweizerisch-Liechtensteinischer Gebäudetechnikverband.
Text Domain: suissetec
*/

/*
 * What lives here, and what does not.
 *
 * theme.json carries the tokens — palette, gradients, type scale, spacing —
 * and the element defaults. The block markup carries structure, and whatever
 * core's own controls can say about a single block: its colour, radius,
 * padding, layout. This file carries the rest: the look of each block style
 * the editor offers (Kachel, Karte, Quicklink, …), hover states, and a few
 * rules that hold everywhere. Nothing here is keyed to one section of one
 * page; a class name in this file is either a core block's or a style's.
 */

/* ==========================================================================
   Foundations
   ========================================================================== */

/*
 * Figma sets every text layer with `"liga" 0`, and Epilogue's ligatures are
 * visible — "fi" in "Profis finden" joins into one glyph with them on.
 */
body {
	font-feature-settings: "liga" 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* No horizontal scrolling. `clip`, not `hidden`: hidden would break sticky. */
html,
body {
	max-width: 100%;
	overflow-x: clip;
}

/* A phone turned sideways keeps the type at its size rather than enlarging
   it, and a jump to a section ("Auf dieser Seite") glides there. */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/*
 * A jump lands below the header with air above the section, not with its
 * heading on the window's edge or under the header: the header's height
 * (assets/js/menue.js: 121px, 114 on a tablet, 61 on a phone), its distance
 * from the window's top, the admin bar of someone signed in, and 24px. The
 * header steps aside while the page scrolls down, but a jump up the page
 * brings it back over where the jump lands, so the fixed 120px that was
 * enough while the header scrolled away for good put a heading under it.
 * ":root", because core sets the admin bar's own offset on "html".
 */
:root {
	--kopf-oben: 16px;
	--leiste: var(--wp-admin--admin-bar--height, 0px);
	scroll-padding-top: calc(var(--kopf-hoehe, 121px) + var(--kopf-oben) + var(--leiste) + 24px);
}

/* Up to 600px the admin bar scrolls away with the page. */
@media (max-width: 600px) {
	:root {
		--leiste: 0px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Header, page and footer are separate cards on the grey page; each keeps the
   gap it is drawn with through its own margin, not the global block gap. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/*
 * Each size in the scale has one leading in the design, so the size preset
 * brings its line height with it. `:where()` keeps these at zero specificity:
 * a line height set on the block in the editor still wins.
 */
:where(.has-s-font-size) { line-height: 1.5; }        /* 14/21 */
:where(.has-m-font-size) { line-height: 1.5625; }     /* 16/25 */
:where(.has-l-font-size) { line-height: 1.5; }        /* 20/30 */
:where(.has-xl-font-size) { line-height: 1.24; }      /* 25/31 */
:where(.has-xxl-font-size) { line-height: 1.5; }      /* 30/45 */
:where(.has-kennzahl-font-size) { line-height: 0.857; } /* 35/30 */
:where(.has-titel-font-size) { line-height: 1.295; }  /* 44/57 */
:where(.has-display-font-size) { line-height: 1.078; } /* 64/69 */

/*
 * An image given a width in the editor keeps it in a row. Core leaves it
 * shrinkable, so a paragraph beside it wins the space: the 44px info icon in
 * the Finanzierung box came out 19px wide.
 */
.is-layout-flex > .wp-block-image.is-resized {
	flex-shrink: 0;
}

/* Headings break where the words are, never inside one. */
h1,
h2,
h3,
h4 {
	overflow-wrap: normal;
	text-wrap: pretty;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/*
 * Figma trims each button's text box to the cap height and pads 15px above
 * and below the capitals (`text-box-trim`). theme.json emulates that without
 * the property: with `line-height: 1` Epilogue's capitals sit 0.04em below the
 * top of the line box and the baseline 0.2225em above its foot, so the padding
 * is 15px less those — which is 42px tall at 16px and 44.75px at 20px, the
 * heights of the Figma components.
 */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hell — the white pill used on photos and coloured bands. */
.wp-block-button.is-style-hell .wp-block-button__link {
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
}

.wp-block-button.is-style-hell .wp-block-button__link:hover {
	background-color: var(--wp--custom--hover--hell);
}

.wp-block-button.is-style-hell .wp-block-button__link:active {
	background-color: var(--wp--custom--hover--gedrueckt);
}

/* Keyboard focus is shown on every button and link the same way. */
:where(a, button, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--lueftung);
	outline-offset: 2px;
}

/* ==========================================================================
   Quicklink — a white row with a chevron (core/button)
   ========================================================================== */

/*
 * 53px tall, hairline, 8px radius, text at 16/24 and a Lüftung chevron 17px
 * from the right edge. On hover the label underlines and the chevron becomes
 * an arrow, as in the "Quicklink Animation" component.
 */
/* In a column a quicklink is full width; in a row they share it and wrap
   onto further rows once each would be narrower than 220px. */
.wp-block-button.is-style-quicklink {
	width: 100%;
}

.wp-block-buttons:not(.is-vertical) > .wp-block-button.is-style-quicklink {
	flex: 1 1 220px;
	width: auto;
}

.wp-block-button.is-style-quicklink .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	min-height: 53px;
	padding: 0 17px 0 11px;
	border: 1px solid #ececec;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
	font-size: var(--wp--preset--font-size--m);
	font-weight: 400;
	line-height: 24px;
	text-align: left;
}

.wp-block-button.is-style-quicklink .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 15.32px;
	height: 14.46px;
	background-color: var(--wp--preset--color--lueftung);
	-webkit-mask: url(assets/img/chevron.svg) no-repeat 0 50% / 6.87px 14.46px;
	mask: url(assets/img/chevron.svg) no-repeat 0 50% / 6.87px 14.46px;
	/* The chevron is drawn at the left of a box the arrow's width, so the
	   swap on hover grows it rightwards without moving the label. */
	margin-inline-start: auto;
	transform: translateX(8.45px);
	transition: transform 0.2s ease;
}

.wp-block-button.is-style-quicklink .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--weiss);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-button.is-style-quicklink .wp-block-button__link:hover::after {
	-webkit-mask-image: url(assets/img/pfeil.svg);
	mask-image: url(assets/img/pfeil.svg);
	-webkit-mask-size: 15.32px 14.46px;
	mask-size: 15.32px 14.46px;
	transform: none;
}

/* ==========================================================================
   Pfeil — the round arrow button (core/button, core/read-more)
   ========================================================================== */

/*
 * A 44 × 43 black disc with the arrow in white. The label stays in the markup
 * for screen readers and is only hidden from view; `font-size: 0` does that
 * without taking it out of the accessibility tree.
 */
.wp-block-button.is-style-pfeil .wp-block-button__link,
.wp-block-read-more.is-style-pfeil {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 43px;
	padding: 0;
	flex: none;
	border-radius: 50%;
	background-color: var(--wp--preset--color--schwarz);
	color: var(--wp--preset--color--weiss);
	font-size: 0;
	line-height: 0;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.wp-block-button.is-style-pfeil .wp-block-button__link::before,
.wp-block-read-more.is-style-pfeil::before {
	content: "";
	width: 15.32px;
	height: 14.46px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
}

.wp-block-button.is-style-pfeil .wp-block-button__link:hover,
.wp-block-read-more.is-style-pfeil:hover {
	background-color: var(--wp--custom--hover--dunkel);
}

/* A white disc (set with the block's own colours) greys the other way. */
.wp-block-button.is-style-pfeil .wp-block-button__link.has-weiss-background-color:hover {
	background-color: var(--wp--custom--hover--hell) !important;
}

/* ==========================================================================
   Play — a button that starts a film (core/button)
   ========================================================================== */

/*
 * The design's rounded play triangle before the label, in the text colour,
 * so the white "Image Film" pill and the black "Play" pill are one style with
 * the block's own colours. The triangle is 18.5px tall; its negative margin
 * keeps the button at the height of every other.
 */
.wp-block-button.is-style-play .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.wp-block-button.is-style-play .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 16.25px;
	height: 18.46px;
	margin-block: -1.25px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/play.svg) no-repeat center / contain;
	mask: url(assets/img/play.svg) no-repeat center / contain;
}

.wp-block-button.is-style-play .wp-block-button__link.has-weiss-background-color:hover {
	background-color: var(--wp--custom--hover--hell) !important;
}

/* ==========================================================================
   Film — a video that plays inside its Cover (core/cover, inc/film.php)
   ========================================================================== */

/*
 * A Cover with a Play button is a player (assets/js/film.js). The Cover
 * keeps its size when the film starts: taking the film's own format made the
 * page jump (a 759px module became 446px in a narrow column). The film is
 * fitted into the Cover whole instead, on black where the two formats
 * differ, so nothing of the picture or of burned-in subtitles is cut away.
 * While the film runs, the overlay, the title and the button are out of the
 * way of the browser's controls; paused, they lie over the frame it stopped
 * at. They are hidden only once they have faded and are back at once: the
 * button takes the focus the moment the film pauses, and a hidden element
 * cannot.
 */
.wp-block-cover:has(.wp-block-button.is-style-play) > :is(.wp-block-cover__background, .wp-block-cover__inner-container) {
	transition: opacity 0.3s ease;
}

.wp-block-cover.ist-gestartet > video.wp-block-cover__video-background {
	background-color: #000;
	object-fit: contain;
}

.wp-block-cover.spielt > :is(.wp-block-cover__background, .wp-block-cover__inner-container) {
	visibility: hidden;
	opacity: 0 !important;
	transition: opacity 0.3s ease, visibility 0s 0.3s;
}

/* ==========================================================================
   Symbole — Google's Material Symbols as text (inc/symbole.php)
   ========================================================================== */

/*
 * One font file with the outlined symbols and their FILL axis, from the
 * theme: fetched only by a page that shows a symbol. `block` rather than
 * `swap`: until the font is there the span holds the symbol's name
 * ("arrow_forward"), which must not flash up as words.
 */
@font-face {
	font-family: "Material Symbols Outlined";
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url(assets/fonts/material-symbols-outlined.woff2) format("woff2");
}

/*
 * A symbol is a letter of its text: 1.2em, so 24px in the 20px body copy it
 * is drawn for, in the text's colour, and lowered to sit on the middle of
 * the capitals rather than on the baseline.
 */
.material-symbols-outlined,
.material-symbols-gefuellt {
	display: inline-block;
	font-family: "Material Symbols Outlined";
	font-size: 1.2em;
	font-style: normal;
	font-weight: 400;
	font-variation-settings: "FILL" 0;
	font-feature-settings: "liga";
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	vertical-align: -0.2em;
	-webkit-font-smoothing: antialiased;
}

.material-symbols-gefuellt {
	font-variation-settings: "FILL" 1;
}

/* ==========================================================================
   Kicker — the small label above a section title (core/paragraph)
   ========================================================================== */

/*
 * A hexagon and a word at 20px semibold. The hexagon is the text colour, so a
 * kicker set to white on a coloured band needs nothing else; without a colour
 * of its own it takes Lüftung, as in the design.
 */
p.is-style-kicker {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: var(--wp--preset--font-size--l);
	font-weight: 600;
	line-height: 27px;
}

p.is-style-kicker.has-text-align-center {
	justify-content: center;
}

p.is-style-kicker:not(.has-text-color) {
	color: var(--wp--preset--color--lueftung);
}

p.is-style-kicker::before {
	content: "";
	flex: none;
	width: 19px;
	height: 22px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/hexagon.svg) no-repeat center / contain;
	mask: url(assets/img/hexagon.svg) no-repeat center / contain;
}

/* ==========================================================================
   Headings — the size brings its look, whatever the level (core/heading)
   ========================================================================== */

/*
 * The level says where a heading stands in the page's outline, the size how
 * it is drawn. A tile's title under a section's H2 has to be an H3, and an H3
 * is semibold with a 1.35 leading (theme.json): at the "Titel" size it stood
 * bold beside its regular neighbours. A heading given the size of the H2 or
 * the H1 is drawn as one. A weight or leading set on the block still wins.
 */
.wp-block-heading.has-titel-font-size {
	font-weight: 400;
	line-height: 1.295;
}

.wp-block-heading.has-display-font-size {
	font-weight: 400;
	line-height: 1.078;
}

/* ==========================================================================
   Mit Pfeil — a heading that links onwards (core/heading)
   ========================================================================== */

.wp-block-heading.is-style-pfeil a::after {
	content: "";
	display: inline-block;
	width: 6.38px;
	height: 14.46px;
	margin-inline-start: 10px;
	vertical-align: -1px;
	background-color: var(--wp--preset--color--lueftung);
	-webkit-mask: url(assets/img/chevron.svg) no-repeat center / contain;
	mask: url(assets/img/chevron.svg) no-repeat center / contain;
	transition: transform 0.2s ease;
}

.wp-block-heading.is-style-pfeil a:hover::after {
	transform: translateX(3px);
}

/* ==========================================================================
   Kachel — a square tile (core/group)
   ========================================================================== */

/*
 * White, a hairline, 8px corners, and always square: the tiles are drawn at
 * 212px beside the hero and 154px in the Verband grid, and in both places the
 * width comes from the grid they sit in. A tile given a background in the
 * editor (the gradient "Zum Verband" tile) keeps it and drops the hairline.
 * `position: relative` also lifts the hero's tiles above the image they
 * overlap, and gives a link inside the tile something to stretch over.
 */
.wp-block-group.is-style-kachel {
	position: relative;
	box-sizing: border-box;
	aspect-ratio: 1;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
}

.wp-block-group.is-style-kachel:not(.has-background) {
	background-color: var(--wp--preset--color--weiss);
}

.wp-block-group.is-style-kachel.has-background {
	border-color: transparent;
}

/* A tile's stacked content never wraps into a second column — core's flex
   layout wraps by default, which in a small tile puts the arrow beside the
   text instead of under it. The tile grows instead. */
.wp-block-group.is-style-kachel.is-vertical {
	flex-wrap: nowrap;
}

/*
 * A grid of tiles goes to two columns when the space it sits in is narrower
 * than 480px — a Verband column squeezed beside its photo, or a phone. Core's
 * own responsive grid can't do this here: it drops the column template
 * entirely when row and column gaps differ, as they do in the design (20/38).
 */
:where(*):has(> .is-layout-grid > .wp-block-group.is-style-kachel) {
	container-type: inline-size;
}

@container (max-width: 480px) {
	.is-layout-grid:has(> .wp-block-group.is-style-kachel) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Four tiles are four in a row or two and two, never three and one (the
   hero's tiles at 600px): four of 160px and their gaps need 694px. */
@container (max-width: 693px) {
	.is-layout-grid:has(> .wp-block-group.is-style-kachel:nth-child(4):last-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/*
 * A tile's text scales with the tile once the tile is smaller than drawn.
 * Each size is capped at its preset and otherwise set as a share of the tile's
 * width — the share it has in the design (44px in a 154px tile is 28.6%) — so
 * "3600+" or "Serviceplattform" never outgrows a tile squeezed by a narrow
 * column, and nothing changes at the size the design shows.
 */
.wp-block-group.is-style-kachel {
	container-type: inline-size;
}

.wp-block-group.is-style-kachel .has-titel-font-size {
	font-size: min(var(--wp--preset--font-size--titel), 28.6cqi);
}

.wp-block-group.is-style-kachel .has-kennzahl-font-size {
	font-size: min(var(--wp--preset--font-size--kennzahl), 16.5cqi);
}

.wp-block-group.is-style-kachel .has-xl-font-size {
	font-size: min(var(--wp--preset--font-size--xl), 11.8cqi);
}

.wp-block-group.is-style-kachel .has-l-font-size {
	font-size: min(var(--wp--preset--font-size--l), 13cqi);
}

.wp-block-group.is-style-kachel .has-m-font-size {
	font-size: min(var(--wp--preset--font-size--m), 10.4cqi);
}

/* ==========================================================================
   Karte — a card that is one link (core/group)
   ========================================================================== */

/*
 * The whole card opens the post: the title's link is stretched over it, so
 * there is one link per card for the keyboard and one click target for the
 * pointer. On hover the picture eases in by 8% (the "Landingpage Card" hover
 * state) and the arrow greys.
 */
.wp-block-group.is-style-karte {
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
}

/* In a grid of cards every card is as tall as its row. */
.wp-block-post-template.is-layout-grid > li > .wp-block-group.is-style-karte {
	height: 100%;
}

/*
 * A picture beside the text keeps the width it is given. Core lets it shrink,
 * and the text column's one-line title width won: the news pictures drawn at
 * half the card came out at a third (208px of 630, not 315).
 */
.wp-block-group.is-style-karte:not(.is-vertical) > .wp-block-cover {
	flex-shrink: 0;
}

.wp-block-group.is-style-karte :is(.wp-block-post-title, .wp-block-heading) a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.wp-block-group.is-style-karte :is(.wp-block-post-title, .wp-block-heading) a:hover {
	text-decoration: none;
}

.wp-block-group.is-style-karte:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--lueftung);
	outline-offset: 2px;
}

.wp-block-group.is-style-karte :is(.wp-block-post-title, .wp-block-heading) a:focus-visible {
	outline: none;
}

.wp-block-group.is-style-karte .wp-block-cover {
	overflow: hidden;
}

.wp-block-group.is-style-karte .wp-block-cover__image-background {
	transition: transform 0.6s ease;
}

.wp-block-group.is-style-karte:hover .wp-block-cover__image-background {
	transform: scale(1.08);
}

/*
 * The disc, not its block: on a button the style's class sits on the wrapper,
 * and greying that drew a grey square behind the black disc of a tile.
 */
.wp-block-group.is-style-karte:hover .wp-block-read-more.is-style-pfeil:not(.has-background),
.wp-block-group.is-style-karte:hover .wp-block-button.is-style-pfeil .wp-block-button__link:not(.has-background) {
	background-color: var(--wp--custom--hover--dunkel);
}

/* ==========================================================================
   Beitragskarte — a post as a card (suissetec/beitragskarte)
   ========================================================================== */

/*
 * The query loop's post as one card: picture with the category, date, title
 * and the round arrow; the title's link is stretched over all of it. On its
 * own, in a grid, it stands upright. In an "Aufmacher" template it lies on
 * its side, the first card larger and two rows tall. Every measure is a
 * custom property here, so a layout only swaps values.
 *
 * `article`, because in the editor the block's wrapper carries the same
 * class around the card the server draws.
 */
article.wp-block-suissetec-beitragskarte {
	--bild-breite: 100%;
	--bild-hoehe: 200px;
	--pill-oben: 14px;
	--pill-links: 8px;
	--text-abstand: 30px 21px 18px 28px;
	--titel-rand: 38px;
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	min-height: 400px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
}

article.wp-block-suissetec-beitragskarte:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--lueftung);
	outline-offset: 2px;
}

.wp-block-suissetec-beitragskarte__bild {
	position: relative;
	flex: none;
	width: var(--bild-breite);
	height: var(--bild-hoehe);
	overflow: hidden;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--grau);
}

.wp-block-suissetec-beitragskarte__bild img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

article.wp-block-suissetec-beitragskarte:hover .wp-block-suissetec-beitragskarte__bild img {
	transform: scale(1.08);
}

/* 22px tall with the capitals centred: Epilogue sits high in its line box
   (4px each way put 4.7 above the capitals and 7 below the baseline), so the
   padding is uneven by the same amounts as the buttons'. */
.wp-block-suissetec-beitragskarte__kategorie {
	position: absolute;
	top: var(--pill-oben);
	left: var(--pill-links);
	padding: calc(5.85px - 0.04em) 10px calc(5.85px - 0.2225em);
	border-radius: 38px;
	background-color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--s);
	line-height: 1;
}

.wp-block-suissetec-beitragskarte__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	padding: var(--text-abstand);
}

.wp-block-suissetec-beitragskarte__datum {
	display: block;
	font-size: var(--wp--preset--font-size--s);
	line-height: 21px;
}

.wp-block-suissetec-beitragskarte__titel {
	margin: 6px 0 0;
	padding-right: var(--titel-rand);
	font-size: var(--wp--preset--font-size--l);
	font-weight: 400;
	line-height: 25px;
}

.wp-block-suissetec-beitragskarte__titel a {
	color: inherit;
	text-decoration: none;
}

.wp-block-suissetec-beitragskarte__titel a:focus-visible {
	outline: 0;
}

.wp-block-suissetec-beitragskarte__titel a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* The arrow may rise into the title's last line's margin on a long title. */
.wp-block-suissetec-beitragskarte__pfeil {
	display: flex;
	flex: none;
	align-items: center;
	align-self: flex-end;
	justify-content: center;
	width: 44px;
	height: 43px;
	margin-top: -18px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--schwarz);
	color: var(--wp--preset--color--weiss);
	transition: background-color 0.2s ease;
}

.wp-block-suissetec-beitragskarte__pfeil::before {
	content: "";
	width: 15.32px;
	height: 14.46px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
}

article.wp-block-suissetec-beitragskarte:hover .wp-block-suissetec-beitragskarte__pfeil {
	background-color: var(--wp--custom--hover--dunkel);
}

/*
 * Aufmacher — a post template (core/post-template, grid of two) whose first
 * card is the lead: two rows tall on the left, the others beside it. The
 * column gap stays the block's own: 21px on a Fachbereich page, 60px on the
 * Startseite. Cards lie on their side from 600px up, in one column until
 * 1100px; below 600, one column of upright cards.
 */
.wp-block-post-template.is-style-aufmacher > li:first-child {
	grid-row: span 2;
}

@media (min-width: 600px) {
	.wp-block-post-template.is-style-aufmacher article.wp-block-suissetec-beitragskarte {
		--bild-breite: 50%;
		--bild-hoehe: auto;
		--pill-oben: 11px;
		--pill-links: 10px;
		--text-abstand: 31px 13px 12px 18px;
		--titel-rand: 22px;
		flex-direction: row;
		min-height: 196px;
	}

	/* The lead: its picture 356 of 649px as drawn, the text further in. */
	.wp-block-post-template.is-style-aufmacher > li:first-child article.wp-block-suissetec-beitragskarte {
		--bild-breite: 54.9%;
		--pill-oben: 17px;
		--pill-links: 14px;
		--text-abstand: 42px 22px 18px 19px;
		--titel-rand: 16px;
	}
}

/* A row of three upright cards at a fixed three columns (the Startseite's
   news below the lead) lies on its side in one column from 600 to 1000px,
   continuing the list above: three upright cards were 230px wide at 782, and
   two left the third alone. Grids with a minimum card width (News, Kurse)
   find their own column count. */
@media (min-width: 600px) and (max-width: 999px) {
	.wp-block-post-template.is-layout-grid.columns-3:not(.has-native-responsive-grid) {
		grid-template-columns: minmax(0, 1fr);
	}

	.wp-block-post-template.columns-3:not(.has-native-responsive-grid) article.wp-block-suissetec-beitragskarte {
		--bild-breite: 50%;
		--bild-hoehe: auto;
		--pill-oben: 11px;
		--pill-links: 10px;
		--text-abstand: 31px 13px 12px 18px;
		--titel-rand: 22px;
		flex-direction: row;
		min-height: 196px;
	}
}

/* One column until 1100px: two columns of cards on their side left each
   text a 150px strip at 782 ("Jahresbe-richt", "Erfolg-reiche Absol-venten"). */
@media (max-width: 1099px) {
	.wp-block-post-template.is-style-aufmacher {
		grid-template-columns: minmax(0, 1fr);
	}

	.wp-block-post-template.is-style-aufmacher > li:first-child {
		grid-row: auto;
	}
}

/* ==========================================================================
   Datum — the date badge of an event (core/group)
   ========================================================================== */

/*
 * An 89px black square, day over month in white semibold. The two lines are
 * set solid (line-height 1) so their centres sit 27px apart as drawn; the
 * square never gives up width to a long title beside it.
 */
.wp-block-group.is-style-datum {
	flex: none;
	box-sizing: border-box;
	width: 89px;
	min-height: 89px;
	padding-top: 3px;
	border-radius: 7px;
	line-height: 1;
	text-align: center;
}

.wp-block-group.is-style-datum:not(.has-background) {
	background-color: var(--wp--preset--color--schwarz);
}

.wp-block-group.is-style-datum:not(.has-text-color) {
	color: var(--wp--preset--color--weiss);
}

.wp-block-group.is-style-datum > * {
	margin: 0;
	font-weight: 600;
	line-height: 1;
}

.wp-block-group.is-style-datum > :first-child {
	font-size: 28px;
}

.wp-block-group.is-style-datum > :last-child {
	font-size: 26px;
}

/* A range ("24.–26.") on the day line: smaller, on the same 28px line. */
.wp-block-group.is-style-datum > .is-zeitraum {
	font-size: 20px;
	line-height: 28px;
	white-space: nowrap;
}

/* ==========================================================================
   Linkbox — icon, label and arrow in a white row (core/group)
   ========================================================================== */

.wp-block-group.is-style-linkbox {
	position: relative;
	box-sizing: border-box;
	min-height: 53px;
	padding-inline: 11px 48px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
}

.wp-block-group.is-style-linkbox::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 15.32px;
	height: 14.46px;
	margin-top: -7.23px;
	background-color: var(--wp--preset--color--lueftung);
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	transition: transform 0.2s ease;
}

.wp-block-group.is-style-linkbox a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wp-block-group.is-style-linkbox:hover a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-group.is-style-linkbox:hover::after {
	transform: translateX(3px);
}

/*
 * A column of linkboxes never gets narrower than one label on one line. Core
 * lets columns shrink to nothing and breaks words: at 783px the footer's
 * 20.8% column was 134px and "Mitglied werden" broke inside both words.
 * 224px = 11 padding + 24 icon + 11 gap + 125 label + 48 arrow + 2 border.
 */
.wp-block-column:has(> .is-style-linkbox) {
	min-width: 224px;
}

/* ==========================================================================
   Pill — a category tag (core/post-terms)
   ========================================================================== */

.wp-block-post-terms.is-style-pill {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1;
}

/* Centred as the Beitragskarte's category, which it matches. */
.wp-block-post-terms.is-style-pill a {
	display: inline-block;
	padding: calc(5.85px - 0.04em) 10px calc(5.85px - 0.2225em);
	border-radius: 38px;
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
	text-decoration: none;
}

.wp-block-post-terms.is-style-pill .wp-block-post-terms__separator {
	display: none;
}

/*
 * The date of a press release as a pill in the editor's gradient (Figma
 * "Medienmitteilung"): 16px, 3px above and below, the capitals centred.
 */
.wp-block-post-date.is-style-pill {
	width: fit-content;
	padding: calc(3px + 0.09em) 10px calc(3px - 0.09em);
	border-radius: 23px;
	font-size: var(--wp--preset--font-size--m);
	line-height: 25px;
}

/* ==========================================================================
   Knopf — "read more" as the black button (core/read-more)
   ========================================================================== */

.wp-block-read-more.is-style-knopf {
	display: inline-block;
	width: fit-content;
	padding: calc(15px - 0.04em) 22px calc(15px - 0.2225em);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--schwarz);
	color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--m);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.wp-block-read-more.is-style-knopf:hover {
	background-color: var(--wp--custom--hover--dunkel);
	text-decoration: none;
}

/* ==========================================================================
   Schritte — steps in a row with a chevron between (core/group, grid)
   ========================================================================== */

/*
 * Figma "Schritt-für-Schritt-Prozess": the boxes 33px either side of an
 * 11px chevron. Below 1100px four boxes no longer fit beside each other with
 * their text unbroken, so they stack and the chevrons turn downwards. The
 * columns are set here rather than by core's grid, which would wrap two and
 * two with a chevron pointing out of the row.
 */
.wp-block-group.is-style-schritte {
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 24px 77px;
}

.wp-block-group.is-style-schritte > * {
	position: relative;
}

.wp-block-group.is-style-schritte > :not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(100% + 33px);
	width: 11px;
	height: 28px;
	margin-top: -14px;
	background-color: var(--wp--preset--color--schwarz);
	-webkit-mask: url(assets/img/schritt-pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/schritt-pfeil.svg) no-repeat center / contain;
}

@media (max-width: 1099px) {
	.wp-block-group.is-style-schritte {
		grid-template-columns: minmax(0, 1fr);
		max-width: 420px;
		row-gap: 56px;
	}

	.wp-block-group.is-style-schritte > :not(:last-child)::after {
		top: calc(100% + 14px);
		left: 50%;
		margin: 0 0 0 -5.5px;
		transform: rotate(90deg);
	}
}

/* ==========================================================================
   Mit Lupe — a search field with the magnifier inside (core/search)
   ========================================================================== */

/* 70px tall, the magnifier 12px in, the text 8px after it: "Suchleiste". */
.wp-block-search.is-style-lupe .wp-block-search__inside-wrapper {
	position: relative;
}

.wp-block-search.is-style-lupe .wp-block-search__input {
	box-sizing: border-box;
	height: 70px;
	padding: 0 48px 0 40px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background: var(--wp--preset--color--weiss) url(assets/img/suche.svg) no-repeat 12px 50% / 20px 20px;
	color: var(--wp--preset--color--schwarz);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--m);
}

.wp-block-search.is-style-lupe .wp-block-search__input::placeholder {
	color: #333;
	opacity: 1;
}

/* Browsers' own clear button gives way to the design's (assets/js/suche.js). */
.wp-block-search.is-style-lupe .wp-block-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

/* The ✕ at the end of the field: closes the header's panel, empties the
   results page's field. 20px, on the light grey of the design's icon. */
.wp-block-search__schliessen {
	position: absolute;
	top: 50%;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background-color: var(--wp--preset--color--hellgrau);
	color: var(--wp--preset--color--schwarz);
	cursor: pointer;
}

.wp-block-search__schliessen::before {
	content: "";
	width: 12px;
	height: 11.5px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/entfernen.svg) no-repeat center / contain;
	mask: url(assets/img/entfernen.svg) no-repeat center / contain;
}

.wp-block-search__schliessen:hover {
	background-color: var(--wp--custom--hover--hell);
}

.wp-block-search__schliessen[hidden] {
	display: none;
}

.wp-block-search.is-style-lupe .wp-block-search__input:focus {
	outline: none;
	border-color: var(--wp--preset--color--schwarz);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

/* The main menu turns Lüftung on hover and on the page it points at. */
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--lueftung);
	text-decoration: none;
}

/*
 * A language the page does not exist in (inc/sprachen.php): in the list, so
 * the site's three languages are always seen, but grey and not a link. 40%
 * black is #999 on the white of the list: clearly less than the 14px black
 * beside it, and still legible as "FR".
 */
.wp-block-navigation .ist-nicht-uebersetzt > .wp-block-navigation-item__content,
.wp-block-navigation .ist-nicht-uebersetzt > .wp-block-navigation-item__content:hover {
	color: rgb(0 0 0 / 0.4);
	cursor: default;
}

/*
 * A menu item that leaves the site (inc/navigation.php) carries the ↗ of the
 * buttons that do, after its label and in its colour: 11px beside the 20px
 * of the mega menu, as the button's 10.42 beside its text.
 */
.wp-block-navigation .ist-extern > .wp-block-navigation-item__content .wp-block-navigation-item__label::after {
	content: "";
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	margin-left: 0.45em;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil-extern.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil-extern.svg) no-repeat center / contain;
}

/*
 * A menu item without an address is a language that does not exist for this
 * page yet. The Konzept's variant B: show it, greyed out, and do not link it.
 */
.wp-block-navigation a.wp-block-navigation-item__content:not([href]) {
	color: #9b9b9b;
	pointer-events: none;
}

/*
 * Suche im Kopf (core/details): the magnifier in the grey tab opens the
 * design's "Search" panel. The header card grows downwards as for a mega
 * menu: the field 695px wide and 100px below the bar, "Meist gesucht" and its
 * quick links below it, 148px to the card's lower edge. The word "Suche"
 * stays in the summary for screen readers; the eye sees the magnifier.
 */
header.wp-block-template-part .wp-block-group.alignwide:has(details.is-style-suche) {
	position: relative;
}

details.is-style-suche > summary {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	list-style: none;
}

details.is-style-suche > summary::-webkit-details-marker {
	display: none;
}

details.is-style-suche > summary::before {
	content: "";
	flex: none;
	width: 13.5px;
	height: 13.72px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/lupe.svg) no-repeat center / contain;
	mask: url(assets/img/lupe.svg) no-repeat center / contain;
}

details.is-style-suche > summary {
	font-size: 0;
}

details.is-style-suche[open] > summary::before {
	background-color: var(--wp--preset--color--lueftung);
}

details.is-style-suche > .wp-block-group {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 3;
	box-sizing: border-box;
	margin: 0;
	padding: clamp(48px, 5.21vw, 100px) var(--wp--custom--gutter) clamp(64px, 7.71vw, 148px);
	border-radius: 0 0 13px 13px;
	background-color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--m);
	line-height: 27px;
}

header.wp-block-template-part .wp-block-group.alignwide:has(details.is-style-suche[open]) {
	border-bottom-right-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
}

/* One panel at a time: an open search keeps the mega menus shut. */
header.wp-block-template-part:has(details.is-style-suche[open]) li.is-style-mega > .wp-block-navigation__submenu-container {
	display: none !important;
}

/* The quick links two to a row, as drawn (335px each, 22px apart). */
details.is-style-suche .wp-block-buttons {
	row-gap: 19px;
}

details.is-style-suche .wp-block-buttons > .wp-block-button.is-style-quicklink {
	flex: 1 1 calc(50% - 11px);
}

@media (max-width: 599px) {
	details.is-style-suche .wp-block-buttons > .wp-block-button.is-style-quicklink {
		flex-basis: 100%;
	}
}

/* ==========================================================================
   Header
   ========================================================================== */

/*
 * The header is the page's first card: a white bar 121px tall, the logo
 * standing 19px from its top, the grey tab of secondary links hanging from its
 * top edge, and the main menu with its call to action 52px from the right.
 *
 * It stays at the top of the window at the distance it is drawn with (16px,
 * 8px below 1200), under the admin bar of someone signed in. It steps aside
 * while the page scrolls down and comes back as soon as it scrolls up
 * (assets/js/menue.js); a shadow lifts it off the page it floats over.
 */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: calc(var(--kopf-oben) + var(--leiste));
	z-index: 50;
	transition: translate 0.25s ease;
}

/* 32px further than out of the window: the shadow reaches that far. */
.wp-site-blocks > header.wp-block-template-part.ist-weg {
	translate: 0 calc(-100% - var(--kopf-oben) - var(--leiste) - 32px);
}

header.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide {
	transition: box-shadow 0.2s ease;
}

header.wp-block-template-part.ist-gerollt > .wp-block-group > .wp-block-group.alignwide {
	box-shadow: 0 6px 24px rgb(0 0 0 / 0.1);
}

header.wp-block-template-part .wp-block-site-logo img {
	display: block;
}

header.wp-block-template-part .wp-block-navigation {
	--navigation-layout-justification-setting: flex-end;
}

header.wp-block-template-part .wp-block-button__link {
	white-space: nowrap;
}

/* The language menu: "DE" and a chevron, the other languages below. */
header.wp-block-template-part .wp-block-navigation-submenu .wp-block-navigation__submenu-icon {
	width: 10px;
	height: 6px;
	margin-inline-start: 7px;
	padding: 0;
}

/* The design's chevron: 10 × 6 at a 1.5px stroke, heavier than core's. */
header.wp-block-template-part .wp-block-navigation__submenu-icon svg {
	display: none;
}

header.wp-block-template-part .wp-block-navigation__submenu-icon::before {
	content: "";
	display: block;
	width: 10px;
	height: 6px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/chevron-unten.svg) no-repeat center / contain;
	mask: url(assets/img/chevron-unten.svg) no-repeat center / contain;
}

header.wp-block-template-part .wp-block-navigation__submenu-container {
	min-width: 0 !important;
	padding: 6px 0;
	border: 0 !important;
	border-radius: var(--wp--custom--radius--s);
	box-shadow: 0 6px 20px rgb(0 0 0 / 0.08);
}

/* ==========================================================================
   Mega-Menü — a top-level item that opens as a panel (core/navigation-submenu)
   ========================================================================== */

/*
 * The design's "Navigation Dropdown": the header card grows downwards into a
 * white panel 467px tall — the item's label as a title, its children down the
 * left, the children of the one pointed at in two columns in the middle with
 * their descriptions, and the Menü-Teaser at the bottom right. Everything is
 * measured from the 1867px card: title 69px in and 43px below the bar, the
 * middle column 396px in, the teaser 62px from the right and 70px from the
 * bottom.
 *
 * The panel is the item's submenu list, placed against the header card: the
 * menu and the item stop being the reference for its position, the card
 * becomes it. From 1200px, where the menu stands in the bar (below it the
 * menu button opens "Menü (mobil)", see there).
 */

/* The title and the teaser belong to the panel; the overlay has neither. */
.wp-block-navigation__mega-titel,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-suissetec-menu-teaser {
	display: none;
}

@media (min-width: 1200px) {
	header.wp-block-template-part .wp-block-group.alignwide:has(li.is-style-mega) {
		position: relative;
	}

	header.wp-block-template-part .wp-block-navigation:has(li.is-style-mega),
	header.wp-block-template-part .wp-block-navigation:has(li.is-style-mega) :is(.wp-block-navigation__responsive-container, .wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-container-content),
	header.wp-block-template-part .wp-block-navigation li.is-style-mega {
		position: static;
	}

	/* The bar's lower corners square off while a panel hangs from it. */
	header.wp-block-template-part .wp-block-group.alignwide:has(li.is-style-mega:is(:hover, :focus-within)) {
		border-bottom-right-radius: 0 !important;
		border-bottom-left-radius: 0 !important;
	}

	/* The item's link reaches down to the panel, so the pointer keeps the
	   panel open on its way from the one to the other. */
	header.wp-block-template-part li.is-style-mega > .wp-block-navigation-item__content {
		padding-bottom: 40px;
		margin-bottom: -40px;
	}

	header.wp-block-template-part li.is-style-mega:is(:hover, :focus-within) > .wp-block-navigation-item__content {
		color: var(--wp--preset--color--lueftung);
	}

	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container {
		--mega-rand-links: clamp(32px, 3.6vw, 69px);
		--mega-rand-rechts: clamp(32px, 3.23vw, 62px);
		--mega-links: clamp(180px, 12.24vw, 235px);
		--mega-luft: clamp(40px, 4.8vw, 92px);
		--mega-teaser: 248px;
		--mega-oben: 108px;

		display: grid;
		grid-template-columns: var(--mega-links) minmax(0, 1fr);
		grid-auto-rows: min-content;
		align-content: start;
		top: 100%;
		right: 0;
		left: 0;
		box-sizing: border-box;
		width: auto !important;
		height: auto !important;
		min-height: max(467px, calc(var(--mega-mitte, 0px) + 70px));
		padding: 43px var(--mega-rand-rechts) 70px var(--mega-rand-links);
		overflow: visible !important;
		border-radius: 0 0 13px 13px;
		background-color: var(--wp--preset--color--weiss);
		box-shadow: none;
		color: var(--wp--preset--color--schwarz);
		/* Opens after a moment and stays a moment after the pointer leaves,
		   so crossing the bar does not flash every panel it passes. */
		transition: opacity 0.15s ease 0.1s, visibility 0s linear 0.25s;
	}

	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega:is(:hover, :focus-within) > .wp-block-navigation__submenu-container {
		transition: opacity 0.15s ease 0.1s, visibility 0s linear 0.1s;
	}

	/* Over a scrolled page the panel casts the bar's shadow, downwards only:
	   without one its white foot ended flat on the text it covers. */
	header.wp-block-template-part.ist-gerollt .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container {
		box-shadow: 0 18px 24px -12px rgb(0 0 0 / 0.1);
	}

	/* The title: 30px medium, 34px above the list. */
	.wp-block-navigation__mega-titel {
		display: block;
		grid-column: 1 / 3;
		margin-bottom: 34px;
		font-size: var(--wp--preset--font-size--xxl);
		font-weight: 500;
		line-height: 34px;
	}

	.wp-block-navigation__mega-titel a {
		color: inherit;
		text-decoration: none;
	}

	.wp-block-navigation__mega-titel a:hover {
		color: var(--wp--preset--color--lueftung);
	}

	/* The second level: 20px medium down the left, 48px apart. */
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item {
		grid-column: 1;
		position: static;
	}

	/* Top-aligned: core centres an item in its row, and a neighbour whose
	   label wraps would push it 10px down. */
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container :is(.wp-block-navigation-item) {
		align-items: flex-start;
	}

	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item + .wp-block-navigation-item {
		margin-top: 48px;
	}

	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		position: relative;
		flex-grow: 0;
		padding: 0;
		font-size: var(--wp--preset--font-size--l);
		font-weight: 500;
		line-height: 21px;
	}

	/*
	 * Pointed at, the item turns Lüftung with a bar 10px to its left, as
	 * "Navigations Hover 1 Ebene"; the third level the same, 12px to the left
	 * and the height of label and description.
	 */
	:is(ul.is-style-mega > .wp-block-navigation-item, ul.is-style-mega > .has-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item) > .wp-block-navigation-item__content::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: -10px;
		width: 4px;
		border-radius: 2px;
		background-color: var(--wp--preset--color--lueftung);
		opacity: 0;
		transition: opacity 0.15s ease;
	}

	ul.is-style-mega > :is(.wp-block-navigation-item:hover, .wp-block-navigation-item:focus-within, .is-aktiv) > .wp-block-navigation-item__content,
	ul.is-style-mega > .has-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:is(:hover, :focus-visible) {
		color: var(--wp--preset--color--lueftung);
	}

	ul.is-style-mega > :is(.wp-block-navigation-item:hover, .wp-block-navigation-item:focus-within, .is-aktiv) > .wp-block-navigation-item__content::before,
	ul.is-style-mega > .has-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:is(:hover, :focus-visible)::before {
		opacity: 1;
	}

	/*
	 * The page the visitor is on, the item it lies under and its section in
	 * the bar (mega.js marks them): Lüftung, without the bar — the bar says
	 * whose pages the middle column is showing.
	 */
	header.wp-block-template-part li.is-style-mega.current-menu-ancestor > .wp-block-navigation-item__content,
	ul.is-style-mega > .current-menu-ancestor > .wp-block-navigation-item__content,
	ul.is-style-mega .wp-block-navigation-item__content[aria-current="page"] {
		color: var(--wp--preset--color--lueftung);
	}

	/*
	 * The third level: two columns of 328px in the middle, 27px between the
	 * rows. It is placed beside the list, not in it, so every item's children
	 * start level with the first item; mega.js gives the panel their height
	 * and shows a column only while its item is pointed at or focused.
	 */
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation__submenu-container {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 328px));
		row-gap: 27px;
		align-content: start;
		top: var(--mega-oben);
		right: calc(var(--mega-rand-rechts) + var(--mega-teaser) + var(--mega-luft));
		left: calc(var(--mega-rand-links) + var(--mega-links) + var(--mega-luft));
		width: auto !important;
		height: auto !important;
		padding: 0;
		overflow: visible !important;
		border-radius: 0;
		background: none;
		box-shadow: none;
		transition: none;
	}

	/* Whichever item mega.js has made the current one; without the script,
	   whichever is hovered (core's own rule). */
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container.hat-mega-js > .has-child:not(.is-aktiv) > .wp-block-navigation__submenu-container {
		visibility: hidden;
		opacity: 0;
	}

	/*
	 * `inherit`, not `visible`: a visible child of a hidden panel still takes
	 * the pointer. Every closed panel lies in the same place, so the current
	 * column of each — invisible, but there — sat over the open panel's middle,
	 * and moving through it hovered the last item ("Über uns") and swapped
	 * the panel under the pointer.
	 */
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container.hat-mega-js > .has-child.is-aktiv > .wp-block-navigation__submenu-container {
		visibility: inherit;
		opacity: 1;
	}

	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		margin-left: 12px;
		padding: 0;
		font-size: var(--wp--preset--font-size--l);
		font-weight: 600;
		line-height: 20px;
	}

	ul.is-style-mega > .has-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content::before {
		left: -12px;
	}

	/* Core hides the descriptions of menu items; the panel shows them. */
	ul.is-style-mega .wp-block-navigation-item__description {
		display: block;
		margin-top: 7px;
		color: var(--wp--preset--color--schwarz);
		font-size: var(--wp--preset--font-size--m);
		font-weight: 400;
		line-height: 20px;
	}

	/*
	 * The Menü-Teaser: the portal hint (248 × 187 on the Lüftung gradient) and
	 * the picture (248 × 296) side by side, 17px apart, level at the bottom.
	 * Placed, not laid out in the grid: spanning its rows, the picture's
	 * height would be shared out among them and push the list apart. Below
	 * 1600px the picture gives way to the menu.
	 */
	ul.is-style-mega > .wp-block-suissetec-menu-teaser {
		position: absolute;
		right: var(--mega-rand-rechts);
		bottom: 70px;
		display: flex;
		align-items: flex-end;
		gap: 17px;
	}

	.wp-block-suissetec-menu-teaser > .wp-block-group {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		width: 248px;
		min-height: 187px;
		margin: 0;
		/* 15 on the right: the design's text runs closer to the edge than
		   to the left one, and "consectetur" would drop to a third line. */
		padding: 30px 15px 23px 24px;
		border: 1px solid rgb(0 0 0 / 0.08);
		border-radius: var(--wp--custom--radius--s);
		font-size: var(--wp--preset--font-size--m);
		line-height: 20px;
	}

	.wp-block-suissetec-menu-teaser > .wp-block-group > * {
		margin: 0;
	}

	.wp-block-suissetec-menu-teaser > .wp-block-group > .has-s-font-size {
		margin-top: 6px;
		line-height: 15px;
	}

	.wp-block-suissetec-menu-teaser > .wp-block-group > .wp-block-buttons {
		margin-top: auto;
		padding-top: 25px;
	}

	/* 33px tall, the button as drawn in the teaser rather than the 42px one. */
	.wp-block-suissetec-menu-teaser .wp-block-button__link {
		padding: calc(10.5px - 0.04em) 18px calc(10.5px - 0.2225em);
		font-size: var(--wp--preset--font-size--m);
	}

	.wp-block-suissetec-menu-teaser > .wp-block-image {
		flex: none;
		width: 248px;
		margin: 0;
	}

	.wp-block-suissetec-menu-teaser > .wp-block-image img {
		display: block;
		width: 248px;
		height: 296px;
		border-radius: var(--wp--custom--radius--s);
		object-fit: cover;
	}
}

@media (min-width: 1600px) {
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container > li.is-style-mega > .wp-block-navigation__submenu-container {
		--mega-teaser: 513px;
	}
}

@media (min-width: 1200px) and (max-width: 1599px) {
	.wp-block-suissetec-menu-teaser > .wp-block-image {
		display: none;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.wp-block-template-part .wp-block-social-links .wp-social-link {
	width: 39px;
	height: 39px;
}

footer.wp-block-template-part .wp-block-social-links .wp-social-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
}

footer.wp-block-template-part .wp-block-social-links .wp-social-link svg {
	width: 21px;
	height: 21px;
}

/* ==========================================================================
   Bühne — a coloured band with a picture breaking out of it (core/group)
   ========================================================================== */

/*
 * Text on the left, a picture on the right that rises out of the band's top
 * edge and sits on its bottom one (the shop teaser, and the "Box – Gradient &
 * Image" components of the design). Proportions and the overhang are set on
 * the blocks in the editor; the style only adds what a phone needs, where the
 * two halves stack and the picture stays inside the band — its negative top
 * margin is an inline style, hence the !important.
 */
.wp-block-group.is-style-buehne {
	overflow: visible;
}

@media (max-width: 781px) {
	.wp-block-group.is-style-buehne {
		flex-direction: column;
		align-items: stretch;
	}

	.wp-block-group.is-style-buehne > * {
		flex-basis: auto;
		width: 100%;
	}

	.wp-block-group.is-style-buehne .wp-block-image {
		margin-top: 0 !important;
	}
}

/* ==========================================================================
   Bilder — a photo has the cards' corners (core/image, core/gallery)
   ========================================================================== */

/*
 * 13px, the radius the design gives every photo and until now set by hand on
 * each: a picture added later, or to a gallery, came out square. Not on an
 * SVG (the icons, whose drawing may reach its corners). A radius set on the
 * block, 0 included, still wins, and so does every rule that names its place.
 */
:where(.wp-block-image) img:not([src$=".svg"]) {
	border-radius: var(--wp--custom--radius--m);
}

/* A gallery picture's caption lies over the picture's foot: cut with it. */
.wp-block-gallery.has-nested-images:not(.is-style-logos) figure.wp-block-image:has(figcaption) {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--m);
}

/* ==========================================================================
   Sechseck — a photo cut to the hexagon (core/image)
   ========================================================================== */

/*
 * The design's portraits and hero photos sit in a pointy-topped hexagon with
 * softened corners, measured from the Figma photos (1854 × 2172). The shape is
 * a mask over an ordinary photo, so an editor uploads any picture and the
 * image keeps the hexagon's proportions whatever its own are.
 */
:is(.wp-block-image, .wp-block-post-featured-image).is-style-sechseck img {
	width: 100%;
	height: auto;
	aspect-ratio: 1854 / 2172;
	object-fit: cover;
	-webkit-mask: url(assets/img/sechseck.svg) no-repeat center / 100% 100%;
	mask: url(assets/img/sechseck.svg) no-repeat center / 100% 100%;
}

/* ==========================================================================
   Kopfbereich — a coloured page head whose picture hangs out below (core/group)
   ========================================================================== */

/*
 * The hexagon in the head of a page is cut off by the band's top and right
 * edges but its lower point hangs out below it (Figma "Hero Verlauf"). The
 * band clips its content on three sides only; the picture's overhang is set
 * with negative margins on the image block itself.
 */
.wp-block-group.is-style-kopfbereich {
	clip-path: inset(0 0 -100vh 0 round var(--wp--custom--radius--s) var(--wp--custom--radius--s) 0 0);
}

/*
 * The picture hangs from the band's lower edge. At 1920 the band is exactly
 * as tall as the picture needs; below that the title wraps to more lines and
 * the band outgrows it (896px at 1440 against a 796px picture), and a picture
 * held at the top ended 180px short of the bottom with no overhang at all.
 */
@media (min-width: 782px) {
	.wp-block-group.is-style-kopfbereich > :is(.wp-block-image, .wp-block-post-featured-image) {
		align-self: flex-end;
	}
}

/* Stacked until 1000px: at 782 the title had 360px beside the picture and
   broke "Chefmon-teur" and "Gebäu-detechnik". On a tablet the picture would
   grow to 670px at 70%; it stops at 480. */
@media (max-width: 999px) {
	.wp-block-group.is-style-kopfbereich {
		flex-direction: column;
		align-items: stretch;
		clip-path: none;
	}

	.wp-block-group.is-style-kopfbereich > * {
		flex-basis: auto !important;
		width: 100%;
	}

	.wp-block-group.is-style-kopfbereich > :is(.wp-block-image, .wp-block-post-featured-image) {
		width: min(70%, 480px);
		margin: 0 auto -40px !important;
	}

	/* The picture hangs 40px below the band; what follows starts below it.
	   At 360 "Home / Angebote" ended at x 171, inside the hexagon's tip. */
	.wp-block-group.is-style-kopfbereich + * {
		margin-block-start: 64px;
	}
}

/* ==========================================================================
   Link mit Pfeil — a link that leads on (core/paragraph)
   ========================================================================== */

p.is-style-pfeil {
	font-size: var(--wp--preset--font-size--l);
	font-weight: 500;
	line-height: 1.2;
}

/* Lüftung unless the block's own link colour says otherwise: a trade page
   colours it in its Fachbereich (Erneuerbare Energie: Planer). */
p.is-style-pfeil a {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

p.is-style-pfeil:not(.has-link-color) a {
	color: var(--wp--preset--color--lueftung);
}

p.is-style-pfeil a::after {
	content: "";
	display: inline-block;
	width: 13.87px;
	height: 12.96px;
	margin-inline-start: 8px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	transition: transform 0.2s ease;
}

p.is-style-pfeil a:hover {
	opacity: 0.7;
}

p.is-style-pfeil a:hover::after {
	transform: translateX(3px);
}

/* ==========================================================================
   Links that leave the page
   ========================================================================== */

/*
 * A button that opens in a new window carries the ↗ of the design's
 * "Anmelden" buttons; a phone number or e-mail address in a link box turns its
 * arrow the same way. The mark follows from the link, so an editor who sets
 * "open in new tab" gets it without choosing anything else.
 */
.wp-block-button:not(.is-style-quicklink, .is-style-pfeil) .wp-block-button__link:is([target="_blank"], .ist-extern) {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.wp-block-button:not(.is-style-quicklink, .is-style-pfeil) .wp-block-button__link:is([target="_blank"], .ist-extern)::after {
	content: "";
	flex: none;
	width: 10.42px;
	height: 10.42px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil-extern.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil-extern.svg) no-repeat center / contain;
}

.wp-block-group.is-style-linkbox:has(a[href^="tel:"], a[href^="mailto:"], a.ist-extern)::after {
	transform: rotate(-38.46deg);
}

.wp-block-group.is-style-linkbox:has(a[href^="tel:"], a[href^="mailto:"], a.ist-extern):hover::after {
	transform: rotate(-38.46deg) translateX(3px);
}

/*
 * A link to another site (inc/links.php marks it `ist-extern` by its
 * address) says so wherever it stands. In running text the ↗ follows the
 * link's last word. It is a no-break space with the arrow masked into it, not
 * an inline-block: a box of its own could wrap to the next line alone, a
 * no-break space cannot leave the word before it. The header's small "Shop"
 * keeps its cart alone, as drawn; cards and the theme's own blocks have
 * their arrows.
 */
:where(p, li, td, th, dd, figcaption, cite) a.ist-extern:where(:not(.is-style-pfeil a, .is-style-linkbox a, .is-style-karte a, [class*="wp-block-suissetec-"] a, header.wp-block-template-part a, .wp-block-social-link-anchor, .wp-block-navigation-item__content, .wp-block-button__link, :has(img, svg)))::after {
	content: "\00a0";
	margin-inline-start: 0.2em;
	padding-inline-start: 0.3em;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil-extern.svg) no-repeat 100% 50% / 0.55em 0.55em;
	mask: url(assets/img/pfeil-extern.svg) no-repeat 100% 50% / 0.55em 0.55em;
}

/* Where a link style has an arrow of its own, that arrow is the ↗. */
.wp-block-button.is-style-quicklink .wp-block-button__link.ist-extern::after,
.wp-block-button.is-style-quicklink .wp-block-button__link.ist-extern:hover::after {
	-webkit-mask: url(assets/img/pfeil-extern.svg) no-repeat center / 10.42px 10.42px;
	mask: url(assets/img/pfeil-extern.svg) no-repeat center / 10.42px 10.42px;
	transform: none;
}

.wp-block-button.is-style-quicklink .wp-block-button__link.ist-extern:hover::after {
	transform: translate(2px, -2px);
}

.wp-block-button.is-style-pfeil .wp-block-button__link.ist-extern::before {
	width: 11.92px;
	height: 11.92px;
	-webkit-mask-image: url(assets/img/pfeil-extern.svg);
	mask-image: url(assets/img/pfeil-extern.svg);
}

p.is-style-pfeil a.ist-extern::after,
.wp-block-heading.is-style-pfeil a.ist-extern::after {
	width: 0.55em;
	height: 0.55em;
	-webkit-mask-image: url(assets/img/pfeil-extern.svg);
	mask-image: url(assets/img/pfeil-extern.svg);
}

p.is-style-pfeil a.ist-extern:hover::after,
.wp-block-heading.is-style-pfeil a.ist-extern:hover::after {
	transform: translate(2px, -2px);
}

/* A quicklink that jumps down the page points down; a bare "#" is a link
   whose page does not exist yet, not a jump. */
.wp-block-button.is-style-quicklink .wp-block-button__link[href^="#"]:not([href="#"])::after {
	-webkit-mask-position: center;
	mask-position: center;
	transform: rotate(90deg);
}

.wp-block-button.is-style-quicklink .wp-block-button__link[href^="#"]:not([href="#"]):hover::after {
	transform: rotate(90deg);
}

/* Gradient buttons fade to 40 % on hover, as in "Button Verlauf". */
.wp-block-button__link.has-lueftung-rot-gradient-background:hover {
	background: linear-gradient(90deg, rgba(165, 60, 110, 0.4) 0%, rgba(195, 22, 34, 0.4) 91.99%) !important;
}

/* ==========================================================================
   Seitenende — room between a page's last section and the footer
   ========================================================================== */

/*
 * A page built from sections ("Seite ohne Titel", the Startseite) has no
 * margin of its own below its content, so its last section stood 20px above
 * the footer unless someone gave it a margin by hand. It now keeps the
 * margin the hand-built pages end with (101px at 1920, 20 + 76 = 96px to the
 * footer at 1440). Not below a band with a background, which is drawn as the
 * page's last card 20px above the footer (the Startseite's newsletter), and
 * not where the template spaces the page's end itself. A bottom margin set
 * on the block still wins.
 */
main:not([style*="margin-bottom"]) > .wp-block-post-content:last-child > :last-child:not(.has-background, .alignfull) {
	margin-block-end: clamp(40px, 5.26vw, 101px);
}

/* ==========================================================================
   Breadcrumbs (core/breadcrumbs)
   ========================================================================== */

.wp-block-breadcrumbs {
	color: var(--wp--custom--hover--dunkel);
	font-size: var(--wp--preset--font-size--l);
	line-height: 27px;
}

.wp-block-breadcrumbs li:not(:last-child)::after {
	margin: 0 0.3em;
	opacity: 1;
}

.wp-block-breadcrumbs a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.wp-block-breadcrumbs a:hover {
	color: var(--wp--preset--color--lueftung);
}

.wp-block-breadcrumbs [aria-current] {
	font-weight: 600;
}

/* ==========================================================================
   Accordions (core/accordion)
   ========================================================================== */

/*
 * Every accordion on the site is the design's "Dropdown FAQ": white rows with
 * a hairline, the question at 20px semibold and a chevron that turns when the
 * row opens. Core draws a plus that rotates; the chevron replaces it.
 */
.wp-block-accordion {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wp-block-accordion > .wp-block-accordion-item {
	margin: 0;
	border: 1px solid #ececec;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
}

.wp-block-accordion-heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--l);
	font-weight: 600;
	line-height: 27px;
}

.wp-block-accordion-heading__toggle {
	gap: 24px;
	padding: 27px 41px 27px 25px;
}

.wp-block-accordion-heading__toggle-icon {
	flex: none;
	width: 18px;
	height: 10.41px;
	font-size: 0;
	background-color: currentColor;
	-webkit-mask: url(assets/img/akkordeon.svg) no-repeat center / contain;
	mask: url(assets/img/akkordeon.svg) no-repeat center / contain;
}

.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
	transform: rotate(180deg);
}

.wp-block-accordion-panel {
	padding: 18px 25px 31px;
}

.wp-block-accordion-panel > * {
	max-width: 1200px;
}

/* ==========================================================================
   Tabs (core/tabs)
   ========================================================================== */

/*
 * The tab list is a row of white buttons, the chosen one black (the cost
 * overview's "Kosten pro Semester / pro Jahr / Gesamte Kosten").
 */
.wp-block-tab-list {
	display: flex;
	flex-wrap: wrap;
	gap: 17px;
	margin-bottom: 0;
}

.wp-block-tabs > .wp-block-tab-panels {
	margin-block-start: 15px;
}

.wp-block-tab-list button {
	min-width: 206px;
	padding: 13px 15px 12px;
	border: 1px solid #ececec;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
	font-size: var(--wp--preset--font-size--m);
	line-height: 24px;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-block-tab-list button:hover {
	background-color: var(--wp--custom--hover--hell);
}

.wp-block-tab-list button[aria-selected="true"] {
	background-color: rgb(0 0 0 / 0.93);
	color: var(--wp--preset--color--weiss);
}

.wp-block-tab-list button[aria-selected="true"]::before {
	display: none;
}

/* Two 206px tabs and the gap need 429px: on a phone each took a row of its
   own. Sized to their labels they share the rows instead. */
@media (max-width: 599px) {
	.wp-block-tab-list {
		gap: 10px;
	}

	.wp-block-tab-list button {
		min-width: 0;
		flex: 1 1 auto;
	}
}

/* ==========================================================================
   Kosten — a table of prices on a coloured panel (core/table)
   ========================================================================== */

/* Not a scroll box: core's overflow-x: auto put a 15px scrollbar under the
   table when an amount and its info mark ran 3px past the rule. */
.wp-block-table.is-style-kosten {
	margin: 0;
	overflow: visible;
}

.wp-block-table.is-style-kosten table {
	width: 100%;
	border-collapse: collapse;
	color: inherit;
	font-size: var(--wp--preset--font-size--l);
	line-height: 1.36; /* 27.2px at 20px, as drawn */
}

.wp-block-table.is-style-kosten td,
.wp-block-table.is-style-kosten th {
	padding: 0 0 26px;
	border: 0;
	vertical-align: top;
	text-align: left;
}

/*
 * The amounts sit against the right end with their info marks flush with the
 * rule: shrink-wrapped, they start 482px into the 611px table (drawn: 484.5).
 * The labels wrap at ~304px there; narrower, their padding gives way first —
 * as percentages the amounts ran 56px past the table at 783px.
 */
.wp-block-table.is-style-kosten td:first-child {
	padding-right: max(20px, 100% - 433px);
}

.wp-block-table.is-style-kosten td:last-child {
	width: 1%;
	white-space: nowrap;
}

/* The total: 11px under the last amount, the rule, 15px, then the sum. */
.wp-block-table.is-style-kosten tr:last-child td {
	padding: 15px 0 0;
	border-top: 0.5px solid currentColor;
	font-weight: 600;
}

.wp-block-table.is-style-kosten tr:nth-last-child(2) td {
	padding-bottom: 11px;
}

/* max-width: none — a percentage max-width counts as zero when the
   shrink-wrapped amount cell measures itself, and the mark hung 15px out. */
.wp-block-table.is-style-kosten img {
	width: 15px;
	max-width: none;
	height: 15px;
	margin-left: 10px;
	vertical-align: 1px;
}

/* ==========================================================================
   Downloads (core/file)
   ========================================================================== */

/*
 * A file is a white row: the type badge, the title underlined, and the
 * download mark at the end. The whole row is the link.
 */
.wp-block-file {
	position: relative;
	display: flex;
	align-items: center;
	gap: 28px;
	box-sizing: border-box;
	min-height: 83px;
	margin: 0;
	padding: 11px 25px 11px 13px;
	border: 1px solid #ececec;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--m);
}

/* Core sets a file's text to 0.8em, with a selector that outweighs the class
   above: the name was 12.8px instead of the running 16. */
.wp-block-file:not(.wp-element-button) {
	font-size: var(--wp--preset--font-size--m);
}

/* A heading stands clear of the downloads it names, also where the blocks
   around them are set to no spacing (the pattern "Download Liste"), which
   put the first row right under the heading's line. */
.wp-block-heading + .wp-block-file,
.wp-block-heading + .wp-block-group:has(> .wp-block-file:first-child) {
	margin-block-start: var(--wp--style--block-gap);
}

/*
 * The badge names the file type. A PDF has the design's own lettering; any
 * other type gets the blank page with its type set over the page's open left
 * edge, where the design puts "DOC" and "XLS".
 */
.wp-block-file::before {
	content: "";
	flex: none;
	box-sizing: border-box;
	width: 58px;
	height: 59px;
	padding: 30px 0 0 13px;
	border-radius: var(--wp--custom--radius--s);
	background: var(--wp--preset--color--schwarz) url(assets/img/datei.svg) no-repeat center / 31px 36px;
	color: var(--wp--preset--color--weiss);
	font-size: 11px;
	font-weight: 700;
	line-height: 11px;
}

.wp-block-file:has(> a[href$=".pdf" i])::before {
	background-image: url(assets/img/pdf.svg);
}

.wp-block-file:has(> a[href$=".doc" i], > a[href$=".docx" i])::before {
	content: "DOC";
}

.wp-block-file:has(> a[href$=".xls" i], > a[href$=".xlsx" i])::before {
	content: "XLS";
}

.wp-block-file > a:not(.wp-block-file__button) {
	flex: 1;
	color: var(--wp--preset--color--schwarz);
	line-height: 24px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.wp-block-file > a:not(.wp-block-file__button)::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wp-block-file .wp-block-file__button {
	flex: none;
	width: 22px;
	height: 22.61px;
	margin: 0 0 0 auto;
	padding: 0;
	border-radius: 0;
	background-color: var(--wp--preset--color--schwarz);
	font-size: 0;
	-webkit-mask: url(assets/img/download.svg) no-repeat center / contain;
	mask: url(assets/img/download.svg) no-repeat center / contain;
	transition: transform 0.2s ease;
}

.wp-block-file:hover .wp-block-file__button {
	transform: translateY(2px);
}

.wp-block-file:hover > a:not(.wp-block-file__button) {
	color: var(--wp--preset--color--lueftung);
}

/* ==========================================================================
   Karten — events, courses and job ads (suissetec/eventkarte, kurskarte, stellenkarte)
   ========================================================================== */

/* An event, a course and a job ad are one card in the design; the three
   blocks share it. */

/*
 * A white card whose title link covers it, with the category as a pill in
 * its Fachbereich's gradient and the round arrow in the corner.
 */
:is(article.wp-block-suissetec-eventkarte, article.wp-block-suissetec-kurskarte, article.wp-block-suissetec-stellenkarte) {
	position: relative;
	box-sizing: border-box;
	min-height: 259px;
	margin: 0;
	padding: 18px 21px 18px 24px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
}

:is(article.wp-block-suissetec-eventkarte, article.wp-block-suissetec-kurskarte, article.wp-block-suissetec-stellenkarte):has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--lueftung);
	outline-offset: 2px;
}

/* 27px tall with the capitals centred (a 27px line box put them 1.2px
   high); the uneven padding is the buttons' correction for Epilogue. */
:is(.wp-block-suissetec-eventkarte__kategorie, .wp-block-suissetec-kurskarte__kategorie, .wp-block-suissetec-stellenkarte__kategorie) {
	display: inline-block;
	margin: 0 0 0 -9px;
	padding: calc(8.34px - 0.04em) 15px calc(8.34px - 0.2225em);
	border-radius: 63px;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1;
}

/* 308px: the title's measure in the design, clear of the arrow's column.
   The design keeps room for two lines, so the dates sit at the same height
   in every card of a row whether the title wraps or not. */
:is(.wp-block-suissetec-eventkarte__titel, .wp-block-suissetec-kurskarte__titel, .wp-block-suissetec-stellenkarte__titel) {
	max-width: 308px;
	min-height: 54px;
	margin: 33px 0 0;
	font-size: var(--wp--preset--font-size--l);
	font-weight: 600;
	line-height: 27px;
}

:is(.wp-block-suissetec-eventkarte__titel, .wp-block-suissetec-kurskarte__titel, .wp-block-suissetec-stellenkarte__titel) a {
	color: inherit;
	text-decoration: none;
}

:is(.wp-block-suissetec-eventkarte__titel, .wp-block-suissetec-kurskarte__titel, .wp-block-suissetec-stellenkarte__titel) a:focus-visible {
	outline: 0;
}

:is(.wp-block-suissetec-eventkarte__titel, .wp-block-suissetec-kurskarte__titel, .wp-block-suissetec-stellenkarte__titel) a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

:is(article.wp-block-suissetec-eventkarte, article.wp-block-suissetec-kurskarte, article.wp-block-suissetec-stellenkarte):hover :is(.wp-block-suissetec-eventkarte__titel, .wp-block-suissetec-kurskarte__titel, .wp-block-suissetec-stellenkarte__titel) a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

:is(.wp-block-suissetec-eventkarte__daten, .wp-block-suissetec-kurskarte__daten, .wp-block-suissetec-stellenkarte__daten) {
	margin: 1px 0 0;
	font-size: var(--wp--preset--font-size--s);
	line-height: 24px;
}

:is(.wp-block-suissetec-eventkarte__pfeil, .wp-block-suissetec-kurskarte__pfeil, .wp-block-suissetec-stellenkarte__pfeil) {
	position: absolute;
	right: 21px;
	bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 43px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--schwarz);
	color: var(--wp--preset--color--weiss);
	transition: background-color 0.2s ease;
}

:is(.wp-block-suissetec-eventkarte__pfeil, .wp-block-suissetec-kurskarte__pfeil, .wp-block-suissetec-stellenkarte__pfeil)::before {
	content: "";
	width: 15.32px;
	height: 14.46px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
}

:is(article.wp-block-suissetec-eventkarte, article.wp-block-suissetec-kurskarte, article.wp-block-suissetec-stellenkarte):hover :is(.wp-block-suissetec-eventkarte__pfeil, .wp-block-suissetec-kurskarte__pfeil, .wp-block-suissetec-stellenkarte__pfeil) {
	background-color: var(--wp--custom--hover--dunkel);
}

/*
 * The job card is 12px shorter than the other two (Figma "Stellen Card",
 * 424 × 247) and puts the title closer under the pill: 22px rather than 33.
 * Below it the workload and region as black tags, then how long the ad has
 * been up, in the bottom left opposite the arrow.
 */
article.wp-block-suissetec-stellenkarte {
	min-height: 247px;
}

.wp-block-suissetec-stellenkarte__titel {
	margin-top: 22px;
}

.wp-block-suissetec-stellenkarte__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: calc(100% - 56px);
	margin: 7px 0 0;
	padding: 0;
	list-style: none;
}

/* 32px tall: 17px line and 6px padding with the capitals centred. */
.wp-block-suissetec-stellenkarte__tags li {
	padding: calc(7.5px - 0.04em) 10px calc(7.5px - 0.2225em);
	border-radius: 42px;
	background-color: var(--wp--preset--color--schwarz);
	color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--s);
	line-height: 17px;
}

.wp-block-suissetec-stellenkarte__seit {
	position: absolute;
	bottom: 22px;
	left: 24px;
	font-size: 12px;
	line-height: 17px;
}

/* ==========================================================================
   Teilen, Download — small action buttons (core/button)
   ========================================================================== */

/*
 * The white pills beside an event's breadcrumbs: an icon and a label, 12px
 * corners, a grey hairline. "Teilen" opens the share sheet (assets/js/
 * teilen.js); "Download" is an ordinary link, here to the event's .ics file.
 */
.wp-block-button:is(.is-style-teilen, .is-style-download) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 16px 11px;
	border: 1px solid #dfdfdf;
	border-radius: 12px;
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
	font-size: var(--wp--preset--font-size--m);
	font-weight: 400;
	line-height: 16px;
}

.wp-block-button.is-style-teilen .wp-block-button__link {
	font-size: 15px;
}

.wp-block-button:is(.is-style-teilen, .is-style-download) .wp-block-button__link::before {
	content: "";
	flex: none;
	background-color: currentColor;
}

.wp-block-button.is-style-teilen .wp-block-button__link::before {
	width: 11px;
	height: 15px;
	-webkit-mask: url(assets/img/teilen.svg) no-repeat center / contain;
	mask: url(assets/img/teilen.svg) no-repeat center / contain;
}

.wp-block-button.is-style-download .wp-block-button__link::before {
	width: 16px;
	height: 16px;
	-webkit-mask: url(assets/img/download.svg) no-repeat center / contain;
	mask: url(assets/img/download.svg) no-repeat center / contain;
}

.wp-block-button:is(.is-style-teilen, .is-style-download) .wp-block-button__link:hover {
	background-color: var(--wp--custom--hover--hell);
}

/* ==========================================================================
   Zurück — a link back to the listing (core/button)
   ========================================================================== */

/* Lüftung text with the arrow turned round, as "Back Arrow" in the design:
   20px medium, 8px between arrow and word. Lüftung on the grey page is
   5.5:1. */
.wp-block-button.is-style-zurueck .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--wp--preset--color--lueftung);
	font-size: var(--wp--preset--font-size--l);
	font-weight: 500;
	line-height: 20px;
}

.wp-block-button.is-style-zurueck .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 13.87px;
	height: 12.96px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	transform: rotate(180deg);
	transition: transform 0.2s ease;
}

.wp-block-button.is-style-zurueck .wp-block-button__link:hover {
	background: none;
	color: var(--wp--preset--color--lueftung);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-button.is-style-zurueck .wp-block-button__link:hover::before {
	transform: rotate(180deg) translateX(3px);
}

/* ==========================================================================
   Etikett — a fact as a black label (core/paragraph)
   ========================================================================== */

/*
 * The facts at the head of a job ad (Pensum, Region, Stellenantritt): white
 * 16px on black, 30px tall. They are bound to the ad's fields, and a field
 * left empty leaves an empty paragraph, which is not drawn.
 *
 * The design puts 9px above the capitals and 9px below the baseline. Epilogue
 * sits high in its line box (equal padding gave 7.7 above, 10.5 below), so
 * the padding is uneven by the same amounts as the theme's buttons.
 */
p.is-style-etikett,
.wp-block-group.is-style-etikett {
	padding: calc(9px - 0.04em) 16px calc(9px - 0.2225em);
	border-radius: 22px;
	background-color: var(--wp--preset--color--schwarz);
	color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--m);
	line-height: 16px;
}

p.is-style-etikett:empty,
.wp-block-group.is-style-etikett:has(> p:empty) {
	display: none;
}

/*
 * With an icon in front (a job ad's Pensum, Region and Stellenantritt) the
 * pill is a group: the icon, then the text. The pin is 17.6px tall in a 16px
 * line, so the icons are taken out of the pill's height. The uneven padding
 * puts the line box 0.09em below the pill's middle (that centres the
 * capitals); the icons are centred on their own box and go back up by it.
 */
.wp-block-group.is-style-etikett > .wp-block-icon {
	position: relative;
	top: -0.09em;
	flex: none;
	margin-block: -4px;
}

/* ==========================================================================
   Abschnitte — a long text in sections (core/post-content)
   ========================================================================== */

/*
 * Body Big (20/30, set on the block) with a blank line between paragraphs,
 * each heading well clear of the section above, and 34px from a heading to
 * its text — as the job ad draws Aufgaben, Profil and Was wir bieten. Rules
 * rather than margins on each block, so an ad that arrives from the portal
 * as plain HTML is spaced the same. Figma puts 73px before one heading and
 * 91px before the next; both are 80 here.
 */
.wp-block-post-content.is-style-abschnitte > * + * {
	margin-block-start: 30px;
}

.wp-block-post-content.is-style-abschnitte > h2:not(:first-child) {
	margin-block-start: clamp(56px, 4.17vw, 80px);
}

.wp-block-post-content.is-style-abschnitte > h2 + * {
	margin-block-start: 34px;
}

/* A new ad starts with placeholder paragraphs (patterns/stelle-inhalt.php);
   one left unfilled is not a blank line on the page. */
.wp-block-post-content.is-style-abschnitte > p:empty,
.wp-block-post-content.is-style-abschnitte li:empty {
	display: none;
}

/* The bullets hang in a 30px indent, as the "Profil" list is drawn. */
.wp-block-post-content.is-style-abschnitte > :is(ul, ol) {
	padding-inline-start: 30px;
}

/* A download is the design's 648px row, not the text's width. */
.wp-block-post-content.is-style-abschnitte > .wp-block-file {
	max-width: 648px;
	margin-block-start: 48px;
}

/* ==========================================================================
   Firma-Infos — the company of a job ad (suissetec/firma)
   ========================================================================== */

/*
 * The logo on a white tile 116px tall, the address and the contact person
 * 14px in (level with the text of the rows below), then a row each for
 * e-mail, phone and website, 42px tall, 7px apart. Every row leaves the
 * page, so every arrow points up and out.
 */
.wp-block-suissetec-firma {
	font-size: var(--wp--preset--font-size--m);
	line-height: 25px;
}

.wp-block-suissetec-firma__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 116px;
	padding: 20px 30px;
	border: 1px solid #dfdfdf;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
}

/* 201px wide as drawn, whatever size the file itself declares (the codeto
   SVG says 167); a squarer logo stops at the tile's height instead. */
.wp-block-suissetec-firma__logo img {
	display: block;
	width: 201px;
	max-width: 100%;
	height: auto;
	max-height: 66px;
	object-fit: contain;
}

.wp-block-suissetec-firma__adresse {
	margin: 22px 0 0;
	padding-inline: 14px;
	font-style: normal;
}

.wp-block-suissetec-firma__kontakt {
	margin: 28px 0 0;
	padding-inline: 14px;
}

.wp-block-suissetec-firma__kontakt strong {
	font-weight: 600;
}

.wp-block-suissetec-firma__zeilen {
	display: grid;
	gap: 7px;
	margin: 25px 0 0;
	padding: 0;
	list-style: none;
}

.wp-block-suissetec-firma__zeile {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 42px;
	padding: 4px 48px 4px 14px;
	border: 1px solid #ececec;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	overflow-wrap: anywhere;
}

.wp-block-suissetec-firma__zeile::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 15.32px;
	height: 14.46px;
	margin-top: -7.23px;
	background-color: var(--wp--preset--color--lueftung);
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	transform: rotate(-38.46deg);
	transition: transform 0.2s ease;
}

.wp-block-suissetec-firma__zeile a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wp-block-suissetec-firma__zeile:hover a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-suissetec-firma__zeile:hover::after {
	transform: rotate(-38.46deg) translateX(3px);
}

.wp-block-suissetec-firma__zeile:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--lueftung);
	outline-offset: 2px;
}

.wp-block-suissetec-firma__zeile a:focus-visible {
	outline: 0;
}

/* "melanie.laeubli@hunziker.ch" is 222px at 16px; with the row's 14 + 48
   padding and its border the card needs 286. Core would squeeze the column
   to 272 at 1024 and break the address, so the text beside it gives way. */
.wp-block-column:has(> .wp-block-suissetec-firma) {
	min-width: 288px;
}

/* ==========================================================================
   Logos — sponsors and partners (core/gallery)
   ========================================================================== */

/*
 * Each logo on a white tile, 190px tall and contained, never cropped; a last
 * row that is not full sits in the middle, as drawn (four, then three).
 */
.wp-block-gallery.is-style-logos {
	justify-content: center;
}

/* Core's own gallery rule (figure.wp-block-image in .has-nested-images)
   would let a short last row grow to fill the width. */
.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image {
	flex-grow: 0;
	box-sizing: border-box;
	height: 190px;
	padding: 30px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 13px;
	background-color: var(--wp--preset--color--weiss);
}

/* Every logo at its own drawn size, as the design places them (the SVGs
   carry it); a large bitmap is held to 250 × 115, the tallest drawn. */
.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image img {
	width: auto;
	border-radius: 0;
	max-width: min(100%, 250px);
	height: auto;
	max-height: 115px;
	margin: auto;
	object-fit: contain;
}

/* ==========================================================================
   Karte — OpenStreetMap with a card on it (suissetec/karte)
   ========================================================================== */

/*
 * The map fills the block; its tiles are set in grey like the design's map,
 * the marker is the theme's place pin, and the inner blocks lie on the map
 * as a card in the lower left (27px in, 38px up, as drawn). Leaflet's panes
 * stack up to 700 and its controls at 1000; the card sits between them.
 */
:is(.wp-block-suissetec-karte, .wp-block-suissetec-trefferkarte) {
	position: relative;
	box-sizing: border-box;
	min-height: 496px;
	overflow: hidden;
	border-radius: 13px;
	background-color: var(--wp--preset--color--grau);
	isolation: isolate;
}

:is(.wp-block-suissetec-karte__karte, .wp-block-suissetec-trefferkarte__karte) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	font-family: inherit;
}

iframe.wp-block-suissetec-karte__karte {
	pointer-events: none;
	filter: grayscale(1);
}

.wp-block-suissetec-karte__karte.is-leer {
	display: grid;
	place-items: center;
	padding: 24px;
	text-align: center;
}

:is(.wp-block-suissetec-karte, .wp-block-suissetec-trefferkarte) .leaflet-tile-pane {
	filter: grayscale(1) contrast(0.9) brightness(1.06);
}

.wp-block-suissetec-karte__markierung {
	background-color: var(--wp--preset--color--schwarz);
	-webkit-mask: url(assets/icons/standort.svg) no-repeat center / contain;
	mask: url(assets/icons/standort.svg) no-repeat center / contain;
}

.wp-block-suissetec-karte__inhalt {
	position: absolute;
	bottom: 38px;
	left: 27px;
	z-index: 800;
	max-width: calc(100% - 54px);
}

:is(.wp-block-suissetec-karte, .wp-block-suissetec-trefferkarte) .leaflet-control-attribution {
	font-size: 11px;
}

/* On a phone the card follows the map instead of covering it. */
@media (max-width: 599px) {
	.wp-block-suissetec-karte {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		padding: 260px 12px 12px;
	}

	.wp-block-suissetec-karte__inhalt {
		position: relative;
		inset: auto;
		max-width: none;
	}
}

/* The results map of the directory: the Karte's look, the popups in the
   theme's type. */
.wp-block-suissetec-trefferkarte .leaflet-popup-content {
	margin: 12px 16px;
	font: inherit;
	font-size: var(--wp--preset--font-size--m);
	line-height: 25px;
}

/* ==========================================================================
   Betriebskarte — a member company in the directory (suissetec/betriebskarte)
   ========================================================================== */

/*
 * The job ad's company card ("Firma-Infos") as a white card of its own:
 * the name, the trades as pills in their gradients, the address, then the
 * card's rows for e-mail, phone and website.
 */
article.wp-block-suissetec-betriebskarte {
	box-sizing: border-box;
	height: 100%;
	padding: 24px 21px 21px 24px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--m);
	line-height: 25px;
}

.wp-block-suissetec-betriebskarte__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--l);
	font-weight: 600;
	line-height: 27px;
}

.wp-block-suissetec-betriebskarte__bereiche {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.wp-block-suissetec-betriebskarte__bereiche li {
	padding: calc(5.85px - 0.04em) 10px calc(5.85px - 0.2225em);
	border-radius: 38px;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1;
}

.wp-block-suissetec-betriebskarte__adresse {
	margin: 18px 0 0;
	font-style: normal;
}

.wp-block-suissetec-betriebskarte .wp-block-suissetec-firma__zeilen {
	margin-top: 18px;
}

/* What a row does ("Anrufen") is the phone's label; here the address is. */
.wp-block-suissetec-betriebskarte__art {
	display: none;
}

/* ==========================================================================
   Suche — the results page (suissetec/suchfilter, suissetec/suchtreffer)
   ========================================================================== */

/*
 * The areas as tabs 36px tall, 11px apart, 12px under the field: grey with a
 * hairline, the chosen one Werkleitungen. Epilogue sits high in its line box,
 * so the padding is uneven by the buttons' amounts.
 */
/* Directly under the field: the tabs keep their own 12px, not the block gap. */
.wp-block-suissetec-suchfilter {
	margin-block-start: 0;
}

.wp-block-suissetec-suchfilter__bereiche ul {
	display: flex;
	flex-wrap: wrap;
	gap: 11px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.wp-block-suissetec-suchfilter__bereiche a {
	display: block;
	padding: calc(12.84px - 0.04em) 10px calc(12.84px - 0.2225em);
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--hellgrau);
	color: var(--wp--preset--color--schwarz);
	font-size: var(--wp--preset--font-size--s);
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.wp-block-suissetec-suchfilter__bereiche a:hover {
	background-color: var(--wp--custom--hover--hell);
}

/*
 * An area whose results come through an interface: the ↗ after its number,
 * as after a link to another site in running text — a no-break space with
 * the arrow masked into it, so it cannot wrap away from the bracket.
 */
.wp-block-suissetec-suchfilter__bereiche a.ist-extern::after {
	content: "\00a0";
	margin-inline-start: 0.25em;
	padding-inline-start: 0.4em;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil-extern.svg) no-repeat 100% 50% / 0.65em 0.65em;
	mask: url(assets/img/pfeil-extern.svg) no-repeat 100% 50% / 0.65em 0.65em;
}

.wp-block-suissetec-suchfilter__bereiche a[aria-current] {
	border-color: var(--wp--preset--color--werkleitungen);
	background-color: var(--wp--preset--color--werkleitungen);
	color: var(--wp--preset--color--weiss);
}

.wp-block-suissetec-suchfilter__zahl {
	margin: 24px 0 0;
	color: #333;
	font-size: var(--wp--preset--font-size--m);
	line-height: 27px;
}

/*
 * A result: a white card 37px / 51px in, the title with the search term in
 * the Lüftung gradient, where it lives in grey, the excerpt and the gradient
 * button — which only shows the way: the title's link covers the card.
 */
.wp-block-suissetec-suchtreffer {
	position: relative;
	box-sizing: border-box;
	padding: 37px clamp(20px, 2.66vw, 51px);
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
}

.wp-block-suissetec-suchtreffer:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--lueftung);
	outline-offset: 2px;
}

.wp-block-suissetec-suchtreffer__titel {
	max-width: 680px;
	margin: 0;
	font-size: var(--wp--preset--font-size--l);
	font-weight: 600;
	line-height: 27px;
}

.wp-block-suissetec-suchtreffer__titel a {
	color: inherit;
	text-decoration: none;
}

.wp-block-suissetec-suchtreffer__titel a:focus-visible {
	outline: 0;
}

.wp-block-suissetec-suchtreffer__titel a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wp-block-suissetec-suchtreffer:hover .wp-block-suissetec-suchtreffer__titel a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-suissetec-suchtreffer__titel mark {
	background: linear-gradient(90deg, rgba(165, 60, 110, 0.65) 0%, rgba(195, 22, 34, 0.65) 91.99%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wp-block-suissetec-suchtreffer__pfad {
	margin: 5px 0 0;
	color: var(--wp--custom--hover--dunkel);
	font-size: var(--wp--preset--font-size--m);
	line-height: 25px;
}

.wp-block-suissetec-suchtreffer__text {
	max-width: 680px;
	margin: 19px 0 0;
	font-size: var(--wp--preset--font-size--m);
	line-height: 25px;
}

.wp-block-suissetec-suchtreffer__knopf {
	display: inline-block;
	margin-top: 19px;
	transition: background 0.2s ease;
}

.wp-block-suissetec-suchtreffer:hover .wp-block-suissetec-suchtreffer__knopf {
	background: linear-gradient(90deg, rgba(165, 60, 110, 0.4) 0%, rgba(195, 22, 34, 0.4) 91.99%) !important;
}

/* ==========================================================================
   Filter — a search field and choices above a list (suissetec/filter)
   ========================================================================== */

/*
 * Figma, "Filter News" and "Filter Mitglieder Stellenbörse": the field on
 * top, 504px wide, and below it a row of 36px buttons, each opening a
 * 220px panel of checkboxes with "Anwenden" and "Zurücksetzen". A choice
 * that is open or has something chosen turns Werkleitungen teal.
 */
.wp-block-suissetec-filter {
	--filter-farbe: var(--wp--preset--color--werkleitungen);

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.wp-block-suissetec-filter__suche {
	position: relative;
	width: min(100%, 504px);
}

.wp-block-suissetec-filter__suche input {
	box-sizing: border-box;
	width: 100%;
	height: 36px;
	padding: 0 40px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background: var(--wp--preset--color--weiss) url(assets/img/suche.svg) no-repeat 12px center / 20px 20px;
	color: var(--wp--preset--color--schwarz);
	font: inherit;
	font-size: var(--wp--preset--font-size--s);
	letter-spacing: 0.15px;
	-webkit-appearance: none;
	appearance: none;
}

.wp-block-suissetec-filter__suche input::placeholder {
	color: #333;
	opacity: 1;
}

.wp-block-suissetec-filter__suche input::-webkit-search-cancel-button {
	display: none;
}

.wp-block-suissetec-filter__suche input:focus-visible {
	border-color: var(--filter-farbe);
	outline: 1px solid var(--filter-farbe);
}

.wp-block-suissetec-filter__leeren {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: url(assets/img/filter-leeren.svg) no-repeat center / 20px 20px;
	cursor: pointer;
}

.wp-block-suissetec-filter__leeren[hidden] {
	display: none;
}

.wp-block-suissetec-filter__facetten {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wp-block-suissetec-filter__facette {
	position: relative;
}

.wp-block-suissetec-filter__knopf {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	height: 36px;
	padding: 0 8px 0 12px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--hellgrau);
	font-size: var(--wp--preset--font-size--s);
	line-height: 16px;
	white-space: nowrap;
	list-style: none;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wp-block-suissetec-filter__knopf::-webkit-details-marker {
	display: none;
}

.wp-block-suissetec-filter__knopf::after {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background-color: var(--wp--preset--color--rahmen);
	-webkit-mask: url(assets/img/filter-chevron.svg) no-repeat center / 20px 20px;
	mask: url(assets/img/filter-chevron.svg) no-repeat center / 20px 20px;
	transition: transform 0.2s ease;
}

.wp-block-suissetec-filter__knopf:hover {
	border-color: var(--wp--preset--color--rahmen);
}

.wp-block-suissetec-filter__knopf:focus-visible {
	outline: 2px solid var(--filter-farbe);
	outline-offset: 2px;
}

.wp-block-suissetec-filter__facette:is([open], .is-gewaehlt) > .wp-block-suissetec-filter__knopf {
	border-color: var(--filter-farbe);
	background-color: var(--filter-farbe);
	color: var(--wp--preset--color--weiss);
}

.wp-block-suissetec-filter__facette:is([open], .is-gewaehlt) > .wp-block-suissetec-filter__knopf::after {
	background-color: currentColor;
}

.wp-block-suissetec-filter__facette[open] > .wp-block-suissetec-filter__knopf::after {
	transform: scaleY(-1);
}

.wp-block-suissetec-filter__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 20;
	box-sizing: border-box;
	/* 220px as drawn, wider for a long option ("Gebäudetechnikplanung"),
	   never wider than a phone. */
	width: max-content;
	min-width: 220px;
	max-width: calc(100vw - 32px);
	overflow: hidden;
	border: 1px solid #dfdfdf;
	border-radius: 12px;
	background-color: var(--wp--preset--color--weiss);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.wp-block-suissetec-filter__panel fieldset {
	min-width: 0;
	margin: 0;
	padding: 0 0 8px;
	border: 0;
}

.wp-block-suissetec-filter__titel {
	padding: 16px 16px 8px;
	font-size: 12px;
	line-height: 16px;
}

.wp-block-suissetec-filter__option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	font-size: var(--wp--preset--font-size--s);
	line-height: 20px;
	letter-spacing: 0.15px;
	cursor: pointer;
}

.wp-block-suissetec-filter__option input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid var(--wp--preset--color--rahmen);
	border-radius: 6px;
	background-color: var(--wp--preset--color--weiss);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.wp-block-suissetec-filter__option:hover input {
	border-color: var(--filter-farbe);
}

.wp-block-suissetec-filter__option input:checked {
	border-color: var(--filter-farbe);
	background: var(--filter-farbe) url(assets/img/filter-haken.svg) no-repeat center / 20px 20px;
}

.wp-block-suissetec-filter__option input:focus-visible {
	outline: 2px solid var(--filter-farbe);
	outline-offset: 2px;
}

.wp-block-suissetec-filter__datum {
	display: block;
	padding: 4px 16px 8px;
}

.wp-block-suissetec-filter__datum input {
	box-sizing: border-box;
	width: 100%;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	font: inherit;
	font-size: var(--wp--preset--font-size--s);
}

.wp-block-suissetec-filter__aktionen {
	display: flex;
	gap: 10px;
	padding: 0 8px 8px;
}

.wp-block-suissetec-filter__aktionen button {
	flex: 1 0 0;
	padding: 10px;
	border: 0;
	border-radius: var(--wp--custom--radius--s);
	font: inherit;
	font-size: var(--wp--preset--font-size--s);
	line-height: 16px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-block-suissetec-filter__anwenden {
	background-color: var(--filter-farbe);
	color: var(--wp--preset--color--weiss);
}

.wp-block-suissetec-filter__anwenden:hover {
	background-color: #006f7a;
}

.wp-block-suissetec-filter__zuruecksetzen {
	background-color: transparent;
	color: #71717a;
}

.wp-block-suissetec-filter__zuruecksetzen:hover {
	background-color: rgba(0, 137, 150, 0.12);
	color: var(--filter-farbe);
}

/* ==========================================================================
   Seitenwechsel — pagination under a list (core/query-pagination)
   ========================================================================== */

/*
 * Figma draws no pagination; it takes the filter's buttons above the list:
 * 36px, grey with a hairline, the current page in Werkleitungen teal.
 */
.wp-block-query-pagination {
	gap: 8px;
	margin-top: 56px;
	font-size: var(--wp--preset--font-size--s);
	line-height: 16px;
}

.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

:is(.wp-block-query-pagination .page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 36px;
	height: 36px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--hellgrau);
	color: var(--wp--preset--color--schwarz);
	text-decoration: none;
	transition: border-color 0.2s ease;
}

:is(.wp-block-query-pagination a.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover {
	border-color: var(--wp--preset--color--rahmen);
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--werkleitungen);
	background-color: var(--wp--preset--color--werkleitungen);
	color: var(--wp--preset--color--weiss);
}

.wp-block-query-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* ==========================================================================
   Beitragsrechner — membership costs and savings (suissetec/beitragsrechner)
   ========================================================================== */

/*
 * No Figma screen: the old calculator's rows — label, info mark, field, a
 * hairline between — in the fields of the contact forms, and the result as
 * the two totals in white boxes, then two tables side by side. The page is
 * grey, so the boxes are white with a rule that still shows them on a white
 * section. The form keeps to 880px: across the full 1320 a label stood
 * 800px from its field. Below 600px each field goes under its label.
 */
.wp-block-suissetec-beitragsrechner {
	--rechner-feld: 180px;
	--rechner-linie: rgb(0 0 0 / 0.12);
}

.wp-block-suissetec-beitragsrechner :is(.wp-block-suissetec-beitragsrechner__hinweis, .wp-block-suissetec-beitragsrechner__info, .wp-block-suissetec-beitragsrechner__summen > div) {
	border: 1px solid var(--wp--preset--color--linie);
	background-color: var(--wp--preset--color--weiss);
}

.wp-block-suissetec-beitragsrechner__hinweis {
	box-sizing: border-box;
	max-width: 880px;
	margin: 0 0 32px;
	padding: 16px 20px;
	border-radius: var(--wp--custom--radius--s);
}

.wp-block-suissetec-beitragsrechner__formular {
	max-width: 880px;
}

.wp-block-suissetec-beitragsrechner__formular fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.wp-block-suissetec-beitragsrechner__kategorie {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 24px;
}

.wp-block-suissetec-beitragsrechner__kategorie label {
	font-weight: 600;
}

.wp-block-suissetec-beitragsrechner :is(select, input) {
	box-sizing: border-box;
	height: 51px;
	border: 1px solid rgb(184 184 184 / 0.53);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
	font: inherit;
	font-size: var(--wp--preset--font-size--m);
	scroll-margin-top: 120px;
}

.wp-block-suissetec-beitragsrechner select {
	width: min(100%, 400px);
	padding: 0 48px 0 16px;
	background: var(--wp--preset--color--weiss) url(assets/img/auswahl-chevron.svg) no-repeat right 18px center / 15px 8.361px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.wp-block-suissetec-beitragsrechner input {
	width: 100%;
	padding: 0 16px;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.wp-block-suissetec-beitragsrechner ::placeholder {
	color: var(--wp--custom--hover--dunkel);
	opacity: 1;
}

.wp-block-suissetec-beitragsrechner :is(select, input):focus {
	outline: none;
	border-color: var(--wp--preset--color--schwarz);
}

.wp-block-suissetec-beitragsrechner :is(select, input)[aria-invalid="true"] {
	border-color: var(--wp--preset--color--rot);
}

/* The GAV field, locked for a category that does not count GAV staff. */
.wp-block-suissetec-beitragsrechner fieldset:not(:disabled) input:disabled {
	border-color: var(--wp--preset--color--linie);
	background-color: var(--wp--preset--color--hellgrau);
	cursor: not-allowed;
}

.wp-block-suissetec-beitragsrechner fieldset:not(:disabled) input:disabled::placeholder {
	color: transparent;
}

.wp-block-suissetec-beitragsrechner__zeilen {
	border-bottom: 1px solid var(--rechner-linie);
}

.wp-block-suissetec-beitragsrechner__zeile {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 32px var(--rechner-feld);
	align-items: center;
	column-gap: 16px;
	padding-block: 10px;
	border-top: 1px solid var(--rechner-linie);
}

.wp-block-suissetec-beitragsrechner__zeile > label {
	grid-column: 1;
}

.wp-block-suissetec-beitragsrechner__zeile > input {
	grid-column: 3;
}

.wp-block-suissetec-beitragsrechner__zeile > :is(.wp-block-suissetec-beitragsrechner__info, .wp-block-suissetec-beitragsrechner__fehler, .wp-block-suissetec-beitragsrechner__gesperrt) {
	grid-column: 1 / -1;
}

/* The info mark: a Lüftung disc with a white "i", black while open. */
.wp-block-suissetec-beitragsrechner__info-knopf {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--wp--preset--color--lueftung);
	vertical-align: middle;
	cursor: pointer;
}

.wp-block-suissetec-beitragsrechner__info-knopf:hover,
.wp-block-suissetec-beitragsrechner__info-knopf[aria-expanded="true"] {
	color: var(--wp--preset--color--schwarz);
}

.wp-block-suissetec-beitragsrechner__info {
	margin-top: 10px;
	padding: 12px 16px;
	border-radius: var(--wp--custom--radius--s);
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.5;
}

.wp-block-suissetec-beitragsrechner__info :is(p, ul, ol) {
	margin: 0;
}

.wp-block-suissetec-beitragsrechner__info :is(p, ul, ol) + :is(p, ul, ol) {
	margin-top: 8px;
}

.wp-block-suissetec-beitragsrechner__info :is(ul, ol) {
	padding-left: 1.25em;
}

/*
 * The webshop categories under an info text: plain links, one a line. The
 * padding makes each a 31px target (a 21px line + 10): three links stacked
 * line on line are easy to miss with a finger.
 */
.wp-block-suissetec-beitragsrechner__info .wp-block-suissetec-beitragsrechner__shop {
	margin-top: 3px;
	padding-left: 0;
	list-style: none;
}

.wp-block-suissetec-beitragsrechner__shop a {
	display: inline-block;
	padding-block: 5px;
}

.wp-block-suissetec-beitragsrechner__info a,
.wp-block-suissetec-beitragsrechner__fussnote a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wp-block-suissetec-beitragsrechner__fehler,
.wp-block-suissetec-beitragsrechner__gesperrt {
	margin: 6px 0 0;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.5;
}

.wp-block-suissetec-beitragsrechner__fehler {
	color: var(--wp--preset--color--rot);
}

.wp-block-suissetec-beitragsrechner__gesperrt {
	color: var(--wp--custom--hover--dunkel);
}

/* All problems once, above the button; also the notice without JavaScript. */
.wp-block-suissetec-beitragsrechner__meldungen {
	margin: 24px 0 0;
	padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--rot);
	border-radius: var(--wp--custom--radius--s);
	color: var(--wp--preset--color--rot);
}

.wp-block-suissetec-beitragsrechner__meldungen:empty {
	display: none;
}

.wp-block-suissetec-beitragsrechner__meldungen ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

noscript .wp-block-suissetec-beitragsrechner__meldungen {
	margin: 0 0 24px;
}

.wp-block-suissetec-beitragsrechner__absenden {
	display: flex;
	justify-content: flex-end;
	margin-top: 32px;
}

.wp-block-suissetec-beitragsrechner__absenden .wp-element-button {
	border: 0;
	font-family: inherit;
	cursor: pointer;
}

/* The result: a heading, both totals on grey, then the two tables. */
.wp-block-suissetec-beitragsrechner__ergebnis {
	margin-top: var(--wp--preset--spacing--56);
	scroll-margin-top: 120px;
}

.wp-block-suissetec-beitragsrechner__ergebnis:focus {
	outline: none;
}

.wp-block-suissetec-beitragsrechner__ergebnis-titel {
	margin: 0 0 24px;
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.24;
}

.wp-block-suissetec-beitragsrechner__summen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 16px;
	margin: 0 0 var(--wp--preset--spacing--40);
}

.wp-block-suissetec-beitragsrechner__summen > div {
	padding: 20px 24px;
	border-radius: var(--wp--custom--radius--m);
}

.wp-block-suissetec-beitragsrechner__summen dt {
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.5;
}

.wp-block-suissetec-beitragsrechner__summen dd {
	margin: 8px 0 0;
	font-size: var(--wp--preset--font-size--xxl);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.wp-block-suissetec-beitragsrechner__tabellen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	align-items: start;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--56);
}

.wp-block-suissetec-beitragsrechner__tabelle {
	width: 100%;
	border-collapse: collapse;
	line-height: 1.5;
}

.wp-block-suissetec-beitragsrechner__tabelle caption {
	margin-bottom: 12px;
	font-size: var(--wp--preset--font-size--l);
	font-weight: 600;
	text-align: left;
}

.wp-block-suissetec-beitragsrechner__tabelle :is(th, td) {
	padding: 5px 0;
	border: 0;
	font-weight: 400;
	text-align: left;
	vertical-align: top;
}

.wp-block-suissetec-beitragsrechner__tabelle :is(td, thead th:last-child) {
	padding-left: 16px;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.wp-block-suissetec-beitragsrechner__tabelle thead th {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wp--preset--color--schwarz);
	color: var(--wp--custom--hover--dunkel);
	font-size: var(--wp--preset--font-size--s);
}

.wp-block-suissetec-beitragsrechner__block th {
	padding-top: 16px;
	font-weight: 600;
}

.wp-block-suissetec-beitragsrechner__zwischentotal :is(th, td) {
	border-top: 1px solid var(--rechner-linie);
	font-weight: 600;
}

.wp-block-suissetec-beitragsrechner__tabelle tfoot :is(th, td) {
	padding-top: 12px;
	border-top: 2px solid var(--wp--preset--color--schwarz);
	font-size: var(--wp--preset--font-size--l);
	font-weight: 700;
}

.wp-block-suissetec-beitragsrechner__tabelle tfoot td {
	vertical-align: middle;
}

.wp-block-suissetec-beitragsrechner__tabelle .wp-block-suissetec-beitragsrechner__info-knopf {
	margin: -4px 0;
}

.wp-block-suissetec-beitragsrechner__fussnote {
	margin: 16px 0 0;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.5;
}

@media (max-width: 599px) {
	.wp-block-suissetec-beitragsrechner__zeile {
		grid-template-columns: minmax(0, 1fr) 44px;
		row-gap: 8px;
		column-gap: 8px;
		padding-block: 12px;
	}

	.wp-block-suissetec-beitragsrechner__zeile > input {
		grid-column: 1 / -1;
	}

	.wp-block-suissetec-beitragsrechner__info-knopf {
		width: 44px;
		height: 44px;
	}

	.wp-block-suissetec-beitragsrechner__tabelle .wp-block-suissetec-beitragsrechner__info-knopf {
		margin: -12px 0;
	}

	.wp-block-suissetec-beitragsrechner__absenden .wp-element-button {
		flex: 1;
	}

	/* Long labels next to amounts: the label wraps, the amount stays whole. */
	.wp-block-suissetec-beitragsrechner__tabelle tfoot :is(th, td) {
		font-size: var(--wp--preset--font-size--m);
	}
}

@media print {
	.wp-block-suissetec-beitragsrechner__tabellen {
		display: block;
	}

	.wp-block-suissetec-beitragsrechner__tabelle {
		margin-bottom: 24px;
		break-inside: avoid;
	}

	.wp-block-suissetec-beitragsrechner :is(.wp-block-suissetec-beitragsrechner__info-knopf, .wp-block-suissetec-beitragsrechner__absenden) {
		display: none;
	}
}

/* ==========================================================================
   Formulare — Contact Form 7
   ========================================================================== */

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

/* Fields: 51px, white, a soft hairline, the label as placeholder. */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	height: 51px;
	padding: 0 16px;
	border: 1px solid rgb(184 184 184 / 0.53);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
	font: inherit;
	font-size: var(--wp--preset--font-size--m);
	line-height: 25px;
}

.wpcf7 textarea {
	height: auto;
	min-height: 150px;
	padding-block: 13px;
}

.wpcf7 ::placeholder {
	color: var(--wp--preset--color--schwarz);
	opacity: 1;
}

.wpcf7 :is(input, textarea):focus {
	outline: none;
	border-color: var(--wp--preset--color--schwarz);
}

.wpcf7 .wpcf7-list-item {
	margin: 0;
}

/*
 * Checkboxes are drawn: 26px, 8px corners; checked is a black square with a
 * white tick, as in the design. appearance:none keeps the real input — and so
 * its keyboard handling and its place in the form — while dropping the
 * platform's own drawing.
 */
.wpcf7 input[type="checkbox"] {
	flex: none;
	width: 26px;
	height: 26px;
	margin: 0;
	border: 1px solid var(--wp--preset--color--rahmen);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.wpcf7 input[type="checkbox"]:checked {
	border-color: var(--wp--preset--color--schwarz);
	background: var(--wp--preset--color--schwarz) url(assets/img/haken.svg) no-repeat center / 26px 26px;
}

.wpcf7 input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--lueftung);
	outline-offset: 2px;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 4px;
	color: var(--wp--preset--color--rot);
	font-size: var(--wp--preset--font-size--s);
}

/* CF7 never removes aria-hidden from this box, so only emptiness hides it. */
.wpcf7 form .wpcf7-response-output {
	max-width: 660px;
	margin: 24px auto 0;
	padding: 12px 16px;
	border-radius: var(--wp--custom--radius--s);
	text-align: center;
}

.wpcf7 form .wpcf7-response-output:empty {
	display: none;
}

/* Contact and membership forms: two fields to a row, a long one across. */
.formular-felder {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

@media (max-width: 599px) {
	.formular-felder {
		grid-template-columns: minmax(0, 1fr);
	}
}

.formular-felder > .formular-breit {
	grid-column: 1 / -1;
}

.formular-felder + .newsletter-abschluss {
	margin-top: 32px;
}

/* The newsletter: three fields in a row, the topics, consent and send. */
.newsletter-felder {
	display: flex;
	justify-content: center;
	gap: 18px;
}

.newsletter-felder {
	flex-wrap: wrap;
}

.newsletter-felder > label {
	flex: 1 1 240px;
	max-width: 318px;
}

.newsletter-frage {
	margin: 50px 0 0;
	font-size: var(--wp--preset--font-size--l);
	line-height: 25px;
	text-align: center;
}

.newsletter-abschluss {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-top: 56px;
}

.newsletter-abschluss .wpcf7-acceptance label {
	display: flex;
	align-items: center;
	gap: 13px;
	line-height: 25px;
	cursor: pointer;
}

.newsletter-abschluss .wpcf7-acceptance input[type="checkbox"]:not(:checked) {
	border-color: rgb(117 117 117 / 0.31);
}

.newsletter-abschluss .wpcf7-acceptance a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.newsletter-abschluss .wpcf7-spinner {
	position: absolute;
	bottom: 9px;
	margin: 0;
	transform: translateX(90px);
}

/*
 * The topics dropdown: a <details> whose summary is the 318 × 51 field with
 * the chosen topics as chips, and whose content — the checkbox list — opens
 * as a panel over what follows instead of pushing it down.
 */
.auswahl {
	position: relative;
	width: min(318px, 100%);
	margin: 16px auto 0;
}

.auswahl > summary {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 51px;
	padding: 8px 48px 8px 8px;
	border: 1px solid #e3e1e1;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	list-style: none;
	cursor: pointer;
}

.auswahl > summary::-webkit-details-marker {
	display: none;
}

.auswahl > summary::after {
	content: "";
	position: absolute;
	top: 22px;
	right: 24px;
	width: 15px;
	height: 8.36px;
	background-color: var(--wp--preset--color--schwarz);
	-webkit-mask: url(assets/img/auswahl-chevron.svg) no-repeat center / contain;
	mask: url(assets/img/auswahl-chevron.svg) no-repeat center / contain;
	transition: transform 0.2s ease;
}

.auswahl[open] > summary::after {
	transform: rotate(180deg);
}

.auswahl__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	padding-left: 8px;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.5;
}

.auswahl__chips:has(.auswahl__chip) {
	padding-left: 0;
}

.auswahl__chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border: 1px solid rgb(200 199 199 / 0.23);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--hellgrau);
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.auswahl__chip::after {
	content: "";
	width: 12px;
	height: 11.5px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/entfernen.svg) no-repeat center / contain;
	mask: url(assets/img/entfernen.svg) no-repeat center / contain;
}

.auswahl .wpcf7-form-control-wrap {
	position: absolute;
	z-index: 5;
	top: calc(100% + 6px);
	right: 0;
	left: 4px;
}

.auswahl .wpcf7-checkbox {
	display: flex;
	flex-direction: column;
	gap: 13px;
	padding: 19px 19px 19px 23px;
	border: 1px solid #e3e1e1;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.06);
}

.auswahl .wpcf7-list-item label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	line-height: 25px;
	cursor: pointer;
}

.auswahl .wpcf7-list-item-label {
	order: -1;
}

/* ==========================================================================
   Check — a list whose items are ticked (core/list)
   ========================================================================== */

/*
 * The tick is the filter's (assets/img/haken.svg): its stroke fills the
 * middle 12.7 of a 26-unit box, so the mask is drawn 1.64em wide to give a
 * tick of 0.8em, and the 1em box around it cuts the empty margin away.
 */
ul.wp-block-list.is-style-check {
	padding-inline-start: 0;
	list-style: none;
}

ul.wp-block-list.is-style-check > li {
	position: relative;
	padding-inline-start: 1.45em;
}

ul.wp-block-list.is-style-check > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: calc(0.5lh - 0.5em);
	width: 1em;
	height: 1em;
	background-color: currentColor;
	-webkit-mask: url(assets/img/haken.svg) no-repeat center / 1.64em;
	mask: url(assets/img/haken.svg) no-repeat center / 1.64em;
}

/* ==========================================================================
   Tag — what a tile leads to: "PDF", "Artikel" (core/paragraph)
   ========================================================================== */

/*
 * The Etikett's pill (30px tall, 16px type), but see-through: black at 27%
 * darkens whichever gradient the tile has. White on it reads on the red,
 * purple, blue and petrol starts; on a gradient that starts in Spengler
 * yellow it falls to 2.6:1, so a tile with a tag starts dark.
 */
p.is-style-tag {
	width: fit-content;
	padding: calc(9px - 0.04em) 14px calc(9px - 0.2225em);
	border-radius: 22px;
	background-color: rgb(0 0 0 / 0.27);
	color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--m);
	line-height: 16px;
}

/*
 * A tile that opens a file or another site says so with its arrow, as a
 * button does: the disc carries the arrow that points out of the page.
 */
.wp-block-group.is-style-karte:has(.wp-block-heading a:is(.ist-extern, [target="_blank"], [href$=".pdf" i])) .wp-block-button.is-style-pfeil .wp-block-button__link::before {
	width: 11.92px;
	height: 11.92px;
	-webkit-mask-image: url(assets/img/pfeil-extern.svg);
	mask-image: url(assets/img/pfeil-extern.svg);
}

/* ==========================================================================
   Medien und Text — a picture beside text (core/media-text)
   ========================================================================== */

/*
 * The "Box mit Bild" is core's block as it comes: gradient, corner radius,
 * "Bild auf Spaltenhöhe zuschneiden" and "Auf Mobilgeräten stapeln" are its
 * own settings. Two things it leaves open:
 *
 * Core rounds the box but not what is in it, so the picture's corners stood
 * out square beyond an 8px radius.
 */
.wp-block-media-text[style*="border-radius"] {
	overflow: hidden;
}

/*
 * A text half that holds one group belongs to that group: it fills the half
 * and sets the padding itself, so its background (the decor shape) reaches
 * the edges of the box. Core's 8% at the sides kept it 53px off them.
 */
.wp-block-media-text > .wp-block-media-text__content:has(> .wp-block-group:first-child):not(:has(> .wp-block-group ~ [class*="wp-block-"])) {
	align-self: stretch;
	padding: 0;
}

.wp-block-media-text > .wp-block-media-text__content > .wp-block-group:first-child:not(:has(~ [class*="wp-block-"])) {
	box-sizing: border-box;
	height: 100%;
}

/* ==========================================================================
   Info Bar — a notice a visitor can close (core/group, inc/infobar.php)
   ========================================================================== */

.wp-block-group:is(.is-style-infobar, .is-style-infobar-unten) {
	position: relative;
	box-sizing: border-box;
	flex-wrap: nowrap;
}

/*
 * The text stays beside the icon. As a wrapping row its paragraph asked for
 * its full one-line width and dropped under the icon as soon as it was longer
 * than the bar: 201px tall at 1100 wide for two lines of text.
 */
.wp-block-group:is(.is-style-infobar, .is-style-infobar-unten) > .wp-block-group {
	flex: 1 1 0;
	min-width: 0;
}

/* The layout's `display: flex` would otherwise show a closed bar. */
.wp-block-group:is(.is-style-infobar, .is-style-infobar-unten)[hidden] {
	display: none;
}

/*
 * The cross: a 24px grey square in the corner, as drawn. Its hit area is
 * 44px, reaching 10px past the square on every side. A pop-up closes with
 * the same one.
 */
:is(.infobar-schliessen, .popup-schliessen) {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background-color: var(--wp--preset--color--hellgrau);
	color: var(--wp--preset--color--schwarz);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

:is(.infobar-schliessen, .popup-schliessen)::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: currentColor;
	-webkit-mask: url(assets/img/entfernen.svg) no-repeat center / 11px;
	mask: url(assets/img/entfernen.svg) no-repeat center / 11px;
}

:is(.infobar-schliessen, .popup-schliessen)::after {
	content: "";
	position: absolute;
	inset: -10px;
}

:is(.infobar-schliessen, .popup-schliessen):hover {
	background-color: var(--wp--custom--hover--hell);
}

:is(.infobar-schliessen, .popup-schliessen):focus-visible {
	outline: 2px solid var(--wp--preset--color--lueftung);
	outline-offset: 2px;
}

/*
 * "Unten fixiert": the bar stays at the window's foot over the page until it
 * is closed. Only on the site itself: in the editor it stays where it was
 * put, or it would lie over the canvas while the page is edited.
 */
.wp-site-blocks .wp-block-group.is-style-infobar-unten {
	position: fixed;
	z-index: 90;
	inset-inline: var(--wp--custom--gutter);
	bottom: 16px;
	width: auto;
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto !important;
	box-shadow: 0 10px 30px rgb(0 0 0 / 0.16);
}

/* ==========================================================================
   Slider — a row moved sideways (core/gallery, core/group, inc/slider.php)
   ========================================================================== */

/*
 * The row is the block itself and scrolls with snap points; the wrapper
 * around it exists only on the site, so in the editor a slider's items stand
 * as an ordinary gallery or below each other.
 */
.suissetec-slider > :is(.wp-block-gallery, .wp-block-group) {
	display: flex;
	flex-wrap: nowrap !important;
	gap: 21px !important;
	justify-content: flex-start;
	margin-block: 0 !important;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.suissetec-slider > :is(.wp-block-gallery, .wp-block-group)::-webkit-scrollbar {
	display: none;
}

.suissetec-slider > :is(.wp-block-gallery, .wp-block-group) > * {
	scroll-snap-align: start;
}

/* Logos: four in view, an arrow on either side of the row. */
.suissetec-slider.ist-logos {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 4px;
}

/*
 * The arrows stand outside the content width, as drawn, where the window has
 * the room: 1320 of content, 2 × 48 of arrow and the page's gutters.
 */
@media (min-width: 1480px) {
	.suissetec-slider.ist-logos {
		display: block;
		position: relative;
	}

	/* Placed, not pulled out with a margin: the layout sets a block's side margins itself. */
	.suissetec-slider.ist-logos > .suissetec-slider__pfeil {
		position: absolute;
		top: calc(50% - 22px);
	}

	.suissetec-slider.ist-logos > .suissetec-slider__pfeil.ist-zurueck {
		left: -48px;
	}

	.suissetec-slider.ist-logos > .suissetec-slider__pfeil.ist-weiter {
		right: -48px;
	}
}

.suissetec-slider.ist-logos > .wp-block-gallery.has-nested-images figure.wp-block-image {
	flex: 0 0 calc((100% - 63px) / 4) !important;
	width: auto !important;
	box-sizing: border-box;
	height: 190px;
	padding: 30px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 13px;
	background-color: var(--wp--preset--color--weiss);
}

.suissetec-slider.ist-logos > .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: auto;
	border-radius: 0;
	max-width: min(100%, 250px);
	height: auto;
	max-height: 115px;
	margin: auto;
	object-fit: contain;
}

.suissetec-slider__pfeil {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--wp--preset--color--schwarz);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.suissetec-slider__pfeil::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: currentColor;
	-webkit-mask: url(assets/img/chevron.svg) no-repeat center / 9px 19px;
	mask: url(assets/img/chevron.svg) no-repeat center / 9px 19px;
}

.suissetec-slider__pfeil.ist-zurueck::before {
	transform: scaleX(-1);
}

.suissetec-slider__pfeil:hover {
	background-color: var(--wp--custom--hover--hell);
}

/* Everything is in view: nothing to move, no arrows. */
.suissetec-slider.ist-fest .suissetec-slider__pfeil {
	visibility: hidden;
}

/* Slides: one in view at a time, dots below. */
.suissetec-slider.ist-folien > .wp-block-group > * {
	flex: 0 0 100%;
	box-sizing: border-box;
	max-width: none !important;
	margin: 0 !important;
}

.suissetec-slider__punkte {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 12px;
}

.suissetec-slider__punkte[hidden] {
	display: none;
}

/* A 10px dot in a 24px button, so neighbouring dots are not hit by mistake. */
.suissetec-slider__punkt {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.suissetec-slider__punkt::before {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--rahmen);
	transition: background-color 0.2s ease;
}

.suissetec-slider__punkt:hover::before {
	background-color: var(--wp--custom--hover--dunkel);
}

.suissetec-slider__punkt[aria-current="true"]::before {
	background-color: var(--wp--preset--color--schwarz);
}

/* ==========================================================================
   Pop-up — a group that opens as a dialog (core/group, inc/popup.php)
   ========================================================================== */

/*
 * In the editor the group stands in the page as the box it will be; on the
 * site it is a <dialog>, closed until a link to its anchor opens it.
 */
.wp-block-group.is-style-popup {
	position: relative;
	box-sizing: border-box;
	width: min(100% - 32px, 590px);
	padding: clamp(40px, 5vw, 56px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px);
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
}

/*
 * The browser centres a modal dialog with `margin: auto`; the layout's own
 * margins on a block (the gap above it) would push it to the top.
 */
dialog.wp-block-group.is-style-popup {
	/* Fixed again: `relative` above (for the cross) would let it scroll away with the page. */
	position: fixed;
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto !important;
	overflow: auto;
	overscroll-behavior: contain;
}

dialog.wp-block-group.is-style-popup:not([open]) {
	display: none;
}

dialog.wp-block-group.is-style-popup::backdrop {
	background-color: rgb(0 0 0 / 0.5);
}

/* ==========================================================================
   Haupt-Event — the highlighted event, large (suissetec/hauptevent)
   ========================================================================== */

/*
 * The Box mit Bild, filled from an event: text on the gradient, the event's
 * picture in the other half. The title's link lies over the whole box, so it
 * is one link; "Zum Event" is drawn as the white button but is not a second
 * link to the same place.
 */
.wp-block-suissetec-hauptevent {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 400px;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--s);
}

.wp-block-suissetec-hauptevent__text {
	display: flex;
	flex: 1 1 50%;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
	padding: 48px clamp(20px, 3vw, 48px) 48px clamp(24px, 14.6%, 193px);
	background: url(assets/img/deko-kachel.svg) no-repeat 0 0 / cover;
}

.wp-block-suissetec-hauptevent__titel {
	margin: 0;
	font-size: 35px;
	font-weight: 400;
	line-height: 1.25;
}

.wp-block-suissetec-hauptevent__titel a {
	color: inherit;
	text-decoration: none;
}

.wp-block-suissetec-hauptevent__titel a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.wp-block-suissetec-hauptevent__titel a:focus-visible {
	outline: none;
}

.wp-block-suissetec-hauptevent:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--lueftung);
	outline-offset: 2px;
}

.wp-block-suissetec-hauptevent__beschrieb {
	margin: 8px 0 0;
}

.wp-block-suissetec-hauptevent__daten {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
}

.wp-block-suissetec-hauptevent__daten li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wp-block-suissetec-hauptevent__daten li::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url(assets/icons/kalender.svg) no-repeat center / contain;
	mask: url(assets/icons/kalender.svg) no-repeat center / contain;
}

.wp-block-suissetec-hauptevent__daten li.wp-block-suissetec-hauptevent__ort::before {
	-webkit-mask-image: url(assets/icons/standort.svg);
	mask-image: url(assets/icons/standort.svg);
}

/* The theme's small white button: 16px, 15px above and below the capitals. */
.wp-block-suissetec-hauptevent__knopf {
	margin-top: 28px;
	padding: calc(15px - 0.04em) 20px calc(15px - 0.2225em);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
	font-size: var(--wp--preset--font-size--m);
	line-height: 1;
	transition: background-color 0.2s ease;
}

.wp-block-suissetec-hauptevent:hover .wp-block-suissetec-hauptevent__knopf {
	background-color: var(--wp--custom--hover--hell);
}

.wp-block-suissetec-hauptevent__bild {
	position: relative;
	flex: 1 1 50%;
	min-height: 240px;
	margin: 0;
	overflow: hidden;
}

.wp-block-suissetec-hauptevent__bild img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.wp-block-suissetec-hauptevent:hover .wp-block-suissetec-hauptevent__bild img {
	transform: scale(1.04);
}

.wp-block-suissetec-hauptevent__leer {
	padding: 24px;
	border: 1px dashed var(--wp--preset--color--rahmen);
	border-radius: var(--wp--custom--radius--s);
	color: var(--wp--custom--hover--dunkel);
}

/* ==========================================================================
   Formulare — WPForms
   ========================================================================== */

/*
 * WPForms draws its "modern" forms from custom properties. These set them to
 * the look of the theme's other forms: 51px fields, 8px corners, the soft
 * hairline, 16px type, 26px checkboxes.
 *
 * !important, because WPForms prints each form's own values after these —
 * "#wpforms-774 { --wpforms-field-size-input-height: 43px }" from the
 * builder's "Themes", or as a style attribute from the block's sidebar — and
 * an id or an attribute beats any selector here: without it the fields of the
 * newsletter form were 43px and its labels 14px. So a new form looks like the
 * design without anyone setting it up, and what the builder offers for size,
 * colour and corners has no effect.
 */
div.wpforms-container-full.wpforms-render-modern {
	--wpforms-field-border-radius: var(--wp--custom--radius--s) !important;
	--wpforms-field-border-style: solid !important;
	--wpforms-field-border-size: 1px !important;
	--wpforms-field-border-color: rgb(184 184 184 / 0.53) !important;
	--wpforms-field-border-color-spare: rgb(184 184 184 / 0.53) !important;
	--wpforms-field-background-color: var(--wp--preset--color--weiss) !important;
	--wpforms-field-text-color: var(--wp--preset--color--schwarz) !important;
	--wpforms-field-menu-color: var(--wp--preset--color--weiss) !important;
	--wpforms-field-size-input-height: 51px !important;
	--wpforms-field-size-font-size: 16px !important;
	--wpforms-field-size-line-height: 25px !important;
	--wpforms-field-size-padding-h: 16px !important;
	--wpforms-field-size-checkbox-size: 26px !important;
	--wpforms-label-color: var(--wp--preset--color--schwarz) !important;
	--wpforms-label-error-color: var(--wp--preset--color--rot) !important;
	--wpforms-label-size-font-size: 16px !important;
	--wpforms-label-size-line-height: 25px !important;
	--wpforms-button-background-color: var(--wp--preset--color--schwarz) !important;
	--wpforms-button-text-color: var(--wp--preset--color--weiss) !important;
	margin-block: 24px 0;
}

div.wpforms-container-full.wpforms-render-modern :is(input, button, label, legend, textarea, select, .choices) {
	font-family: inherit;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-field-label {
	font-weight: 600;
}

/* A label used as placeholder is read like one: black, as in the design. */
div.wpforms-container-full.wpforms-render-modern .wpforms-field :is(input, textarea)::placeholder {
	color: var(--wp--preset--color--schwarz);
	opacity: 1;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-field :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], textarea, select):focus {
	border-color: var(--wp--preset--color--schwarz);
	box-shadow: none;
}

/*
 * Fields that share a row ("one-third" …) get a row each on a phone: at
 * 393px three to a row were 96px wide, with room for five letters.
 */
@media (max-width: 599px) {
	div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field:is(.wpforms-one-half, .wpforms-one-third, .wpforms-two-thirds, .wpforms-one-fourth, .wpforms-three-fourths, .wpforms-one-fifth, .wpforms-two-fifths) {
		float: none;
		width: 100%;
		margin-left: 0;
	}
}

/* What is wrong with a field, close below it: 6px, not the plugin's 15px. */
div.wpforms-container-full.wpforms-render-modern .wpforms-field em.wpforms-error {
	margin-top: 6px;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.5;
}

/*
 * Checkboxes as in the theme's other forms: WPForms draws the 26px box on
 * ::before and a tick of two borders on ::after. Here the box has the 8px
 * corners and, checked, is black with the white tick of assets/img/haken.svg.
 */
div.wpforms-container-full.wpforms-render-modern .wpforms-field input[type="checkbox"] {
	flex: none;
	margin: 0;
}

/* border-box and no offset: WPForms' box is 26px plus its border, set off by -2px. */
div.wpforms-container-full.wpforms-render-modern .wpforms-field input[type="checkbox"]::before {
	top: 0;
	left: 0;
	box-sizing: border-box;
	border-color: var(--wp--preset--color--rahmen);
	border-radius: var(--wp--custom--radius--s);
}

div.wpforms-container-full.wpforms-render-modern .wpforms-field-checkbox ul li {
	align-items: center;
	gap: 13px;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-field-checkbox ul li .wpforms-field-label-inline {
	padding: 0;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-field input[type="checkbox"]:checked::before {
	border-color: var(--wp--preset--color--schwarz);
	background: var(--wp--preset--color--schwarz) url(assets/img/haken.svg) no-repeat center / 26px 26px;
	box-shadow: none;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-field input[type="checkbox"]:checked::after {
	content: none;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-field input[type="checkbox"]:focus-visible::before {
	outline: 2px solid var(--wp--preset--color--lueftung);
	outline-offset: 2px;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-field :is(.wpforms-field-label-inline, .wpforms-field-label-inline a) {
	font-size: var(--wp--preset--font-size--m);
	line-height: 25px;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-field .wpforms-field-label-inline a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/*
 * A dropdown in the style "Modern" (Choices.js) as the newsletter's topics
 * are drawn: the 51px field with a chevron, what is chosen as grey chips in
 * 14px, the list as a white panel 6px below.
 *
 * The selectors are this long, and three declarations !important, because
 * the plugin's own are: "div.wpforms-container-full .wpforms-form
 * .wpforms-field.wpforms-field-select-style-modern .choices[data-type*=…]",
 * loaded after the theme, with !important on the chips' list and on the
 * field one types in.
 */
div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] {
	margin-bottom: 0;
	line-height: 1.5;
	text-align: start;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] .choices__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	box-sizing: border-box;
	min-height: 51px;
	padding: 7px 48px 7px 7px;
	line-height: 1.5;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type].is-focused .choices__inner,
div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type].is-open .choices__inner {
	border-color: var(--wp--preset--color--schwarz);
	border-radius: var(--wp--custom--radius--s);
	box-shadow: none;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type]::after {
	top: 50%;
	right: 24px;
	width: 15px;
	height: 8.36px;
	margin-top: -4px;
	border: 0;
	background-color: var(--wp--preset--color--schwarz);
	-webkit-mask: url(assets/img/auswahl-chevron.svg) no-repeat center / contain;
	mask: url(assets/img/auswahl-chevron.svg) no-repeat center / contain;
	transition: transform 0.2s ease;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type].is-open::after {
	margin-top: -4px;
	transform: rotate(180deg);
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] .choices__inner .choices__list--multiple {
	display: contents !important;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] .choices__inner .choices__list--multiple .choices__item {
	top: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 5px 10px;
	border: 1px solid rgb(200 199 199 / 0.23);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--hellgrau);
	color: var(--wp--preset--color--schwarz);
	font-size: var(--wp--preset--font-size--s);
	font-weight: 400;
	line-height: 1.5;
}

/* The chip's cross: 12px, in the 24px the button needs to be hit. */
div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] .choices__inner .choices__list--multiple .choices__item .choices__button {
	position: static;
	flex: none;
	width: 24px;
	height: 24px;
	margin: -2px -6px -2px -1px;
	padding: 0;
	border: 0;
	background: url(assets/img/entfernen.svg) no-repeat center / 12px 11.5px;
	opacity: 1;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] .choices__inner input.choices__input,
div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] .choices__inner .choices__list--multiple:empty + .choices__input {
	flex: 1 1 60px;
	min-width: 60px !important;
	margin: 0 !important;
	padding: 0 0 0 8px !important;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.5;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] ::placeholder {
	color: var(--wp--preset--color--schwarz);
	opacity: 1;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] .choices__list--dropdown,
div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type].is-open .choices__list--dropdown {
	margin-top: 6px;
	border: 1px solid #e3e1e1;
	border-radius: var(--wp--custom--radius--s);
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.06);
	overflow: hidden;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] .choices__list--dropdown .choices__item {
	padding: 9px 23px;
	color: var(--wp--preset--color--schwarz);
	font-size: var(--wp--preset--font-size--m);
	line-height: 25px;
}

div.wpforms-container-full.wpforms-render-modern .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices[data-type] .choices__list--dropdown .choices__item--selectable.is-highlighted {
	background-color: var(--wp--preset--color--hellgrau);
	color: var(--wp--preset--color--schwarz);
}

/* The theme's button: a pill, 15px above and below the capitals (see Buttons). */
div.wpforms-container-full.wpforms-render-modern button[type="submit"].wpforms-submit {
	height: auto;
	min-height: 44px;
	padding: calc(15px - 0.04em) 24px calc(15px - 0.2225em);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--schwarz);
	color: var(--wp--preset--color--weiss);
	font-size: var(--wp--preset--font-size--m);
	font-weight: 400;
	line-height: 1;
}

div.wpforms-container-full.wpforms-render-modern button[type="submit"].wpforms-submit:hover {
	background-color: var(--wp--custom--hover--dunkel);
}

/*
 * In a pop-up the button carries the gradient, as drawn. Both ends at full
 * strength, not the palette's 65% over white: white text is 6.0:1 on the
 * Lüftung end and 5.9:1 on the red one, and under 3:1 on the tinted pair.
 */
.wp-block-group.is-style-popup div.wpforms-container-full button[type="submit"].wpforms-submit,
.wp-block-group.is-style-popup div.wpforms-container-full button[type="submit"].wpforms-submit:hover {
	background: linear-gradient(90deg, var(--wp--preset--color--lueftung), var(--wp--preset--color--rot));
}

.wp-block-group.is-style-popup div.wpforms-container-full button[type="submit"].wpforms-submit:hover {
	filter: brightness(0.9);
}

/*
 * Zentriert — a form as the newsletter is drawn: the fields that share a row
 * (WPForms' "one-third", "one-half" …) side by side in the middle, 318px at
 * most and 18px apart, and whatever takes a row of its own — the question
 * with its dropdown, the consent, the button — centred below them. Chosen as
 * the block's style, or typed as "is-style-zentriert" into the form's own
 * "CSS-Klasse des Formulars" so that it holds wherever the form is put.
 *
 * The measures are the newsletter's: 50px from the fields to the question,
 * 16px to its dropdown, 56px to the consent, 18px to the button; rows are
 * 18px apart, so the margins carry the rest.
 */
div.wpforms-container-full.wpforms-render-modern.is-style-zentriert .wpforms-field-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
}

div.wpforms-container-full.wpforms-render-modern.is-style-zentriert .wpforms-field {
	flex: 0 0 100%;
	float: none;
	clear: none;
	box-sizing: border-box;
	width: auto;
	margin: 32px 0 0;
	padding: 0;
	text-align: center;
}

div.wpforms-container-full.wpforms-render-modern.is-style-zentriert .wpforms-field:is(.wpforms-one-half, .wpforms-one-third, .wpforms-two-thirds, .wpforms-one-fourth, .wpforms-one-fifth) {
	flex: 1 1 240px;
	max-width: 318px;
	margin: 0;
}

div.wpforms-container-full.wpforms-render-modern.is-style-zentriert .wpforms-field-checkbox {
	margin-top: 38px;
}

div.wpforms-container-full.wpforms-render-modern.is-style-zentriert .wpforms-field-label {
	margin: 0 0 16px;
	font-size: var(--wp--preset--font-size--l);
	font-weight: 400;
	line-height: 25px;
}

div.wpforms-container-full.wpforms-render-modern.is-style-zentriert .wpforms-field > :is(input, select, textarea, .choices) {
	max-width: min(318px, 100%);
	margin-inline: auto;
}

div.wpforms-container-full.wpforms-render-modern.is-style-zentriert .wpforms-field :is(input, textarea) {
	text-align: start;
}

div.wpforms-container-full.wpforms-render-modern.is-style-zentriert .wpforms-field fieldset > ul {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 13px;
}

div.wpforms-container-full.wpforms-render-modern.is-style-zentriert .wpforms-submit-container {
	margin-top: 18px;
	padding: 0;
	text-align: center;
}

/* ==========================================================================
   Person — someone from the team as a card (suissetec/person)
   ========================================================================== */

/*
 * The measures are those of the pattern "Person Einzeln" (Figma "Team Card"):
 * 23px to the text, the portrait's hexagon cut off by the card's top and
 * left edge. There the card is 327px wide and the portrait 309px; in the
 * team list a card is 426px, so the portrait follows the card's width
 * (container units) instead of staying at 309px.
 */
.wp-block-suissetec-person {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	min-height: 473px;
	padding: 0 16px 21px 23px;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--s);
}

.wp-block-suissetec-person__bild {
	--bild: min(87cqi, 380px);
	flex: none;
	width: var(--bild);
	/* Up by the hexagon's upper point (0.307 of its width), left to the card's edge. */
	margin: calc(var(--bild) * -0.307) 0 0 calc(-23px - var(--bild) * 0.049);
}

.wp-block-suissetec-person__bild img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1854 / 2172;
	object-fit: cover;
	-webkit-mask: url(assets/img/sechseck.svg) no-repeat center / 100% 100%;
	mask: url(assets/img/sechseck.svg) no-repeat center / 100% 100%;
}

/* Without a portrait the text starts where the card's padding would. */
.wp-block-suissetec-person > :first-child:not(.wp-block-suissetec-person__bild) {
	margin-top: 23px;
}

.wp-block-suissetec-person__standort {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 11px 0 0;
}

.wp-block-suissetec-person__standort::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url(assets/icons/standort.svg) no-repeat center / contain;
	mask: url(assets/icons/standort.svg) no-repeat center / contain;
}

.wp-block-suissetec-person__name {
	margin: 6px 0 0;
	font-size: var(--wp--preset--font-size--l);
	font-weight: 600;
	line-height: 27px;
}

.wp-block-suissetec-person__funktion {
	margin: -2px 0 0;
}

.wp-block-suissetec-person__aufgaben {
	margin: 16px 0 0;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.35;
}

/* Phone and e-mail: the white rows of the Linkbox, at the foot of the card. */
.wp-block-suissetec-person__kontakt {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: auto 0 0;
	padding: 24px 0 0;
	list-style: none;
}

.wp-block-suissetec-person__kontakt a {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 53px;
	padding: 14px 48px 14px 18px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.wp-block-suissetec-person__kontakt a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 15.32px;
	height: 14.46px;
	margin-top: -7.23px;
	background-color: var(--wp--preset--color--lueftung);
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	transform: rotate(-38.46deg);
	transition: transform 0.2s ease;
}

.wp-block-suissetec-person__kontakt a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-suissetec-person__kontakt a:hover::after {
	transform: rotate(-38.46deg) translateX(3px);
}

/*
 * The team list: a department's name runs across all columns before its
 * first card (inc/personen.php).
 */
.wp-block-post-template.is-layout-grid > li.ist-gruppe {
	grid-column: 1 / -1;
	margin-top: 40px;
}

.wp-block-post-template.is-layout-grid > li.ist-gruppe:first-child {
	margin-top: 0;
}

.wp-block-post-template > li.ist-gruppe > h2 {
	margin: 0;
}

/* ==========================================================================
   Sektionen — the list of sections beside the map (suissetec/sektionen)
   ========================================================================== */

/*
 * Two columns: the list (or the open section) and the map. The map's panel
 * sets the height; list and section are laid into their column and scroll
 * inside it, so 24 rows do not stretch the map to 1700px.
 */
.wp-block-suissetec-sektionen {
	display: grid;
	grid-template-columns: minmax(280px, 32%) minmax(0, 1fr);
	gap: 20px;
}

.wp-block-suissetec-sektionen__spalte {
	position: relative;
	min-width: 0;
}

:is(.wp-block-suissetec-sektionen__liste, .wp-block-suissetec-sektionen__details) {
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--schwarz) var(--wp--preset--color--linie);
}

.wp-block-suissetec-sektionen__liste {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0 12px 0 0;
	list-style: none;
}

.wp-block-suissetec-sektionen__liste a {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	min-height: 57px;
	padding: 10px 64px 10px 22px;
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--linie);
	color: var(--wp--preset--color--schwarz);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.wp-block-suissetec-sektionen__liste a:is(:hover, .ist-gezeigt) {
	background-color: #dcdcdc;
}

.wp-block-suissetec-sektionen__name {
	font-weight: 600;
	line-height: 1.25;
}

.wp-block-suissetec-sektionen__region {
	font-size: 13px;
	line-height: 1.3;
}

/* The round arrow at the end of a row: black disc, white arrow. */
.wp-block-suissetec-sektionen__liste a::before,
.wp-block-suissetec-sektionen__liste a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 29px;
	height: 29px;
	margin-top: -14.5px;
	border-radius: 50%;
}

.wp-block-suissetec-sektionen__liste a::before {
	background-color: var(--wp--preset--color--schwarz);
}

.wp-block-suissetec-sektionen__liste a::after {
	background-color: var(--wp--preset--color--weiss);
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / 12px auto;
	mask: url(assets/img/pfeil.svg) no-repeat center / 12px auto;
	transition: transform 0.2s ease;
}

.wp-block-suissetec-sektionen__liste a:hover::after {
	transform: translateX(2px);
}

/* The open section takes the list's place. */
.wp-block-suissetec-sektionen__details {
	display: none;
	flex-direction: column;
	gap: 14px;
}

.wp-block-suissetec-sektionen.zeigt-sektion .wp-block-suissetec-sektionen__details,
.wp-block-suissetec-sektionen:not(.hat-js):has(.wp-block-suissetec-sektionen__detail:target) .wp-block-suissetec-sektionen__details {
	display: flex;
}

.wp-block-suissetec-sektionen.zeigt-sektion .wp-block-suissetec-sektionen__liste,
.wp-block-suissetec-sektionen:not(.hat-js):has(.wp-block-suissetec-sektionen__detail:target) .wp-block-suissetec-sektionen__liste {
	display: none;
}

.wp-block-suissetec-sektionen__detail {
	display: none;
	flex: 1 0 auto;
	box-sizing: border-box;
	padding: 28px 26px 30px;
	border-radius: var(--wp--custom--radius--s);
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.5;
}

.wp-block-suissetec-sektionen__detail:is(.ist-offen, :target) {
	display: block;
}

.wp-block-suissetec-sektionen__detail:focus {
	outline: none;
}

.wp-block-suissetec-sektionen__detail :is(p, h3, h4, ul) {
	margin: 0;
}

.wp-block-suissetec-sektionen__zurueck a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: inherit;
	font-size: var(--wp--preset--font-size--m);
	text-decoration: none;
}

.wp-block-suissetec-sektionen__zurueck a::before {
	content: "";
	width: 13px;
	height: 12px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	transform: scaleX(-1);
}

.wp-block-suissetec-sektionen__zurueck a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-suissetec-sektionen__titel {
	margin-top: 8px !important;
	font-size: var(--wp--preset--font-size--m);
	font-weight: 600;
	line-height: 1.35;
}

.wp-block-suissetec-sektionen__text {
	margin-top: 8px;
}

.wp-block-suissetec-sektionen__stelle {
	margin-top: 22px;
}

.wp-block-suissetec-sektionen__stelle h4 {
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
	line-height: 1.5;
}

/* The office leads: its name a size up, as drawn. */
.wp-block-suissetec-sektionen__stelle:first-of-type h4 {
	font-size: 18px;
	line-height: 1.35;
}

.wp-block-suissetec-sektionen__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 320px;
	margin-top: 14px !important;
	padding: 0;
	list-style: none;
}

/* 44px rows: the design's 26px ones are too small a target for a finger. */
.wp-block-suissetec-sektionen__links a {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 8px 40px 8px 14px;
	border-radius: 6px;
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.wp-block-suissetec-sektionen__links a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 12px;
	height: 11px;
	margin-top: -5.5px;
	background-color: var(--wp--preset--color--lueftung);
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	transform: rotate(-38.46deg);
}

.wp-block-suissetec-sektionen__links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The map: white panel, the drawing centred in it. */
.wp-block-suissetec-sektionen__karte {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	min-height: 420px;
	aspect-ratio: 560 / 476;
	padding: clamp(16px, 4vw, 56px);
	border-radius: var(--wp--custom--radius--s);
	background-color: var(--wp--preset--color--weiss);
}

.wp-block-suissetec-sektionen__karte svg {
	display: block;
	width: 100%;
	max-width: 760px;
	height: auto;
	overflow: visible;
}

.wp-block-suissetec-sektionen__karte .gebiete > * {
	fill: #c8c8c8;
	stroke: var(--wp--preset--color--weiss);
	stroke-width: 0.5px;
	transition: fill 0.15s ease;
}

.wp-block-suissetec-sektionen__karte .gebiete > .hat-sektion {
	cursor: pointer;
}

/* Pointed at, or its row is: halfway to the colour of the open one. */
.wp-block-suissetec-sektionen__karte .gebiete > .hat-sektion:is(:hover, .ist-gezeigt, :focus-visible) {
	fill: color-mix(in srgb, var(--wp--preset--color--lueftung) 50%, #c8c8c8);
}

.wp-block-suissetec-sektionen__karte .gebiete > .ist-aktiv,
.wp-block-suissetec-sektionen__karte .gebiete > .ist-aktiv:is(:hover, :focus-visible) {
	fill: var(--wp--preset--color--lueftung);
}

/* An outline does not follow a shape in every browser; a dark edge does. */
.wp-block-suissetec-sektionen__karte .gebiete > :focus {
	outline: none;
}

.wp-block-suissetec-sektionen__karte .gebiete > :focus-visible {
	stroke: var(--wp--preset--color--schwarz);
	stroke-width: 1.5px;
}

.wp-block-suissetec-sektionen__karte .seen > * {
	fill: #9b9b9b;
	pointer-events: none;
}

.wp-block-suissetec-sektionen__karte .seen > .ist-weiss {
	fill: var(--wp--preset--color--weiss);
}

.wp-block-suissetec-sektionen__leer {
	padding: 24px;
	border: 1px dashed var(--wp--preset--color--rahmen);
	border-radius: var(--wp--custom--radius--s);
	color: var(--wp--custom--hover--dunkel);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/*
 * The Figma file draws the desktop page only (1920). Below it the tokens do
 * most of the work — fluid type, clamp()ed spacing, core's stacking columns;
 * what is left is here.
 */
@media (max-width: 781px) {
	:root {
		--wp--custom--gutter: 12px;
	}
}

/*
 * Tablets. Core puts columns beside each other from 782px, where a section of
 * two leaves each side 350px or less (an intro beside "Auf dieser Seite", the
 * events beside their list, a person beside the text) and the four columns of
 * "Was wir für die Gebäudetechnik bieten" a word or two each. Columns drawn
 * at set widths stack until 1000px as on a phone; equal columns with no width
 * (the two lists of a checklist) stay side by side. Four or more go two by two
 * until 1200. Only in the content: the footer's three columns fit from 782.
 */
@media (min-width: 782px) and (max-width: 999px) {
	main .wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column[style*="flex-basis"]):not(:has(> .wp-block-column:nth-child(4))) {
		flex-wrap: wrap !important;
	}

	main .wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column[style*="flex-basis"]):not(:has(> .wp-block-column:nth-child(4))) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (min-width: 782px) and (max-width: 1199px) {
	main .wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column:nth-child(4)) {
		flex-wrap: wrap !important;
		row-gap: 40px;
	}

	main .wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column:nth-child(4)) > .wp-block-column {
		flex: 1 1 40% !important;
	}
}

/* German compounds ("Schweizermeisterschaften") outgrow a narrow column, and
   core's break-word then splits them at an arbitrary letter ("Gebäudetech|
   nik" in the event head at 782, "Delegiertenversammlun|g" in the event
   cards at 1024). Hyphenate them instead. Not from 1280, where nothing breaks
   and the headings break exactly as drawn. Only words of ten letters or
   more: "hö-heren" and "Sa-nitär" split for no reason. */
@media (max-width: 1279px) {
	h1,
	h2,
	h3,
	h4,
	.wp-block-button__link {
		-webkit-hyphens: auto;
		hyphens: auto;
		hyphenate-limit-chars: 10 4 4;
	}
}

/* From 1280 the headings break as drawn, but a word wider than its column
   still has to go somewhere: "Schweizermeisterschaften" is 680px at 64px in
   the event head's 657px column, and break-word cut it after "…schaf". Only
   words of twenty letters or more hyphenate there, and only in browsers that
   understand the limit; elsewhere nothing changes. */
@supports (hyphenate-limit-chars: 20 8 8) {
	@media (min-width: 1280px) {
		h1,
		h2,
		h3,
		h4 {
			hyphens: auto;
			hyphenate-limit-chars: 20 8 8;
		}
	}
}

/* Phones: the running text hyphenates too. At 320 a download ("Vorlage
   Arbeitsbestätigung"), a table cell ("Kursvergünstigung") and a tile
   ("Serviceplattform") were cut at a letter. Not in link boxes: they hold
   addresses, which break after the "@" instead. */
@media (max-width: 599px) {
	main :is(p, li, td, th, .wp-block-file) {
		-webkit-hyphens: auto;
		hyphens: auto;
		hyphenate-limit-chars: 10 4 4;
	}

	main .is-style-linkbox :is(p, a) {
		-webkit-hyphens: manual;
		hyphens: manual;
	}
}

/*
 * The header menu folds into core's overlay below 1200px rather than core's
 * 600px: between the two the five items and the call to action no longer fit
 * beside the logo. These two rules are core's own, moved to the new width.
 */
@media (min-width: 600px) and (max-width: 1199px) {
	header.wp-block-template-part .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

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

/* ==========================================================================
   Header below 1200px, and "Menü (mobil)" — its overlay (parts/menue.html)
   ========================================================================== */

/*
 * Below 1200px the header card floats 8px from the window's edge rather
 * than 16 (the sticky header itself is with the header's own rules).
 */
@media (max-width: 1199px) {
	:root {
		--kopf-oben: 8px;
	}

	/* Core's menu icon in a 44px target, the grey tab's magnifier as tall
	   as the tab. */
	header.wp-block-template-part .wp-block-navigation__responsive-container-open {
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
	}

	details.is-style-suche > summary {
		width: 32px;
		height: 30px;
	}

	/* The search panel scrolls in itself when it is taller than the window:
	   a sticky header's overflow cannot be scrolled to. */
	details.is-style-suche > .wp-block-group {
		max-height: calc(100dvh - 96px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-site-blocks > header.wp-block-template-part,
	header.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide {
		transition: none;
	}
}

/*
 * Phones: one row 61px tall — logo, Profis finden, search, menu (the
 * header in the design is 121px over two rows). The two stacked groups on
 * the right hand their items to the bar (display: contents); Shop, Login and
 * the languages are in the menu instead. Below 360px the call to action is
 * only in the menu: logo, button, search and menu need about 310px, and a
 * 320 phone's card has 268.
 */
@media (max-width: 599px) {
	header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-site-logo) {
		align-items: center;
		gap: 2px;
	}

	header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-site-logo) > .wp-block-group,
	header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-site-logo) > .wp-block-group > .wp-block-group {
		display: contents;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-site-logo {
		margin: 9px auto 9px 0 !important;
	}

	header.wp-block-template-part .wp-block-site-logo img {
		width: 96px;
		height: auto;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > .wp-block-group:has(> .wp-block-icon),
	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > .wp-block-navigation:not(:has(.wp-block-navigation__responsive-container-open)) {
		display: none;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > .wp-block-buttons {
		order: 1;
		margin-inline-end: 2px;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > details.is-style-suche {
		order: 2;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > .wp-block-navigation {
		order: 3;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > .wp-block-buttons .wp-block-button__link {
		padding: 12px 14px;
		font-size: var(--wp--preset--font-size--s) !important;
	}

	details.is-style-suche > summary {
		width: 44px;
		height: 44px;
	}

	details.is-style-suche > summary::before {
		width: 18px;
		height: 18.3px;
	}

	details.is-style-suche > .wp-block-group {
		padding: 16px 16px 24px;
	}
}

@media (max-width: 359px) {
	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > .wp-block-buttons {
		display: none;
	}
}

/*
 * The overlay: a white sheet over the window that scrolls on its own (core
 * locks the page behind it). Its bar repeats the header's, logo left and the
 * close button where the menu button was, and stays while the menu scrolls.
 */
header.wp-block-template-part .wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open {
	padding: 0;
	background-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--schwarz);
	font-size: var(--wp--preset--font-size--m);
	overscroll-behavior: contain;
}

/* Above the menu's lists, which core lifts to z-index 2. */
header.wp-block-template-part .wp-block-navigation__overlay-container > .wp-block-group:first-child {
	position: sticky;
	top: 0;
	z-index: 3;
	background-color: var(--wp--preset--color--weiss);
}

/* On a tablet the menu keeps a phone's measure rather than the window's. */
@media (min-width: 600px) {
	header.wp-block-template-part .wp-block-navigation__overlay-container > .wp-block-group:last-child {
		max-width: 640px;
	}
}

header.wp-block-template-part .wp-block-navigation-overlay-close {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--hellgrau);
	color: var(--wp--preset--color--schwarz);
}

header.wp-block-template-part .wp-block-navigation-overlay-close:hover {
	background-color: var(--wp--custom--hover--hell);
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-search.is-style-lupe .wp-block-search__input {
	height: 56px;
}

/*
 * The main menu, one level at a time (assets/js/menue.js). First the five
 * sections, rows between hairlines with their names at 25px and a chevron:
 * they lead on. A section opens as a panel in their place — its name at
 * 30px with a link to its page, then its pages in their groups, each
 * group's name small and grey over plain rows of links at 20px. While a
 * panel is open, the bar's logo gives way to "‹ Menü". Descriptions and
 * teasers belong to the mega menu. Without the script the sections stand
 * open one below the other.
 */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
	text-align: left;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__container {
	gap: 0;
	width: 100%;
	align-items: stretch;
	border-top: 1px solid var(--wp--preset--color--linie);
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__container > .wp-block-navigation-item {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 14px 0;
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.24;
}

/* With the script a section's row is its button; its link moves into the
   panel's head. */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__container > .wp-block-navigation-item:has(> .wp-block-navigation-submenu__toggle) > .wp-block-navigation-item__content {
	display: none;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation-submenu__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 60px;
	padding: 12px 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.24;
	text-align: left;
	cursor: pointer;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .current-menu-ancestor > .wp-block-navigation-submenu__toggle {
	color: var(--wp--preset--color--lueftung);
}

/* The quicklinks' chevron: this row leads on. */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation-submenu__toggle::after {
	content: "";
	flex: none;
	width: 8px;
	height: 14px;
	background-color: var(--wp--preset--color--lueftung);
	-webkit-mask: url(assets/img/chevron.svg) no-repeat center / contain;
	mask: url(assets/img/chevron.svg) no-repeat center / contain;
}

/* One panel at a time, and in the sections' place. */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation-submenu__toggle[aria-expanded="false"] + .wp-block-navigation__submenu-container,
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation-submenu__toggle[aria-expanded="true"],
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__container:has(> li > [aria-expanded="true"]) > li:not(:has(> [aria-expanded="true"])),
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-group:has(.wp-block-navigation-submenu__toggle[aria-expanded="true"]) > :not(:has(.wp-block-navigation-submenu__toggle)) {
	display: none;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__container:has(> li > [aria-expanded="true"]),
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__container > li:has(> [aria-expanded="true"]) {
	border: 0;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container {
	gap: 28px;
	width: 100%;
	min-width: 0 !important;
	padding: 0 0 8px !important;
	border-radius: 0;
	box-shadow: none;
	animation: menue-panel 0.22s ease;
}

@keyframes menue-panel {
	from {
		opacity: 0;
		transform: translateX(24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container {
		animation: none;
	}
}

/* "‹ Menü" in the bar, where the logo was, as tall as the close button. */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation__zurueck {
	display: none;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: var(--wp--preset--font-size--l);
	cursor: pointer;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation__zurueck::before {
	content: "";
	width: 9px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/chevron.svg) no-repeat center / contain;
	mask: url(assets/img/chevron.svg) no-repeat center / contain;
	transform: scaleX(-1);
}

header.wp-block-template-part .wp-block-navigation__overlay-container:has([aria-expanded="true"]) .wp-block-navigation__zurueck {
	display: inline-flex;
}

header.wp-block-template-part .wp-block-navigation__overlay-container:has([aria-expanded="true"]) > .wp-block-group:first-child > .wp-block-site-logo {
	display: none;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__panel-kopf {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding-bottom: 4px;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__panel-titel {
	margin: 0;
	font-size: var(--wp--preset--font-size--xxl);
	line-height: 1.2;
}

/* The section's own page, as the theme's "Link mit Pfeil". */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__uebersicht {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	color: var(--wp--preset--color--lueftung);
	font-size: var(--wp--preset--font-size--m);
	font-weight: 500;
	text-decoration: none;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__uebersicht::after {
	content: "";
	width: 13.87px;
	height: 12.96px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__submenu-container > .wp-block-navigation-item.has-child {
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	width: 100%;
}

/* A group's name: small and grey over its pages. */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__submenu-container > .wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
	color: var(--wp--custom--hover--dunkel);
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
	line-height: 1.5;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	gap: 0;
	width: 100%;
	min-width: 0 !important;
	padding: 0 !important;
	border-radius: 0;
	box-shadow: none;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item {
	width: 100%;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 0;
	font-size: var(--wp--preset--font-size--l);
	line-height: 1.3;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation-item__description {
	display: none;
}

/* The page itself, found by assets/js/menue.js. */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--lueftung);
}

/* A page that does not exist yet ("#") is shown, greyed, and not a link. */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:has(.has-child) a.wp-block-navigation-item__content[href="#"] {
	color: #9b9b9b;
	pointer-events: none;
}

/* The calls to action side by side; the second, white on white, takes a
   hairline for its edge. */
header.wp-block-template-part .wp-block-navigation__overlay-container > .wp-block-group > .wp-block-buttons {
	gap: 10px;
}

header.wp-block-template-part .wp-block-navigation__overlay-container > .wp-block-group > .wp-block-buttons .wp-block-button__link {
	width: 100%;
	padding-inline: 12px;
	white-space: nowrap;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-button.is-style-hell > .wp-block-button__link {
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--rahmen);
}

/* Shop, Login and the languages: one row of plain links, each 44px tall. */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-group:has(> .wp-block-icon) a,
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:not(:has(.has-child)) .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-group:has(> .wp-block-icon) a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:not(:has(.has-child)) .wp-block-navigation-item__content {
	justify-content: center;
	min-width: 32px;
}

header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:not(:has(.has-child)) .current-menu-item > .wp-block-navigation-item__content {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 5px;
}

/* A language the page is not translated into: grey here too (see Navigation). */
header.wp-block-template-part .wp-block-navigation__overlay-container .wp-block-navigation:not(:has(.has-child)) .ist-nicht-uebersetzt > .wp-block-navigation-item__content {
	color: rgb(0 0 0 / 0.4);
}

/* ==========================================================================
   Phones — compact lists, legible covers, touch sizes (below 600px)
   ========================================================================== */

/*
 * The desktop design stood every list item as a tall card. On a phone that
 * made the Startseite 11,500px and a course page 17,000: here the lists turn
 * into rows, the jump links into one scrolling row of chips, and every
 * control is at least 44px tall.
 */
@media (max-width: 599px) {
	/*
	 * A cover with its text at the top: the brand gradient runs up from the
	 * lower left, which on a phone's tall cover left the headline over bare
	 * sky (the Startseite's white text on a white helmet). A shade from the
	 * top joins it.
	 */
	.wp-block-cover.is-position-top-left > .wp-block-cover__background.has-bild-verlauf-gradient-background {
		background: linear-gradient(180deg, rgb(0 0 0 / 0.5) 0%, rgb(0 0 0 / 0.3) 45%, rgb(0 0 0 / 0) 80%), var(--wp--preset--gradient--bild-verlauf) !important;
	}

	/*
	 * "Auf dieser Seite": the sections as a row of chips that scrolls
	 * sideways to the screen's edges, not a list taller than the screen
	 * (ten rows and 640px on a course page).
	 */
	.wp-block-buttons.is-vertical:has(> .wp-block-button.is-style-quicklink > a[href^="#"]:not([href="#"])) {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 8px;
		margin-inline: calc(-1 * var(--wp--custom--gutter));
		padding: 2px var(--wp--custom--gutter);
		overflow-x: auto;
		scroll-padding-inline: var(--wp--custom--gutter);
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.wp-block-buttons.is-vertical:has(> .wp-block-button.is-style-quicklink > a[href^="#"]:not([href="#"]))::-webkit-scrollbar {
		display: none;
	}

	.wp-block-buttons.is-vertical > .wp-block-button.is-style-quicklink:has(> a[href^="#"]:not([href="#"])) {
		flex: none;
		width: auto;
		scroll-snap-align: start;
	}

	.wp-block-buttons.is-vertical > .wp-block-button.is-style-quicklink > a[href^="#"]:not([href="#"]) {
		min-height: 44px;
		padding: 0 12px 0 16px;
		border-radius: var(--wp--custom--radius--pill);
		white-space: nowrap;
	}

	/*
	 * News: the first card of a list stays upright, the rest are rows — the
	 * picture a 112px square at the left, date and title beside it, the whole
	 * row the link. A row of three that continues a list above (the
	 * Startseite's) is all rows. Category and arrow belong to the big card.
	 */
	.wp-block-post-template > li:not(:first-child) article.wp-block-suissetec-beitragskarte,
	.wp-block-post-template.columns-3:not(.has-native-responsive-grid) article.wp-block-suissetec-beitragskarte {
		--bild-breite: 112px;
		--bild-hoehe: auto;
		--text-abstand: 14px 16px;
		--titel-rand: 0;
		flex-direction: row;
		min-height: 112px;
	}

	.wp-block-post-template > li:not(:first-child) .wp-block-suissetec-beitragskarte__bild,
	.wp-block-post-template.columns-3:not(.has-native-responsive-grid) .wp-block-suissetec-beitragskarte__bild {
		border-radius: 0;
	}

	.wp-block-post-template > li:not(:first-child) :is(.wp-block-suissetec-beitragskarte__kategorie, .wp-block-suissetec-beitragskarte__pfeil),
	.wp-block-post-template.columns-3:not(.has-native-responsive-grid) :is(.wp-block-suissetec-beitragskarte__kategorie, .wp-block-suissetec-beitragskarte__pfeil) {
		display: none;
	}

	.wp-block-post-template > li:not(:first-child) .wp-block-suissetec-beitragskarte__titel,
	.wp-block-post-template.columns-3:not(.has-native-responsive-grid) .wp-block-suissetec-beitragskarte__titel {
		font-size: var(--wp--preset--font-size--m);
		line-height: 22px;
	}

	.wp-block-post-template:has(article.wp-block-suissetec-beitragskarte) {
		gap: 12px;
	}

	/*
	 * Events, courses and job ads: rows as tall as their text, the arrow at
	 * the right where a phone's list puts it. The job ad's age follows its
	 * tags instead of sitting opposite the arrow.
	 */
	:is(article.wp-block-suissetec-eventkarte, article.wp-block-suissetec-kurskarte, article.wp-block-suissetec-stellenkarte) {
		min-height: 0;
		padding: 16px 64px 18px 18px;
	}

	:is(.wp-block-suissetec-eventkarte__titel, .wp-block-suissetec-kurskarte__titel, .wp-block-suissetec-stellenkarte__titel) {
		min-height: 0;
		max-width: none;
		margin-top: 12px;
	}

	:is(.wp-block-suissetec-eventkarte__pfeil, .wp-block-suissetec-kurskarte__pfeil, .wp-block-suissetec-stellenkarte__pfeil) {
		top: 50%;
		right: 14px;
		bottom: auto;
		width: 36px;
		height: 36px;
		margin-top: -18px;
	}

	.wp-block-suissetec-stellenkarte__tags {
		max-width: none;
	}

	.wp-block-suissetec-stellenkarte__seit {
		position: static;
		display: block;
		margin-top: 10px;
	}

	/*
	 * Search results: the excerpt in three lines and no button — the card is
	 * the link, and twenty cards each ended in "Mehr erfahren".
	 */
	.wp-block-suissetec-suchtreffer {
		padding: 22px 18px;
	}

	.wp-block-suissetec-suchtreffer__text {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.wp-block-suissetec-suchtreffer__knopf {
		display: none;
	}

	/* Rows of choices scroll sideways rather than stack three deep: the
	   search's areas, and tabs such as the course costs'. */
	:is(.wp-block-suissetec-suchfilter__bereiche ul, .wp-block-tab-list) {
		flex-wrap: nowrap;
		margin-inline: calc(-1 * var(--wp--custom--gutter));
		padding-inline: var(--wp--custom--gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}

	:is(.wp-block-suissetec-suchfilter__bereiche ul, .wp-block-tab-list)::-webkit-scrollbar {
		display: none;
	}

	:is(.wp-block-suissetec-suchfilter__bereiche li, .wp-block-tab-list button) {
		flex: none;
		white-space: nowrap;
	}

	.wp-block-suissetec-suchfilter__bereiche a {
		padding-block: calc(15px - 0.04em) calc(15px - 0.2225em);
	}

	/*
	 * Filters: field and choices 44px tall, and the field's text at 16px —
	 * below that iOS zooms the page in when the field takes the focus.
	 */
	.wp-block-suissetec-filter__suche input {
		height: 44px;
		font-size: var(--wp--preset--font-size--m);
	}

	.wp-block-suissetec-filter__leeren {
		top: 12px;
	}

	.wp-block-suissetec-filter__knopf {
		height: 44px;
	}

	.wp-block-suissetec-filter__option {
		padding-block: 12px;
	}

	/* Boxes in a grid drawn at one height so a row lines up ("01
	   Fachberatungen", 290px): in one column the height is only empty colour. */
	.is-layout-grid > .wp-block-group[style*="min-height"]:not(.is-style-kachel),
	.is-layout-grid > .wp-block-group[style*="min-height"]:not(.is-style-kachel) > .wp-block-group[style*="min-height"] {
		min-height: 0 !important;
	}

	/* Gradient tiles (the Fachbereiche, the Querverlinkung) as tall as their
	   text: drawn 400px tall, each was mostly empty colour on a phone. */
	.wp-block-group.is-style-karte.has-background > .wp-block-group[style*="min-height"] {
		min-height: 200px !important;
	}

	/*
	 * A contact person: the portrait as a small hexagon beside name and
	 * function, the phone and e-mail rows below — 230px rather than the
	 * desktop card's 500, whose photo filled the phone.
	 */
	.wp-block-group.is-style-karte:has(> .wp-block-image.is-style-sechseck[style*="margin-top:-"]) {
		display: grid;
		grid-template-columns: 88px minmax(0, 1fr);
		column-gap: 16px;
		align-content: start;
		min-height: 0 !important;
		padding: 18px 16px !important;
	}

	.wp-block-group.is-style-karte > .wp-block-image.is-style-sechseck[style*="margin-top:-"] {
		grid-row: 1 / span 2;
		align-self: center;
		margin: 0 !important;
	}

	.wp-block-group.is-style-karte > .wp-block-image.is-style-sechseck[style*="margin-top:-"] img {
		width: 88px !important;
	}

	.wp-block-group.is-style-karte:has(> .wp-block-image.is-style-sechseck[style*="margin-top:-"]) > p {
		align-self: end;
		margin: 0 !important;
	}

	.wp-block-group.is-style-karte:has(> .wp-block-image.is-style-sechseck[style*="margin-top:-"]) > p + p {
		align-self: start;
	}

	.wp-block-group.is-style-karte:has(> .wp-block-image.is-style-sechseck[style*="margin-top:-"]) > .wp-block-group {
		grid-column: 1 / -1;
		margin-top: 16px !important;
	}

	/*
	 * Breadcrumbs at the text size, the page itself on one line at most: a
	 * news title after "Home / News / Angebot /" took three lines, and the
	 * same title follows right below in full.
	 */
	.wp-block-breadcrumbs {
		font-size: var(--wp--preset--font-size--m);
		line-height: 24px;
	}

	.wp-block-breadcrumbs li:last-child:has([aria-current]) {
		display: block;
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	/* An event's date: a 68px square, so a long title beside it keeps its
	   words ("Gebäu-detechnik" beside the 89px square). */
	.wp-block-group.is-style-datum {
		width: 68px;
		min-height: 68px;
	}

	.wp-block-group.is-style-datum > :first-child {
		font-size: 22px;
	}

	.wp-block-group.is-style-datum > :last-child {
		font-size: 20px;
	}

	.wp-block-group.is-style-datum > .is-zeitraum {
		font-size: 15px;
		line-height: 22px;
	}

	/*
	 * A column of quicklinks is one white list with hairlines between its
	 * rows, as a phone's settings are, rather than separate boxes.
	 */
	.wp-block-buttons.is-vertical:has(> .wp-block-button.is-style-quicklink > a:not([href^="#"]), > .wp-block-button.is-style-quicklink > a[href="#"]) {
		gap: 0;
	}

	.wp-block-buttons.is-vertical > .wp-block-button.is-style-quicklink:has(> a:not([href^="#"]), > a[href="#"]) > .wp-block-button__link {
		border-radius: 0;
	}

	.wp-block-buttons.is-vertical > .wp-block-button.is-style-quicklink:has(> a:not([href^="#"]), > a[href="#"]) + .wp-block-button.is-style-quicklink > .wp-block-button__link {
		border-top-color: transparent;
	}

	.wp-block-buttons.is-vertical > .wp-block-button.is-style-quicklink:first-child:has(> a:not([href^="#"]), > a[href="#"]) > .wp-block-button__link {
		border-top-left-radius: var(--wp--custom--radius--s);
		border-top-right-radius: var(--wp--custom--radius--s);
	}

	.wp-block-buttons.is-vertical > .wp-block-button.is-style-quicklink:last-child:has(> a:not([href^="#"]), > a[href="#"]) > .wp-block-button__link {
		border-bottom-left-radius: var(--wp--custom--radius--s);
		border-bottom-right-radius: var(--wp--custom--radius--s);
	}

	/*
	 * A member company: e-mail, call and website as three buttons side by
	 * side, an icon over a word — the address goes to screen readers only.
	 */
	.wp-block-suissetec-betriebskarte .wp-block-suissetec-firma__zeilen {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
		gap: 8px;
	}

	.wp-block-suissetec-betriebskarte .wp-block-suissetec-firma__zeile {
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		min-height: 64px;
		padding: 8px 4px;
		font-size: var(--wp--preset--font-size--s);
		line-height: 18px;
		text-align: center;
	}

	.wp-block-suissetec-betriebskarte .wp-block-suissetec-firma__zeile::after {
		position: static;
		order: -1;
		width: 20px;
		height: 20px;
		margin: 0;
		background-color: currentColor;
		-webkit-mask-image: url(assets/img/website.svg);
		mask-image: url(assets/img/website.svg);
		transform: none;
	}

	.wp-block-suissetec-betriebskarte .wp-block-suissetec-firma__zeile:has(a[href^="mailto:"])::after {
		-webkit-mask-image: url(assets/img/mail.svg);
		mask-image: url(assets/img/mail.svg);
	}

	.wp-block-suissetec-betriebskarte .wp-block-suissetec-firma__zeile:has(a[href^="tel:"])::after {
		width: 17px;
		-webkit-mask-image: url(assets/icons/telefon.svg);
		mask-image: url(assets/icons/telefon.svg);
	}

	.wp-block-suissetec-betriebskarte .wp-block-suissetec-firma__zeile:hover::after {
		transform: none;
	}

	.wp-block-suissetec-betriebskarte__art {
		display: inline;
	}

	.wp-block-suissetec-betriebskarte__wert {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	/*
	 * The footer, a screen and a half tall on a phone, in about half that:
	 * less air above the logo, the quicklinks in two columns, Shop, Login,
	 * Profis finden and Mitglied werden as four buttons two by two (an icon
	 * over a word, as the company cards'), and the legal links 24px apart
	 * along their row, as drawn, but not down the rows they wrap into.
	 */
	footer.wp-block-template-part .wp-block-group.alignwide {
		padding-top: 40px !important;
	}

	footer.wp-block-template-part .wp-block-columns {
		margin-top: 28px !important;
		row-gap: 28px;
	}

	/* Columns as wide as their words: two equal halves cut "Mitglied-
	   schaft" at 320. */
	footer.wp-block-template-part .wp-block-navigation.is-vertical .wp-block-navigation__container {
		display: grid;
		grid-template-columns: repeat(2, max-content);
		gap: 0 40px;
	}

	footer.wp-block-template-part .wp-block-navigation-item__content {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
	}

	footer.wp-block-template-part .wp-block-column:has(> .is-style-linkbox) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		min-width: 0;
	}

	footer.wp-block-template-part .wp-block-column > .wp-block-group.is-style-linkbox {
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		min-height: 72px;
		margin: 0 !important;
		padding: 10px 6px;
		font-size: 15px;
		text-align: center;
	}

	footer.wp-block-template-part .wp-block-group.is-style-linkbox::after {
		display: none;
	}

	/* The four icons are drawn 15–22px wide; on one 22px line their words
	   line up. */
	footer.wp-block-template-part .wp-block-group.is-style-linkbox > .wp-block-icon {
		display: flex;
		flex-basis: auto !important;
		align-items: flex-end;
		justify-content: center;
		height: 22px;
	}

	footer.wp-block-template-part .wp-block-group.is-style-linkbox > .wp-block-icon svg {
		width: auto !important;
		max-width: 24px;
		height: 20px;
	}

	footer.wp-block-template-part .wp-block-navigation:not(.is-vertical),
	footer.wp-block-template-part .wp-block-navigation:not(.is-vertical) .wp-block-navigation__container {
		row-gap: 0;
		column-gap: 24px;
	}

	/*
	 * A page's head: the hexagon at a little over half the width rather
	 * than 70 % (300px tall at 390), less air above the kicker, and its
	 * facts (Nächster Start, Dauer, Kosten, Ort) two to a row, each starting
	 * at its column's left edge — core's flex row pushed the second of each
	 * pair to the right edge.
	 */
	.wp-block-group.is-style-kopfbereich > :is(.wp-block-image, .wp-block-post-featured-image) {
		width: 54%;
	}

	.wp-block-group.is-style-kopfbereich > .wp-block-group:first-child {
		padding-top: 40px !important;
		padding-bottom: 36px !important;
	}

	.wp-block-group.is-style-kopfbereich .wp-block-group:has(> .wp-block-group > .wp-block-icon) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 12px;
		margin-top: 32px !important;
	}

	.wp-block-group.is-style-kopfbereich .wp-block-group:has(> .wp-block-icon) {
		justify-content: flex-start;
		align-items: flex-start;
		gap: 8px;
		min-width: 0;
	}

	.wp-block-group.is-style-kopfbereich .wp-block-group:has(> .wp-block-icon) .has-l-font-size {
		font-size: var(--wp--preset--font-size--m) !important;
		line-height: 22px;
	}

	.wp-block-group.is-style-kopfbereich .wp-block-group:has(> .wp-block-icon) p[style*="font-weight:600"] {
		font-size: var(--wp--preset--font-size--m) !important;
		line-height: 22px !important;
	}

	/*
	 * A button's label may need two lines on a phone ("Ich möchte mehr
	 * Informationen"); set solid, the two lines touched. 1.2, with the
	 * padding 0.1em less each way so a one-line button keeps its height.
	 */
	:is(.wp-block-button:not([class*="is-style-"]), .wp-block-button.is-style-hell) > .wp-block-button__link:not([style*="padding"]) {
		padding-top: calc(15px - 0.14em);
		padding-bottom: calc(15px - 0.3225em);
		line-height: 1.2;
		text-wrap: balance;
	}

	/* Downloads: the badge 44px rather than 58, the name at 15px in the
	   room that leaves (four lines of 13px at 390). */
	.wp-block-file {
		gap: 14px;
		min-height: 66px;
		padding: 10px 18px 10px 10px;
	}

	.wp-block-file::before {
		width: 44px;
		height: 44px;
		padding: 23px 0 0 8px;
		background-size: 24px 28px;
		font-size: 9px;
		line-height: 9px;
	}

	.wp-block-file > a:not(.wp-block-file__button) {
		font-size: 15px;
		line-height: 21px;
	}

	/* A news list's card that is a block of its own (the press releases on
	   Über uns): 68px of air above its date was drawn for a 700px column. */
	.wp-block-post-template > li > .wp-block-group.has-background[style*="padding-top"] {
		padding: 24px 22px 26px !important;
	}

	/* Partner logos three to a row on 96px tiles, not two on 190px ones:
	   seven logos took 800px. Core's selector, to beat its two columns. */
	.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: calc((100% - 2 * var(--wp--style--unstable-gallery-gap, 16px)) / 3);
		height: 96px;
		padding: 14px;
		border-radius: var(--wp--custom--radius--s);
	}

	.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image img {
		max-height: 56px;
	}

	/* A message field of seven lines, not eleven. */
	.wpcf7 textarea {
		height: 180px;
	}

	/* A job ad's or course's labels 8px apart in both directions; the row's
	   desktop gap left "80-100%" and "Zürich" 20px apart, the next row 8. */
	.wp-block-group:has(> :is(p, .wp-block-group).is-style-etikett) {
		gap: 8px;
	}

	/* "Event teilen" and "Im Kalender speichern" side by side. */
	.wp-block-buttons.is-vertical:has(> .wp-block-button.is-style-teilen) {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	/*
	 * A grid of an icon over a text (the Vorteile on the membership pages,
	 * the list under "Aufgaben & Ziele"): on a phone each is a row, the icon
	 * 40px wide at the left and its text beside it — stacked and centred,
	 * five 90px icons made a list 1,300px tall. Core's grid becomes one
	 * column; the selector reaches only a group whose first block is a
	 * small image and that holds nothing but paragraphs besides.
	 */
	.is-layout-grid:has(> .wp-block-group > .wp-block-image.is-resized:first-child) {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 22px;
	}

	.is-layout-grid > .wp-block-group:has(> .wp-block-image.is-resized:first-child):not(:has(> :not(.wp-block-image, p))) {
		display: grid !important;
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 16px;
		align-items: start;
		text-align: left;
	}

	.is-layout-grid > .wp-block-group:has(> .wp-block-image.is-resized:first-child):not(:has(> :not(.wp-block-image, p))) > .wp-block-image {
		grid-row: 1 / span 3;
		width: 40px;
		margin: 2px 0 0 !important;
	}

	.is-layout-grid > .wp-block-group:has(> .wp-block-image.is-resized:first-child):not(:has(> :not(.wp-block-image, p))) > .wp-block-image img {
		width: 40px !important;
		height: 40px !important;
	}

	.is-layout-grid > .wp-block-group:has(> .wp-block-image.is-resized:first-child):not(:has(> :not(.wp-block-image, p))) > p {
		grid-column: 2;
		margin: 0 !important;
		text-align: left;
	}

	.is-layout-grid > .wp-block-group:has(> .wp-block-image.is-resized:first-child):not(:has(> :not(.wp-block-image, p))) > p + p {
		margin-top: 2px !important;
	}

	/*
	 * The numbered boxes (01 Fachberatungen …): number and title on one
	 * line, the text below, 20px in — drawn with a 109px head and 46px of
	 * padding, each box was 260px for two lines of text.
	 */
	.is-layout-grid > .wp-block-group.has-background:has(> .wp-block-group[style*="min-height"] > p:first-child + p) {
		padding: 20px 22px 22px !important;
	}

	.is-layout-grid > .wp-block-group.has-background > .wp-block-group[style*="min-height"]:has(> p:first-child + p) {
		display: flex;
		align-items: baseline;
		gap: 12px;
	}

	.is-layout-grid > .wp-block-group.has-background > .wp-block-group[style*="min-height"]:has(> p:first-child + p) > p {
		margin: 0 !important;
	}

	.is-layout-grid > .wp-block-group.has-background > .wp-block-group[style*="min-height"]:has(> p:first-child + p) > p:first-child {
		flex: none;
		font-size: var(--wp--preset--font-size--l) !important;
		opacity: 0.8;
	}
}

/*
 * Phones: the lead and card type one step down — 20px over the 330px of a
 * phone's column ran to five or six words a line. A token, so every block
 * set to "L" follows.
 */
@media (max-width: 599px) {
	:root:root {
		--wp--preset--font-size--l: 18px;
	}
}

/*
 * Cards with the picture beside the text stack on phones, the picture on top
 * at a sensible height (its minimum height is set on the block, inline).
 */
@media (max-width: 599px) {
	.wp-block-group.is-style-karte:has(> .wp-block-cover):not(.is-vertical) {
		flex-direction: column;
	}

	.wp-block-group.is-style-karte:has(> .wp-block-cover):not(.is-vertical) > * {
		flex-basis: auto;
		width: 100%;
	}

	.wp-block-group.is-style-karte:not(.is-vertical) > .wp-block-cover {
		min-height: 200px !important;
	}

	/* An event row keeps date and title side by side; the whole row is the
	   link, so the arrow gives way to the title. */
	.wp-block-group.is-style-karte:has(> .is-style-datum) > .wp-block-read-more {
		display: none;
	}
}

/*
 * A cover with its card to one side (the CTA) hid the whole photo on a phone,
 * where the card takes the full width. The card moves down and the photo keeps
 * the top of the cover. A margin, not padding: the padding is inline. Core's
 * own selector plus the position, to beat its `margin: 0` on the container.
 */
@media (max-width: 599px) {
	.wp-block-cover.has-custom-content-position.has-custom-content-position:is(.is-position-center-right, .is-position-center-left) .wp-block-cover__inner-container {
		margin-top: 55vw;
	}
}

/* Logo slider: three in view on a tablet, two on a phone. */
@media (max-width: 1023px) {
	.suissetec-slider.ist-logos > .wp-block-gallery.has-nested-images figure.wp-block-image {
		flex-basis: calc((100% - 42px) / 3) !important;
	}
}

/*
 * On a phone the row is swiped and the arrows go: beside them a tile was
 * 90px wide at 320px and its logo 47px, too small to read.
 */
@media (max-width: 599px) {
	.suissetec-slider.ist-logos {
		display: block;
	}

	.suissetec-slider.ist-logos > .suissetec-slider__pfeil {
		display: none;
	}

	.suissetec-slider.ist-logos > .wp-block-gallery.has-nested-images figure.wp-block-image {
		flex-basis: calc((100% - 21px) / 2) !important;
		height: 140px;
		padding: 20px;
	}
}

/* Haupt-Event below 782px: the picture under the text, as the Box mit Bild. */
@media (max-width: 781px) {
	.wp-block-suissetec-hauptevent {
		flex-direction: column;
	}

	.wp-block-suissetec-hauptevent__bild {
		flex: none;
		min-height: 0;
		aspect-ratio: 3 / 2;
	}
}

/*
 * Sektionen below 782px: list above, map below. The list keeps a height of
 * its own to scroll in; an open section is as tall as it needs to be.
 */
@media (max-width: 781px) {
	.wp-block-suissetec-sektionen {
		grid-template-columns: minmax(0, 1fr);
	}

	:is(.wp-block-suissetec-sektionen__liste, .wp-block-suissetec-sektionen__details) {
		position: static;
	}

	.wp-block-suissetec-sektionen__liste {
		max-height: 380px;
	}

	.wp-block-suissetec-sektionen__karte {
		min-height: 0;
		aspect-ratio: auto;
	}
}

/* The team list's department names: closer together on a phone. */
@media (max-width: 599px) {
	.wp-block-post-template.is-layout-grid > li.ist-gruppe {
		margin-top: 16px;
	}
}

/* ==========================================================================
   Sektionssite — a section's site in the network (inc/netzwerk.php)
   ========================================================================== */

/*
 * The header of a section starts with the bubble all sites share (213 × 95,
 * where the main site has its logo), a line and the section's logo, 188px
 * wide in the design: the uploaded one, or the word mark over the section's
 * name. Both shrink with the window, at the design's share of 1920.
 */
header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-image img {
	display: block;
	width: clamp(132px, 11.1vw, 213px);
	height: auto;
}

header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > :is(.wp-block-image, .wp-block-site-logo) img {
	display: block;
	width: clamp(116px, 9.8vw, 188px);
	height: auto;
}

/* The link around a logo is a box of its own height, not a line of text
   (as a line the bubble's figure was 104px tall for a 95px picture). */
header.wp-block-template-part .wp-block-group .wp-block-image a {
	display: block;
}

/*
 * The name, 22px under the 188px word mark, starts where the word
 * "suissetec" does: after the mark's symbol, 17.2% of its width.
 */
header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > p {
	margin-inline-start: calc(clamp(116px, 9.8vw, 188px) * 0.172);
	font-size: clamp(14px, 1.15vw, 22px);
}

/*
 * 1200 to 1499px: two logos and a menu whose items mostly lead to the main
 * site (each with its arrow) need 1258px in the 20px type, and the card has
 * 1091 at 1200: "Angebote" and its arrow stood on two lines up to 1400. In
 * 16px with 20px between the items they need 1034.
 */
@media (min-width: 1200px) and (max-width: 1499px) {
	header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-group > .wp-block-image) > .wp-block-group > .wp-block-group > .wp-block-navigation,
	header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-group > .wp-block-image) > .wp-block-group > .wp-block-group > .wp-block-navigation .wp-block-navigation__container,
	header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-group > .wp-block-image) > .wp-block-group > .wp-block-group > .wp-block-buttons .wp-block-button__link {
		font-size: var(--wp--preset--font-size--m) !important;
	}

	header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-group > .wp-block-image) > .wp-block-group > .wp-block-group > .wp-block-navigation .wp-block-navigation__container {
		gap: 20px;
	}
}

/* A section's menu item stays on one line, with its arrow. */
header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-group > .wp-block-image) > .wp-block-group > .wp-block-group > .wp-block-navigation .wp-block-navigation__container > li > .wp-block-navigation-item__content .wp-block-navigation-item__label {
	white-space: nowrap;
}

/*
 * Phones: the bar's one row has room for one logo beside Profis finden,
 * search and menu, and it is the section's. The right-hand groups hand
 * their items to the bar as on the main site. The call to action goes
 * without its arrow there: with it the button was 135px wide and its text
 * on two lines at 393 (the dialog still says where the link leads).
 */
@media (max-width: 599px) {
	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > .wp-block-buttons .wp-block-button__link.ist-extern {
		white-space: nowrap;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > .wp-block-buttons .wp-block-button__link.ist-extern::after {
		display: none;
	}

	header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-group > .wp-block-image) {
		align-items: center;
		gap: 2px;
	}

	header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-group > .wp-block-image) > .wp-block-group:last-child,
	header.wp-block-template-part .wp-block-group.alignwide:has(> .wp-block-group > .wp-block-image) > .wp-block-group:last-child > .wp-block-group {
		display: contents;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group:has(> .wp-block-image) {
		min-height: 43px;
		margin: 9px auto 9px 0 !important;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-image {
		display: none;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group:has(> .wp-block-image) > .wp-block-group {
		gap: 3px;
		min-height: 0 !important;
		padding-left: 0 !important;
		border-left: 0 !important;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > :is(.wp-block-image, .wp-block-site-logo) img {
		width: 96px;
	}

	header.wp-block-template-part .wp-block-group.alignwide > .wp-block-group > .wp-block-group > p {
		margin-inline-start: 16.5px;
		font-size: 12px;
	}
}

/* The overlay's bar: the same logo, and gone while a submenu shows "Zurück". */
header.wp-block-template-part .wp-block-navigation__overlay-container > .wp-block-group:first-child > .wp-block-group img {
	display: block;
	width: 96px;
	height: auto;
}

header.wp-block-template-part .wp-block-navigation__overlay-container > .wp-block-group:first-child > .wp-block-group > p {
	margin-inline-start: 16.5px;
	font-size: 12px;
}

header.wp-block-template-part .wp-block-navigation__overlay-container:has([aria-expanded="true"]) > .wp-block-group:first-child > .wp-block-group {
	display: none;
}

/*
 * News / Events (Sektion + Hauptsite): the lists of the main site's
 * Startseite with their gaps (lead 20px and 4.55%, row of three 21px and
 * 2.58%, events 19px). The column counts carry no weight of their own, so
 * the post template's rules for narrower windows apply as on the main site.
 */
.wp-block-suissetec-sektionsliste {
	display: flex;
	flex-direction: column;
	gap: 21px;
}

.wp-block-suissetec-sektionsliste > .wp-block-post-template {
	display: grid;
	gap: 21px 2.58%;
	margin: 0;
}

.wp-block-suissetec-sektionsliste > .wp-block-post-template.is-style-aufmacher {
	gap: 20px 4.55%;
}

.wp-block-suissetec-sektionsliste.ist-events > .wp-block-post-template {
	gap: 19px;
}

:where(.wp-block-suissetec-sektionsliste > .wp-block-post-template.columns-2) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.wp-block-suissetec-sektionsliste > .wp-block-post-template.columns-3) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* An entry of the main site leaves the section's site: its arrow says so. */
.wp-block-post.ist-hauptsite .wp-block-suissetec-beitragskarte__pfeil::before,
.wp-block-post.ist-hauptsite .wp-block-read-more.is-style-pfeil::before {
	width: 11.92px;
	height: 11.92px;
	-webkit-mask-image: url(assets/img/pfeil-extern.svg);
	mask-image: url(assets/img/pfeil-extern.svg);
}

/* "Hier bleiben" in the dialog: the light button is white on white without its line. */
.wp-block-group.is-style-popup .wp-block-button.is-style-hell .wp-block-button__link {
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--schwarz);
}

/*
 * The way back to the section a visitor came from (assets/js/netzwerk.js),
 * above the breadcrumbs, which stay where they are: the link takes 32px of
 * the space above them (its 20px line and 12px to the breadcrumbs).
 * Lüftung on the grey page is 5.5:1.
 */
.ist-rueckweg {
	margin-block: calc(clamp(56px, 5.86vw, 112px) - 32px) 0 !important;
	font-size: var(--wp--preset--font-size--m);
	line-height: 20px;
}

.ist-rueckweg + .wp-block-breadcrumbs {
	margin-top: 12px !important;
}

/* A page without breadcrumbs (the Startseite): at the top, on the wide column. */
.ist-rueckweg.ist-oben {
	box-sizing: border-box;
	width: min(100% - 2 * var(--wp--custom--gutter), var(--wp--style--global--wide-size));
	margin: 4px auto 14px !important;
}

.ist-rueckweg a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--lueftung);
	font-weight: 500;
	text-decoration: none;
}

.ist-rueckweg a::before {
	content: "";
	flex: none;
	width: 11.8px;
	height: 11px;
	background-color: currentColor;
	-webkit-mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	mask: url(assets/img/pfeil.svg) no-repeat center / contain;
	transform: rotate(180deg);
}

.ist-rueckweg a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
