/*
 * AddUse Jobs — Darstellung im Frontend.
 *
 * Gestaltungsentscheide, kurz begründet:
 *
 * — Schriften kommen vom Theme (Didact Gothic für Titel, Nunito für Text).
 *   Didact Gothic hat NUR EINEN SCHNITT. Hierarchie läuft deshalb über Grösse,
 *   Versalien, Laufweite und Farbe, nie über Fettung. Wo Auszeichnung nötig ist,
 *   springt Nunito ein — die hat Schnitte.
 * — Neutraltöne sind warm gehalten (#f6f4ef, #e3e0d9) statt blaugrau. Der
 *   Gegenstand ist Holz; kühle Grautöne lassen eine Seite nach Software aussehen.
 * — Gelb ist der einzige Akzent. Auf hellem Grund ist reines #f7c51e als Textfarbe
 *   unlesbar (Kontrast 1.9:1), dafür gibt es --ahj-accent-ink.
 * — Signatur: die Aufzählungspunkte sind Ringe, keine Scheiben — die Jahrringe auf
 *   dem Stirnholz, das ein Rundholzeinkäufer lesen können muss. Und die Eckdaten
 *   stehen als Massliste mit Tabellenziffern, weil Holzhandel ein Zahlengeschäft ist.
 *
 * Beim nächsten Kunden wird der :root-Block ersetzt, nicht das Stilblatt.
 */

:root {
	/* Farbe */
	--ahj-accent: #f7c51e;
	--ahj-accent-dark: #e0ad00;
	--ahj-accent-ink: #7a5c00;
	--ahj-on-accent: #23272a;
	--ahj-ink: #23272a;
	--ahj-body: #4a4f52;
	--ahj-muted: #7b8085;
	--ahj-line: #e3e0d9;
	--ahj-line-strong: #cfcbc1;
	--ahj-surface: #ffffff;
	--ahj-surface-alt: #f6f4ef;
	--ahj-error: #a52216;

	/* Abstände */
	--ahj-1: 4px;
	--ahj-2: 8px;
	--ahj-3: 12px;
	--ahj-4: 20px;
	--ahj-5: 32px;
	--ahj-6: 48px;
	--ahj-7: 72px;

	/* Schrift */
	--ahj-utility: .75rem;
	--ahj-tracking: .14em;

	--ahj-radius: 4px;
	--ahj-max: 860px;
	--ahj-measure: 64ch;
}

/* ------------------------------------------------------------------ *
 * Grundgerüst
 * ------------------------------------------------------------------ */

.ahj-container {
	max-width: var(--ahj-max);
	margin: 0 auto;
	padding: var(--ahj-6) var(--ahj-4) var(--ahj-7);
}

.ahj-job {
	max-width: var(--ahj-max);
	margin: 0 auto;
	color: var(--ahj-body);
}

/*
 * Themes wie Divi setzen eigene Aufzählungszeichen und Abstände auf jedes li.
 * Ohne diese Rücksetzung stehen neben den eigenen Punkten noch die des Themes.
 */
.ahj-job ul,
.ahj-form ul,
.ahj-notice ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ahj-job ul > li,
.ahj-form ul > li,
.ahj-notice ul > li {
	list-style: none;
	background: none;
}

.ahj-job ul > li::marker,
.ahj-form ul > li::marker {
	content: "";
}

/* Wiederkehrende Kleinschrift: Augenbraue, Feldbezeichnung, Massliste. */
.ahj-hero__eyebrow,
.ahj-label,
.ahj-facts dt,
.ahj-group legend,
.ahj-joblist__meta {
	font-size: var(--ahj-utility);
	letter-spacing: var(--ahj-tracking);
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1.4;
}

/* ------------------------------------------------------------------ *
 * Kopfbereich
 * ------------------------------------------------------------------ */

.ahj-hero {
	position: relative;
	border-radius: var(--ahj-radius);
	overflow: hidden;
	margin-bottom: var(--ahj-6);
	background: var(--ahj-surface-alt);
	background-size: cover;
	background-position: center 62%;
}

.ahj-hero:not(.ahj-hero--image) {
	background: none;
	border-radius: 0;
	border-bottom: 1px solid var(--ahj-line);
	padding-bottom: var(--ahj-5);
}

.ahj-hero__inner {
	position: relative;
	padding: 0;
}

