/* ==========================================================================
   MyDevDeals – Stylesheet
   Gestaltungsidee: Jedes Produkt ist ein "Lizenzschein" – Infoteil links,
   abgetrennter Preis-Abriss rechts, Perforation dazwischen.
   Alle Zahlen laufen in einer Monospace-Schrift, damit Preise, Laufzeiten
   und Countdowns vergleichbar untereinander stehen.
   Keine externen Schriften, keine externen Requests.
   ========================================================================== */

:root {
	--ink: #141024;
	--ink-2: #241C3D;
	--ink-3: #3B3159;
	--paper: #FFFFFF;
	--paper-2: #F5F3FB;
	--paper-3: #EDE9F8;
	--line: #E2DCF2;
	--text: #221C36;
	--muted: #6A6386;

	--brand: #6528F7;
	--brand-soft: #EFE7FF;
	--deal: #FF3D6E;
	--lifetime: #00B894;
	--signal: #FFB020;

	--notch: var(--paper-2);

	--radius: 12px;
	--maxw: 1240px;

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--paper-2);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	line-height: 1.12;
	letter-spacing: -.025em;
	font-weight: 750;
	color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 760px; }

.eyebrow {
	display: block;
	margin: 0 0 .7rem;
	font-family: var(--mono);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--brand);
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }

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

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Kopfzeile ------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(20, 16, 36, .96);
	backdrop-filter: saturate(140%) blur(6px);
	border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 62px;
}

.logo {
	display: inline-flex;
	align-items: baseline;
	gap: .35rem;
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -.03em;
	color: #fff;
	text-decoration: none;
}

.logo__mark {
	font-family: var(--mono);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: 0;
	padding: .2rem .4rem;
	border-radius: 5px;
	background: var(--brand);
	color: #fff;
}

.nav { margin-left: auto; }

.nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav a {
	display: block;
	padding: .45rem .7rem;
	font-size: .88rem;
	font-weight: 500;
	color: rgba(255, 255, 255, .78);
	text-decoration: none;
	border-radius: 7px;
}

.nav a:hover, .nav a[aria-current="page"] {
	color: #fff;
	background: rgba(255, 255, 255, .12);
}

/* ---------- Hero ------------------------------------------------------ */

.hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: var(--ink);
	background-image:
		radial-gradient(60rem 30rem at 85% -20%, rgba(101, 40, 247, .55), transparent 60%),
		linear-gradient(180deg, #161129, #1F1738);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 56px 56px;
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: center;
	padding: 4rem 1.25rem 4.5rem;
}

/* Läuft gerade kein Deal, fehlt der Kasten rechts. Ohne diese Regel bliebe
   dort die halbe Bildschirmbreite leer, während der Text sich links quetscht. */
.hero__inner:not(:has(.hero__ticket)) {
	grid-template-columns: minmax(0, 1fr);
}

.hero__inner:not(:has(.hero__ticket)) .hero__text,
.hero__inner:not(:has(.hero__ticket)) h1 {
	max-width: 24ch;
}

.hero__inner:not(:has(.hero__ticket)) .hero__text {
	max-width: 65ch;
}

