/* ============================================================
   Jobs Übersicht Block – Frontend CSS
   Präfix: jb-
   ============================================================ */

/* ── CSS Custom Properties (Defaults, werden per PHP überschrieben) ── */
.jb-wrap {
	--jb-akzent:        #c0392b;
	--jb-sekundaer:     #2e7d6e;
	--jb-karte-bg:      #ffffff;
	--jb-seite-bg:      #f0ede8;
	--jb-text:          #1a1a1a;
	--jb-text-light:    #555555;
	--jb-border:        #e5e0d8;
	--jb-radius-karte:  16px;
	--jb-radius-btn:    10px;
	--jb-shadow:        0 2px 18px rgba(0, 0, 0, 0.07);
	--jb-shadow-hover:  0 8px 32px rgba(0, 0, 0, 0.13);

	padding: 48px 0;
	background: var(--jb-seite-bg);
	font-family: inherit;
}

/* ── Innere Breite ── */
.jb-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Job-Liste (untereinander) ── */
.jb-liste {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* ── Einzelne Job-Karte ── */
.jb-karte {
	background: var(--jb-karte-bg);
	border-radius: var(--jb-radius-karte);
	box-shadow: var(--jb-shadow);
	overflow: hidden;
	display: grid;
	grid-template-columns: 50% 1fr;
	transition: box-shadow 0.25s ease;
	height: 850px;
}

.jb-karte:hover {
	box-shadow: var(--jb-shadow-hover);
}

/* ── Foto-Bereich ── */
.jb-foto-wrap {
	position: relative;
	overflow: hidden;
	min-height: 420px;
}

.jb-foto-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Fallback wenn kein Foto */
.jb-foto-placeholder {
	width: 100%;
	height: 100%;
	min-height: 420px;
	background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.jb-foto-placeholder svg {
	width: 64px;
	height: 64px;
	color: #999;
}

/* ── Inhalt-Bereich ── */
.jb-inhalt {
	padding: 40px 44px;
	display: flex;
	flex-direction: column;
	min-height: 0; /* verhindert Flex-Overflow in fixer Karte */
	height: 100%;
}

/* ── Kopfzeile: Titel + Badge ── */
.jb-kopf {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
	flex-wrap: nowrap;
}

.jb-titel {
	font-size: 20px;
	font-weight: 700;
	color: var(--jb-text);
	margin: 0;
	line-height: 1.25;
	flex: 1;
}

/* Kategorie-Badge */
.jb-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #fff;
	background: var(--jb-sekundaer);
	white-space: nowrap;
	flex-shrink: 0;
	margin-top: 4px;
}

/* ── Beschreibungstext ── */
.jb-beschreibung {
	font-size: 14px;
	color: var(--jb-text-light);
	line-height: 1.65;
	margin: 0 0 28px 0;
}

.jb-karte p {
	font-size:14px;
}

/* ── Highlights-Abschnitt ── */
.jb-highlights-label {
	font-size: 16px;
	font-weight: 600;
	color: var(--jb-text);
	margin: 0 0 0 0!important;
}

.jb-highlights-liste {
	list-style: none;
	margin: 0 0 auto 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	    padding-left: 0px !important;
	     flex-grow: 1;
}

.jb-highlights-liste li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--jb-text-light);
	line-height: 1.5;
}

/* Roter Bullet-Punkt */
.jb-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--jb-akzent);
	flex-shrink: 0;
	margin-top: 6px;
}

/* ── Buttons ── */
.jb-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 32px;
}

.jb-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 24px;
	border-radius: var(--jb-radius-btn);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border: none;
	-webkit-appearance: none; /* iOS Safari: eigenes Button-Styling zurücksetzen */
	appearance: none;
	transition: opacity 0.2s ease, transform 0.15s ease;
	letter-spacing: 0.01em;
	text-decoration: none!important;
	line-height: 1.4; /* iOS Safari: verhindert Texthöhe-Kollaps */
}

.jb-btn:hover {
	opacity: 0.82;
	color: #ffffff!important; /* war: font-size:#ffffff!important – Tippfehler */
}

.jb-buttons a:hover {
color:#ffffff!important;
}

.jb-btn:active {
	transform: translateY(0);
}

.jb-btn-mehr:hover {
	background-color:#3c8375!important;
	color:#ffffff!important;
}

.jb-btn-bewerben {
	background: var(--jb-akzent);
	color: #fff;
}

.jb-btn-mehr {
	background: var(--jb-sekundaer);
	color: #fff;
}

.jb-gruppen-titel {
    font-size: 30px;
    font-weight: 700;
    color: var(--jb-text);
    margin: 48px 0 24px 0;
    padding: 0;
    text-align: center;  /* ← NEU */
}

.jb-gruppen-titel-akzent {
    color: var(--jb-sekundaer);
}

