/* Lindo Adventskalender – Frontend */
.lak {
	--lak-akzent: #F5A623;
	--lak-tuer: #141414;
	--lak-tuer-text: #fff;
	--lak-radius: 14px;
	margin: 2em 0;
}
.lak-kopf { text-align: center; margin-bottom: 1.2em; }
.lak-titel { margin: 0 0 .3em; }
.lak-intro { margin: 0 auto; max-width: 40em; }
.lak-status {
	text-align: center;
	font-weight: 600;
	min-height: 1.5em;
	margin: .6em 0 1em;
}
.lak-status:empty { display: none; }

.lak-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}
@media (max-width: 900px) { .lak-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lak-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.lak-feld { margin: 0; padding: 0; }
.lak-feld::marker { content: none; }

.lak-tuer {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, .08);
	border-radius: var(--lak-radius);
	background-color: var(--lak-tuer);
	background-image:
		radial-gradient(circle at 20% 25%, color-mix(in srgb, var(--lak-akzent) 22%, transparent) 0 2px, transparent 3px),
		radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--lak-akzent) 18%, transparent) 0 2px, transparent 3px),
		linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .12));
	background-size: 38px 38px, 46px 46px, 100% 100%;
	color: var(--lak-tuer-text);
	font: inherit;
	cursor: pointer;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.lak-tuer:focus-visible { outline: 3px solid var(--lak-akzent); outline-offset: 3px; }
.lak-nr {
	position: relative;
	z-index: 2;
	font-size: clamp(1.4rem, 4.2vw, 2.5rem);
	font-weight: 800;
	line-height: 1;
	color: var(--lak-akzent);
	text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.lak-heute {
	display: none;
	position: absolute;
	z-index: 2;
	bottom: 8%;
	left: 50%;
	transform: translateX(-50%);
	padding: .15em .6em;
	border-radius: 99px;
	background: var(--lak-akzent);
	color: var(--lak-tuer);
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
}

/* geschlossen */
.lak-tuer.is-zu { cursor: default; }
.lak-tuer.is-zu .lak-nr { opacity: .85; }
/* Schleife auf geschlossenen Türen */
.lak-tuer.is-zu::before,
.lak-tuer.is-zu::after {
	content: "";
	position: absolute;
	z-index: 1;
	background: color-mix(in srgb, var(--lak-akzent) 28%, transparent);
}
.lak-tuer.is-zu::before { top: 0; bottom: 0; left: 50%; width: 10%; transform: translateX(-50%); }
.lak-tuer.is-zu::after { left: 0; right: 0; top: 50%; height: 10%; transform: translateY(-50%); }
.lak-tuer.is-wackeln { animation: lak-wackeln .4s ease; }

/* offen */
.lak-tuer.is-offen:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.lak-tuer.is-offen.has-bild {
	background-image: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), var(--lak-bg);
	background-size: cover;
	background-position: center;
}
.lak-tuer.is-gesehen::before {
	content: "✓";
	position: absolute;
	z-index: 2;
	top: 6%;
	left: 8%;
	font-size: .8rem;
	font-weight: 700;
	color: var(--lak-akzent);
}

/* heute */
.lak-tuer.is-heute {
	opacity: 1;
	border-color: var(--lak-akzent);
	animation: lak-puls 2.2s ease-in-out infinite;
}
.lak-tuer.is-heute .lak-heute { display: block; }

@keyframes lak-puls {
	0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lak-akzent) 55%, transparent); }
	50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--lak-akzent) 0%, transparent); }
}
@keyframes lak-wackeln {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px) rotate(-2deg); }
	75% { transform: translateX(4px) rotate(2deg); }
}