.hero h1 { color: #fff; }
.hero .eyebrow { color: #C4A9FF; }

.hero__text { font-size: 1.1rem; color: rgba(255, 255, 255, .74); max-width: 54ch; }

.hero__stats {
	display: grid;
	/* Vier Kennzahlen sollen auf breiten Bildschirmen in einer Zeile stehen;
	   darunter bricht die Reihe von selbst um. */
	grid-template-columns: repeat(auto-fit, minmax(110px, max-content));
	gap: 1.25rem 2.75rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	max-width: 46rem;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.hero__stat b {
	display: block;
	font-family: var(--mono);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -.02em;
}

.hero__stat span {
	font-size: .78rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

/* Der Countdown-Kasten ist der Blickfang: ein Lizenzschein auf dunklem Grund. */
.hero__ticket {
	--notch: #1B1533;
	position: relative;
	padding: 1.5rem;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
	transform: rotate(-1.4deg);
}

.hero__ticket-label {
	font-family: var(--mono);
	font-size: .7rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--deal);
}

.hero__ticket h2 { font-size: 1.35rem; margin: .4rem 0 .2rem; }
.hero__ticket p { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }

.hero__ticket-price {
	display: flex;
	align-items: baseline;
	gap: .6rem;
	font-family: var(--mono);
}

.hero__ticket-price b { font-size: 2.1rem; letter-spacing: -.03em; color: var(--deal); }
.hero__ticket-price s { color: var(--muted); }

/* ---------- Buttons --------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: .72rem 1.15rem;
	font-size: .92rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 9px;
	cursor: pointer;
	transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #5620d6; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-3); }

.btn--ghost {
	background: transparent;
	color: var(--brand);
	border-color: var(--line);
}
.btn--ghost:hover { background: var(--brand-soft); }

.btn--ghost-light {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, .35);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }

.btn--block { width: 100%; }
.btn--sm { padding: .5rem .8rem; font-size: .84rem; }

/* ---------- Abschnitte ------------------------------------------------ */

.section { padding: 3.5rem 0; }
.section--tight { padding: 2.25rem 0; }
.section--paper { background: var(--paper); }

.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.section__head p { margin: 0; color: var(--muted); max-width: 60ch; }

/* ---------- Lizenzschein (Produktkarte) ------------------------------- */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
	gap: 1.1rem;
}

.cards--three { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.ticket {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 164px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ticket:hover {
	transform: translateY(-2px);
	border-color: #C9B7FA;
	box-shadow: 0 18px 40px -24px rgba(101, 40, 247, .55);
}

.ticket--deal { border-color: #FFC5D5; }
.ticket--deal:hover { border-color: var(--deal); box-shadow: 0 18px 40px -24px rgba(255, 61, 110, .6); }

.ticket__body { padding: 1.15rem 1.25rem; min-width: 0; }

.ticket__head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .6rem; }

.ticket__mark {
	flex: 0 0 42px;
	height: 42px;
	display: grid;
	place-items: center;
	font-family: var(--mono);
	font-size: .9rem;
	font-weight: 700;
	color: #fff;
	background: var(--accent, var(--brand));
	border-radius: 9px;
}

/* Die Überschriftenebene der Karte wechselt je nach Seitentyp (H2 auf
   Listenseiten, H3 auf Produktseiten). Die Darstellung bleibt gleich. */
.ticket__title { margin: 0; font-size: 1.08rem; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; }
.ticket__title a { color: inherit; text-decoration: none; }
.ticket__title a:hover { text-decoration: underline; }

.ticket__publisher {
	margin: .1rem 0 0;
	font-size: .78rem;
	color: var(--muted);
}

.ticket__text {
	margin: 0 0 .8rem;
	font-size: .89rem;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Perforation zwischen Info und Preisabriss */
.ticket__stub {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: .35rem;
	padding: 1.15rem .9rem;
	text-align: center;
	border-left: 2px dashed var(--line);
	background: linear-gradient(180deg, var(--paper), var(--paper-2));
	border-radius: 0 var(--radius) var(--radius) 0;
}

.ticket__stub::before,
.ticket__stub::after {
	content: "";
	position: absolute;
	left: -9px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--notch);
	border: 1px solid var(--line);
}

.ticket__stub::before { top: -9px; border-bottom-color: transparent; border-right-color: transparent; }
.ticket__stub::after { bottom: -9px; border-top-color: transparent; border-right-color: transparent; }

.ticket--deal .ticket__stub { background: linear-gradient(180deg, #FFF6F9, #FFEDF2); }

.ticket__stub .btn { padding: .5rem .5rem; font-size: .79rem; white-space: nowrap; }

.price-old {
	font-family: var(--mono);
	font-size: .8rem;
	color: var(--muted);
	text-decoration: line-through;
}

.price-now,
.hero__ticket-price b,
.price-old { word-spacing: -.22em; white-space: nowrap; }

.price-now {
	font-family: var(--mono);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -.03em;
	color: var(--ink);
}

.ticket--deal .price-now { color: var(--deal); }

.price-note {
	font-size: .68rem;
	line-height: 1.35;
	color: var(--muted);
}

.stamp {
	display: inline-block;
	align-self: center;
	padding: .18rem .45rem;
	font-family: var(--mono);
	font-size: .74rem;
	font-weight: 700;
	color: #fff;
	background: var(--deal);
	border-radius: 5px;
	transform: rotate(-3deg);
}

/* ---------- Marker / Tags --------------------------------------------- */

.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .7rem; padding: 0; list-style: none; }

.tag {
	padding: .16rem .5rem;
	font-size: .71rem;
	font-weight: 600;
	color: var(--muted);
	background: var(--paper-2);
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
}

a.tag:hover { border-color: var(--brand); color: var(--brand); }

.tag--platform { color: var(--brand); background: var(--brand-soft); border-color: #DCCCFF; }
.tag--lifetime { color: #046A56; background: #DFF7F0; border-color: #B6ECDD; }
.tag--campaign {
	color: #fff;
	background: var(--campaign, var(--brand));
	border-color: transparent;
}

.badge-aff {
	display: inline-block;
	padding: .1rem .4rem;
	font-family: var(--mono);
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #6B4A00;
	background: #FFF2D4;
	border: 1px solid #F2DCA4;
	border-radius: 4px;
}

.ticket__foot {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
	font-size: .74rem;
	color: var(--muted);
}

.rating { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); }
.stars { color: #D8D2E8; letter-spacing: .04em; }
.stars b { color: var(--signal); font-weight: inherit; }

/* ---------- Countdown ------------------------------------------------- */

.countdown {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .3rem .55rem;
	font-family: var(--mono);
	font-size: .78rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #A8123F;
	background: #FFEDF2;
	border: 1px solid #FFC9D9;
	border-radius: 7px;
}

.countdown::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--deal);
	animation: pulse 2s ease-in-out infinite;
}

.countdown--large { font-size: 1rem; padding: .5rem .8rem; }
.countdown--ended { color: var(--muted); background: var(--paper-2); border-color: var(--line); }
.countdown--ended::before { background: var(--muted); animation: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
	.countdown::before { animation: none; }
	.ticket, .btn { transition: none; }
	.ticket:hover { transform: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Aktionsbereiche ------------------------------------------- */

.campaign {
	--notch: #fff;
	margin-bottom: 2.5rem;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid var(--line);
	border-left: 5px solid var(--campaign, var(--brand));
	border-radius: var(--radius);
}

.campaign__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin-bottom: .4rem;
}

.campaign__title {
	margin: 0;
	font-size: 1.4rem;
	color: var(--campaign, var(--brand));
}

.campaign__intro { margin: 0 0 1.25rem; font-size: .92rem; color: var(--muted); max-width: 70ch; }

.campaign__more { margin: 1rem 0 0; }

/* ---------- Filter ---------------------------------------------------- */

.toolbar {
	position: sticky;
	top: 62px;
	z-index: 20;
	padding: .9rem 0;
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
}

.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.filters input[type="search"],
.filters select {
	padding: .55rem .7rem;
	font: inherit;
	font-size: .88rem;
	color: var(--text);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.filters input[type="search"] { flex: 2 1 260px; min-width: 0; }

.switch {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem .7rem;
	font-size: .84rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
	user-select: none;
}

.switch input { accent-color: var(--brand); margin: 0; }
.switch:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

.filters__reset {
	font-size: .82rem;
	color: var(--muted);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
}

.result-count {
	margin: 1.25rem 0 1rem;
	font-family: var(--mono);
	font-size: .8rem;
	color: var(--muted);
}

.no-results {
	display: none;
	padding: 3rem 1rem;
	text-align: center;
	color: var(--muted);
	background: #fff;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
}

.is-hidden { display: none !important; }

/* ---------- Produktseite ---------------------------------------------- */

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	padding: 1rem 0 0;
	font-size: .8rem;
	color: var(--muted);
}

.crumbs a { color: var(--muted); }

.product__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 2.5rem;
	padding: 1.5rem 0 2rem;
	align-items: start;
}

.product__title {
	margin: .5rem 0 .6rem;
	font-size: clamp(1.7rem, 3vw, 2.25rem);
	line-height: 1.15;
	/* Verhindert eine einzelne Restzeile mit nur einem Wort. */
	text-wrap: balance;
}

.product__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin-bottom: 1rem;
	font-size: .88rem;
	color: var(--muted);
}

/* Kaufkasten als Lizenzschein mit Abriss oben */
.buybox {
	--notch: var(--paper-2);
	position: sticky;
	top: 82px;
	padding: 1.35rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 16px 40px -28px rgba(20, 16, 36, .5);
}

.buybox--deal { border-color: #FFC5D5; }

.buybox__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .55rem;
	padding-bottom: .9rem;
	margin-bottom: .9rem;
	border-bottom: 2px dashed var(--line);
}

.buybox__price .price-now { font-size: 2.3rem; }

.buybox__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .38rem 0;
	font-size: .84rem;
	border-bottom: 1px solid var(--paper-3);
}

.buybox__row span { color: var(--muted); }
.buybox__row b { font-weight: 650; text-align: right; }

.buybox__actions { display: grid; gap: .5rem; margin-top: 1rem; }

.coupon {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: .9rem 0 0;
	padding: .5rem .6rem;
	font-size: .82rem;
	background: var(--paper-2);
	border: 1px dashed var(--brand);
	border-radius: 8px;
}

.coupon code { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; }

.coupon button {
	margin-left: auto;
	padding: .25rem .55rem;
	font: inherit;
	font-size: .76rem;
	cursor: pointer;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
}

.aff-box {
	margin-top: 1rem;
	padding: .75rem;
	font-size: .76rem;
	line-height: 1.5;
	color: var(--muted);
	background: var(--paper-2);
	border-radius: 8px;
}

.aff-box p { margin: .4rem 0 0; }

.aff-note {
	margin: 2rem 0;
	padding: .9rem 1.1rem;
	font-size: .82rem;
	line-height: 1.6;
	color: var(--muted);
	background: #fff;
	border-left: 4px solid var(--brand);
	border-radius: 0 8px 8px 0;
}

.aff-note b { color: var(--ink); }

/* Faktentabelle */
.product__top .facts { margin-top: 1.75rem; }

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
	gap: 1px;
	margin: 0 0 2.5rem;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.facts > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .7rem .9rem;
	background: #fff;
	font-size: .86rem;
}

.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; text-align: right; }

.table-wrap { overflow-x: auto; margin-bottom: 2.5rem; }

table.data {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: .88rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

table.data th, table.data td {
	padding: .7rem .85rem;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

table.data thead th {
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	background: var(--paper-2);
}

table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr.is-lifetime { background: #F2FCF9; }

.proscons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.proscons > div {
	padding: 1.1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.proscons h3 { font-size: 1rem; margin-bottom: .6rem; }
.proscons ul { margin: 0; padding-left: 1.1rem; }
.proscons li { margin-bottom: .35rem; font-size: .9rem; }
.proscons .pro { border-top: 3px solid var(--lifetime); }
.proscons .con { border-top: 3px solid var(--signal); }

.features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: .5rem;
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

.features li {
	padding: .55rem .75rem;
	font-size: .87rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.features li::before { content: "✓"; margin-right: .45rem; font-weight: 700; color: var(--lifetime); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }

/* ---------- Kacheln für Einstiegsseiten ------------------------------- */

.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: .8rem;
}

.tile {
	display: block;
	padding: 1rem 1.1rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--ink);
	transition: border-color .15s ease, transform .15s ease;
}

.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile b { display: block; font-size: 1rem; }
.tile span { font-family: var(--mono); font-size: .74rem; color: var(--muted); }

/* ---------- Fußzeile -------------------------------------------------- */

.site-footer {
	padding: 3rem 0 2rem;
	color: rgba(255, 255, 255, .7);
	background: var(--ink);
}

/* Beschriftungen in der Fußzeile sind bewusst keine Überschriften – sonst
   hätte jede Seite H3-Elemente ohne zugehörigen H2-Abschnitt. */
.site-footer h3,
.footer__title {
	margin: 0 0 .6rem;
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-family: var(--mono);
}
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer__grid ul { margin: 0; padding: 0; list-style: none; }
.footer__grid li { margin-bottom: .4rem; font-size: .89rem; }

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.5rem;
	font-size: .8rem;
	color: rgba(255, 255, 255, .5);
}

/* ---------- Responsiv -------------------------------------------------- */

@media (max-width: 980px) {
	.hero__inner { grid-template-columns: 1fr; padding: 3rem 1.25rem 3.5rem; }
	.hero__ticket { transform: none; }
	/* Auf schmalen Displays zuerst Titel, dann Preis, dann die Faktenliste.
	   align-items muss hier ausdrücklich auf stretch: Die Regel für breite
	   Bildschirme setzt "start", was im Spaltenlayout die Querachse betrifft
	   und alle Kinder auf Inhaltsbreite schrumpfen ließe. */
	.product__top {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
	}
	.product__top > div { display: contents; }
	.buybox { position: static; order: 1; }
	.product__top > div > h2 { order: 2; margin-bottom: 0; }
	.product__top .facts { order: 3; margin-top: 0; }
}

@media (max-width: 720px) {
	.cards, .cards--three { grid-template-columns: 1fr; }
	.site-header__inner { flex-wrap: wrap; padding: .6rem 1.25rem; }
	.toolbar { position: static; }
	.facts > div { flex-direction: column; gap: .1rem; }
	.facts dd { text-align: left; }
}

@media (max-width: 460px) {
	.ticket { grid-template-columns: 1fr; }
	.ticket__stub {
		flex-flow: row wrap;
		align-items: center;
		gap: .4rem .55rem;
		padding: .9rem 1.25rem;
		text-align: left;
		border-left: 0;
		border-top: 2px dashed var(--line);
		border-radius: 0 0 var(--radius) var(--radius);
	}
	.ticket__stub .stamp { order: 1; }
	.ticket__stub .price-old { order: 2; }
	.ticket__stub .price-now { order: 3; margin-right: auto; }
	.ticket__stub .price-note { order: 4; width: 100%; }
	.ticket__stub .btn { order: 5; width: 100%; }
	.ticket__stub::before { left: -9px; top: -9px; }
	.ticket__stub::after { left: auto; right: -9px; top: -9px; bottom: auto; }
}

/* ---------- Druck ------------------------------------------------------ */

@media print {
	.site-header, .site-footer, .toolbar, .buybox__actions { display: none; }
	body { background: #fff; }
}

/* ==========================================================================
   Abgelaufene Aktionen und Teilnahmen
   Sie bleiben als Rückblick sichtbar, treten aber deutlich zurück.
   ========================================================================== */

.campaign--past {
	background: var(--paper-2);
	border-color: var(--line);
	border-left-color: var(--muted);
	opacity: .72;
}

.campaign--past:hover { opacity: 1; }
.campaign--past .campaign__title { color: var(--muted); }

.ticket--past {
	background: var(--paper-2);
	border-style: dashed;
	opacity: .68;
}

.ticket--past:hover { opacity: 1; transform: none; box-shadow: none; }
.ticket--past .ticket__mark { background: var(--muted); }
.ticket--past .ticket__stub { background: var(--paper-2); }
.ticket--past .price-now { color: var(--muted); }
.ticket--past .tag--campaign { background: var(--muted); }

.stamp--past {
	font-size: .7rem;
	color: var(--muted);
	background: transparent;
	border: 1px dashed var(--line);
	transform: none;
}

.countdown--soon {
	color: #5B3BB5;
	background: var(--brand-soft);
	border-color: #D6C6FA;
}

.countdown--soon::before { background: var(--brand); animation: none; }

.a-past-intro {
	max-width: 68ch;
	margin: -.5rem 0 1.5rem;
	font-size: .9rem;
	color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
	.campaign--past, .ticket--past { opacity: .8; }
}

/* Produkte ohne hinterlegten Preis – etwa direkt nach einem Import. */
.price-ask {
	font-family: var(--font);
	font-size: .95rem;
	font-weight: 650;
	color: var(--muted);
}

.buybox .price-ask { font-size: 1.3rem; }

/* ==========================================================================
   Rendering-Aufwand bei langen Listen begrenzen

   Der Katalog liefert alle Produkte im HTML aus – das ist für Suchmaschinen
   die beste Lösung, kostet den Browser aber Layout-Arbeit für Karten, die
   weit unterhalb des sichtbaren Bereichs liegen. content-visibility lässt
   ihn diese Arbeit aufschieben, bis sie gebraucht wird. contain-intrinsic-size
   gibt die erwartete Höhe vor, damit die Bildlaufleiste stimmt und kein
   Layoutsprung entsteht.
   ========================================================================== */

.cards > .ticket {
	content-visibility: auto;
	contain-intrinsic-size: auto 260px;
}

/* Die ersten Karten bleiben ausgenommen: Sie sind sofort sichtbar und
   sollen nicht erst beim Rendern berechnet werden. */
.cards > .ticket:nth-child(-n + 6) {
	content-visibility: visible;
	contain-intrinsic-size: none;
}

/* ==========================================================================
   Navigation auf schmalen Displays

   Vorher standen alle Einträge als lose Linkliste im Kopfbereich und
   umbrachen in zwei ausgefranste Zeilen – auf einem 390-Pixel-Gerät gingen
   dadurch rund 90 Pixel über dem Falz verloren. Jetzt klappt die Navigation
   hinter einen Knopf.
   ========================================================================== */

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: .7rem 1rem;
	background: #fff;
	color: var(--ink);
	border-radius: 0 0 8px 0;
	font-weight: 600;
}

.skip-link:focus {
	left: 0;
	top: 0;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: .5rem;
	margin-left: auto;
	padding: .55rem .8rem;
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 9px;
	cursor: pointer;
	/* Mindestens 44 Pixel hoch – die übliche Größe für Fingertipps. */
	min-height: 44px;
}

.nav-toggle:hover { background: rgba(255, 255, 255, .18); }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 17px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle__bars { position: relative; }

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* Aus den drei Strichen wird ein Kreuz, sobald das Menü offen ist. */
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after { transition: none; }
}

/* ==========================================================================
   Kaufleiste am unteren Rand (nur schmale Displays)

   Der Kaufkasten steht auf der Produktseite weit oben. Nach dem Scrollen war
   die Handlungsaufforderung nicht mehr erreichbar; diese Leiste blendet sich
   genau dann ein.
   ========================================================================== */

.buybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 45;
	display: none;
	align-items: center;
	gap: .9rem;
	padding: .7rem 1rem;
	/* Platz für die Gestensteuerung auf randlosen Geräten. */
	padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, .97);
	backdrop-filter: saturate(150%) blur(8px);
	border-top: 1px solid var(--line);
	box-shadow: 0 -6px 24px -12px rgba(20, 16, 36, .4);
}