/*
 * Nur mit Bild wird der Kopf dunkel. Ohne Bild bliebe weisse Schrift auf hellem
 * Grund unlesbar — darum hängt die Umkehrung am Bild, nicht am Kopf.
 */
.ahj-hero--image {
	min-height: 420px;
	display: flex;
	align-items: flex-end;
}

.ahj-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(178deg, rgba(24, 27, 24, .10) 0%, rgba(24, 27, 24, .52) 48%, rgba(24, 27, 24, .86) 100%);
}

.ahj-hero--image .ahj-hero__inner {
	padding: var(--ahj-7) var(--ahj-5) var(--ahj-5);
	color: #fff;
}

.ahj-hero__eyebrow {
	margin: 0 0 var(--ahj-3);
	color: var(--ahj-accent-ink);
}

.ahj-hero--image .ahj-hero__eyebrow {
	color: var(--ahj-accent);
}

.ahj-hero__title {
	margin: 0 0 var(--ahj-3);
	/*
	 * Grosse geometrische Groteske braucht etwas negative Laufweite, sonst
	 * fallen die Wörter auseinander. text-wrap sorgt für einen ruhigen Rand.
	 */
	font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.1rem);
	line-height: 1.06;
	letter-spacing: -.015em;
	max-width: 19ch;
	text-wrap: balance;
	color: var(--ahj-ink);
}

.ahj-hero--image .ahj-hero__title {
	color: #fff;
	max-width: 22ch;
}

.ahj-hero__claim {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.55;
	max-width: 38ch;
	text-wrap: balance;
	color: inherit;
	opacity: .94;
}

.ahj-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ahj-2) var(--ahj-2);
	margin: var(--ahj-4) 0 0 !important;
}

.ahj-hero__facts li {
	margin: 0;
	padding: 5px 13px;
	border-radius: 999px;
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.5;
	/* Nur Haarlinie, keine Füllung — eine Auszeichnung genügt. */
	border: 1px solid rgba(255, 255, 255, .45);
	color: #fff;
}

.ahj-hero:not(.ahj-hero--image) .ahj-hero__facts li {
	border-color: var(--ahj-line-strong);
	color: var(--ahj-muted);
}

.ahj-hero__cta {
	margin: var(--ahj-5) 0 0;
}

/* ------------------------------------------------------------------ *
 * Bildbänder
 * ------------------------------------------------------------------ */

.ahj-band {
	margin: 0 0 var(--ahj-6);
	border-radius: var(--ahj-radius);
	overflow: hidden;
	line-height: 0;
}

/*
 * Als Band, nicht als Wand: Hochformate wie die Rundholz-Aufnahme würden sonst
 * über eine ganze Bildschirmhöhe laufen und den Lesefluss abreissen.
 */
.ahj-band img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	object-position: center;
}

.ahj-band--form {
	margin-top: var(--ahj-2);
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ *
 * Abschnitte
 * ------------------------------------------------------------------ */

.ahj-section {
	margin: 0 0 var(--ahj-6);
}

.ahj-section__title {
	margin: 0 0 var(--ahj-4);
	font-size: 1.5rem;
	line-height: 1.25;
	letter-spacing: -.005em;
	text-wrap: balance;
	color: var(--ahj-ink);
}

.ahj-richtext,
.ahj-list {
	max-width: var(--ahj-measure);
}

.ahj-richtext p {
	margin: 0 0 var(--ahj-4);
	line-height: 1.75;
}

.ahj-richtext > :last-child {
	margin-bottom: 0;
}

.ahj-richtext--lead {
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--ahj-ink);
}

.ahj-richtext img {
	max-width: 100%;
	height: auto;
	border-radius: var(--ahj-radius);
	margin: var(--ahj-4) 0;
}

.ahj-richtext .alignleft,
.ahj-richtext .alignright {
	max-width: 45%;
}

.ahj-richtext .alignleft {
	float: left;
	margin: var(--ahj-1) var(--ahj-5) var(--ahj-3) 0;
}

.ahj-richtext .alignright {
	float: right;
	margin: var(--ahj-1) 0 var(--ahj-3) var(--ahj-5);
}

/*
 * Signatur: der Aufzählungspunkt ist ein Ring, keine Scheibe — das Stirnholz
 * eines Stamms mit seinen Jahrringen, das genau diese Bewerber lesen können.
 */
.ahj-list li {
	position: relative;
	padding: 0 0 0 30px;
	margin: 0 0 var(--ahj-3);
	line-height: 1.7;
}

