/* DEHIB Karriereseite. Aubergine trägt die Seite, Flieder hell hellt in Bögen auf.
   Alle Bewegung ist an das Scrollen gebunden und entfällt, wenn das Gerät reduzierte Bewegung wünscht.
   Ohne Skript steht jeder Inhalt sichtbar da. Signet: unveränderte Masterdateien aus dem Markenpaket. */

body.dhp-karriere { background: var(--aubergine); }
body.dhp-karriere main { overflow-x: clip; }
:root:has(body.dhp-karriere) { scroll-behavior: smooth; }

.dhk { --rand: clamp(20px, 5vw, 64px); --bogen: clamp(28px, 4.4vw, 64px); --weich: cubic-bezier(.2, .7, .2, 1); padding-bottom: clamp(8px, 1.4vw, 24px); color: var(--weiss); }
.wp-block-post-content > .dhk { margin-block: 0; }
.dhk :where(h1, h2, p, ul, ol, li, summary, div, details) { margin: 0; padding: 0; }
.dhk :where(ul, ol) { list-style: none; }
.dhk [id] { scroll-margin-top: calc(var(--header-hoehe) + 12px); }
.dhk-innen { width: 100%; max-width: calc(var(--inhalt-max) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.dhk .dhk-dach { font: 700 clamp(16px, 1.3vw, 19px)/1.4 var(--font-sans); color: var(--flieder); }
.dhk-bogen .dhk-dach { color: var(--text-flieder); }
main .dhk h2.wp-block-heading { margin-top: var(--space-3); font-size: clamp(34px, 5vw, 72px); line-height: 1.04; font-weight: 800; letter-spacing: 0; color: inherit; text-wrap: balance; }
.dhk .dhk-text { margin-top: var(--space-5); max-width: 44ch; font: 400 clamp(18px, 1.5vw, 21px)/1.6 var(--font-sans); }
.dhk .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.dhk .wp-block-button__link { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .35s var(--weich); }

/* 1 Bühne */
.dhk-hero { position: relative; isolation: isolate; overflow: clip; display: grid; align-items: center; min-height: calc(100svh - var(--header-hoehe) - 3px); padding-block: clamp(48px, 8vh, 112px) clamp(88px, 13vh, 144px); }
.dhk-hero::before { content: ""; position: absolute; z-index: -1; top: 50%; right: max(-9vw, -150px); width: min(92vh, 60vw, 920px); aspect-ratio: 293 / 267; background: url(signet-beere.svg) center / contain no-repeat; transform: translate3d(0, calc(-50% + var(--dhk-y, 0) * 1px), 0) scale(var(--dhk-s, 1)); transform-origin: 60% 50%; transition: transform .6s var(--weich); will-change: transform; pointer-events: none; }
.dhk-hero::after { content: ""; position: absolute; left: max(var(--rand), calc((100% - var(--inhalt-max)) / 2)); bottom: 28px; width: 2px; height: 56px; background: linear-gradient(var(--flieder), var(--flieder)) 0 0 / 100% 40% no-repeat var(--beere); animation: dhk-lauf 1.9s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes dhk-lauf { from { background-position: 0 -80%; } to { background-position: 0 260%; } }
main .dhk-hero h1.wp-block-heading { margin-top: var(--space-4); max-width: 11ch; font-size: clamp(54px, 10.4vw, 168px); line-height: .96; font-weight: 800; letter-spacing: 0; color: var(--weiss); hyphens: manual; }
.dhk-hero .dhk-lead { margin-top: clamp(24px, 3.4vw, 44px); max-width: 34ch; font: 400 clamp(19px, 1.9vw, 26px)/1.5 var(--font-sans); color: var(--flieder-hell); }
.dhk-hero .wp-block-buttons { margin-top: clamp(28px, 3.6vw, 48px); }
.dhk-hero .wp-block-button__link { border-color: var(--flieder); background: var(--flieder); color: var(--aubergine); }
.dhk-hero .wp-block-button__link:hover { border-color: var(--weiss); background: var(--weiss); color: var(--aubergine); }
.dhk-hero .is-style-outline > .wp-block-button__link { border-color: rgba(255, 255, 255, .62); background: transparent; color: var(--weiss); }
.dhk-hero .is-style-outline > .wp-block-button__link:hover { border-color: var(--weiss); background: var(--weiss); color: var(--aubergine); }
.dhk-stand { display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(28px, 4vw, 52px); padding: 10px 20px 10px 16px; border-radius: 999px; background: var(--beere); color: var(--weiss); font: 600 16px/24px var(--font-sans); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.dhk-stand:hover { background: var(--weiss); color: var(--aubergine); }
.dhk-stand > i { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--signalrot); }
.dhk-stand > i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--signalrot); animation: dhk-puls 2.2s ease-out infinite; }
@keyframes dhk-puls { from { transform: scale(1); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }

/* Auftritt der Bühne: erst wenn das Skript bereit ist, mit Rückfall nach 2,6 Sekunden */
.dh-js .dhk-hero .dhk-innen > * { opacity: 0; transform: translate3d(0, 28px, 0); }
/* Rückfall nur, solange das Skript nicht läuft; liefe er weiter, würde er den Übergang unterdrücken */
.dh-js .dhk:not(.dhk-lebt) .dhk-hero .dhk-innen > * { animation: dhk-notfall .6s 2.6s both; }
.dh-js .dhk-hero.ist-da .dhk-innen > * { opacity: 1; transform: none; animation: none; transition: opacity .7s ease, transform .9s var(--weich); transition-delay: calc(var(--dhk-n, 0) * 90ms + 100ms); }
.dhk-hero .dhk-innen > :nth-child(2) { --dhk-n: 1; }
.dhk-hero .dhk-innen > :nth-child(3) { --dhk-n: 4; }
.dhk-hero .dhk-innen > :nth-child(4) { --dhk-n: 5; }
.dhk-hero .dhk-innen > :nth-child(n+5) { --dhk-n: 6; }
@keyframes dhk-notfall { to { opacity: 1; transform: none; } }
.dhk-wort { display: inline-block; overflow: clip; overflow-clip-margin: .06em; vertical-align: top; white-space: nowrap; }
.dhk-wort > span { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 1.05s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--dhk-k, 0) * 120ms + 220ms); }
.ist-da .dhk-wort > span { transform: none; }