/* Info-Icon im „Mehr Infos"-Button */
.jb-btn-mehr svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Pfeil-Icon im Bewerben-Button */
.jb-btn-bewerben svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ============================================================
   MODAL / POPUP
   ============================================================ */

.jb-modal-overlay {
	display: none;
	position: fixed;
	top: 0;           /* inset: 0 ersetzt durch explizite Werte – */
	left: 0;          /* iOS Safari < 15 unterstützt inset nicht   */
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	-webkit-transform: translateZ(0); /* iOS: erzwingt eigene Rendering-Ebene */
	transform: translateZ(0);
}

.jb-modal-overlay.jb-aktiv {
	display: flex;
}

.jb-modal {
	background: #fff;
	border-radius: 14px;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch; /* iOS Safari: flüssiges Scrollen */
	position: relative;
	padding: 40px 44px 36px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: jbModalIn 0.25s ease;
}

@keyframes jbModalIn {
	from { opacity: 0; transform: translateY(20px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* ── Modal Schließen-Button ── */
.jb-modal-schliessen {
	position: absolute;
	top: 18px;
	right: 20px;
	background: none!important;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
	color: var(--jb-text-light);
	line-height: 1;
	padding: 4px 8px;
	border-radius: 6px;
	transition: background 0.15s;
}

.jb-modal-schliessen:hover {
	background: #f0f0f0;
}

/* ── Modal Titel ── */
.jb-modal-titel {
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--jb-text);
	margin: 0 0 28px 0;
	padding-right: 40px;
}

/* ── Modal Inhalt: 2-Spalten-Grid ── */
.jb-modal-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px 40px;
	margin-bottom: 28px;
}


/* Linke Spalte (Aufgaben) → rote Icons */
.jb-modal-grid > div:first-child .jb-check-icon {
    color: var(--jb-akzent);       /* #c0392b Rot */
}

/* Rechte Spalte (Skills) → grüne Icons */
.jb-modal-grid > div:last-child .jb-check-icon {
    color: var(--jb-sekundaer);    /* #2e7d6e Grün */
    }

    .jb-modal-software-titel {
    font-size: 18px;
    font-weight: 600;
    color: var(--jb-text);
    margin: 20px 0 12px 0;
    padding: 0;

}

/* ── Abschnitts-Überschrift im Modal ── */
.jb-modal-section-titel {
	font-size: 20px;
	font-weight: 600;
	color: var(--jb-text);
	margin: 0 0 16px 0;
}

/* ── Check-Listen im Modal ── */
.jb-check-liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-left:0px!important;
}

.jb-check-liste li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--jb-text-light);
	line-height: 1.5;
}

/* Check-Icon SVG */
.jb-check-icon {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--jb-akzent);
}

/* ── „Was wir bieten"-Box ── */
.jb-angebote-box {
	background: var(--jb-seite-bg);
	border-radius: 12px;
	padding: 28px 32px;
	margin-bottom: 28px;
}

.jb-angebote-titel {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--jb-text);
	margin: 0 0 20px 0;
	text-align: center;
}

.jb-angebote-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 32px;
}

.jb-angebot-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--jb-text-light);
	line-height: 1.5;
}

.jb-stern-icon {
	flex-shrink: 0;
	color: var(--jb-akzent);
	margin-top: 1px;
	width: 21px;   /* ← war 16px */
    height: 21px;  /* ← war 16px */

}