.ahj-list li:last-child {
	margin-bottom: 0;
}

.ahj-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .55em;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 2px solid var(--ahj-accent);
}

/* ------------------------------------------------------------------ *
 * Eckdaten als Massliste
 * ------------------------------------------------------------------ */

.ahj-section--facts {
	background: var(--ahj-surface-alt);
	border-radius: var(--ahj-radius);
	padding: var(--ahj-5) var(--ahj-5) var(--ahj-4);
}

.ahj-facts {
	margin: 0;
	display: grid;
}

.ahj-facts__row {
	display: grid;
	grid-template-columns: minmax(120px, 26%) 1fr;
	gap: var(--ahj-1) var(--ahj-4);
	padding: var(--ahj-3) 0;
	border-top: 1px solid var(--ahj-line-strong);
	align-items: baseline;
}

.ahj-facts__row:first-child {
	border-top: 0;
	padding-top: 0;
}

.ahj-facts__row:last-child {
	padding-bottom: 0;
}

.ahj-facts dt {
	margin: 0;
	color: var(--ahj-muted);
}

.ahj-facts dd {
	margin: 0;
	color: var(--ahj-ink);
	/* Tabellenziffern: Pensen und Löhne stehen dadurch bündig untereinander. */
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* ------------------------------------------------------------------ *
 * Übersicht mehrerer Stellen
 * ------------------------------------------------------------------ */

.ahj-joblist {
	display: grid;
	gap: var(--ahj-3);
}

.ahj-joblist__link {
	display: block;
	padding: var(--ahj-5);
	border: 1px solid var(--ahj-line);
	border-left: 3px solid var(--ahj-accent);
	border-radius: var(--ahj-radius);
	background: var(--ahj-surface);
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, background .15s ease;
}

.ahj-joblist__link:hover,
.ahj-joblist__link:focus-visible {
	background: var(--ahj-surface-alt);
}

.ahj-joblist__title {
	margin: 0 0 var(--ahj-1);
	font-size: 1.375rem;
	line-height: 1.25;
	color: var(--ahj-ink);
}

.ahj-joblist__subtitle {
	margin: 0 0 var(--ahj-2);
	color: var(--ahj-body);
}

.ahj-joblist__meta {
	margin: 0;
	color: var(--ahj-muted);
}

.ahj-joblist__more {
	display: inline-block;
	margin-top: var(--ahj-3);
	font-weight: 700;
	color: var(--ahj-ink);
	box-shadow: inset 0 -2px 0 var(--ahj-accent);
}

.ahj-empty {
	padding: var(--ahj-6) 0;
	color: var(--ahj-muted);
}

/* ------------------------------------------------------------------ *
 * Formular
 * ------------------------------------------------------------------ */

.ahj-form-wrap {
	margin-top: var(--ahj-7);
	padding-top: var(--ahj-6);
	border-top: 1px solid var(--ahj-line);
}

.ahj-form-title {
	margin: 0 0 var(--ahj-2);
	font-size: 1.75rem;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--ahj-ink);
}

.ahj-form-intro {
	color: var(--ahj-muted);
	margin: 0 0 var(--ahj-6);
	font-size: .9375rem;
}

.ahj-group {
	border: 0;
	padding: 0;
	margin: 0 0 var(--ahj-6);
}

.ahj-group legend {
	padding: 0 0 var(--ahj-2);
	margin: 0 0 var(--ahj-4);
	width: 100%;
	color: var(--ahj-muted);
	border-bottom: 1px solid var(--ahj-line);
}

.ahj-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ahj-4);
}

.ahj-field--wide,
.ahj-field--radio,
.ahj-field--files,
.ahj-field--textarea {
	grid-column: 1 / -1;
}

.ahj-label {
	display: block;
	margin-bottom: var(--ahj-2);
	color: var(--ahj-ink);
}

.ahj-req {
	color: var(--ahj-error);
	letter-spacing: 0;
}

.ahj-note {
	display: block;
	color: var(--ahj-muted);
	font-size: .875rem;
	margin: -4px 0 var(--ahj-2);
	line-height: 1.5;
}

