.ehnes-kacheln {
	position: relative;
	--ehnes-kacheln-sichtbar: 3;
	--ehnes-kacheln-abstand: 22px;
}

.ehnes-kacheln__spur {
	display: flex;
	gap: var(--ehnes-kacheln-abstand);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.ehnes-kacheln__spur::-webkit-scrollbar {
	display: none;
}

.ehnes-kachel {
	flex: 0 0 calc((100% - (var(--ehnes-kacheln-sichtbar) - 1) * var(--ehnes-kacheln-abstand)) / var(--ehnes-kacheln-sichtbar));
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

.ehnes-kachel__bild {
	width: 100%;
	object-fit: cover;
	display: block;
}

.ehnes-kachel__fuss {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: auto;
}

.ehnes-kachel__claim {
	min-height: 2.6em;
}

.ehnes-kachel__zeile {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	min-height: 40px;
}

.ehnes-kachel__logo {
	width: auto;
	object-fit: contain;
	display: block;
}

.ehnes-kachel__name {
	max-width: 230px;
}

.ehnes-kachel__knopf {
	flex: none;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.ehnes-kacheln__pfeil {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	padding: 8px;
}

.ehnes-kacheln__pfeil--zurueck { left: -36px; }
.ehnes-kacheln__pfeil--weiter  { right: -36px; }

.ehnes-kacheln__pfeil[hidden] { display: none; }

.ehnes-kacheln__punkte {
	display: flex;
	justify-content: center;
	gap: 10px;
}

/* Die Punkte sind 8–9 px gross; die Tippflaeche wird per Pseudoelement auf 24 px gezogen. */
.ehnes-kacheln__punkte .ehnes-kacheln__punkt::before {
	content: '';
	position: absolute;
	inset: 50% auto auto 50%;
	width: 24px;
	height: 24px;
	transform: translate(-50%, -50%);
}

/* Spezifität 0,2,0: der Kit-Buttonstil (.elementor-kit-N button) trifft sonst Punkte und Pfeile. */
.ehnes-kacheln__punkte .ehnes-kacheln__punkt {
	position: relative;
	border: 0;
	border-radius: 50%;
	padding: 0;
	min-width: 0;
	min-height: 0;
	line-height: 0;
	box-shadow: none;
	cursor: pointer;
	flex: none;
}

.ehnes-kacheln .ehnes-kacheln__pfeil,
.ehnes-hero .ehnes-kacheln__pfeil {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ehnes-hero {
	position: relative;
}

.ehnes-hero__spur {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.ehnes-hero__spur::-webkit-scrollbar {
	display: none;
}

.ehnes-hero__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.ehnes-hero__bild,
.ehnes-hero__schleier {
	position: absolute;
	inset: 0;
}

/* Spezifität 0,2,0: Elementors „.elementor img { height: auto }“ gewinnt sonst. */
.ehnes-hero .ehnes-hero__bild {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.ehnes-hero__bahn {
	position: relative;
	width: 100%;
	margin-inline: auto;
}

.ehnes-hero__inhalt {
	width: 100%;
}

.ehnes-hero__eyebrow { margin: 0 0 14px; }
.ehnes-hero__titel   { margin: 0; }
.ehnes-hero__text    { margin: 20px 0 0; }

.ehnes-hero__ctas {
	display: flex;
	gap: 14px;
	margin-top: 30px;
	flex-wrap: wrap;
}

.ehnes-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border: 1px solid transparent;
}

.ehnes-hero .ehnes-kacheln__pfeil {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ehnes-hero .ehnes-kacheln__pfeil--zurueck { left: 22px; }
.ehnes-hero .ehnes-kacheln__pfeil--weiter  { right: 22px; }

.ehnes-hero__punkte {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	gap: 8px;
	z-index: 2;
}

.ehnes-siegel {
	display: block;
	flex: none;
	--ehnes-siegel-farbe: #1D1D1B;
}

.ehnes-filter__zeile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.ehnes-filter__feld {
	appearance: none;
	border: 1px solid;
	cursor: pointer;
	/* Themes setzen select auf 100 % – sonst stapeln sich die fünf Felder. */
	width: auto;
	flex: 0 1 auto;
	max-width: 100%;
	background-image: url( 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" fill="none" stroke="%231D1D1B" stroke-width="2"/></svg>' );
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
}

.ehnes-filter .ehnes-filter__suchen,
.ehnes-filter .ehnes-filter__mehr {
	border: 1px solid transparent;
	cursor: pointer;
	min-width: 0;
	min-height: 0;
	box-shadow: none;
}

.ehnes-filter .ehnes-filter__mehr {
	background: none;
}

.ehnes-filter .ehnes-filter__reset {
	margin-inline-start: auto;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ehnes-filter__aktionen {
	display: flex;
	flex-wrap: wrap;
	margin-top: 14px;
}

.huber-stellenlogo .elementor-widget-container,
.huber-stellenlogo figure,
.huber-stellenlogo img {
	margin-inline: 0;
}

.ehnes-filter__mehrzeile {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}

.ehnes-filter__leer {
	margin: 18px 0 0;
}

.e-loop-item.ehnes-aus {
	display: none !important;
}

.ehnes-collage {
	display: grid;
	margin-inline: auto;
	align-items: start;
	--ehnes-collage-versatz: 1;
}

.ehnes-collage__spalte {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin-top: calc(var(--ehnes-collage-spalte-versatz, 0px) * var(--ehnes-collage-versatz, 1));
}

.ehnes-lightbox {
	border: 0;
	padding: 56px 24px;
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: 100%;
	background: none;
	overflow: auto;
	overscroll-behavior: contain;
}

.ehnes-lightbox:not([open]) {
	display: none;
}

.ehnes-lightbox__panel {
	position: relative;
	width: 100%;
	margin-inline: auto;
	--ehnes-lightbox-x-abstand: 20px;
}

.ehnes-lightbox .ehnes-lightbox__x {
	position: absolute;
	top: var(--ehnes-lightbox-x-abstand);
	right: var(--ehnes-lightbox-x-abstand);
	border: 0;
	border-radius: 50%;
	padding: 0;
	min-width: 0;
	min-height: 0;
	box-shadow: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

/* In der Karte ausgeblendet, im Dialog sichtbar – derselbe Block, eine Vorlage.
   Der Dialog liegt bewusst INNERHALB der Karte, sonst greift Elementors gescoptes CSS nicht. */
.huber-stellenkarte .huber-stelle-detail {
	display: none;
}

dialog.ehnes-lightbox .huber-stelle-detail {
	display: flex;
}

.huber-stelle-liste ul {
	margin: 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.ehnes-collage__rahmen {
	position: relative;
	display: block;
	--ehnes-badge-abstand: 8px;
}

/* Spezifität 0,2,0: „.elementor img { height: auto }“ gewinnt sonst und ignoriert die Rahmenhöhe. */
.ehnes-collage .ehnes-collage__bild {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

.ehnes-collage__badge {
	position: absolute;
	z-index: 2;
	max-width: calc(100% - 2 * var(--ehnes-badge-abstand));
	line-height: 1.3;
	pointer-events: none;
}

.ehnes-collage__badge--oben-links   { top: var(--ehnes-badge-abstand); left: var(--ehnes-badge-abstand); }
.ehnes-collage__badge--oben-rechts  { top: var(--ehnes-badge-abstand); right: var(--ehnes-badge-abstand); }
.ehnes-collage__badge--unten-links  { bottom: var(--ehnes-badge-abstand); left: var(--ehnes-badge-abstand); }
.ehnes-collage__badge--unten-rechts { bottom: var(--ehnes-badge-abstand); right: var(--ehnes-badge-abstand); }

@media (max-width: 950px) {
	.ehnes-kacheln__pfeil--zurueck { left: 0; }
	.ehnes-kacheln__pfeil--weiter  { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ehnes-kacheln__spur { scroll-behavior: auto; }
}