/* ── Modal Buttons ── */
.jb-modal-buttons {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.jb-modal-buttons .jb-btn {
	width: auto;
	min-width: 200px;
	padding: 14px 32px;
	font-size:16px;
}

/* ── Kein Job gefunden ── */
.jb-leer {
	text-align: center;
	padding: 48px 24px;
	color: var(--jb-text-light);
	font-size: 1.05rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */


	


@media (max-width: 900px) {
	.jb-karte {
		grid-template-columns: 1fr;
		height: auto; /* war: height: 100% – erzeugte Höhen-Kollaps auf iPad */
	}

	.jb-foto-wrap {
		min-height: 280px;
		max-height: 340px;
	}

	.jb-inhalt {
		padding: 28px 28px;
		height: auto; /* explizit auto, da Karte kein festes height mehr hat */
	}

	.jb-modal {
		padding: 32px 24px 28px;
	}

	.jb-modal-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.jb-angebote-grid {
		grid-template-columns: 1fr;
	}
	.jb-buttons {
		gap: 12px;
		flex-direction: column; /* explizit, damit kein Theme-Override greift */
	}

	.jb-buttons .jb-btn + .jb-btn {
		margin-top: 12px; /* Fallback für gap */
	}

	.jb-kopf {
		flex-wrap: wrap; /* verhindert Badge-Überlauf bei langem Titel */
	}

	/* Abstand zwischen Job-Karten – margin statt gap (iOS-Fallback) */
	.jb-liste {
		gap: 0;
	}
	.jb-karte {
		margin-bottom: 32px;
	}
	.jb-karte:last-of-type {
		margin-bottom: 0;
	}

	/* Icon-Text-Abstand im Button – margin statt gap (iOS-Fallback) */
	.jb-btn {
		gap: 0;
	}
	.jb-btn-mehr svg {
		margin-right: 8px;
	}
	.jb-btn-bewerben svg {
		margin-left: 8px;
	}

	/* Mehr Abstand zwischen Icon/Bullet und Text – margin statt gap (iOS-Fallback) */
	.jb-check-liste li,
	.jb-angebot-item,
	.jb-highlights-liste li {
		gap: 0;
	}
	.jb-check-icon {
		margin-right: 14px;
	}
	.jb-stern-icon {
		margin-right: 14px;
	}
	.jb-bullet {
		margin-right: 14px;
	}
}

/* ── iPad Landscape & kompakte Desktops (901px – 1199px) ── */
/* Deckt ab: iPad mini/Air/Pro Landscape (1024–1194px) und iPad Pro Portrait (1024px) */
@media (min-width: 901px) and (max-width: 1199px) {

	/* Karte: feste Höhe aufheben, damit Inhalt nicht überdeckt wird */
	.jb-karte {
		height: auto;
		min-height: 520px;
	}

	/* Foto: Mindesthöhe damit es gut aussieht ohne festen Container */
	.jb-foto-wrap {
		min-height: 400px;
	}

	/* Inhalt: kompakteres Padding, height: auto statt 100% */
	.jb-inhalt {
		padding: 28px 30px;
		height: auto;
	}

	/* Buttons: engerer Abstand und margin-top statt flex-grow-Pusher */
	.jb-buttons {
		margin-top: 24px;
		gap: 10px;
		flex-direction: column; /* explizit gegen Theme-Overrides */
	}

	.jb-buttons .jb-btn + .jb-btn {
		margin-top: 10px; /* Fallback für gap */
	}

	.jb-btn {
		padding: 11px 18px;
	}

	/* Kopf: Badge darf umbrechen */
	.jb-kopf {
		flex-wrap: wrap;
	}

	/* Modal: schlankeres Padding */
	.jb-modal {
		padding: 28px 28px 24px;
	}

	.jb-modal-grid {
		gap: 20px 24px;
	}

	.jb-modal-buttons .jb-btn {
		min-width: 150px;
		padding: 12px 20px;
	}

	.jb-angebote-box {
		padding: 20px 24px;
	}

	/* Abstand zwischen Job-Karten – margin statt gap (iOS-Fallback) */
	.jb-liste {
		gap: 0;
	}
	.jb-karte {
		margin-bottom: 32px;
	}
	.jb-karte:last-of-type {
		margin-bottom: 0;
	}

	/* Icon-Text-Abstand im Button – margin statt gap (iOS-Fallback) */
	.jb-btn {
		gap: 0;
	}
	.jb-btn-mehr svg {
		margin-right: 8px;
	}
	.jb-btn-bewerben svg {
		margin-left: 8px;
	}

	/* Mehr Abstand zwischen Icon/Bullet und Text – margin statt gap (iOS-Fallback) */
	.jb-check-liste li,
	.jb-angebot-item,
	.jb-highlights-liste li {
		gap: 0;
	}
	.jb-check-icon {
		margin-right: 16px;
	}
	.jb-stern-icon {
		margin-right: 16px;
	}
	.jb-bullet {
		margin-right: 16px;
	}
}

@media (max-width: 480px) {
	.jb-buttons .jb-btn + .jb-btn {
		margin-top: 0; /* Fallback aus ≤900px zurücksetzen – gap reicht hier */
	}

	.jb-wrap {
		padding: 32px 0;
	}

	.jb-inner {
		padding: 0 16px;
	}

	.jb-inhalt {
		padding: 22px 20px;
	}

	.jb-titel {
		font-size: 1.25rem;
	}

	.jb-kopf {
		flex-direction: column;
		gap: 8px;
	}

	.jb-btn {
		font-size: 0.95rem;
		padding: 14px 18px;
	}

	.jb-modal {
		padding: 24px 18px 22px;
		max-height: 80vh;
	}

	.jb-modal-titel {
		font-size: 1.2rem;
	}

	.jb-modal-buttons {
		flex-direction: column;
	}

	.jb-modal-buttons .jb-btn {
		width: 100%;
	}

	.jb-btn {
		font-size:13px;
	}

	.jb-btn-bewerben {
		padding-top: .5rem; 
        padding-bottom: .5rem;
	}

	.jb-btn .jb-btn-mehr {
		padding-top: .5rem; 
        padding-bottom: .5rem;
	}

	.jb-modal-buttons .jb-btn {
    font-size: 13px;
    padding-top: .5rem; 
        padding-bottom: .5rem;
}
}


/* jb-modal-titel als Absatz (SEO: keine doppelte Überschrift) */
.jb-modal-titel { line-height: 1.3; }