/*
 * Zusätzlich über .ahj-form ausgezeichnet, mit Absicht: Divi setzt in einem
 * INLINE-Stilblatt `input[type="text"] { border: 1px solid #bbb }`. Das hat
 * dieselbe Spezifität wie `input.ahj-input`, steht aber später im Dokument und
 * gewann deshalb. Die Elternklasse hebt die Spezifität — sauberer als
 * !important, das jede spätere Anpassung im Child-Theme blockieren würde.
 */
.ahj-form input.ahj-input,
.ahj-form textarea.ahj-input,
.ahj-form select.ahj-input,
.ahj-form .ahj-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--ahj-line-strong);
	border-radius: var(--ahj-radius);
	background: var(--ahj-surface);
	color: var(--ahj-ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.45;
	transition: border-color .12s ease, box-shadow .12s ease;
}

.ahj-form .ahj-input:hover {
	border-color: var(--ahj-muted);
}

.ahj-form .ahj-input:focus,
.ahj-form .ahj-input:focus-visible {
	outline: none;
	border-color: var(--ahj-accent-dark);
	box-shadow: 0 0 0 3px rgba(247, 197, 30, .35);
}

.ahj-form textarea.ahj-input {
	resize: vertical;
	min-height: 120px;
}

.ahj-radios {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ahj-2);
}

.ahj-radio {
	display: inline-flex;
	align-items: center;
	gap: var(--ahj-2);
	padding: 10px 18px;
	border: 1px solid var(--ahj-line-strong);
	border-radius: 999px;
	cursor: pointer;
	background: var(--ahj-surface);
	line-height: 1.4;
	transition: border-color .12s ease, background .12s ease;
}

.ahj-radio:hover {
	border-color: var(--ahj-accent-dark);
	background: var(--ahj-surface-alt);
}

.ahj-radio input {
	margin: 0;
	accent-color: var(--ahj-accent-dark);
}

.ahj-radio:focus-within {
	border-color: var(--ahj-accent-dark);
	box-shadow: 0 0 0 3px rgba(247, 197, 30, .35);
}

.ahj-field--invalid .ahj-input {
	border-color: var(--ahj-error);
}

.ahj-error {
	display: block;
	margin-top: var(--ahj-2);
	color: var(--ahj-error);
	font-size: .875rem;
	line-height: 1.5;
}

/* Honigtopf — für Menschen unsichtbar, für Bots verlockend. */
.ahj-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Upload */

.ahj-drop__zone {
	position: relative;
}

.ahj-drop__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--ahj-1);
	padding: var(--ahj-6) var(--ahj-4);
	border: 1px dashed var(--ahj-line-strong);
	border-radius: var(--ahj-radius);
	background: var(--ahj-surface-alt);
	text-align: center;
	transition: border-color .15s ease, background .15s ease;
}

.ahj-drop__zone.is-over .ahj-drop__inner {
	border-color: var(--ahj-accent-dark);
	border-style: solid;
	background: #fffaea;
}

.ahj-drop__icon {
	width: 28px;
	height: 28px;
	color: var(--ahj-muted);
	margin-bottom: var(--ahj-1);
}

.ahj-drop__main {
	font-weight: 700;
	color: var(--ahj-ink);
}

.ahj-drop__sub {
	color: var(--ahj-muted);
	font-size: .9375rem;
}

.ahj-drop__button {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-weight: 700;
	color: var(--ahj-accent-ink);
	cursor: pointer;
	box-shadow: inset 0 -2px 0 var(--ahj-accent);
}

/*
 * Das Dateifeld liegt unsichtbar über der Fläche, damit Klick UND Ablegen ohne
 * JavaScript funktionieren. Mit JavaScript übernimmt der Uploader die Anzeige.
 */
.ahj-file {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.ahj-file:focus-visible + .ahj-drop__inner {
	border-color: var(--ahj-accent-dark);
	box-shadow: 0 0 0 3px rgba(247, 197, 30, .35);
}

.ahj-files {
	display: grid;
	gap: var(--ahj-2);
	margin: var(--ahj-3) 0 0 !important;
}

.ahj-files li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ahj-3);
	padding: 11px 15px;
	border: 1px solid var(--ahj-line);
	border-radius: var(--ahj-radius);
	background: var(--ahj-surface);
	font-size: .9375rem;
}

.ahj-files__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ahj-ink);
}

.ahj-files__size {
	color: var(--ahj-muted);
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
}

.ahj-files__remove {
	flex: 0 0 auto;
	background: none;
	border: 0;
	color: var(--ahj-error);
	font: inherit;
	font-size: .875rem;
	cursor: pointer;
	padding: 2px 4px;
}

