/* =========================================================
   OWLWAYS — ARBEITSPLATZVERZEICHNIS
   Eigenständige CSS für das Plugin.
   Verwendet ausschließlich die --owlh-* Variablen des Herbstdesigns.
========================================================= */

.ajob-directory {
	width: 100%;
	margin: 0 0 18px;
	box-sizing: border-box;
	overflow: hidden;
	background: var(--owlh-surface);
	border: 1px solid var(--owlh-border-soft);
	box-shadow: 0 6px 18px var(--owlh-shadow);
	color: var(--owlh-text);
	font-family: var(--owlh-font-body);
	font-size: 12.5px;
	line-height: 1.7;
	scroll-margin-top: 18px;
}

.ajob-directory *,
.ajob-directory *::before,
.ajob-directory *::after {
	box-sizing: border-box;
}

.ajob-directory a {
	color: var(--owlh-accent);
	text-decoration: none;
}

.ajob-directory a:hover {
	color: var(--owlh-accent-hover);
	text-decoration: none;
}


/* =========================================================
   KOPF
========================================================= */

.ajob-directory-head {
	padding: 16px 20px 14px;
	background: var(--owlh-surface-soft);
	border-bottom: 1px solid var(--owlh-border-soft);
}

.ajob-directory-kicker {
	display: block;
	margin: 0 0 3px;
	color: var(--owlh-accent);
	font-size: 8px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ajob-directory-head h2 {
	position: relative;
	margin: 0;
	padding: 0 0 8px;
	color: var(--owlh-heading);
	font-family: var(--owlh-font-serif);
	font-size: 21px;
	font-weight: normal;
	font-style: italic;
	line-height: 1.2;
}

.ajob-directory-head h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 45px;
	height: 1px;
	background: var(--owlh-accent);
}

.ajob-directory-body {
	padding: 15px;
}


/* =========================================================
   HAUPTKATEGORIEN-NAVIGATION
========================================================= */

.ajob-nav {
	margin: 0 0 15px;
	padding: 6px;
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 5px;
	background: var(--owlh-surface-soft);
	border: 1px solid var(--owlh-border-soft);
}

.ajob-nav a {
	padding: 7px 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border);
	color: var(--owlh-text-soft);
	font-size: 8px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ajob-nav a:hover {
	background: var(--owlh-accent-soft);
	border-color: var(--owlh-border-strong);
	color: var(--owlh-accent-hover);
}


/* =========================================================
   KATEGORIE-HIERARCHIE
========================================================= */

.ajob-root-category {
	margin: 0 0 22px;
	scroll-margin-top: 18px;
}

.ajob-root-category:last-child {
	margin-bottom: 0;
}

.ajob-subcategory {
	margin: 15px 0 0;
}

.ajob-category-title {
	color: var(--owlh-heading);
}

/* Ebene 1: z. B. Magische Welt / Muggelwelt */
.ajob-category-title-1 {
	position: relative;
	margin: 0 0 15px;
	padding: 15px 17px 12px;
	background: var(--owlh-nav-bg);
	color: var(--owlh-nav-text);
	font-family: var(--owlh-font-serif);
	font-size: 21px;
	font-weight: normal;
	font-style: italic;
	line-height: 1.2;
}

.ajob-category-title-1::after {
	content: "";
	position: absolute;
	left: 17px;
	bottom: 7px;
	width: 46px;
	height: 1px;
	background: var(--owlh-accent);
}

/* Ebene 2: z. B. London */
.ajob-category-title-2 {
	position: relative;
	margin: 19px 0 9px;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--owlh-border-soft);
	font-family: var(--owlh-font-serif);
	font-size: 18px;
	font-weight: normal;
	font-style: italic;
	line-height: 1.25;
}

.ajob-category-title-2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 38px;
	height: 1px;
	background: var(--owlh-accent);
}

/* Ebene 3: z. B. Winkelgasse */
.ajob-category-title-3 {
	margin: 15px 0 8px;
	padding: 7px 10px;
	background: var(--owlh-surface-soft);
	border-left: 2px solid var(--owlh-accent);
	color: var(--owlh-text-soft);
	font-size: 9px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Ebene 4: z. B. Gastronomie */
.ajob-category-title-4 {
	margin: 13px 0 7px;
	padding: 0 0 6px 10px;
	border-bottom: 1px dashed var(--owlh-border);
	color: var(--owlh-accent);
	font-size: 8px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .09em;
	text-transform: uppercase;
}


/* =========================================================
   ARBEITSPLÄTZE
========================================================= */

.ajob-workplaces {
	display: grid;
	gap: 7px;
}

.ajob-workplace {
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--owlh-surface-raised);
	border: 1px solid var(--owlh-border-soft);
}