/* 2 Aussage: füllt sich Wort für Wort */
.dhk-aussage { padding-block: clamp(72px, 13vw, 208px); }
.dhk .dhk-aussage__text { max-width: 21ch; font: 700 clamp(30px, 5.2vw, 84px)/1.1 var(--font-sans); letter-spacing: 0; color: var(--weiss); }
.dhk-aussage__text .dhk-w { color: rgba(199, 176, 255, .3); transition: color .4s ease; }
.dhk-aussage__text .dhk-w.ist-an { color: var(--weiss); }

/* Helle Bögen und dunkle Abschnitte */
.dhk-bogen { position: relative; margin-inline: clamp(8px, 1.4vw, 24px); padding-block: clamp(64px, 9vw, 144px); border-radius: var(--bogen); background: var(--flieder-hell); color: var(--aubergine); transform: scale(calc(.93 + .07 * var(--dhk-in, 1))); transform-origin: 50% 0; }
.dhk-dunkel { padding-block: clamp(72px, 10vw, 168px); }
.dhk-zeig { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity .7s ease, transform .9s var(--weich); transition-delay: calc(var(--dhk-n, 0) * 80ms); }
.dhk-zeig.ist-da { opacity: 1; transform: none; }
.dhk-zweier > .dhk-innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.dhk-zweier > .dhk-innen > .dhk-kopf { position: sticky; top: calc(var(--header-hoehe) + clamp(32px, 9vh, 104px)); }

