/* =========================================================
   Detailseite Stellenangebot (hone)
   Tokens: dunkel #303030 | Karte #2b2b2b | gold #a5936f
   Font: cresta | Font-Sizes in rem (Basis 20px), Spacing in px.

   Kein Figma-Entwurf — die Seite uebernimmt den Hero von m39 und
   die Kartenoptik des Stellen-Moduls (m12 hone_stellen).
   ========================================================= */

/* ---------- Hero (Optik von m39_page_hero) ---------- */

.hone_stelle_hero {
	position: relative;
	min-height: 430px;         /* 135px Header + 295px Bild */
	padding: 135px 40px 0 40px;
	background-color: #303030;
	overflow: hidden;
	box-sizing: border-box;
}

.hone_stelle_hero_bg {
	position: absolute;
	inset: 135px 0 0 0;
	z-index: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .5);
}

.hone_stelle_hero_img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
	filter: grayscale(1);
	opacity: .4;
	display: block;
}

.hone_stelle_hero_overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(48, 48, 48, 0.8) 0%, rgba(48, 48, 48, 0) 100%);
}

.hone_stelle_hero_inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 295px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 0;
}

body.page-template-page-flexible_content .hone_stelle_hero_titel {
	margin: 0;
	font-size: 2rem;           /* 40px */
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: 0.875px;
	text-transform: uppercase;
	text-align: center;
	color: #a5936f;
}

.hone_stelle_hero_sub {
	margin: 0;
	font-size: 0.8rem;         /* 16px */
	line-height: 1.625;
	letter-spacing: 0.45px;
	font-weight: 300;
	text-align: center;
	color: rgba(255, 255, 255, 0.5);
}

/* ---------- Rumpf ---------- */

.hone_stelle_body {
	background-color: #303030;
}

.hone_stelle_grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 80px;
	align-items: start;
}

/* ---------- Ausschreibungstext (Beitragseditor) ---------- */

/* Ohne Deckel liefe die Zeile ueber 960px — zu lang zum Lesen. */
.hone_stelle_inhalt {
	max-width: 820px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.8rem;         /* 16px */
	line-height: 1.75;
	letter-spacing: 0.45px;
	font-weight: 300;
}

.hone_stelle_inhalt > *:first-child {
	margin-top: 0;
}

.hone_stelle_inhalt p {
	margin: 0 0 20px 0;
}

/* Die globalen h*-Groessen (56/37px) sind Sektionstitel-Mass und viel zu
   gross fuer Zwischenueberschriften im Fliesstext. */
body.page-template-page-flexible_content .hone_stelle_inhalt h2,
body.page-template-page-flexible_content .hone_stelle_inhalt h3,
body.page-template-page-flexible_content .hone_stelle_inhalt h4 {
	margin: 44px 0 20px 0;
	font-size: 0.9rem;         /* 18px */
	line-height: 1.4444;       /* 26px */
	font-weight: 500;
	letter-spacing: 0.875px;
	text-transform: uppercase;
	color: #a5936f;
}

body.page-template-page-flexible_content .hone_stelle_inhalt h3,
body.page-template-page-flexible_content .hone_stelle_inhalt h4 {
	color: #ffffff;
	text-transform: none;
	margin-top: 32px;
}

.hone_stelle_inhalt ul,
.hone_stelle_inhalt ol {
	margin: 0 0 20px 0;
	padding: 0;
	list-style: none;
}

.hone_stelle_inhalt li {
	position: relative;
	margin: 0 0 10px 0;
	padding-left: 26px;
}

.hone_stelle_inhalt ul li::before {
	content: '';
	position: absolute;
	top: 12px;
	left: 0;
	width: 10px;
	height: 1px;
	background-color: #a5936f;
}

.hone_stelle_inhalt ol {
	counter-reset: hone_stelle_li;
}

.hone_stelle_inhalt ol li {
	counter-increment: hone_stelle_li;
}

.hone_stelle_inhalt ol li::before {
	content: counter(hone_stelle_li) '.';
	position: absolute;
	left: 0;
	color: #a5936f;
}

.hone_stelle_inhalt a {
	color: #a5936f;
	text-decoration: underline;
}

.hone_stelle_inhalt strong {
	color: #ffffff;
	font-weight: 500;
}

/* ---------- Infobox (Kartenoptik des Stellen-Moduls) ---------- */

.hone_stelle_box {
	position: sticky;
	top: 175px;                /* fixer Header 135 + 40 Luft */
	box-sizing: border-box;
	padding: 40px;
	background-color: #2b2b2b;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

body.page-template-page-flexible_content .hone_stelle_box_titel {
	margin: 0 0 30px 0;
	font-size: 0.9rem;         /* 18px */
	line-height: 1.4444;
	font-weight: 500;
	letter-spacing: 0.875px;
	text-transform: uppercase;
	color: #ffffff;
}

.hone_stelle_fakt {
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hone_stelle_fakt_label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.7rem;         /* 14px */
	line-height: 1.4;
	letter-spacing: 0.45px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.hone_stelle_fakt_wert {
	display: block;
	font-size: 0.8rem;         /* 16px */
	line-height: 1.625;
	letter-spacing: 0.45px;
	font-weight: 300;
	color: #ffffff;
}

.hone_stelle_leistungen {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hone_stelle_leistungen li {
	position: relative;
	padding-left: 26px;
	font-size: 0.8rem;         /* 16px */
	line-height: 1.625;
	letter-spacing: 0.45px;
	font-weight: 300;
	color: #ffffff;
}

.hone_stelle_leistungen li::before {
	content: '';
	position: absolute;
	top: 12px;
	left: 0;
	width: 10px;
	height: 1px;
	background-color: #a5936f;
}

.hone_stelle_box_aktionen {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hone_stelle_zurueck {
	margin-top: 80px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1399px) {
	.hone_stelle_grid {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 60px;
	}
}

@media (max-width: 1199px) {
	.hone_stelle_hero {
		min-height: 340px;
		padding-top: 100px;
	}

	.hone_stelle_hero_bg {
		inset: 100px 0 0 0;
	}

	.hone_stelle_hero_inner {
		min-height: 240px;
	}

	body.page-template-page-flexible_content .hone_stelle_hero_titel {
		font-size: 1.6rem;     /* 32px */
	}

	.hone_stelle_box {
		top: 140px;            /* Header 100 + 40 */
	}
}

@media (max-width: 991px) {
	.hone_stelle_grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 50px;
	}

	/* Gestapelt gibt es nichts mehr zum Mitwandern */
	.hone_stelle_box {
		position: static;
	}

	.hone_stelle_zurueck {
		margin-top: 50px;
	}
}

@media (max-width: 575px) {
	.hone_stelle_hero {
		min-height: 260px;
		padding: 80px 20px 0 20px;
	}

	.hone_stelle_hero_bg {
		inset: 80px 0 0 0;
	}

	.hone_stelle_hero_inner {
		min-height: 180px;
		padding: 30px 0;
	}

	body.page-template-page-flexible_content .hone_stelle_hero_titel {
		font-size: 1.25rem;    /* 25px */
	}

	.hone_stelle_box {
		padding: 30px 20px;
	}
}

/* Sehr schmal: lange Berufsbezeichnungen duerfen die Seite nicht dehnen */
@media (max-width: 380px) {
	.hone_stelle_hero_titel,
	.hone_stelle_box_titel,
	.hone_stelle_inhalt,
	.hone_stelle_fakt_wert {
		word-break: break-word;
	}

	.hone_stelle_hero_inner,
	.hone_stelle_grid,
	.hone_stelle_inhalt {
		min-width: 0;
	}
}
