/* Cascade layer — see the @layer declaration at the top of base.css. */
@layer layouts {

/**
 * Styles for the legacy content shortcodes ported from the GeneratePress
 * child theme (inc/shortcodes.php). Loaded only on pages that render one.
 *
 * Extracted from the child theme's main.css: the query loops (section 4),
 * the crew grid and modals (section 6), the logo sliders (section 7), the
 * mask helpers and exactly the utility classes the shortcode markup uses.
 *
 * The palette this file builds on (--green-2, --black-1, --grey-text …) comes
 * from base.css, which is always loaded before it.
 */

/* ---------------------------------------------------------------- Filter + load more */

.wucht-filter {
	text-align: center;
}

.wucht-filter__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	/* Text-only buttons: the 8px they once shared read as one run-on line. */
	gap: 8px 18px;
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

/* On the insights overview the filter sits hard left, under the left-aligned
   heading (17.08.2026). The shared default stays centred — the use case
   overview keeps its centred row. */
.section--insight-loop .wucht-filter {
	text-align: left;
}

.section--insight-loop .wucht-filter__list {
	justify-content: flex-start;
}

.wucht-filter__list li {
	margin: 0;
	padding: 0;
}

.wucht-filter__button {
	border: none;
	padding: 0;
	color: var(--color-text);
	background: none;
	cursor: pointer;
}

.wucht-filter__button[aria-pressed="true"],
.wucht-filter__button:hover,
.wucht-filter__button:focus-visible {
	text-decoration: underline;
	outline: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	color: var(--color-text);
	background: none;
}

.wucht-load-more {
	display: flex;
	justify-content: center;
	margin-top: 45px;
}

/*
 * The button itself is `.button .button--primary` from base.css — the pill with
 * the circled arrow, same as every other call to action on the site. What used
 * to stand here was a rounded green box with five !important declarations,
 * inherited from the old site and out of step with everything around it.
 *
 * Only the two things that are specific to a load-more button remain.
 */

/* Hides against .button's `display: inline-flex` — this file is in the
   `layouts` layer and base.css in `components`, so the layer settles it and the
   `button.` that used to be here for specificity is no longer needed. */
.wucht-load-more__button[hidden] {
	display: none;
}

.wucht-load-more__button:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* ---------------------------------------------------------------- Utilities
   Only the classes the shortcode markup itself carries. */

.fw-300 { font-weight: 300 !important; }
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }

.ls-1 { letter-spacing: 1px !important; }
.ls-2 { letter-spacing: 2px !important; }
.ls-min { letter-spacing: -1px !important; }

.font-32 { font-size: clamp(1.25rem, 2.222vw, 2rem) !important; }
.font-28 { font-size: clamp(1.25rem, 1.944vw, 1.75rem) !important; }
.font-20 { font-size: 1.25rem !important; }
.font-14 { font-size: 0.875rem !important; }
.font-12-8 { font-size: 0.8rem !important; }

.mbn { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: 0.5em !important; }
.mb-l { margin-bottom: 1.25em !important; }
.mb-xl { margin-bottom: 1.5em !important; }
.mt-xs { margin-top: 0.5em !important; }

.lh-1-2 { line-height: 1.2 !important; }
/* Capitals for a short label, with the tracking that keeps them legible —
   see --caps-tracking in base.css. Labels only, never copy. */
.tt-uppercase { text-transform: uppercase !important; letter-spacing: var(--caps-tracking) !important; }
.display-block { display: block !important; }

/* ---------------------------------------------------------------- Masks */

.mask-quad-unten-rechts,
.mask-quad-unten-links,
.mask-quad-oben-rechts,
.mask-quad-oben-links,
.mask-16-9-unten-links {
	position: relative !important;
	width: 100% !important;
	height: auto !important;
	overflow: hidden !important;
}