/* Knopf und Meldungen */

.ahj-button {
	display: inline-block;
	padding: 15px 36px;
	border: 0;
	border-radius: var(--ahj-radius);
	background: var(--ahj-accent);
	color: var(--ahj-on-accent);
	font: inherit;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.3;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease, transform .1s ease;
}

.ahj-button:hover,
.ahj-button:focus-visible {
	background: var(--ahj-accent-dark);
	color: var(--ahj-on-accent);
}

.ahj-button:active {
	transform: translateY(1px);
}

.ahj-button--ghost {
	background: transparent;
	border: 2px solid var(--ahj-accent);
	color: var(--ahj-ink);
}

.ahj-submit {
	margin: var(--ahj-5) 0 var(--ahj-2);
}

/* ------------------------------------------------------------------ *
 * Rückmeldung beim Senden
 *
 * Ein Upload von mehreren Megabyte dauert; ohne sichtbaren Fortschritt sieht
 * das aus wie ein hängender Knopf. Wer das glaubt, klickt nochmals oder bricht ab.
 * ------------------------------------------------------------------ */

.ahj-button[data-ahj-submit] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ahj-2);
}

.ahj-spinner {
	display: none;
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	border: 2px solid rgba(35, 39, 42, .3);
	border-top-color: var(--ahj-on-accent);
	border-radius: 50%;
	animation: ahj-spin .7s linear infinite;
}

.ahj-button.is-sending .ahj-spinner {
	display: block;
}

.ahj-button.is-sending {
	cursor: progress;
	opacity: .9;
}

@keyframes ahj-spin {
	to { transform: rotate(360deg); }
}

.ahj-progress {
	margin: 0 0 var(--ahj-4);
	max-width: var(--ahj-measure);
}

.ahj-progress[hidden] {
	display: none;
}

.ahj-progress__track {
	height: 6px;
	border-radius: 999px;
	background: var(--ahj-line);
	overflow: hidden;
}

.ahj-progress__fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--ahj-accent);
	transition: width .2s ease;
}

/*
 * Solange der Server rechnet, ist kein Prozentwert bekannt — dann läuft ein
 * Streifen, statt einen Fortschritt vorzutäuschen, den niemand kennt.
 */
.ahj-progress__track.is-indeterminate .ahj-progress__fill {
	width: 100% !important;
	background: linear-gradient(90deg, var(--ahj-line) 0%, var(--ahj-accent) 50%, var(--ahj-line) 100%);
	background-size: 200% 100%;
	animation: ahj-sweep 1.2s linear infinite;
}

@keyframes ahj-sweep {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

.ahj-progress__text {
	margin: var(--ahj-2) 0 0;
	font-size: .875rem;
	color: var(--ahj-muted);
	font-variant-numeric: tabular-nums;
}

.ahj-progress__text--error {
	color: var(--ahj-error);
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.ahj-spinner,
	.ahj-progress__track.is-indeterminate .ahj-progress__fill {
		animation: none;
	}

	.ahj-progress__fill {
		transition: none;
	}
}

.ahj-hint,
.ahj-privacy {
	color: var(--ahj-muted);
	font-size: .875rem;
	line-height: 1.6;
	margin: 0 0 var(--ahj-2);
	max-width: var(--ahj-measure);
}

.ahj-notice {
	padding: var(--ahj-4) var(--ahj-4) var(--ahj-4) var(--ahj-5);
	border-radius: var(--ahj-radius);
	margin-bottom: var(--ahj-5);
	border-left: 3px solid var(--ahj-accent);
	background: var(--ahj-surface-alt);
}

.ahj-notice p {
	margin: 0 0 var(--ahj-2);
}

.ahj-notice p:last-child,
.ahj-notice ul {
	margin-bottom: 0;
}

.ahj-notice li {
	margin-bottom: var(--ahj-1);
}

.ahj-notice--error {
	border-left-color: var(--ahj-error);
	background: #fbf1ef;
}

.ahj-notice--success {
	border-left-color: #2e7d32;
	background: #f1f6f1;
}

/* Tastaturbedienung sichtbar halten. */
.ahj-job a:focus-visible,
.ahj-form a:focus-visible,
.ahj-button:focus-visible,
.ahj-drop__button:focus-visible,
.ahj-files__remove:focus-visible {
	outline: 2px solid var(--ahj-accent-dark);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ *
 * Geschützte Bewerbungsseite
 * ------------------------------------------------------------------ */

body.ahj-standalone {
	margin: 0;
	background: var(--ahj-surface-alt);
	color: var(--ahj-body);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.65;
}

.ahj-standalone__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: var(--ahj-6) var(--ahj-4) var(--ahj-7);
}

.ahj-standalone__header {
	background: var(--ahj-surface);
	border-radius: var(--ahj-radius);
	padding: var(--ahj-5);
	border-top: 3px solid var(--ahj-accent);
	margin-bottom: var(--ahj-4);
}

.ahj-standalone__logo {
	display: block;
	max-width: 190px;
	max-height: 52px;
	width: auto;
	height: auto;
	margin: 0 0 var(--ahj-4);
}

.ahj-standalone__header h1 {
	margin: 0 0 var(--ahj-1);
	font-size: 1.75rem;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--ahj-ink);
}