.ajob-workplace-title {
	padding: 10px 13px 9px;
	background: var(--owlh-surface);
	border-bottom: 1px solid var(--owlh-border-soft);
	color: var(--owlh-heading);
	font-family: var(--owlh-font-serif);
	font-size: 15px;
	font-weight: normal;
	font-style: italic;
	line-height: 1.25;
}

.ajob-workplace-grid {
	display: grid;
	grid-template-columns: 1.35fr .9fr 1fr;
	align-items: stretch;
}

.ajob-workplace-description,
.ajob-workplace-facts,
.ajob-workplace-staff {
	min-width: 0;
	padding: 13px;
	border-right: 1px solid var(--owlh-border-soft);
}

.ajob-workplace-staff {
	border-right: 0;
}

.ajob-workplace-description {
	color: var(--owlh-text-soft);
	font-size: 11.5px;
	line-height: 1.65;
	text-align: left;
}


/* =========================================================
   INFOS / LEITUNG
========================================================= */

.ajob-fact {
	margin: 0 0 6px;
	padding: 0 0 6px;
	border-bottom: 1px solid var(--owlh-border-soft);
	color: var(--owlh-text-muted);
	font-size: 10.5px;
	line-height: 1.5;
}

.ajob-fact:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.ajob-fact > span {
	color: var(--owlh-text-soft);
	font-weight: 700;
}

.ajob-fact a {
	color: var(--owlh-accent);
}


/* =========================================================
   MITARBEITER:INNEN
========================================================= */

.ajob-staff-label {
	margin: 0 0 7px;
	color: var(--owlh-accent);
	font-size: 8px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ajob-workplace-staff ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ajob-workplace-staff li {
	position: relative;
	margin: 0;
	padding: 4px 0 4px 12px;
	border-bottom: 1px solid var(--owlh-border-soft);
	color: var(--owlh-text-soft);
	font-size: 10.5px;
	line-height: 1.5;
}

.ajob-workplace-staff li:last-child {
	border-bottom: 0;
}

.ajob-workplace-staff li::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 10px;
	width: 5px;
	height: 5px;
	transform: rotate(45deg);
	background: var(--owlh-accent-soft);
	border: 1px solid var(--owlh-accent);
}

.ajob-person-position {
	color: var(--owlh-text-muted);
	font-size: 9.5px;
}

.ajob-npc {
	font-style: italic;
}

.ajob-npc::after {
	content: " NPC";
	margin-left: 3px;
	color: var(--owlh-text-muted);
	font-family: var(--owlh-font-body);
	font-size: 7px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ajob-muted,
.ajob-empty {
	color: var(--owlh-text-muted);
	font-style: italic;
}

.ajob-empty {
	padding: 22px 16px;
	background: var(--owlh-surface-raised);
	border: 1px dashed var(--owlh-border);
	font-family: var(--owlh-font-serif);
	font-size: 13px;
	text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

	.ajob-workplace-grid {
		grid-template-columns: 1.2fr 1fr;
	}

	.ajob-workplace-staff {
		grid-column: 1 / -1;
		border-top: 1px solid var(--owlh-border-soft);
		border-right: 0;
	}

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

	.ajob-directory-head {
		padding: 14px 15px 12px;
	}

	.ajob-directory-head h2 {
		font-size: 19px;
	}

	.ajob-directory-body {
		padding: 12px;
	}

	.ajob-nav {
		align-items: stretch;
	}

	.ajob-nav a {
		flex: 1 1 calc(50% - 5px);
	}

	.ajob-category-title-1 {
		font-size: 19px;
	}

	.ajob-workplace-grid {
		grid-template-columns: 1fr;
	}

	.ajob-workplace-description,
	.ajob-workplace-facts,
	.ajob-workplace-staff {
		padding: 12px;
		border-right: 0;
		border-bottom: 1px solid var(--owlh-border-soft);
	}

	.ajob-workplace-staff {
		grid-column: auto;
		border-top: 0;
		border-bottom: 0;
	}

	.ajob-workplace-description {
		font-size: 12px;
	}

	.ajob-fact,
	.ajob-workplace-staff li {
		font-size: 11px;
	}

}


/* =========================================================
   KLEINE SMARTPHONES
========================================================= */

@media (max-width: 460px) {

	.ajob-directory-body {
		padding: 9px;
	}

	.ajob-nav a {
		flex-basis: 100%;
	}

	.ajob-category-title-1 {
		padding-left: 13px;
		padding-right: 13px;
	}

	.ajob-category-title-1::after {
		left: 13px;
	}

}