/* Dialog */
.lak-dialog {
	width: min(560px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	overflow: auto;
}
.lak-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.lak-dialog-inner { position: relative; }
.lak-dialog-body { padding: 0 0 1.4em; }
.lak-dialog-body > *:not(.lak-bild) { margin-left: 1.4rem; margin-right: 1.4rem; }
.lak-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 22px;
	line-height: 36px;
	cursor: pointer;
}
.lak-bild { margin: 0 0 1em; }
.lak-bild img { display: block; width: 100%; height: auto; border-radius: 16px 16px 0 0; }
.lak-dialog-body > .lak-meta:first-child { padding-top: 1.4rem; }
.lak-meta { margin-top: 0; margin-bottom: .5em; font-size: .85rem; }
.lak-tag { font-weight: 700; color: color-mix(in srgb, var(--lak-akzent) 75%, #000); }
.lak-label,
.lak-anzeige {
	display: inline-block;
	margin-left: .4em;
	padding: .1em .55em;
	border-radius: 99px;
	background: var(--lak-akzent);
	color: var(--lak-tuer);
	font-size: .75rem;
	font-weight: 700;
}
.lak-anzeige { background: #e9e9e9; color: #555; font-weight: 600; }
.lak-dlg-titel { margin-top: 0; margin-bottom: .5em; font-size: 1.35rem; line-height: 1.25; }
.lak-text p { margin: 0 0 .8em; }
.lak-aktion { margin-top: 1em; margin-bottom: 0; }
.lak-button {
	display: inline-block;
	padding: .7em 1.3em;
	border-radius: 8px;
	background: var(--lak-akzent);
	color: var(--lak-tuer) !important;
	font-weight: 700;
	text-decoration: none !important;
}
.lak-button:hover,
.lak-button:focus { filter: brightness(1.06); }

.lak-hinweis { margin-top: 1em; font-size: .8rem; opacity: .75; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.lak-tuer, .lak-tuer.is-heute, .lak-tuer.is-wackeln { animation: none; transition: none; }
	.lak-tuer.is-offen:hover { transform: none; }
}

/* Teaser: Hinweis auf das heutige Türchen */
.lak-teaser { margin: 0 0 1.2em; }
.lak-teaser[hidden] { display: none !important; }
.lak-teaser-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px 8px 10px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-left: 4px solid var(--lak-akzent);
	border-radius: 8px;
	background: #fff;
	color: inherit !important;
	text-decoration: none !important;
	line-height: 1.3;
	transition: box-shadow .15s ease;
}
.lak-teaser-link:hover,
.lak-teaser-link:focus-visible { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.lak-teaser-tuer {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 7px;
	background: var(--lak-tuer);
	overflow: hidden;
}
.lak-teaser-tuer::before,
.lak-teaser-tuer::after {
	content: "";
	position: absolute;
	background: color-mix(in srgb, var(--lak-akzent) 30%, transparent);
}
.lak-teaser-tuer::before { top: 0; bottom: 0; left: 50%; width: 5px; transform: translateX(-50%); }
.lak-teaser-tuer::after { left: 0; right: 0; top: 50%; height: 5px; transform: translateY(-50%); }
.lak-teaser-nr { position: relative; z-index: 1; color: var(--lak-akzent); font-weight: 800; font-size: 1.05rem; }
.lak-teaser-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.lak-teaser-kicker {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--lak-akzent) 70%, #000);
}
.lak-teaser-titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lak-teaser-cta { flex: 0 0 auto; font-size: .9rem; font-weight: 700; color: color-mix(in srgb, var(--lak-akzent) 70%, #000); white-space: nowrap; }
.lak-teaser-bild { display: none; }

/* Variante Karte (z. B. Startseite) */
.lak-teaser--karte { margin-top: 2em; margin-bottom: 1.5em; }
.lak-teaser--karte .lak-teaser-link { padding: 0; border-left-width: 1px; border-radius: 12px; overflow: hidden; gap: 0; align-items: stretch; }
.lak-teaser--karte .lak-teaser-bild {
	display: block;
	flex: 0 0 34%;
	min-height: 120px;
	background: var(--lak-tuer) var(--lak-bg, none) center / cover no-repeat;
}
.lak-teaser--karte .lak-teaser-tuer { align-self: center; margin: 0 0 0 16px; width: 46px; height: 46px; }
.lak-teaser--karte .lak-teaser-nr { font-size: 1.3rem; }
.lak-teaser--karte .lak-teaser-text { align-self: center; padding: 14px 16px; }
.lak-teaser--karte .lak-teaser-titel { white-space: normal; font-size: 1.1rem; }
.lak-teaser--karte .lak-teaser-cta {
	align-self: center;
	margin-right: 16px;
	padding: .55em 1em;
	border-radius: 8px;
	background: var(--lak-akzent);
	color: var(--lak-tuer);
}
@media (max-width: 600px) {
	.lak-teaser--leiste .lak-teaser-cta span { display: none; }
	.lak-teaser--leiste .lak-teaser-cta { font-size: 0; }
	.lak-teaser--leiste .lak-teaser-cta::after { content: "›"; font-size: 1.4rem; }
	.lak-teaser--karte .lak-teaser-link { flex-wrap: wrap; }
	.lak-teaser--karte .lak-teaser-bild { flex-basis: 100%; min-height: 0; aspect-ratio: 16 / 9; }
	.lak-teaser--karte .lak-teaser-tuer { margin-top: 14px; }
	.lak-teaser--karte .lak-teaser-text { flex-basis: calc(100% - 80px); }
	.lak-teaser--karte .lak-teaser-cta { margin: 0 16px 16px auto; }
}