.ahj-standalone__eyebrow {
	margin: 0 0 var(--ahj-2);
	text-transform: uppercase;
	letter-spacing: var(--ahj-tracking);
	font-size: var(--ahj-utility);
	font-weight: 700;
	color: var(--ahj-muted);
}

.ahj-standalone__meta,
.ahj-standalone__contact {
	margin: 0;
	color: var(--ahj-muted);
	font-size: .9375rem;
}

.ahj-standalone__section {
	background: var(--ahj-surface);
	border-radius: var(--ahj-radius);
	padding: var(--ahj-5);
	margin-bottom: var(--ahj-4);
}

.ahj-standalone__section h2 {
	margin: 0 0 var(--ahj-4);
	font-size: 1.125rem;
	letter-spacing: -.005em;
	color: var(--ahj-ink);
}

.ahj-count {
	display: inline-block;
	margin-left: var(--ahj-2);
	padding: 1px 9px;
	border-radius: 999px;
	background: var(--ahj-accent);
	color: var(--ahj-on-accent);
	font-size: .75rem;
	font-weight: 700;
	vertical-align: middle;
}

.ahj-downloads {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ahj-2);
}

.ahj-download {
	display: flex;
	align-items: center;
	gap: var(--ahj-3);
	padding: 13px 16px;
	border: 1px solid var(--ahj-line-strong);
	border-radius: var(--ahj-radius);
	text-decoration: none;
	color: var(--ahj-ink);
	transition: border-color .12s ease, background .12s ease;
}

.ahj-download:hover,
.ahj-download:focus-visible {
	border-color: var(--ahj-accent-dark);
	background: #fffdf5;
}

.ahj-download__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ahj-accent);
	color: var(--ahj-on-accent);
}

.ahj-download__icon svg {
	width: 20px;
	height: 20px;
}

.ahj-download__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ahj-download__name {
	display: block;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ahj-download__meta {
	display: block;
	margin-top: 2px;
	color: var(--ahj-muted);
	font-size: .8125rem;
	font-variant-numeric: tabular-nums;
}

.ahj-download__type {
	display: inline-block;
	margin-right: var(--ahj-2);
	padding: 0 6px;
	border: 1px solid var(--ahj-line-strong);
	border-radius: 3px;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--ahj-body);
}

.ahj-download__action {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: .875rem;
	color: var(--ahj-ink);
	box-shadow: inset 0 -2px 0 var(--ahj-accent);
}

.ahj-downloads__hint {
	margin: var(--ahj-3) 0 0;
	font-size: .8125rem;
	color: var(--ahj-muted);
}

.ahj-standalone__tools {
	margin: var(--ahj-4) 0 0;
}

.ahj-standalone__tools .ahj-button {
	padding: 9px 20px;
	font-size: .875rem;
}

.ahj-printonly {
	display: none;
}

@media (max-width: 560px) {
	.ahj-download__action {
		display: none;
	}
}

.ahj-answers {
	margin: 0;
	display: grid;
}

.ahj-answers__row {
	display: grid;
	gap: var(--ahj-1);
	padding: var(--ahj-3) 0;
	border-top: 1px solid var(--ahj-line);
}

.ahj-answers__row:first-child {
	border-top: 0;
	padding-top: 0;
}

.ahj-answers dt {
	margin: 0;
	color: var(--ahj-muted);
	font-size: var(--ahj-utility);
	letter-spacing: var(--ahj-tracking);
	text-transform: uppercase;
	font-weight: 700;
}

