/* Holz Marberger Karriere – alle Regeln sind auf .hmk begrenzt. */

@font-face {
	font-family: "HMK Poppins";
	src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "HMK Poppins";
	src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.hmk {
	--hmk-g: #006729;
	--hmk-g-d: #004a1d;
	--hmk-g-hover: #00561f;
	--hmk-g-l: #e3f0e7;
	--hmk-g-ink: #cfe3d5;
	--hmk-ink: #1d2320;
	--hmk-ink-2: #3c4541;
	--hmk-mut: #5f6964;
	--hmk-line: #d5dad7;
	--hmk-divider: #edf0ee;
	--hmk-bg: #eef1ef;
	--hmk-info: #1f4f86;
	--hmk-info-l: #e8f0fa;
	--hmk-w-ink: #6b4200;
	--hmk-w-l: #fff2dc;
	--hmk-focus: #2b7de9;
	--hmk-head: "HMK Poppins", Arial, Helvetica, sans-serif;
	--hmk-body: Arial, Helvetica, sans-serif;

	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	color: var(--hmk-ink);
	font-family: var(--hmk-body);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
	container: hmk / inline-size;
}
.hmk *,
.hmk *::before,
.hmk *::after {
	box-sizing: border-box;
}
.hmk p { margin: 0 0 12px; }
.hmk p:last-child { margin-bottom: 0; }
.hmk a { color: var(--hmk-g); text-decoration: underline; text-underline-offset: 2px; }
.hmk a:hover { color: var(--hmk-g-d); }
.hmk a:focus-visible,
.hmk button:focus-visible { outline: 3px solid var(--hmk-focus); outline-offset: 2px; }
.hmk img { max-width: 100%; height: auto; }
.hmk [hidden] { display: none !important; }

/* Seitenrand auf schmalen Bildschirmen: Theme hat dort keinen Container-Abstand */
@media (max-width: 1199px) {
	.hmk { padding-left: 16px; padding-right: 16px; }
}

/* Typografie */
.hmk .hmk-h1,
.hmk .hmk-h2,
.hmk .hmk-h3 {
	font-family: var(--hmk-head);
	color: inherit;
	margin: 0;
	padding: 0;
	letter-spacing: 0;
	text-transform: none;
	border: 0;
}
.hmk .hmk-h1 { font-weight: 700; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; }
.hmk .hmk-h2 { font-weight: 600; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.25; }
.hmk .hmk-h3 { font-weight: 600; font-size: 18px; line-height: 1.3; }
.hmk .hmk-muted { color: var(--hmk-mut); }
.hmk .hmk-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--hmk-g);
}

/* Kopfzeile mit Logo rechts */
.hmk .hmk-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0 16px;
	min-height: 64px;
}
.hmk .hmk-logo {
	display: block;
	height: 52px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
	margin-left: auto;
}
.hmk .hmk-logo-text {
	margin-left: auto;
	font-family: var(--hmk-head);
	font-weight: 700;
	font-size: 20px;
	color: var(--hmk-ink);
}
.hmk .hmk-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--hmk-mut); }

