/* Wallpaper 1:1 nach App (wallpapers_screen.dart, wallpaper_viewer_screen.dart). px = pt der App. */

.fi-wppage .fi-footer { display: none; }
.fi-wppage .fi-main { background: #fff; }
.fi-wp { --wp-pink: #e6197a; --wp-text: #121212; --wp-muted: #666b78; --wp-line: #e3e6e8; max-width: 640px; margin: 0 auto; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); color: var(--wp-text); }
.fi-wp button { font-family: inherit; }

.wp-head { display: flex; align-items: center; gap: 6px; padding: 6px 16px 6px 10px; }
.wp-back { display: grid; place-items: center; width: 34px; height: 34px; color: var(--wp-text) !important; }
.wp-head h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.wp-sort { display: flex; gap: 8px; padding: 2px 16px 10px; border-bottom: 1px solid var(--wp-line); }
.wp-sort button { padding: 8px 13px; border: 1px solid var(--wp-line); background: #fff; color: var(--wp-text); font-size: 13px; font-weight: 800; cursor: pointer; }
.wp-sort button.is-on { border-color: var(--wp-pink); background: var(--wp-pink); color: #fff; }

.wp-grid { display: flex; gap: 12px; padding: 6px 16px 24px; }
.wp-col { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.wp-tile { position: relative; overflow: hidden; background: #f4f4f6; cursor: pointer; }
.wp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.wp-star { position: absolute; right: 4px; bottom: 4px; display: flex; align-items: center; gap: 3px; padding: 6px; border: 0; background: none; color: #fff; cursor: pointer; }
.wp-star svg { width: 20px; height: 20px; }
.wp-star b { font-size: 12.5px; font-weight: 700; }
.wp-msg { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 60px 40px; text-align: center; }
.wp-msg span { font-size: 40px; }
.wp-msg b { margin-top: 6px; font-size: 17px; font-weight: 800; }
.wp-msg p { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--wp-muted); }

/* Vollbild */
.wp-viewer { position: fixed; inset: 0; z-index: 100000; background: #000; }
.wp-viewer[hidden] { display: none; }
.wp-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.wp-track::-webkit-scrollbar { display: none; }
.wp-slide { display: grid; place-items: center; flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.wp-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wp-close { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 8px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; }
.wp-actions { position: absolute; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 12px; pointer-events: none; }
.wp-pill { display: flex; align-items: center; gap: 6px; padding: 11px 18px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 28px; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; pointer-events: auto; }
.wp-pill svg { width: 22px; height: 22px; }
.wp-pill b { font-size: 14px; font-weight: 700; }
.wp-pill.is-busy { opacity: .6; }

.wp-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 100002; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 16px; background: #111; color: #fff; font-size: 14.5px; font-weight: 600; transform: translateX(-50%); }
.wp-toast[hidden] { display: none; }

/* ======================= Computer (ab 1024 px): Showroom ======================= */
.wpx { display: none; }
@media (max-width: 1023px) { body.fi-wppage .fi-apphead, body.fi-wppage .fi-appsearch { display: none !important; } }
@media (min-width: 1024px) {
	.fi-wppage .fi-footer { display: block; }
	.fi-wp { max-width: none; padding: 0; }
	.fi-wp > .wp-head, .fi-wp > .wp-sort, .fi-wp > .wp-grid { display: none; }
	.wpx { display: block; }

	/* Bühne: dunkel, dahinter das Motiv unscharf */
	.wpx-stage { position: relative; overflow: hidden; background: #0c0c0f; color: #fff; }
	.wpx-bg { position: absolute; inset: -80px; background-position: center; background-size: cover; filter: blur(70px) saturate(1.35); opacity: .5; transition: background-image .4s; }
	.wpx-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 12, 15, .92) 0%, rgba(12, 12, 15, .35) 50%, rgba(12, 12, 15, .92) 100%); }
	.wpx-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 56px; max-width: var(--w-max); margin: 0 auto; padding: 48px var(--w-pad) 56px; box-sizing: border-box; }

	/* Links: Titel, aktuelles Motiv, Aktionen */
	.wpx-info { max-width: 480px; }
	.wpx-up { color: #e6197a !important; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
	.wpx-up:hover { text-decoration: underline !important; }
	.wpx-info h1 { margin: 8px 0 0; color: #fff; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.035em; }
	.wpx-lead { margin: 14px 0 0; color: rgba(255, 255, 255, .72); font-size: 17px; line-height: 1.5; }
	.wpx-cur { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
	.wpx-cur small { color: #e6197a; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
	.wpx-cur b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
	.wpx-cur span { color: rgba(255, 255, 255, .55); font-size: 13.5px; font-variant-numeric: tabular-nums; }
	/* Aktionen: Herunterladen über die volle Breite, darunter Stern und Link gleich breit */
	.wpx-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 400px; margin-top: 22px; }
	.wpx-acts .is-pink { grid-column: 1 / -1; height: 54px; font-size: 15.5px; }
	.wpx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font-size: 14.5px; font-weight: 800; cursor: pointer; transition: background .15s, border-color .15s; }
	.wpx-btn:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }
	.wpx-btn svg { width: 20px; height: 20px; }
	.wpx-btn b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
	.wpx-btn.is-pink { border: 0; background: #e6197a; }
	.wpx-btn.is-pink:hover { background: #c8126a; }
	.wpx-btn.is-busy { opacity: .6; }

	/* Mitte: iPhone mit Sperrbildschirm */
	.wpx-show { display: grid; grid-template-columns: auto auto auto; grid-template-areas: "prev phone next" ". toggle ."; align-items: center; column-gap: 28px; row-gap: 20px; }
	.wpx-show .wpx-nav:first-child { grid-area: prev; }
	.wpx-show .wpx-nav:last-of-type { grid-area: next; }
	.wpx-nav { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .15s; }
	.wpx-nav:hover { background: rgba(255, 255, 255, .18); }
	.wpx-phone { grid-area: phone; position: relative; width: 310px; aspect-ratio: 1206 / 2622; overflow: hidden; border: 11px solid #0a0a0a; border-radius: 52px; background: #000; box-shadow: 0 0 0 2px #3b3b42, 0 50px 90px rgba(0, 0, 0, .65); }
	.wpx-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
	.wpx-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 12px; color: #fff; font-family: -apple-system, "SF Pro Display", system-ui, sans-serif; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); pointer-events: none; }
	.wpx-lock[hidden] { display: none; }
	.wpx-island { width: 92px; height: 27px; border-radius: 20px; background: #000; }
	.wpx-lock small { margin-top: 30px; font-size: 15px; font-weight: 600; letter-spacing: .01em; }
	.wpx-lock b { font-size: 82px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
	.wpx-toggle { grid-area: toggle; justify-self: center; display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .75); font-size: 13.5px; font-weight: 700; cursor: pointer; user-select: none; }
	.wpx-toggle input { position: absolute; opacity: 0; pointer-events: none; }
	.wpx-toggle span { position: relative; width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .25); transition: background .15s; }
	.wpx-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
	.wpx-toggle input:checked + span { background: #e6197a; }
	.wpx-toggle input:checked + span::after { transform: translateX(16px); }
	.wpx-toggle input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

	/* Rechts: QR-Code fürs Handy */
	.wpx-qr { justify-self: end; max-width: 320px; }
	.wpx-qrcard { width: 176px; height: 176px; padding: 14px; background: #fff; }
	.wpx-qrcard svg { display: block; width: 100%; height: 100%; }
	.wpx-qrfail { margin: 0; color: #666b78; font-size: 13px; }
	.wpx-qr > b { display: block; margin-top: 20px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
	.wpx-qr > p { margin: 8px 0 0; color: rgba(255, 255, 255, .7); font-size: 14.5px; line-height: 1.5; }
	.wpx-qr ol { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: s; }
	.wpx-qr li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: rgba(255, 255, 255, .85); font-size: 14px; counter-increment: s; }
	.wpx-qr li::before { content: counter(s); display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(230, 25, 122, .2); color: #ff5fa8; font-size: 12px; font-weight: 800; }

	/* Galerie */
	.wpx-gal { max-width: var(--w-max); margin: 0 auto; padding: 48px var(--w-pad) 64px; box-sizing: border-box; }
	.wpx-galhead { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
	.wpx-galhead h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
	.wpx-galhead h2::before { content: ""; display: inline-block; width: 4px; height: 14px; margin-right: 10px; vertical-align: -1px; background: #e6197a; }
	.wpx-sort { padding: 0; border: 0; }
	.wpx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
	.wpx-tile { position: relative; display: block; aspect-ratio: 1206 / 2622; padding: 0; overflow: hidden; border: 0; background: #f4f4f6; cursor: pointer; }
	.wpx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
	.wpx-tile:hover img { transform: scale(1.04); }
	.wpx-tile.is-on { outline: 3px solid #e6197a; outline-offset: 3px; }
	.wpx-tile .wp-star { cursor: pointer; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.wpx-in { grid-template-columns: minmax(0, 1fr) auto; }
	.wpx-qr { display: none; }
	.wpx-info h1 { font-size: 44px; }
}

/* Handy-Vollbild: Sperrbildschirm-Vorschau (Datum + Uhrzeit wie iOS) */
.wp-lockprev { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 54px); z-index: 1; display: flex; flex-direction: column; align-items: center; color: #fff; font-family: -apple-system, "SF Pro Display", system-ui, sans-serif; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); pointer-events: none; }
.wp-lockprev[hidden] { display: none; }
.wp-lockprev small { font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.wp-lockprev b { margin-top: -2px; font-size: min(26vw, 112px); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wp-pill[data-mlocktoggle].is-on { border-color: #e6197a; background: #e6197a; }