.mask-quad-unten-rechts img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	mask-image: url("../images/shortcodes/Mask-quadratisch-unten-rechts.svg") !important;
	mask-repeat: no-repeat !important;
	mask-size: cover !important;
	mask-position: center !important;
	-webkit-mask-image: url("../images/shortcodes/Mask-quadratisch-unten-rechts.svg") !important;
	-webkit-mask-repeat: no-repeat !important;
	-webkit-mask-size: cover !important;
	-webkit-mask-position: center !important;
}

.mask-quad-unten-links img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	mask-image: url("../images/shortcodes/Mask-quadratisch-unten-links.svg") !important;
	mask-repeat: no-repeat !important;
	mask-size: cover !important;
	mask-position: center !important;
	-webkit-mask-image: url("../images/shortcodes/Mask-quadratisch-unten-links.svg") !important;
	-webkit-mask-repeat: no-repeat !important;
	-webkit-mask-size: cover !important;
	-webkit-mask-position: center !important;
}

.mask-quad-oben-links img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	mask-image: url("../images/shortcodes/Mask-quadratisch-oben-links.svg") !important;
	mask-repeat: no-repeat !important;
	mask-size: cover !important;
	mask-position: center !important;
	-webkit-mask-image: url("../images/shortcodes/Mask-quadratisch-oben-links.svg") !important;
	-webkit-mask-repeat: no-repeat !important;
	-webkit-mask-size: cover !important;
	-webkit-mask-position: center !important;
}

.mask-quad-oben-rechts img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	mask-image: url("../images/shortcodes/Mask-quadratisch-oben-rechts.svg") !important;
	mask-repeat: no-repeat !important;
	mask-size: cover !important;
	mask-position: center !important;
	-webkit-mask-image: url("../images/shortcodes/Mask-quadratisch-oben-rechts.svg") !important;
	-webkit-mask-repeat: no-repeat !important;
	-webkit-mask-size: cover !important;
	-webkit-mask-position: center !important;
}

.mask-16-9-unten-links img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	mask-image: url("../images/shortcodes/Wucht-Mask-16-9-unten-links.png") !important;
	mask-repeat: no-repeat !important;
	mask-size: cover !important;
	mask-position: center !important;
	-webkit-mask-image: url("../images/shortcodes/Wucht-Mask-16-9-unten-links.png") !important;
	-webkit-mask-repeat: no-repeat !important;
	-webkit-mask-size: cover !important;
	-webkit-mask-position: center !important;
}

/* Scoped fallback for the Kadence ratio markup wucht_crew_figure() prints, so
   the portraits stay square even when the Kadence Blocks stylesheet is not on
   the page. Same values as Kadence, so nothing fights when it is. */
.crew-grid .kb-is-ratio-image,
.crew-modal .kb-is-ratio-image {
	position: relative;
	overflow: hidden;
	padding-bottom: 100%;
}

.crew-grid .kb-is-ratio-image img,
.crew-modal .kb-is-ratio-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------------------------------------------------------------- Testimonials */

.testimonial-query {
	display: flex !important;
	flex-direction: column !important;
	gap: 64px !important;
	list-style-type: none !important;
	margin-left: 0;
}
@media (max-width: 1180px) {
	.testimonial-query {
		gap: 42px !important;
	}
}

.testimonial-item {
	background: var(--white) !important;
	padding: 32px 32px 16px 32px;
	border-radius: 23px !important;
	max-width: 80%;
}
@media (max-width: 768px) {
	.testimonial-item {
		max-width: 100%;
	}
}

.testimonial-query .testimonial-item:nth-child(odd) {
	align-self: start !important;
}

.testimonial-query .testimonial-item:nth-child(even) {
	align-self: end !important;
}

.testimonial-item .testimonial-content {
	color: black;
}

.testimonial-item .testimonial-title {
	margin-bottom: 0;
}

.testimonial-item .testimonial-image {
	mask-image: url("../images/shortcodes/circle.svg");
	mask-size: auto;
	mask-repeat: no-repeat;
	mask-position: center;
	max-width: 50px !important;
	aspect-ratio: 1/1;
	object-fit: cover;
}

