/* ProfilManager – Frontend Styles
   Farben kommen aus den Einstellungen via --pm-primary / --pm-accent */
:root {
	--pm-primary: #1a4fb4;
	--pm-accent: #0f9d8a;
	--pm-ink: #1f2733;
	--pm-muted: #66707d;
	--pm-line: #e6e9ef;
	--pm-bg: #f3f4f6;
}

.pm-directory,
.pm-profile {
	color: var(--pm-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.55;
}

/* ---------- Verzeichnis ---------- */
.pm-intro { color: var(--pm-muted); margin-bottom: 18px; }

.pm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}
.pm-filters input,
.pm-filters select {
	padding: 10px 12px;
	border: 1px solid var(--pm-line);
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
}
.pm-filters #pm-q { flex: 1 1 240px; }
.pm-filters #pm-minyears { width: 120px; }

.pm-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	transition: opacity .2s;
}
.pm-results.pm-loading { opacity: .4; }

.pm-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--pm-line);
	border-radius: 12px;
	padding: 18px;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pm-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(20, 30, 50, .10);
	border-color: var(--pm-primary);
}
.pm-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.pm-card-head h3 { margin: 0; font-size: 17px; }
.pm-card-role { margin: 2px 0 0; color: var(--pm-muted); font-size: 14px; }

.pm-card-photo,
.pm-photo {
	width: 52px; height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}
.pm-photo-placeholder {
	display: flex; align-items: center; justify-content: center;
	background: var(--pm-primary); color: #fff;
	font-weight: 700; font-size: 22px;
	text-transform: uppercase;
}
.pm-card-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--pm-muted); margin-bottom: 10px; }

.pm-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
.pm-badge-available { background: #e3f6ee; color: #0b7a52; }
.pm-badge-soon { background: #fdf3df; color: #946200; }
.pm-badge-booked { background: #f0f1f3; color: #66707d; }

.pm-card-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-chip {
	font-size: 12px;
	padding: 4px 9px;
	border-radius: 6px;
	background: #eef2fb;
	color: var(--pm-primary);
}
.pm-empty { color: var(--pm-muted); grid-column: 1 / -1; }

/* ---------- Einzelprofil ---------- */
.pm-standalone .pm-profile { max-width: 920px; margin: 28px auto; }
.pm-profile {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(20, 30, 50, .06);
}
.pm-profile-header {
	background: linear-gradient(135deg, var(--pm-primary), var(--pm-accent));
	color: #fff;
	padding: 0 0 26px;
}
.pm-brandbar {
	display: flex; justify-content: space-between; align-items: center;
	padding: 16px 26px;
	background: rgba(0, 0, 0, .12);
}
.pm-logo { max-height: 38px; }
.pm-company { font-weight: 700; font-size: 18px; }
.pm-print-btn {
	background: rgba(255, 255, 255, .18);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .5);
	padding: 8px 14px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
}
.pm-print-btn:hover { background: rgba(255, 255, 255, .28); }

.pm-identity { display: flex; gap: 20px; align-items: center; padding: 8px 26px 0; }
.pm-identity .pm-photo { width: 92px; height: 92px; border: 3px solid rgba(255,255,255,.6); }
.pm-identity h1 { margin: 0; font-size: 28px; }
.pm-role { margin: 4px 0 0; font-size: 17px; opacity: .92; }
.pm-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 14px; }
.pm-facts > span { background: rgba(255, 255, 255, .16); padding: 4px 10px; border-radius: 6px; }
.pm-facts .pm-badge { background: rgba(255,255,255,.92); }

.pm-profile-body {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 0;
}
.pm-main { padding: 28px; }
.pm-aside { padding: 28px; background: #fafbfc; border-left: 1px solid var(--pm-line); }

.pm-section { margin-bottom: 26px; }
.pm-section h2 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--pm-primary);
	border-bottom: 2px solid var(--pm-line);
	padding-bottom: 6px;
	margin: 0 0 14px;
}
.pm-summary { margin: 0; }

.pm-entry { margin-bottom: 18px; }
.pm-entry-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pm-entry-head h3 { margin: 0; font-size: 16px; }
.pm-period { color: var(--pm-muted); font-size: 13px; white-space: nowrap; }
.pm-entry-sub { margin: 2px 0 6px; color: var(--pm-accent); font-weight: 600; font-size: 14px; }
.pm-entry p { margin: 0 0 6px; }
.pm-tech { font-size: 13px; color: var(--pm-muted); font-style: italic; }

.pm-skill-group { margin: 14px 0 8px; font-size: 14px; color: var(--pm-ink); }
.pm-skill { margin-bottom: 10px; }
.pm-skill-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.pm-skill-lvl { color: var(--pm-muted); font-size: 12px; }
.pm-skill-bar { height: 6px; background: #e8ebf2; border-radius: 4px; overflow: hidden; }
.pm-skill-bar span { display: block; height: 100%; background: var(--pm-accent); border-radius: 4px; }

.pm-profile-footer {
	display: flex; justify-content: space-between;
	padding: 16px 28px;
	border-top: 1px solid var(--pm-line);
	color: var(--pm-muted); font-size: 13px;
}

@media ( max-width: 720px ) {
	.pm-profile-body { grid-template-columns: 1fr; }
	.pm-aside { border-left: none; border-top: 1px solid var(--pm-line); }
	.pm-identity { flex-direction: column; text-align: center; }
}

/* ---------- Druck / PDF ---------- */
@media print {
	body { background: #fff !important; }
	.pm-print-btn { display: none !important; }
	.pm-profile { box-shadow: none; border-radius: 0; margin: 0; max-width: none; }
	.pm-profile-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.pm-skill-bar span, .pm-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.pm-entry, .pm-section { page-break-inside: avoid; }
}