.ahj-answers dd {
	margin: 0;
	color: var(--ahj-ink);
}

.ahj-standalone__footer {
	color: var(--ahj-muted);
	font-size: .875rem;
}

.ahj-standalone__footer p {
	margin: 0 0 var(--ahj-1);
}

.ahj-standalone--gate .ahj-standalone__inner {
	max-width: 520px;
	padding-top: var(--ahj-7);
}

.ahj-standalone--gate h1 {
	margin: 0 0 var(--ahj-3);
	font-size: 1.5rem;
	line-height: 1.25;
	color: var(--ahj-ink);
}

.ahj-standalone--gate p {
	margin: 0 0 var(--ahj-4);
}

.ahj-archive__title {
	margin: 0 0 var(--ahj-6);
	color: var(--ahj-ink);
}

/* ------------------------------------------------------------------ *
 * Kleine Bildschirme
 * ------------------------------------------------------------------ */

@media (max-width: 720px) {
	.ahj-grid {
		grid-template-columns: 1fr;
	}

	.ahj-facts__row {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.ahj-container {
		padding: var(--ahj-5) var(--ahj-3) var(--ahj-6);
	}

	.ahj-button {
		width: 100%;
		text-align: center;
	}

	.ahj-hero--image {
		min-height: 340px;
	}

	.ahj-hero--image .ahj-hero__inner {
		padding: var(--ahj-6) var(--ahj-4) var(--ahj-4);
	}

	.ahj-hero__title {
		max-width: none;
	}

	.ahj-section--facts {
		padding: var(--ahj-4);
	}

	.ahj-richtext .alignleft,
	.ahj-richtext .alignright {
		float: none;
		max-width: 100%;
		margin: var(--ahj-4) 0;
	}

	.ahj-band img {
		aspect-ratio: 4 / 3;
	}

	/* Deutsche Komposita brechen in schmalen Spalten sonst unschön um. */
	.ahj-richtext,
	.ahj-list {
		hyphens: auto;
	}

	/* Auf schmalen Schirmen kostet weite Laufweite eine ganze Zeile. */
	.ahj-hero__eyebrow {
		letter-spacing: .09em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ahj-joblist__link,
	.ahj-drop__inner,
	.ahj-button,
	.ahj-input,
	.ahj-radio,
	.ahj-download {
		transition: none;
	}

	.ahj-button:active {
		transform: none;
	}
}

/* ------------------------------------------------------------------ *
 * Druck der Bewerbungsseite
 *
 * Bewusst OHNE die verbreitete Regel, Linkadressen hinter den Link zu drucken:
 * die Adresse dieser Seite enthält das Zugangs-Token. Gedruckt läge der Zugang
 * zur Bewerbung auf dem Papier — und Papier lässt sich nicht widerrufen.
 * ------------------------------------------------------------------ */

@media print {
	@page {
		margin: 14mm 15mm;
	}

	/*
	 * Auf Papier eine Serifenschrift: Eine Bewerbung wird gelesen, nicht
	 * überflogen, und in kleinen Graden führt eine Serife das Auge besser.
	 */
	body.ahj-standalone {
		background: #fff;
		color: #000;
		font-family: Georgia, "Times New Roman", serif;
		font-size: 10pt;
		line-height: 1.35;
	}

	/*
	 * Reihenfolge auf Papier: zuerst die Angaben, die Unterlagen ans Ende.
	 * Am Bildschirm bleibt es umgekehrt, dort sind die Downloads das Erste,
	 * was gebraucht wird.
	 */
	.ahj-standalone__inner {
		display: flex;
		flex-direction: column;
		max-width: none;
		padding: 0;
	}

	.ahj-standalone__header {
		order: 1;
	}

	.ahj-standalone__section--answers {
		order: 2;
	}

	.ahj-standalone__section--files {
		order: 3;
	}

	.ahj-print-footer {
		order: 4;
	}

	.ahj-noprint,
	.ahj-standalone__tools,
	.ahj-download__icon,
	.ahj-download__action,
	.ahj-downloads__hint,
	.ahj-count {
		display: none !important;
	}

	.ahj-printonly {
		display: block;
	}

	.ahj-standalone__header,
	.ahj-standalone__section {
		background: none;
		padding: 0;
		border: 0;
		border-radius: 0;
	}

	.ahj-standalone__header {
		margin: 0 0 6mm;
		padding-bottom: 2.5mm;
		border-bottom: 1pt solid #000;
	}

	.ahj-standalone__section {
		margin: 0 0 7mm;
	}

	/* Briefkopf: klein gehalten, ein Logo über die halbe Seite kostet nur Toner. */
	.ahj-standalone__logo {
		max-width: 42mm;
		max-height: 13mm;
		margin: 0 0 8mm;
	}

	.ahj-standalone__header h1 {
		font-size: 15pt;
		line-height: 1.15;
		margin-bottom: 1mm;
	}

	/* Keine Versalien auf Papier, das liest sich hart. */
	.ahj-standalone__eyebrow,
	.ahj-answers dt {
		text-transform: none;
		letter-spacing: normal;
		font-weight: 400;
	}

	.ahj-standalone__eyebrow {
		font-size: 9pt;
		color: #444;
		margin-bottom: 1mm;
	}

	.ahj-standalone__meta,
	.ahj-standalone__contact {
		color: #000;
		font-size: 9.5pt;
		line-height: 1.4;
		margin: 0;
	}

	.ahj-standalone__contact {
		font-style: italic;
	}

	.ahj-standalone__header {
		margin-bottom: 6mm;
	}

	.ahj-standalone__section h2 {
		font-size: 10.5pt;
		font-weight: 700;
		margin: 0 0 2.5mm;
		padding-bottom: 1mm;
		border-bottom: .75pt solid #000;
	}

	.ahj-standalone__section {
		margin-bottom: 7mm;
	}

	/*
	 * Zwei Spalten statt untereinander: spart rund die Hälfte der Höhe und ist
	 * der Grund, weshalb eine gewöhnliche Bewerbung auf eine Seite passt.
	 *
	 * Die Spalte ist breit genug für ganze Fragen. Mit 46mm brachen Sätze wie
	 * «Sind Sie bereit, Lieferanten und Kunden regelmässig zu besuchen?» auf
	 * vier Zeilen um, während rechts allein «Ja» stand.
	 */
	.ahj-answers__row {
		display: grid;
		grid-template-columns: 62mm 1fr;
		gap: 0 5mm;
		break-inside: avoid;
		padding: 1.8mm 0;
		border-top: .25pt solid #d8d8d8;
	}

	.ahj-answers__row:first-child {
		border-top: 0;
		padding-top: 0;
	}

	/*
	 * Kursiv statt grau: Auf Papier trägt der Schriftschnitt den Unterschied
	 * zwischen Frage und Antwort zuverlässiger als eine Graustufe, die je nach
	 * Drucker verschwindet oder schmutzig wird.
	 */
	.ahj-answers dt {
		font-size: 8.5pt;
		font-style: italic;
		line-height: 1.3;
		color: #4a4a4a;
	}

	.ahj-answers dd {
		font-size: 10pt;
		line-height: 1.35;
		color: #000;
		orphans: 2;
		widows: 2;
	}

	/* Die Unterlagen erscheinen als reine Liste — die Dateien selbst nicht. */
	.ahj-downloads {
		gap: 0;
	}

	.ahj-download {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 0 5mm;
		align-items: baseline;
		border: 0;
		padding: 1.2mm 0;
		border-top: .25pt solid #d8d8d8;
		background: none;
	}

	.ahj-downloads li:first-child .ahj-download {
		border-top: 0;
		padding-top: 0;
	}

	.ahj-download__body {
		display: contents;
	}

	.ahj-download__name {
		display: block;
		font-weight: 400;
		white-space: normal;
		word-break: break-all;
	}

	/* Typ und Grösse rechtsbündig: gibt der Liste eine ruhige Kante. */
	.ahj-download__meta {
		display: block;
		margin: 0;
		text-align: right;
		white-space: nowrap;
		font-size: 8.5pt;
		font-style: italic;
		color: #4a4a4a;
	}

	.ahj-download__type {
		border: 0;
		padding: 0;
		margin: 0 1.5mm 0 0;
		font-size: 8.5pt;
		font-weight: 400;
		font-style: italic;
		letter-spacing: normal;
		color: #4a4a4a;
	}

	.ahj-print-footer {
		margin-top: 4mm;
		padding-top: 1.5mm;
		border-top: .5pt solid #999;
		font-size: 8pt;
		color: #444;
	}

	a {
		color: #000;
		text-decoration: none;
	}
}