.buybar[hidden] { display: none; }

.buybar__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.buybar__price {
	font-family: var(--mono);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -.02em;
	white-space: nowrap;
}

.buybar__note {
	font-size: .72rem;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.buybar__btn {
	margin-left: auto;
	flex: 0 0 auto;
	min-height: 46px;
	padding-inline: 1.15rem;
}

/* ==========================================================================
   Anpassungen für schmale Displays
   ========================================================================== */

@media (max-width: 899px) {
	.has-nav-toggle .nav-toggle { display: inline-flex; }

	.has-nav-toggle .nav {
		display: none;
		order: 3;
		width: 100%;
		margin: 0;
		padding: .5rem 0 .75rem;
		border-top: 1px solid rgba(255, 255, 255, .12);
	}

	.has-nav-toggle.nav-open .nav { display: block; }

	.has-nav-toggle .nav ul {
		flex-direction: column;
		gap: 0;
	}

	.has-nav-toggle .nav a {
		display: block;
		padding: .8rem .25rem;
		font-size: .95rem;
		border-radius: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .08);
	}

	.has-nav-toggle .nav li:last-child a { border-bottom: 0; }

	/* Die Kaufleiste erscheint nur hier – am Rechner ist der Kaufkasten
	   dauerhaft sichtbar und die Leiste wäre nur Ablenkung. */
	.buybar:not([hidden]) { display: flex; }
	.has-buybar .site-footer { padding-bottom: 5.5rem; }
}