/* 3 Offene Stellen */
.dhk-stellen .dhk-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 0 clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 5vw, 72px); }
.dhk-stellen .dhk-kopf > .dhk-dach { grid-column: 1 / -1; }
.dhk-stellen .dhk-kopf > .dhk-text { margin-top: 0; padding-bottom: 6px; }
.dhk .dhp-stellen { border-top: 2px solid var(--aubergine); }
.dhk .dhp-stellen > li { border-bottom: 2px solid var(--aubergine); }
.dhk .dhp-stellen a.dhp-stelle { position: relative; z-index: 0; padding: clamp(24px, 3.4vw, 48px) 0; gap: clamp(16px, 3vw, 48px); transition: color .3s ease, padding .5s var(--weich); }
.dhk .dhp-stellen a.dhp-stelle::before { content: ""; position: absolute; z-index: -1; inset: 6px calc(-1 * clamp(8px, 2vw, 28px)); border-radius: clamp(16px, 2vw, 28px); background: var(--aubergine); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--weich); }
.dhk .dhp-stelle__titel { font-size: clamp(24px, 3.2vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: 0; text-decoration: none; }
.dhk .dhp-stelle__titel > span { transition: color .3s ease; }
.dhk .dhp-stelle__kurz { max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; transition: color .3s ease; }
.dhk .dhp-stelle .dh-badge { background: var(--weiss); transition: background-color .3s ease, color .3s ease; }
.dhk .dhp-stelle .dh-pfeilkreis { width: clamp(48px, 5vw, 72px); height: clamp(48px, 5vw, 72px); transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .5s var(--weich); }
@media (hover: hover) {
	.dhk .dhp-stellen a.dhp-stelle:hover, .dhk .dhp-stellen a.dhp-stelle:focus-visible { color: var(--weiss); padding-inline: clamp(8px, 1.4vw, 20px); }
	.dhk .dhp-stellen a.dhp-stelle:hover::before, .dhk .dhp-stellen a.dhp-stelle:focus-visible::before { transform: scaleY(1); }
	.dhk .dhp-stelle:hover .dhp-stelle__titel > span, .dhk .dhp-stelle:focus-visible .dhp-stelle__titel > span { color: var(--flieder); }
	.dhk .dhp-stelle:hover .dhp-stelle__kurz, .dhk .dhp-stelle:focus-visible .dhp-stelle__kurz { color: var(--flieder-hell); }
	.dhk .dhp-stelle:hover .dh-badge, .dhk .dhp-stelle:focus-visible .dh-badge { background: var(--beere); color: var(--weiss); }
	.dhk .dhp-stelle:hover .dh-pfeilkreis, .dhk .dhp-stelle:focus-visible .dh-pfeilkreis { border-color: var(--flieder); background: var(--flieder); color: var(--aubergine); transform: translate3d(6px, 0, 0); }
}
.dhk .dhp-leer { background: var(--weiss); }

/* 4 Was Sie erwartet: Karten legen sich beim Scrollen übereinander */
.dhk-karten { display: grid; gap: clamp(20px, 3vh, 32px); padding-bottom: 4vh; }
.dhk .dhk-karten > li { position: sticky; top: calc(var(--header-hoehe) + clamp(20px, 6vh, 72px) + var(--dhk-i, 0) * 20px); display: grid; align-content: space-between; gap: var(--space-7); min-height: clamp(230px, 42vh, 400px); padding: clamp(24px, 3.2vw, 48px); border-radius: clamp(20px, 2.4vw, 36px); background: var(--flieder-hell); color: var(--aubergine); font: 700 clamp(24px, 2.8vw, 42px)/1.16 var(--font-sans); letter-spacing: 0; transform: scale(calc(1 - .045 * var(--dhk-d, 0))); transform-origin: 50% 0; }
.dhk-karten > li::before { content: ""; width: 16px; height: 16px; background: var(--signalrot); }
.dhk .dhk-karten > li:nth-child(2) { --dhk-i: 1; background: var(--flieder); }
.dhk .dhk-karten > li:nth-child(3) { --dhk-i: 2; background: var(--weiss); }
.dhk .dhk-karten > li:nth-child(4) { --dhk-i: 3; background: var(--beere); color: var(--weiss); }
.dhk .dhk-karten > li:nth-child(n+5) { --dhk-i: 4; }

/* 5 Ablauf: die Linie zeichnet sich beim Scrollen */
.dhk-schritte { position: relative; display: grid; gap: clamp(40px, 6vw, 88px); padding-left: clamp(48px, 5vw, 84px) !important; }
.dhk-schritte::before, .dhk-schritte::after { content: ""; position: absolute; left: 11px; top: 10px; width: 2px; }
.dhk-schritte::before { bottom: 10px; background: rgba(58, 13, 51, .18); }
.dhk-schritte::after { height: calc((100% - 20px) * var(--dhk-linie, 1)); background: var(--signalrot); }
.dhk .dhk-schritte > li { position: relative; max-width: 46ch; font: 400 clamp(18px, 1.5vw, 21px)/1.6 var(--font-sans); transition: opacity .45s ease; }
.dhk-schritte > li::before { content: ""; position: absolute; z-index: 1; left: calc(-1 * clamp(48px, 5vw, 84px)); top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--flieder-hell); box-shadow: inset 0 0 0 2px var(--aubergine); transition: background-color .3s ease, transform .4s var(--weich); }
.dhk-schritte > li > strong { display: block; margin-bottom: 10px; font: 800 clamp(26px, 3vw, 44px)/1.1 var(--font-sans); letter-spacing: 0; }
.dhk-lebt .dhk-schritte > li { opacity: .34; }
.dhk-lebt .dhk-schritte > li.ist-an { opacity: 1; }
.dhk-schritte > li.ist-an::before { background: var(--aubergine); transform: scale(1.18); }