.testimonial-item .testimonial-contact {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
}

/* ---------------------------------------------------------------- Insights */

/*
 * The four token reads below are the only edit this legacy file has had. They
 * replace hard `white` / `rgb(33,33,33)`, which came from the old site where
 * every insight section was dark. The values resolve identically on a dark
 * section (--color-text is white there, --color-surface is #212121), and on a
 * light one they now come out right by themselves — which is what
 * layouts/insight-loop.css used to patch back in with four context rules.
 */
/*
 * padding: 0 is load-bearing: the UA gives every <ul> 40px of
 * padding-inline-start, and unreset it pushed the whole grid 40px right of
 * the filter row above it — the cards never lined up with "Alle".
 */
.insights-list {
	display: flex;
	flex-wrap: wrap;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0;
	column-gap: 24px;
	justify-content: flex-start;
	color: var(--color-text);
	list-style-type: none;
}

/*
 * The card is a visible box at rest (17.08.2026) — surface tone plus hairline,
 * the same treatment as the content cards. It used to be transparent with a
 * hover panel that bled 24px past the content (an ::before on the card at
 * opacity 0); as a permanent surface that bleed would have closed the 48px
 * column gap to zero, so the room the panel took from outside now comes from
 * padding inside, and the hover moved into colour: border and headline take
 * the accent.
 */
/*
 * No height here: the items are flex children, and the default stretch is
 * what makes the two boxes of a row come out equally tall — the `height: 100%`
 * that used to sit on the li is exactly what switched the stretch off, which
 * is why a short card ended next to a tall one.
 */
.insight-item {
	width: calc(50% - 12px);
	box-sizing: border-box;
	padding: 24px;
	background: var(--color-surface);
	border: 1px solid var(--color-raised-border);
	border-radius: 24px;
	margin-bottom: 24px;
	transition: border-color var(--transition);
}

/*
 * On the standard grey section --color-surface IS the section background — a
 * box painted with it is invisible except for its hairline. There the card
 * takes the raised white the content cards use; every other background keeps
 * the surface tone, which is what draws the lighter panel on dark sections.
 */
.section--bg-light .insight-item {
	background: var(--color-raised);
}

.insight-item:hover,
.insight-item:focus-within {
	border-color: var(--color-accent-ink);
}

.insight-item:hover .insight-title,
.insight-item:focus-within .insight-title {
	color: var(--color-accent-ink);
}

/*
 * The anchor stretches the hit area over the whole card (::after below), so
 * the card opens the article while the anchor's accessible name stays just
 * the headline.
 */
.insight-card {
	position: relative;
	display: block;
}

.insight-link {
	text-decoration: none;
	color: inherit;
}

.insight-link::after {
	content: "";
	position: absolute;
	/* Over the whole card, not just the article's content box: the image is
	   pulled out into the padding (below), and inset: 0 would leave it and
	   the padding ring outside the stretched link's hit area. */
	inset: -24px;
}

/*
 * The picture bleeds to the card's edge on top, left and right — the negative
 * margins are the card's own padding, so the figure sits against the inside
 * of the hairline border. The bottom margin keeps the distance to the date
 * exactly where it was (it collapses with the date's own margin-top, like
 * the figure default did before).
 */
.insight-image {
	margin: -24px -24px var(--space-s);
}

.insight-image img {
	/* The card's 24px outer radius minus the 1px border, so the picture
	   follows the corner instead of leaving two white slivers. Square at the
	   bottom, where it meets the text. */
	border-radius: 23px 23px 0 0;
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	transition: all 0.3s ease-in-out;
}

time.insight-date {
	display: block;
	font-size: 0.9rem;
	margin: 15px 0 10px;
}

.insight-title {
	font-size: 2rem;
	font-weight: 500;
	letter-spacing: -1px;
	line-height: 1.1;
	margin-top: 0;
	transition: color var(--transition);
}