/* Buttons */
.hmk .hmk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border: 2px solid var(--hmk-g);
	border-radius: 12px;
	background: var(--hmk-g);
	color: #fff;
	font-family: var(--hmk-body);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.hmk .hmk-btn:hover { background: var(--hmk-g-hover); border-color: var(--hmk-g-hover); color: #fff; }
.hmk .hmk-btn-block { display: flex; width: 100%; }
.hmk .hmk-btn-light { background: #fff; border-color: #fff; color: var(--hmk-g); }
.hmk .hmk-btn-light:hover { background: var(--hmk-g-l); border-color: var(--hmk-g-l); color: var(--hmk-g-d); }
.hmk .hmk-btn-outline { background: transparent; border-color: #fff; color: #fff; }
.hmk .hmk-btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.hmk .hmk-btn-ghost { background: #fff; color: var(--hmk-g); min-height: 44px; }
.hmk .hmk-btn-ghost:hover { background: var(--hmk-g-l); color: var(--hmk-g-d); }

/* Karten */
.hmk .hmk-card {
	background: #fff;
	border: 1px solid var(--hmk-line);
	border-radius: 12px;
	padding: 24px;
}
.hmk .hmk-section { margin-top: 40px; }
.hmk .hmk-section > .hmk-h2 { margin-bottom: 16px; }

/* Hero */
.hmk .hmk-hero {
	background: var(--hmk-g);
	color: #fff;
	border-radius: 12px;
	padding: clamp(28px, 5vw, 56px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.hmk .hmk-hero .hmk-h1 { color: #fff; max-width: 760px; }
.hmk .hmk-lead { font-size: 18px; color: var(--hmk-g-l); max-width: 640px; margin: 0; }
.hmk .hmk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Stellenliste */
.hmk .hmk-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 16px;
}
.hmk .hmk-count { color: var(--hmk-mut); font-size: 15px; }
.hmk .hmk-filter { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding: 16px 20px; }
.hmk .hmk-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hmk .hmk-filter-row + .hmk-filter-row { border-top: 1px solid var(--hmk-divider); padding-top: 12px; }
.hmk .hmk-filter-label { width: 80px; font-size: 13px; color: var(--hmk-mut); }
.hmk .hmk-chip {
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--hmk-line);
	border-radius: 22px;
	background: #fff;
	color: var(--hmk-ink);
	font-family: var(--hmk-body);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
}
.hmk .hmk-chip:hover { border-color: var(--hmk-g); color: var(--hmk-ink); background: #fff; }
.hmk .hmk-chip[aria-pressed="true"] { background: var(--hmk-g); border-color: var(--hmk-g); color: #fff; }

.hmk .hmk-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 16px;
}
.hmk .hmk-job { margin: 0; padding: 0; list-style: none; }
.hmk .hmk-job::before { content: none; }
.hmk .hmk-job-link {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--hmk-line);
	border-radius: 12px;
	color: var(--hmk-ink);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.hmk .hmk-job-link:hover { border-color: var(--hmk-g); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); color: var(--hmk-ink); }
.hmk .hmk-job-title { font-family: var(--hmk-head); font-weight: 600; font-size: 19px; line-height: 1.3; }
.hmk .hmk-job-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--hmk-mut); }
.hmk .hmk-job-meta > span { display: flex; align-items: center; gap: 8px; }
.hmk .hmk-ico { flex: 0 0 auto; color: var(--hmk-g); }
.hmk .hmk-job-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--hmk-divider);
	font-size: 13px;
}
.hmk .hmk-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--hmk-g); }

.hmk .hmk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hmk .hmk-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 4px;
	background: var(--hmk-g-l);
	color: var(--hmk-g-d);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}
.hmk .hmk-tag-new { background: var(--hmk-info-l); color: var(--hmk-info); }

.hmk .hmk-empty,
.hmk .hmk-empty-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }

/* Lehre: eigene Fläche unter den offenen Stellen */
.hmk .hmk-lehre-area {
	margin-top: 48px;
	padding: clamp(24px, 4vw, 40px);
	border-radius: 16px;
	background: var(--hmk-g-l);
	border-top: 6px solid var(--hmk-g);
	scroll-margin-top: 24px;
}
.hmk .hmk-lehre-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 8px;
}
.hmk .hmk-lehre-head .hmk-eyebrow { display: block; margin-bottom: 4px; color: var(--hmk-g-d); }
.hmk .hmk-lehre-head .hmk-count { color: var(--hmk-ink-2); }
.hmk .hmk-lehre-lead { max-width: 720px; margin: 0 0 20px; font-size: 17px; color: var(--hmk-ink-2); }
.hmk .hmk-lehre-area .hmk-job-link { border-color: transparent; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.hmk .hmk-lehre-area .hmk-job-link:hover { border-color: var(--hmk-g); box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.hmk .hmk-lehre-area .hmk-job-foot { border-top-color: var(--hmk-g-l); }
.hmk .hmk-link-strong { font-weight: 700; }

/* Benefits */
.hmk .hmk-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 12px;
}
.hmk .hmk-benefit {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 16px;
	border-radius: 10px;
	background: var(--hmk-g-l);
	list-style: none;
}
.hmk .hmk-benefit::before { content: none; }
.hmk .hmk-benefit strong { font-size: 15px; font-weight: 700; color: var(--hmk-ink); }
.hmk .hmk-benefit span { font-size: 14px; color: var(--hmk-ink-2); line-height: 1.45; }

/* Formular-Karte */
.hmk .hmk-form-card { border-top: 4px solid var(--hmk-g); }
.hmk .hmk-form-card > .hmk-h2 { margin-bottom: 6px; }
.hmk .hmk-form { margin-top: 16px; }
.hmk .hmk-admin-hint { padding: 10px 14px; border-radius: 8px; background: var(--hmk-w-l); color: var(--hmk-w-ink); font-size: 14px; }
.hmk .hmk-apply { margin-bottom: 40px; }

/* Gravity Forms: Farben angleichen, sonst Layout von GF */
.hmk .gform_wrapper input[type="text"],
.hmk .gform_wrapper input[type="email"],
.hmk .gform_wrapper input[type="tel"],
.hmk .gform_wrapper select,
.hmk .gform_wrapper textarea {
	min-height: 48px;
	border: 1px solid #c3c9c5;
	border-radius: 10px;
	font-size: 16px;
}
.hmk .gform_wrapper .gform_footer input[type="submit"],
.hmk .gform_wrapper .gform_footer button {
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 12px;
	background: var(--hmk-g);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
.hmk .gform_wrapper .gform_footer input[type="submit"]:hover,
.hmk .gform_wrapper .gform_footer button:hover { background: var(--hmk-g-hover); }

/* Gravity Forms (Orbital-Theme) an CI-Grün anpassen */
.hmk .gform-theme--framework {
	--gf-color-primary: #006729;
	--gf-color-primary-rgb: 0, 103, 41;
	--gf-color-primary-contrast: #fff;
	--gf-color-primary-darker: #004a1d;
	--gf-color-primary-lighter: #e3f0e7;
	--gf-ctrl-border-color-focus: #006729;
	--gf-ctrl-btn-radius: 12px;
	--gf-ctrl-radius: 10px;
}
.hmk .gform-theme--framework .gform_footer .gform_button,
.hmk .gform-theme--framework .gform_footer input[type="submit"] {
	background-color: #006729 !important;
	border-color: #006729 !important;
	color: #fff !important;
	min-height: 52px;
	padding-inline: 28px;
	font-weight: 700;
	border-radius: 12px;
}
.hmk .gform-theme--framework .gform_footer .gform_button:hover,
.hmk .gform-theme--framework .gform_footer input[type="submit"]:hover {
	background-color: #00561f !important;
	border-color: #00561f !important;
}

/* Bild-Slider */
.hmk .hmk-slider { position: relative; margin-top: 24px; border-radius: 12px; overflow: hidden; background: #1d2320; aspect-ratio: 16 / 7; line-height: 1.5; }
.hmk .hmk-slides { position: absolute; inset: 0; }
.hmk .hmk-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.hmk .hmk-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.hmk .hmk-slide-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hmk .hmk-slide-link { position: absolute; inset: 0; z-index: 1; }
.hmk .hmk-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 4vw, 40px); padding-bottom: clamp(48px, 5vw, 60px); background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, 0)); color: #fff; pointer-events: none; }
.hmk .hmk-slide-title { margin: 0 0 6px; max-width: 760px; font-family: var(--hmk-head); font-weight: 700; font-size: clamp(20px, 3vw, 34px); line-height: 1.15; color: #fff; }
.hmk .hmk-slide-text { margin: 0; max-width: 640px; font-size: clamp(15px, 1.6vw, 18px); color: #fff; }
.hmk .hmk-slide-btn { pointer-events: auto; display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 20px; border-radius: 10px; background: #fff; color: #006729 !important; font-weight: 700; text-decoration: none !important; }
.hmk .hmk-slide-btn:hover { background: #e3f0e7; }
.hmk .hmk-sl-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #1d2320; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.hmk .hmk-sl-nav:hover { background: #fff; }
.hmk .hmk-sl-prev { left: 12px; }
.hmk .hmk-sl-next { right: 12px; }
.hmk .hmk-sl-bar { position: absolute; right: 10px; bottom: 8px; z-index: 3; display: flex; align-items: center; gap: 2px; }
.hmk .hmk-sl-dot,
.hmk .hmk-sl-pause { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; box-shadow: none; }
.hmk .hmk-sl-dot::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 3px rgba(0, 0, 0, .5); }
.hmk .hmk-sl-dot[aria-current="true"]::before { background: #fff; }
.hmk .hmk-sl-pause svg { filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.hmk .hmk-sl-pause .hmk-ico-play,
.hmk .hmk-slider.is-paused .hmk-sl-pause .hmk-ico-pause { display: none; }
.hmk .hmk-slider.is-paused .hmk-sl-pause .hmk-ico-play { display: block; }
.hmk .hmk-slider .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
	.hmk .hmk-slider { aspect-ratio: 4 / 3; }
	.hmk .hmk-sl-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hmk .hmk-slide,
	.hmk .hmk-slide.is-active { transition: none; }
}

/* Detailseite */
.hmk .hmk-gallery { display: grid; gap: 10px; margin-bottom: 24px; }
.hmk .hmk-gallery-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.hmk .hmk-gallery-1 .hmk-gallery-img { aspect-ratio: 16 / 7; }
.hmk .hmk-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hmk .hmk-gallery-2 .hmk-gallery-img { aspect-ratio: 4 / 3; }
.hmk .hmk-gallery-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hmk .hmk-gallery-3 .hmk-gallery-img { aspect-ratio: 4 / 3; }
.hmk .hmk-gallery-3 .hmk-gallery-img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
@container hmk (min-width: 900px) {
	.hmk .hmk-gallery-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 180px 180px; }
	.hmk .hmk-gallery-3 .hmk-gallery-img,
	.hmk .hmk-gallery-3 .hmk-gallery-img:first-child { aspect-ratio: auto; }
	.hmk .hmk-gallery-3 .hmk-gallery-img:first-child { grid-column: 1; grid-row: 1 / span 2; }
}

.hmk .hmk-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.hmk .hmk-intro { font-size: 18px; color: var(--hmk-ink-2); max-width: 760px; }
.hmk .hmk-notice { padding: 12px 16px; border-radius: 10px; background: var(--hmk-w-l); color: var(--hmk-w-ink); }

.hmk .hmk-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.hmk .hmk-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hmk .hmk-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hmk .hmk-main > .hmk-card > .hmk-h2 { color: var(--hmk-g); margin-bottom: 12px; }
@container hmk (min-width: 900px) {
	.hmk .hmk-aside { order: 2; }
	.hmk .hmk-main { order: 1; }
}

.hmk .hmk-list { margin: 0; padding-left: 20px; }
.hmk .hmk-list li { margin: 0 0 8px; }

.hmk .hmk-facts { margin: 16px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.hmk .hmk-facts > div {
	display: grid;
	grid-template-columns: 20px 1fr;
	column-gap: 12px;
	align-items: start;
}
.hmk .hmk-facts svg { grid-row: 1 / span 2; margin-top: 2px; color: var(--hmk-g); }
.hmk .hmk-facts dt { margin: 0; font-size: 13px; font-weight: 400; color: var(--hmk-mut); }
.hmk .hmk-facts dd { margin: 2px 0 0; font-size: 15px; }

.hmk .hmk-contact-name { margin: 12px 0; }
.hmk .hmk-contact-name strong { font-weight: 700; }
.hmk .hmk-contact-link { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; overflow-wrap: anywhere; }
.hmk .hmk-contact-link svg { flex: 0 0 auto; color: var(--hmk-g); }

.hmk .hmk-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: 12px;
}
.hmk .hmk-steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 15px; }
.hmk .hmk-steps li::before { content: none; }
.hmk .hmk-step {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 16px;
	background: var(--hmk-g);
	color: #fff;
	font-weight: 700;
}

.hmk .hmk-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #1d2320; }
.hmk .hmk-video video,
.hmk .hmk-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.hmk .hmk-yt-btn {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px;
	border: 0;
	background: #1d2320;
	color: #fff;
	font-family: var(--hmk-body);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.hmk .hmk-yt-btn small { font-size: 13px; font-weight: 400; color: var(--hmk-g-ink); }
.hmk .hmk-back { font-weight: 700; text-decoration: none; }

@media (max-width: 600px) {
	.hmk .hmk-card { padding: 18px; }
	.hmk .hmk-logo { height: 42px; }
	.hmk .hmk-filter-label { width: 100%; }
	.hmk .hmk-lehre-area { border-radius: 12px; }
}