/* 6 Häufige Fragen */
.dhk-fragenliste { border-top: 1px solid rgba(255, 255, 255, .24); }
.dhk-frage { border-bottom: 1px solid rgba(255, 255, 255, .24); overflow: clip; }
.dhk-frage > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: clamp(20px, 2.4vw, 32px) 0; font: 700 clamp(20px, 2vw, 28px)/1.25 var(--font-sans); color: var(--weiss); cursor: pointer; list-style: none; }
.dhk-frage > summary::-webkit-details-marker { display: none; }
.dhk-frage > summary::after { content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(var(--aubergine), var(--aubergine)) center / 16px 2px no-repeat, linear-gradient(var(--aubergine), var(--aubergine)) center / 2px 16px no-repeat, var(--flieder); transition: transform .4s var(--weich), background-color .3s ease; }
.dhk-frage > summary:hover::after { background-color: var(--weiss); }
.dhk-frage[open]:not(.schliesst) > summary::after { transform: rotate(45deg); background-color: var(--weiss); }
.dhk-frage > summary:focus-visible { outline: 2px solid var(--flieder); outline-offset: 4px; }
.dhk .dhk-frage > p { max-width: 60ch; padding: 0 64px clamp(24px, 3vw, 36px) 0; font: 400 clamp(17px, 1.4vw, 20px)/1.65 var(--font-sans); color: var(--flieder-hell); }
.dhk-frage a { color: var(--flieder); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dhk-frage a:hover { color: var(--weiss); }

/* 7 Kontakt */
.dhk-kontakt { overflow: clip; }
.dhk-kontakt::after { content: ""; position: absolute; right: -5%; bottom: -46%; width: min(40vw, 500px); aspect-ratio: 293 / 267; background: url(signet-flieder.svg) center / contain no-repeat; transform: translate3d(0, calc(var(--dhk-y, 0) * 1px), 0); transition: transform .6s var(--weich); pointer-events: none; }
.dhk-kontakt > .dhk-innen { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-7) clamp(32px, 6vw, 96px); align-items: end; }
.dhk-kontakt .wp-block-buttons { margin-top: clamp(28px, 3.4vw, 44px); }
.dhk .dhk-anschrift { font: 400 clamp(17px, 1.4vw, 20px)/1.6 var(--font-sans); }
.dhk-anschrift p + p { margin-top: var(--space-3); }
.dhk-anschrift a { color: var(--aubergine); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--text-flieder); }

@media (max-width: 900px) {
	.dhk-zweier > .dhk-innen, .dhk-kontakt > .dhk-innen { grid-template-columns: minmax(0, 1fr); }
	.dhk-zweier > .dhk-innen > .dhk-kopf { position: static; }
	.dhk-stellen .dhk-kopf { grid-template-columns: minmax(0, 1fr); }
	.dhk-stellen .dhk-kopf > .dhk-text { margin-top: var(--space-5); padding-bottom: 0; }
	.dhk .dhk-karten > li { top: calc(var(--header-hoehe) + 16px + var(--dhk-i, 0) * 12px); min-height: 190px; }
	.dhk-kontakt::after { right: -22%; bottom: -14%; width: 64vw; }
	.dhk-kontakt { padding-bottom: clamp(120px, 34vw, 240px); }
}
@media (max-width: 760px) {
	.dhk-hero::before { top: auto; bottom: -9%; right: -24vw; width: 88vw; transform: translate3d(0, calc(var(--dhk-y, 0) * 1px), 0) scale(var(--dhk-s, 1)); }
	.dhk-hero { align-items: start; padding-top: clamp(40px, 9vh, 88px); }
	.dhk .dhp-stelle .dh-pfeilkreis { display: none; }
	.dhk .dhp-stellen a.dhp-stelle { grid-template-columns: minmax(0, 1fr); }
	.dhk .dhk-frage > p { padding-right: 0; }
}
@media (max-height: 620px) { .dhk-hero::after { display: none; } }

@media (prefers-reduced-motion: reduce) {
	:root:has(body.dhp-karriere) { scroll-behavior: auto; }
	.dhk *, .dhk *::before, .dhk *::after { animation: none !important; transition: none !important; }
	.dh-js .dhk-hero .dhk-innen > *, .dhk-zeig, .dhk-wort > span { opacity: 1 !important; transform: none !important; }
	.dhk-hero::before, .dhk-kontakt::after { transform: translate3d(0, -50%, 0); }
	.dhk-kontakt::after { transform: none; }
	.dhk-bogen, .dhk .dhk-karten > li { transform: none; }
	.dhk .dhk-karten > li { position: static; }
	.dhk-aussage__text .dhk-w { color: var(--weiss); }
	.dhk-hero::after { display: none; }
}
@media print {
	body.dhp-karriere { background: none; }
	.dhk, .dhk-bogen, .dhk .dhk-karten > li { color: var(--aubergine); background: none; transform: none; position: static; }
	main .dhk-hero h1.wp-block-heading, .dhk .dhk-aussage__text, .dhk-frage > summary, .dhk .dhk-frage > p, .dhk-hero .dhk-lead { color: var(--aubergine); }
	.dhk-hero { min-height: 0; }
	.dhk-hero::before, .dhk-hero::after, .dhk-kontakt::after, .dhk-stand { display: none; }
}
