/* HTL Villach Personen – person cards.
   Variant "kompakt" reproduces the team page card 1:1 (old HTML widget: .lv mk-h ml-g rd-3).
   Tokens from the Customizer CSS: --htlv-accent, --htlv-sweep-time, --htlv-sweep-ease, --htlv-<abteilung>. */

.htlv-pl,
.htlv-p-single {
	--htlv-p-ink: var(--htlv-schwarz, #1A1814);
	--htlv-p-grey: #555;
	--htlv-p-grey-light: #777;
	--htlv-p-pill: #f2f2f2;
	--htlv-p-acc: var(--htlv-accent, #FFE843);
	--htlv-p-time: var(--htlv-sweep-time, .8s);
	--htlv-p-ease: var(--htlv-sweep-ease, cubic-bezier(.65, 0, .35, 1));
	font-family: inherit;
	color: var(--htlv-p-ink);
}
.htlv-pl *,
.htlv-p-single * { box-sizing: border-box; }
.htlv-pl { padding: 10px 0 20px; }

/* ---------- Search and filter bar ---------- */
.htlv-pl__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.htlv-pl .htlv-pl__q {
	flex: 1 1 260px; max-width: 340px; height: 36px; margin: 0; padding: 0 16px;
	border: 1px solid #ddd; border-radius: 40px; background: #fff; color: var(--htlv-p-ink);
	font: inherit; font-size: 13px; font-weight: 400; line-height: 34px;
	text-transform: none; letter-spacing: normal; outline: none; box-shadow: none;
}
.htlv-pl .htlv-pl__q::placeholder { color: #999; opacity: 1; text-transform: none; letter-spacing: normal; font-weight: 400; }
.htlv-pl .htlv-pl__q:focus,
.htlv-pl .htlv-pl__q:focus-visible { outline: none; box-shadow: none; border: 1px solid var(--htlv-p-grey); }
/* Touch devices: iOS Safari zooms in when focusing a field below 16px and stays zoomed,
   so the page looks wider than the screen. 16px prevents the auto zoom. */
@media (pointer: coarse) {
	.htlv-pl .htlv-pl__q { font-size: 16px; }
}

.htlv-pl__f { gap: 6px; margin-bottom: 32px; }
.htlv-pl__f button {
	display: inline-flex; align-items: center; gap: 7px; height: 25px; padding: 2px 11px 2px 2px;
	border: 1px solid #ddd; border-radius: 40px; background: #fff; color: var(--htlv-p-grey);
	font: inherit; font-size: 10px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
	cursor: pointer;
}
.htlv-pl__f button[data-f=""] { padding-left: 11px; }
.htlv-pl__f button i { display: inline-block; width: 19px; height: 19px; flex: 0 0 19px; border-radius: 50%; background: var(--d); }
.htlv-pl__f button small { font-size: 9px; opacity: .6; }
.htlv-pl__f button[aria-pressed="true"] { background: var(--htlv-p-ink); border-color: var(--htlv-p-ink); color: #fff; }
.htlv-pl__f button[aria-pressed="true"] i { box-shadow: 0 0 0 1.5px #fff; }
.htlv-pl__empty { color: var(--htlv-p-grey-light); }
.htlv-pl__note { padding: 12px 14px; background: #f6f6f6; font-size: 13px; }

/* ---------- Grid ---------- */
.htlv-pl__g { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 38px 16px; }
.htlv-pl--landscape .htlv-pl__g { gap: 40px 32px; }

/* ---------- Card (kompakt = team page) ---------- */
.htlv-p { --htlv-p-inset: 8px; display: flex; flex-direction: column; min-width: 0; background: #fff; }
/* --htlv-p-inset: inner spacing of the text area to the card edge (visible on grey backgrounds). */
/* Placeholders for missing or hidden lines/buttons: take up space, invisible. */
.htlv-p__empty { visibility: hidden; pointer-events: none; }
.htlv-p[hidden] { display: none; }

.htlv-p__pw { position: relative; overflow: hidden; border-radius: 0 0 10px 10px; }
.htlv-p__ph { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #efefef; }
.htlv-p__ph--empty { display: grid; place-items: center; color: #bdbdbd; font-size: 20px; letter-spacing: .12em; }

.htlv-p__tag {
	position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 7px;
	height: 25px; max-width: calc(100% - 12px); padding: 3px 11px 3px 3px; overflow: hidden; white-space: nowrap;
	border-radius: 40px; background: #fff; color: var(--htlv-p-grey);
	font-size: 10px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
}
.htlv-p__tag:before { content: ""; width: 19px; height: 19px; flex: 0 0 19px; border-radius: 50%; background: var(--d); }

.htlv-p__b { display: flex; flex-direction: column; flex: 1; padding: 12px var(--htlv-p-inset) var(--htlv-p-inset); }
.htlv-p__n { margin: 0; font-size: 15px; line-height: 1.25; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
.htlv-p__fn { display: block; }
.htlv-p__ln { display: block; font-weight: var(--htlv-bold, 600); letter-spacing: .02em; }
.htlv-p__t { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--htlv-p-grey-light); }
.htlv-p__r { display: block; margin-top: 8px; font-size: 13px; line-height: 1.35; }
.htlv-p__meta { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; color: var(--htlv-p-grey); }
.htlv-p__tel a { color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.htlv-p__tel a:hover, .htlv-p__tel a:focus-visible { text-decoration: underline; }

/* Footer with buttons; room for further icons to the right */
.htlv-p__ft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }

/* ---------- Button (pill + circle, yellow sweep) – same for mail and phone ---------- */
.htlv-p__btn {
	position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
	/* All pills (e-mail, phone) share one length: fits the longest label ("E-MAIL", "DW 151"). Change here only. */
	width: auto; min-width: var(--htlv-p-btn-min, 110px); height: 36px; flex: 0 0 auto; padding: 0 3px 0 14px; border-radius: 36px;
	background: var(--htlv-p-pill); color: var(--htlv-p-ink); text-decoration: none;
	transition: background-color .4s cubic-bezier(0, 0, .3642, 1);
}
.htlv-p__btn:hover,
.htlv-p__btn:focus { color: var(--htlv-p-ink); text-decoration: none; }
.htlv-p__btn:focus-visible { outline: 2px solid var(--htlv-p-ink); outline-offset: 2px; }

/* Yellow starts at the left inside the pill and travels to the circle */
.htlv-p__btn:before {
	content: ""; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; right: calc(100% - 3px);
	border-radius: 30px; background: var(--htlv-p-acc); opacity: 0; pointer-events: none;
}
.htlv-p__btn:hover:before,
.htlv-p__btn:focus-visible:before { animation: htlvPSweep var(--htlv-p-time) var(--htlv-p-ease) forwards; }
@keyframes htlvPSweep {
	0%   { opacity: 0; left: 3px; right: calc(100% - 33px); }
	15%  { opacity: 1; left: 3px; right: calc(100% - 33px); }
	70%  { opacity: 1; left: 3px; right: 3px; }
	100% { opacity: 0; left: calc(100% - 33px); right: 3px; }
}

.htlv-p__lb {
	position: relative; z-index: 1; display: inline; font-size: 11px; font-weight: 500; letter-spacing: .12em;
	text-transform: uppercase; line-height: 1; color: var(--htlv-p-ink); white-space: nowrap;
}

.htlv-p__ic {
	position: relative; z-index: 1; display: block; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
	background-color: rgba(0, 0, 0, .08);
	background-image: radial-gradient(circle closest-side, var(--htlv-p-acc) 97%, transparent 100%);
	background-repeat: no-repeat; background-position: center; background-size: 0% 0%;
	transition: background-color .25s ease, background-size .45s var(--htlv-p-ease), transform .45s var(--htlv-p-ease);
	transition-delay: 0s;
}
.htlv-p__btn:hover .htlv-p__ic,
.htlv-p__btn:focus-visible .htlv-p__ic {
	background-size: 100% 100%; transform: scale(1.15);
	transition-delay: 0s, calc(var(--htlv-p-time) * .45), calc(var(--htlv-p-time) * .45);
}
.htlv-p__ic:before {
	content: ""; position: absolute; inset: 7px; background: var(--htlv-p-ink);
	-webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.htlv-p__btn--mail {
	--ico: var(--htlv-ico-mail, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2'/%3E%3Cpath d='M3.6 6.6 12 13l8.4-6.4'/%3E%3C/svg%3E"));
}
.htlv-p__btn--tel {
	--ico: var(--htlv-ico-tel, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a1 1 0 0 1-1 1A16 16 0 0 1 4 5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"));
}

/* ---------- Variant "quer": photo left, more information ---------- */
.htlv-p--landscape { flex-direction: row; align-items: stretch; gap: 20px; }
.htlv-p--landscape .htlv-p__pw { flex: 0 0 38%; align-self: flex-start; }
.htlv-p--landscape .htlv-p__b { flex: 1 1 auto; min-width: 0; padding: var(--htlv-p-inset) var(--htlv-p-inset) var(--htlv-p-inset) 0; }
.htlv-p--landscape .htlv-p__n { font-size: 18px; }
.htlv-p__info {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px;
	margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #e4e4e4; font-size: 13px; line-height: 1.4;
}
.htlv-p__info dt { padding-top: 2px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--htlv-p-grey-light); }
.htlv-p__info dd { margin: 0; overflow-wrap: anywhere; }
.htlv-p__info a { color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.htlv-p__info a:hover { text-decoration: underline; }
.htlv-p__txt { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--htlv-p-grey); }

/* ---------- Single card ---------- */
.htlv-p-single--compact,
.htlv-p-single--contact { max-width: 240px; }
.htlv-p-single--landscape { max-width: 620px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.htlv-pl--c5 .htlv-pl__g,
	.htlv-pl--c6 .htlv-pl__g { --cols: 4; }
}
@media (max-width: 820px) {
	.htlv-pl--landscape .htlv-pl__g { --cols: 1; }
	.htlv-pl--c4 .htlv-pl__g { --cols: 3; }
}
@media (max-width: 700px) {
	.htlv-pl--c3 .htlv-pl__g,
	.htlv-pl--c4 .htlv-pl__g,
	.htlv-pl--c5 .htlv-pl__g,
	.htlv-pl--c6 .htlv-pl__g { --cols: 2; gap: 34px 12px; }
	/* Variant "quer" on phones: photo on top, info below. Photo as wide as a card in the
	   two-column grid (half width minus half the 12px gap), so all photos have the same size. */
	.htlv-p--landscape { flex-direction: column; gap: 0; }
	.htlv-p--landscape .htlv-p__pw { flex: none; width: calc(50% - 6px); align-self: flex-start; }
	.htlv-p--landscape .htlv-p__b { padding: 12px var(--htlv-p-inset) var(--htlv-p-inset); }
	.htlv-p--landscape .htlv-p__n { font-size: 15px; }
}
@media (max-width: 480px) {
	/* Narrow screens: label above value instead of two columns */
	.htlv-p__info { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.htlv-p__info dd + dt { margin-top: 8px; }
	.htlv-p__info a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	.htlv-p__btn:hover:before,
	.htlv-p__btn:focus-visible:before { animation: none; }
	.htlv-p__btn,
	.htlv-p__ic { transition: none; }
}
