/* Recruiting Badge – „Verstärkung gesucht!" */
.rb {
	--rb-bg: var(--awb-color5, #ff9500);
	--rb-fg: #fff;
	--rb-accent: var(--awb-color4, #203c80);
	--rb-ink: var(--awb-color7, #212934);
	--rb-muted: var(--awb-color6, #4a4e57);
	--rb-line: var(--awb-color3, #e2e2e2);
	--rb-radius: 14px;
	position: fixed;
	z-index: 9000; /* über Inhalt/Sticky-Header, unter Avada Off-Canvas & Lightbox */
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	font-size: 15px;
	line-height: 1.4;
}
.rb[hidden] { display: none !important; }
.rb--left { right: auto; left: 0; flex-direction: row-reverse; }

/* ---------- Lasche (Desktop) ---------- */
.rb .rb-tab {
	all: unset;
	box-sizing: border-box;
	order: 2;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 10px;
	padding: 16px 11px 16px 12px;
	background: var(--rb-bg);
	color: var(--rb-fg);
	border-radius: 12px 0 0 12px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .02em;
	transition: padding .2s ease, box-shadow .2s ease, filter .2s ease;
}
.rb--left .rb-tab { border-radius: 0 12px 12px 0; padding: 16px 12px 16px 11px; }
.rb .rb-tab:hover { padding-right: 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); filter: brightness(1.04); }
.rb--left .rb-tab:hover { padding-right: 12px; padding-left: 16px; }
.rb .rb-tab:focus-visible { outline: 3px solid var(--rb-accent); outline-offset: 2px; }
.rb-tab__text { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.rb-tab__icon { width: 22px; height: 22px; flex: none; }
.rb-tab__count {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--rb-fg);
	color: var(--rb-accent);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}
.rb-tab__count::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, .8);
	animation: rb-pulse 2.2s ease-out 1s 3;
}
@keyframes rb-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); }
	100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

/* ---------- Panel (Desktop: Flyout neben der Lasche) ---------- */
.rb-panel {
	order: 1;
	position: relative;
	box-sizing: border-box;
	width: 340px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	margin-right: 12px;
	padding: 22px 22px 20px;
	background: #fff;
	color: var(--rb-ink);
	border-radius: var(--rb-radius);
	border-top: 4px solid var(--rb-bg);
	box-shadow: 0 18px 50px rgba(15, 25, 50, .22);
	opacity: 0;
	visibility: hidden;
	transform: translateX(14px);
	transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.rb--left .rb-panel { margin-right: 0; margin-left: 12px; transform: translateX(-14px); }
.rb.is-open .rb-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rb-backdrop { display: none; }

.rb .rb-close {
	all: unset;
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--rb-muted);
	cursor: pointer;
}
.rb .rb-close:hover { background: rgba(0, 0, 0, .06); color: var(--rb-ink); }
.rb .rb-close:focus-visible { outline: 2px solid var(--rb-accent); }
.rb-close svg { width: 18px; height: 18px; }

.rb-panel__kicker {
	margin: 0 0 2px !important;
	color: var(--rb-bg);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.rb-panel__title {
	margin: 0 0 6px !important;
	color: var(--rb-accent);
	font-family: var(--awb-typography1-font-family, inherit);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}
.rb-panel__text { margin: 0 0 14px !important; color: var(--rb-muted); font-size: 14px; }

/* ---------- Stellenliste (auch für [recruiting_jobs]) ---------- */
.rb-jobs { list-style: none !important; margin: 0 0 16px !important; padding: 0 !important; }
.rb-jobs li { margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--rb-line, #e2e2e2); }
.rb-jobs li:last-child { border-bottom: 1px solid var(--rb-line, #e2e2e2); }
.rb-jobs li::before { display: none !important; }
.rb-jobs a {
	position: relative;
	display: block;
	padding: 11px 30px 11px 0;
	color: var(--rb-ink, #212934) !important;
	text-decoration: none !important;
	transition: color .15s ease, padding .15s ease;
}
.rb-jobs a:hover, .rb-jobs a:focus-visible { color: var(--rb-accent, #203c80) !important; padding-left: 4px; }
.rb-jobs__title { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.rb-jobs__meta { display: block; margin-top: 2px; color: var(--rb-muted, #4a4e57); font-size: 13px; }
.rb-jobs__arrow { position: absolute; right: 2px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--rb-accent, #203c80); }

.rb-cta {
	display: block;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--rb-accent, #203c80);
	color: #fff !important;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	transition: filter .15s ease, transform .15s ease;
}
.rb-cta:hover { filter: brightness(1.15); transform: translateY(-1px); }

.rb-inline { max-width: 560px; }
.rb-inline .rb-cta { display: inline-block; }

/* ---------- Handy: Pill-Button unten + Bottom-Sheet ---------- */
.rb.rb--mobile {
	top: auto;
	right: auto;
	left: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	transform: none;
}
.rb.rb--mobile.rb--m-right { left: auto; right: 16px; }
.rb--mobile .rb-tab,
.rb--mobile.rb--left .rb-tab {
	flex-direction: row;
	gap: 8px;
	padding: 10px 12px 10px 14px;
	border-radius: 999px;
	font-size: 14px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	transition: opacity .2s ease, transform .2s ease;
}
.rb--mobile .rb-tab:hover { padding: 10px 12px 10px 14px; }
.rb--mobile .rb-tab__text { writing-mode: horizontal-tb; transform: none; }
.rb--mobile .rb-tab__icon { width: 20px; height: 20px; }
/* Kompakt nach dem ersten Schließen: nur Symbol + Zahl */
.rb--mobile.is-compact .rb-tab { padding: 10px; }
.rb--mobile.is-compact .rb-tab__text { display: none; }
/* Beim Runterscrollen ausblenden, beim Hochscrollen wieder zeigen */
.rb--mobile.is-scrolling .rb-tab { opacity: 0; transform: translateY(20px); pointer-events: none; }

.rb--mobile .rb-panel,
.rb--mobile.rb--left .rb-panel {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	width: auto;
	max-height: 80vh;
	margin: 0;
	padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
	border-radius: 18px 18px 0 0;
	border-top-width: 5px;
	transform: translateY(100%);
	z-index: 2;
}
.rb--mobile.is-open .rb-panel { transform: none; }
.rb--mobile .rb-backdrop {
	display: block;
	position: fixed;
	inset: 0;
	background: rgba(10, 15, 30, .45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility 0s linear .22s;
	z-index: 1;
}
.rb--mobile.is-open .rb-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
.rb--mobile.is-open .rb-tab { opacity: 0; pointer-events: none; }
.rb--mobile .rb-jobs a { padding-top: 13px; padding-bottom: 13px; } /* größere Tippflächen */

@media (prefers-reduced-motion: reduce) {
	.rb *, .rb *::after { animation: none !important; transition: none !important; }
}
@media print { .rb { display: none !important; } }