@media (max-width: 768px) {
	.insights-list {
		flex-direction: column;
	}
	.insight-item {
		width: 100%;
	}
}

/* ---------------------------------------------------------------- Use cases */

.usecase-query {
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 1440px;
	margin-inline: auto;
}

/*
 * The card is the clickable surface, the anchor is only the customer name —
 * see the note above the renderers in inc/shortcodes.php for why. ::after
 * stretches the hit area back over the whole card without the anchor having to
 * swallow the card's text as its accessible name.
 *
 * Anything that has to stay selectable or clickable in its own right needs a
 * z-index above this; nothing in these cards does.
 */
.usecase-card {
	position: relative;
}

.usecase-link {
	text-decoration: none;
	/* The customer name reads as a heading, not as a link — it only became an
	   anchor so the card would stop swallowing its own text as the link name.
	   Without this it inherits the global green. */
	color: inherit;
}

.usecase-link::after {
	content: "";
	position: absolute;
	inset: 0;
	/*
	 * Above the positioned bits inside the card. `.aufgabe-icon` and
	 * `.kontext-icon` are position: relative so their arrows can be placed, and
	 * a positioned sibling paints over an unpositioned overlay — measured, the
	 * bottom-right ninth of the card was not clickable without this.
	 */
	z-index: 1;
}

/*
 * .usecase-entry is the <li> and carries nothing; the layout classes sit on the
 * <article> inside it, so every rule written against .usecase-item still hits
 * the same box it always did.
 */
.usecase-entry {
	list-style: none;
}

.usecase-item {
	display: flex;
	gap: 24px;
	margin-bottom: 120px;
}

.usecase-query > .usecase-entry:last-child .usecase-item {
	margin-bottom: 64px;
}

.usecase-item.odd {
	flex-direction: row;
}

.usecase-item.even {
	flex-direction: row-reverse;
}

.usecase-column-1,
.usecase-column-2 {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: stretch;
}

.usecase-column-1 .usecase-image {
	position: relative;
	width: 100%;
	max-width: 889px;
	aspect-ratio: 16/9;
	overflow: hidden;
	margin: 0 auto;
	flex-shrink: 0;
}

.usecase-image img,
.usecase-image video {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 24px;
}

.usecase-column-2 {
	display: flex;
	flex-direction: column;
	justify-content: stretch;
	gap: 16px;
}

.usecase-column-2.main-query {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	/* White with the card's grey hairline (21.08.2026), pinned rather than
	   the raised tokens: the use-case panel stays white on every section
	   background, dark ones included — decided so, it is not meant to turn
	   into the #111 plate the cards become there. A painted surface carries
	   its own ink. */
	background: var(--white);
	color: var(--black-1);
	border: 1px solid var(--grey-1);
	border-radius: 24px;
	padding: 24px;
}

.aufgabe-icon {
	position: relative;
}

.kontext-icon-main-query img {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 32px;
	height: 32px;
	transition: all ease-in-out 0.3s;
}

/*
 * Hover hangs on the card, not on the anchor: the anchor only wraps the
 * customer name, so hovering the picture or the panel would otherwise do
 * nothing even though the whole card is still clickable. :focus-within keeps
 * the keyboard on the same footing — tabbing to the link turns the arrow.
 */
.usecase-card:hover .kontext-icon-main-query img,
.usecase-card:focus-within .kontext-icon-main-query img {
	transform: rotate(45deg);
}

@media (max-width: 900px) {
	.usecase-item {
		flex-direction: column !important;
		gap: 24px;
	}
	.usecase-column-1 .usecase-image {
		width: 100%;
		max-width: 100%;
		aspect-ratio: 16/9;
		position: relative;
		margin: 0 auto;
	}
	.usecase-column-2 {
		gap: 16px;
	}
	.usecase-item,
	.usecase-column-2 {
		gap: 12px;
	}
}

.aufgabe-text {
	margin-right: 32px !important;
	line-height: 1.2 !important;
}

