/* Baustein „Partyfotos“: Event-Auswahl, Etiketten der Album-Art, Album-Karte (Polaroid-Stapel).
   Gestaltung: _uebergabe/entwurf-seiten/P-Fotos-Uebersicht.dc.html und P-Fotos-Album.dc.html */

/* ---------- Event-Auswahl ---------- */
.em-album-select {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 640px;
	padding: 10px;
	border-radius: 16px;
	background: var(--white);
	color: var(--navy-900);
	box-shadow: 0 24px 50px -28px rgba(15, 28, 58, 0.55);
}

.em-album-select__field {
	flex: 999 1 280px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 12px 16px;
	border-radius: var(--radius-md);
	background: var(--mist-100);
	font-size: 14px;
	line-height: 1.3;
	color: var(--text-label);
}

.em-album-select__field:focus-within {
	outline: 3px solid var(--navy-700);
	outline-offset: 2px;
}

.em-album-select__field select {
	width: 100%;
	min-height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 17px;
	color: var(--navy-900);
	text-overflow: ellipsis;
	cursor: pointer;
}

.em-album-select__field select:focus-visible {
	outline: none; /* Rahmen sitzt am ganzen Feld (:focus-within). */
}

.em-album-select__button {
	flex: 1 1 160px;
	min-height: 60px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--radius-md);
	background: var(--navy-900);
	color: var(--yellow-400);
	font-family: var(--font-display);
	font-size: 17px;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.em-album-select--album .em-album-select__button {
	background: var(--yellow-400);
	color: var(--navy-900);
}

.em-album-select__button:hover {
	transform: translateY(-1px);
}

.em-album-select__button:focus-visible {
	outline: 3px solid var(--navy-700);
	outline-offset: 3px;
}

/* Im Hero: dort, wo sonst die Buttons stehen. */
.em-hero .em-album-select {
	margin-top: var(--space-2);
}

/* ---------- Etikett der Album-Art ---------- */
.em-album-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: var(--radius-round);
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
}

.em-album-pill--bootparty    { background: var(--navy-700);   color: var(--white); }
.em-album-pill--truck        { background: var(--pink-400);   color: var(--navy-900); }
.em-album-pill--dachterrasse { background: var(--yellow-400); color: var(--navy-900); }
.em-album-pill--aftermove    { background: var(--navy-900);   color: var(--white); }
.em-album-pill--sonstiges    { background: var(--mist-100);   color: var(--navy-900); }

/* ---------- Album-Karte ---------- */
.em-album-card[hidden] {
	display: none;
}

.em-album-card__link {
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--navy-900);
	text-decoration: none;
}

.em-album-card__link:focus-visible {
	outline: 3px solid var(--navy-700);
	outline-offset: 6px;
	border-radius: var(--radius-sm);
}

.em-album-card__stack {
	position: relative;
	display: block;
	padding: 10px 10px 0;
}

/* Zwei angedeutete Fotos hinter dem Titelbild. */
.em-album-card__paper {
	position: absolute;
	inset: 10px 10px 0;
	box-shadow: 0 10px 24px -14px rgba(15, 28, 58, 0.5);
}

.em-album-card__paper--back {
	background: var(--paper);
	transform: rotate(5deg);
}

.em-album-card__paper--middle {
	background: var(--white);
	transform: rotate(-4deg);
}

.em-album-card__photo {
	position: relative;
	display: block;
	padding: 10px 10px 0;
	background: var(--paper);
	box-shadow: 0 22px 40px -20px rgba(15, 28, 58, 0.55);
	transform: rotate(var(--em-tilt, -1.5deg));
	transition: transform 0.2s ease;
}

.em-album-card__link:hover .em-album-card__photo,
.em-album-card__link:focus-visible .em-album-card__photo {
	transform: rotate(0deg) translateY(-4px);
}

.em-album-card__photo img,
.em-album-card__photo .em-polaroid__placeholder {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.em-album-card__photo .em-polaroid__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mist-100);
	color: var(--text-label);
}

.em-album-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 10px 2px 12px;
}

.em-album-card__type {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: var(--text-body);
}

.em-album-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 6px;
}

.em-album-card__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--navy-900);
}

.em-album-card__date {
	font-size: 16px;
	line-height: 1.4;
	color: var(--text-body);
}

.em-album-card__more {
	align-self: flex-start;
	margin-top: 6px;
	font-family: var(--font-display);
	font-size: 15px;
	color: var(--navy-700);
	text-decoration: underline;
	text-decoration-color: var(--yellow-400);
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
	.em-album-card__photo,
	.em-album-select__button {
		transition: none;
	}
}
