/* Haarpflege Preisliste – Ausgabe auf der Website (Salon-CI).
   Schrift erbt vom Theme (Avada). Farben über die Variablen anpassbar. */

.hp-pl {
	--hp-pl-accent: #7f2738;      /* Überschrift, Größen-Pills */
	--hp-pl-pill: #efe6e1;        /* Hintergrund Pills */
	--hp-pl-ink: inherit;         /* Leistungsname, Preise */
	--hp-pl-line: #d3dbdd;        /* Trennlinien */
	--hp-pl-col: 4.4em;           /* Breite einer Preisspalte */
	--hp-pl-gap: .7em;
}

.hp-pl__sec + .hp-pl__sec {
	margin-top: 1.7em;
}

.hp-pl .hp-pl__h {
	margin: 0 0 .3em;
	color: var(--hp-pl-accent);
	/* Avada setzt für h3 eine eigene Schrift (Inter) – hier die Schrift der Umgebung (Outfit) übernehmen */
	font-family: inherit;
	letter-spacing: inherit;
	text-transform: none;
	/* Desktop ca. 22 px, auf kleinen Bildschirmen nicht unter 20 px (größer als die Leistungsnamen) */
	font-size: max(1.25rem, calc(clamp(1.5rem, 1.15rem + 1.1vw, 1.9rem) - 8px));
	font-weight: 600;
	line-height: 1.2;
}

.hp-pl__table {
	width: 100%;
}

.hp-pl__thead,
.hp-pl__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) repeat(5, var(--hp-pl-col));
	column-gap: var(--hp-pl-gap);
	align-items: start;
}

.hp-pl__sec--single .hp-pl__thead,
.hp-pl__sec--single .hp-pl__row {
	grid-template-columns: minmax(0, 1fr) var(--hp-pl-col);
}

/* Haarlängen-Avatare über den Pills. Alle im selben Maßstab:
   XS (die breiteste Grafik, 42 px) füllt die Spalte, die übrigen im Verhältnis ihrer Breite. */
.hp-pl__avatars {
	display: grid;
	grid-template-columns: minmax(0, 1fr) repeat(5, var(--hp-pl-col));
	column-gap: var(--hp-pl-gap);
	align-items: end;
	margin-bottom: .35em;
}

.hp-pl__av {
	display: block;
	justify-self: center;
	max-width: none;
	height: auto;
	border: 0;
	box-shadow: none;
}

.hp-pl__av--xs { grid-column-start: 2; width: 100%; }  /* 42 px */
.hp-pl__av--s  { width: 73.8%; }                       /* 31 px */
.hp-pl__av--m  { width: 69%; }                         /* 29 px */
.hp-pl__av--l  { width: 61.9%; }                       /* 26 px */
.hp-pl__av--xl { width: 81%; }                         /* 34 px */

/* Größen-Pills */
.hp-pl__thead {
	margin-bottom: .25em;
}

.hp-pl__thead > .hp-pl__pill:nth-child(2) {
	grid-column-start: 2;
}

/* Überschrift steht in derselben Zeile wie die Pills, mittig auf deren Höhe */
.hp-pl__thead--h {
	align-items: center;
}

.hp-pl__hcell {
	padding-right: 1.5em;
}

.hp-pl .hp-pl__hcell .hp-pl__h {
	margin: 0;
}

.hp-pl__pill {
	padding: .35em 0;
	border-radius: 6px;
	background: var(--hp-pl-pill);
	color: var(--hp-pl-accent);
	font-size: calc(1.05em - 2px);
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

/* Einzelpreis: kein Pill-Kopf, nur für Screenreader */
.hp-pl__sec--single .hp-pl__thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.hp-pl__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Kurzinfo unter der Überschrift – Schrift wie die Zusatzinformation */
.hp-pl__note {
	padding: .1em 0 .2em;
}

.hp-pl .hp-pl__note-text {
	display: flex;
	align-items: flex-start;
	gap: .45em;
	margin: 0;
	padding: 0;
	font-size: calc(1em - 2px);
	line-height: 1.45;
}

.hp-pl__note-ico {
	flex: none;
	width: 1.2em;
	height: 1.2em;
	margin-top: .1em;
	color: var(--hp-pl-accent);
}

/* Zeilen */
.hp-pl__row {
	padding: .7em 0 .75em;
	border-bottom: 1px solid var(--hp-pl-line);
}

.hp-pl__item {
	display: flex;
	flex-direction: column;
	gap: .15em;
	padding-right: 1.5em;
}

.hp-pl__name,
.hp-pl__p {
	color: var(--hp-pl-ink);
	font-size: calc(1.15em - 2px);
	font-weight: 600;
	line-height: 1.35;
}

.hp-pl__info {
	max-width: 36em;
	font-size: calc(1em - 2px);
	line-height: 1.45;
}

.hp-pl__p {
	font-variant-numeric: tabular-nums;
	text-align: center;
	white-space: nowrap;
}

.hp-pl__sec--single .hp-pl__p {
	text-align: right;
}

/* Handy: Preise unter die Leistung, Größe steht klein darüber */
@media (max-width: 640px) {
	.hp-pl__sec--sizes .hp-pl__thead {
		display: none;
	}

	/* Überschrift bleibt sichtbar, die Pills stehen dann an jedem Preis */
	.hp-pl__sec--sizes .hp-pl__thead--h {
		display: block;
		margin-bottom: .3em;
	}

	.hp-pl__sec--sizes .hp-pl__thead--h .hp-pl__pill {
		display: none;
	}

	.hp-pl__hcell {
		padding-right: 0;
	}

	/* Avatare im selben 5er-Raster wie die Preise darunter */
	.hp-pl__avatars {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: .4em;
		margin-bottom: .5em;
	}

	.hp-pl__av--xs {
		grid-column-start: 1;
	}

	.hp-pl__sec--sizes .hp-pl__row {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		row-gap: .55em;
		column-gap: .4em;
	}

	.hp-pl__sec--sizes .hp-pl__item {
		grid-column: 1 / -1;
		padding-right: 0;
	}

	.hp-pl__sec--sizes .hp-pl__p {
		display: flex;
		flex-direction: column;
		gap: .3em;
		font-size: calc(1.05em - 2px);
	}

	.hp-pl__sec--sizes .hp-pl__p::before {
		content: attr(data-l);
		padding: .15em 0;
		border-radius: 6px;
		background: var(--hp-pl-pill);
		color: var(--hp-pl-accent);
		font-size: .8em;
	}

	.hp-pl__sec--single .hp-pl__item {
		padding-right: .8em;
	}
}