/* ---------------------------------------------------------------- Crew */

.crew-grid,
.crew-grid *,
.crew-modal,
.crew-modal * {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	box-sizing: border-box;
}

.crew-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

@media (max-width: 1024px) {
	.crew-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.crew-grid {
		grid-template-columns: 1fr;
	}
}

.crew-card {
	display: flex;
	flex-direction: column;
}

.crew-info {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.crew-name {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 0.25rem;
}

.crew-funktion {
	font-size: 0.9rem;
	color: inherit;
	margin: 0;
}

.crew-bottom {
	margin-top: auto;
	padding-top: 0.75rem;
}

.crew-links {
	list-style: none;
	padding: 0;
	margin: 0 0 0.15rem;
	display: flex;
	flex-direction: column;
}

.crew-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.crew-link:hover {
	opacity: 0.7;
}

.crew-mehr {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	background: none;
	border: none;
	padding: 0;
	font-size: 0.8rem;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.crew-mehr:hover {
	opacity: 0.7;
	background: transparent;
	color: #000 !important;
	text-decoration: underline !important;
}

.crew-mehr:focus {
	background: transparent;
	color: #000 !important;
}

.crew-mehr:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
	background: transparent;
}

.crew-card--jobs .crew-funktion {
	padding-bottom: 6px;
}

/* Native <dialog>: top layer, centering and Escape come from the browser. */
dialog.crew-modal {
	border: none;
	padding: 0;
	background: transparent;
	width: calc(100% - 2rem);
	max-width: 1100px;
	max-height: 90vh;
}

dialog.crew-modal::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

/* No page scroll behind an open modal */
body:has(dialog.crew-modal[open]) {
	overflow: hidden;
}

.crew-modal__inner {
	position: relative;
	background: #fff;
	border-radius: 1rem;
	width: 100%;
	max-width: 1100px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
}

.crew-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: transparent !important;
	border: none;
	padding: 0.25rem;
	cursor: pointer;
	font-size: 1.25rem;
	color: #000 !important;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
}

.crew-modal__close,
.crew-modal__close:link,
.crew-modal__close:visited,
.crew-modal__close:hover,
.crew-modal__close:active,
.crew-modal__close:focus,
.crew-modal__close:focus-visible,
.crew-modal__close span {
	color: #000 !important;
	background: transparent !important;
}

.crew-modal__close:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.crew-modal__body {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 2rem;
}

@media (max-width: 640px) {
	.crew-modal__body {
		grid-template-columns: 1fr;
	}

	.crew-modal__inner {
		padding: 20px;
	}
}

.crew-modal__funktion {
	margin: 0.75rem 0 0.5rem;
	font-size: 0.875rem;
	line-height: 1.4;
}

.crew-modal__liste {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.875rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.crew-modal__titel {
	font-size: 1.5rem;
	margin: 0 0 1rem;
}

.crew-modal__text {
	font-size: 0.9375rem;
	line-height: 1.65;
}

.crew-modal__text p + p {
	margin-top: 1em;
}

/* ---------------------------------------------------------------- Logo sliders */

/* Pure CSS marquee (was Splide + AutoScroll): the logo set is rendered in
   even copies, the track slides by half its own width, so the loop repeats
   seamlessly. Duration comes from the shortcode via --marquee-duration. */
.logo-slider-container,
.hotel-logo-slider-container {
	width: 100%;
	padding: 20px 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
}

.logo-marquee {
	display: flex;
	width: max-content;
	animation: wucht-marquee var(--marquee-duration, 60s) linear infinite;
}

.logo-marquee__set {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

@keyframes wucht-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.logo-marquee {
		animation-play-state: paused;
	}
}

.logo-slide-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	height: 100%;
	margin: 0;
}

.logo-slider-image,
.hotel-logo-slider-image {
	max-height: 90px;
	width: auto;
	object-fit: contain;
}

} /* @layer layouts */