@media (min-width: 900px) {
	/* Am Rechner bleibt die Navigation immer offen, egal was das Skript tut. */
	.has-nav-toggle .nav { display: block; }
	.nav-toggle { display: none !important; }
}

/* ==========================================================================
   Tippflächen auf Touchgeräten

   Marker, Fußzeilenlinks und Bedienelemente waren teils nur 22 bis 28 Pixel
   hoch. Für den Finger sind rund 44 Pixel die übliche Zielgröße; bei kleinen
   Textlinks reichen 32 Pixel, wenn genügend Abstand daneben liegt.
   ========================================================================== */

@media (hover: none), (max-width: 720px) {
	.tag {
		display: inline-flex;
		align-items: center;
		min-height: 34px;
		padding: .35rem .7rem;
		font-size: .75rem;
	}

	.tags { gap: .45rem; }

	.crumbs { gap: .5rem .6rem; }

	.crumbs a {
		display: inline-flex;
		align-items: center;
		min-height: 32px;
	}

	.site-footer li a {
		display: inline-block;
		padding: .35rem 0;
	}

	.footer__grid li { margin-bottom: .1rem; }

	.filters input[type="search"],
	.filters select,
	.switch {
		min-height: 46px;
	}

	.filters__reset {
		min-height: 44px;
		padding: 0 .75rem;
	}

	.logo { padding: .3rem 0; }

	.dd-pagination a,
	.pagination a { min-width: 44px; min-height: 44px; }
}
