/* ==========================================================================
   Wandwelten Projekt-Stories · RK Studio · v1.0.2
   Farben/Schrift hier anpassen. Schrift erbt von Divi (Red Hat Display, lokal).
   ========================================================================== */
.wwp {
	--wwp-akzent: #b60f14;
	--wwp-text: #1f1d1c;
	--wwp-grau: #6b6662;
	--wwp-linie: #e3e0dc;
	--wwp-flaeche: #f3f2f0;
	--wwp-gap: 12px;
	container-type: inline-size;
	color: var(--wwp-text);
	font-family: inherit;
}
.wwp *, .wwp *::before, .wwp *::after { box-sizing: border-box; }
.wwp img { max-width: 100%; display: block; }
.wwp button { font: inherit; }

/* ---------- Fokus: Vorher/Nachher ---------- */
.wwp-feat { display: grid; gap: 24px; align-items: center; margin-bottom: clamp(36px, 6cqi, 64px); }
@container (min-width: 720px) {
	.wwp-feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
.wwp-ba {
	position: relative; aspect-ratio: 4 / 5; overflow: hidden;
	background: var(--wwp-flaeche); user-select: none; touch-action: pan-y;
}
.wwp-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wwp-ba .wwp-ba-nach { clip-path: inset(0 0 0 var(--pos, 50%)); }
.wwp-handle {
	position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px;
	background: #fff; transform: translateX(-50%); pointer-events: none;
	box-shadow: 0 0 12px rgba(0, 0, 0, .4);
}
.wwp-handle::after {
	content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	background: #fff; color: var(--wwp-akzent); font-weight: 700; font-size: 11px; line-height: 1;
	padding: 12px 10px; border-radius: 40px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.wwp-lbl {
	position: absolute; top: 12px; font-size: 11px; font-weight: 700; line-height: 1;
	letter-spacing: .14em; text-transform: uppercase; color: #fff;
	background: rgba(0, 0, 0, .6); padding: 7px 9px;
}
.wwp-lbl-l { left: 12px; opacity: var(--wwp-vor-o, 1); }
.wwp-lbl-r { right: 12px; background: var(--wwp-akzent); opacity: var(--wwp-nach-o, 1); }
.wwp-lbl { transition: opacity .2s ease; pointer-events: none; }
.wwp-range {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
	opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.wwp-ba:has(.wwp-range:focus-visible) { outline: 3px solid var(--wwp-akzent); outline-offset: 3px; }

.wwp-eyebrow {
	margin: 0 0 10px; padding: 0; font-size: 12px; font-weight: 700; line-height: 1;
	letter-spacing: .16em; text-transform: uppercase; color: var(--wwp-akzent);
}
.wwp .wwp-h-fokus {
	margin: 0 0 10px; padding: 0; font-size: clamp(26px, 5cqi, 40px); font-weight: 900;
	line-height: 1.08; letter-spacing: -.01em; color: var(--wwp-text); text-wrap: balance;
}
.wwp-sub { margin: 0 0 18px; padding: 0; color: var(--wwp-grau); font-size: 16px; line-height: 1.6; max-width: 52ch; }
.wwp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wwp .wwp-pill {
	cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1; padding: 10px 14px;
	border: 1.5px solid var(--wwp-linie); border-radius: 40px; background: transparent; color: var(--wwp-text);
}
.wwp .wwp-pill[aria-pressed="true"] { background: var(--wwp-text); border-color: var(--wwp-text); color: #fff; }
.wwp .wwp-facts {
	display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 24px; padding: 0;
	list-style: none; font-size: 14px; color: var(--wwp-grau);
}
.wwp .wwp-facts li { padding: 0; margin: 0; list-style: none; }
.wwp .wwp-facts li::before { content: "■ "; color: var(--wwp-akzent); font-size: 10px; vertical-align: 2px; }
.wwp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wwp .wwp-btn {
	cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
	font-size: 14px; font-weight: 700; line-height: 1; padding: 14px 20px; border: 0; border-radius: 2px;
	background: var(--wwp-akzent); color: #fff; text-decoration: none;
}
.wwp .wwp-btn-ghost { background: transparent; color: var(--wwp-text); box-shadow: inset 0 0 0 2px var(--wwp-text); }

/* ---------- Reihe ---------- */
.wwp-rowhead { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 0 0 16px; }
.wwp .wwp-h-reihe { margin: 0; padding: 0; font-size: 22px; font-weight: 900; line-height: 1.1; color: var(--wwp-text); }
.wwp .wwp-h-reihe span { font-weight: 500; font-size: 15px; color: var(--wwp-grau); margin-left: 6px; }
/* Wisch-Hinweis (nur Mobil): drei rote Dreiecke, die sanft nach rechts anstoßen */
.wwp-hint {
	display: inline-flex; align-items: center; gap: 3px;
	font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--wwp-grau);
}
.wwp-hint i {
	display: block; width: 0; height: 0; margin-left: 2px;
	border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent var(--wwp-akzent);
	animation: wwp-stups 1.6s ease-in-out infinite;
}
.wwp-hint i:nth-child(2) { opacity: .65; animation-delay: .12s; }
.wwp-hint i:nth-child(3) { opacity: .35; animation-delay: .24s; }
@keyframes wwp-stups { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(4px); } }

/* Pfeile (nur Desktop): rote Quadrate mit weißem Dreieck */
.wwp-arrows { display: none; gap: 6px; }
@container (min-width: 720px) {
	.wwp-arrows { display: flex; }
	.wwp-hint { display: none; }
}
.wwp .wwp-arrow, .wwp-lb .wwp-lb-nav {
	cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
	border: 0; border-radius: 2px; background: var(--wwp-akzent); color: #fff;
	transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}
.wwp .wwp-arrow svg, .wwp-lb .wwp-lb-nav svg { display: block; fill: currentColor; }
.wwp .wwp-arrow[data-wwp-dir="-1"] svg, .wwp-lb .wwp-lb-prev svg { transform: scaleX(-1); }
.wwp .wwp-arrow:hover, .wwp-lb .wwp-lb-nav:hover { background: var(--wwp-text); }
.wwp .wwp-arrow:not(:disabled):hover[data-wwp-dir="1"] svg, .wwp-lb .wwp-lb-next:hover svg { transform: translateX(2px); }
.wwp .wwp-arrow:not(:disabled):hover[data-wwp-dir="-1"] svg, .wwp-lb .wwp-lb-prev:hover svg { transform: scaleX(-1) translateX(2px); }
.wwp .wwp-arrow svg, .wwp-lb .wwp-lb-nav svg { transition: transform .2s ease; }
.wwp .wwp-arrow:disabled { cursor: default; background: var(--wwp-linie); color: #fff; }
.wwp-row {
	display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: var(--wwp-gap);
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
	overscroll-behavior-x: contain;
}
.wwp-row::-webkit-scrollbar { display: none; }
@container (min-width: 720px) {
	.wwp-row { grid-auto-columns: calc((100% - 3 * var(--wwp-gap)) / 4); }
}
.wwp .wwp-card { display: grid; gap: 10px; align-content: start; scroll-snap-align: start; text-decoration: none; color: inherit; }
.wwp-ph { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wwp-flaeche); }
.wwp-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wwp-card:hover .wwp-ph img { transform: scale(1.04); }
.wwp-cnt {
	position: absolute; right: 10px; bottom: 10px; background: #fff; color: var(--wwp-text);
	font-size: 12px; font-weight: 700; line-height: 1; padding: 7px 9px;
}
.wwp-neu {
	position: absolute; left: 10px; top: 10px; background: var(--wwp-akzent); color: #fff;
	font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px;
}
.wwp-meta small { display: block; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--wwp-akzent); }
.wwp-meta b { display: block; margin-top: 5px; font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--wwp-text); }

/* ---------- Fokus-Rahmen (Tastatur) ---------- */
.wwp .wwp-btn:focus-visible, .wwp .wwp-pill:focus-visible, .wwp .wwp-card:focus-visible, .wwp .wwp-arrow:focus-visible {
	outline: 3px solid var(--wwp-akzent); outline-offset: 3px;
}

/* ---------- Lightbox ---------- */
.wwp-lb {
	border: 0; padding: 0; width: 100%; max-width: min(1000px, 94vw); max-height: 94vh;
	background: #111; color: #fff; overflow: auto;
}
.wwp-lb::backdrop { background: rgba(10, 10, 10, .88); }
.wwp-lb figure { margin: 0; position: relative; }
.wwp-lb .wwp-lb-img { width: 100%; height: min(72vh, 760px); object-fit: contain; background: #000; }
.wwp-lb figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.4; }
.wwp-lb-num { color: #aaa; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wwp-lb .wwp-lb-nav { position: absolute; top: calc(min(72vh, 760px) / 2); translate: 0 -50%; }
.wwp-lb-prev { left: 8px; }
.wwp-lb-next { right: 8px; }
.wwp-lb .wwp-lb-x {
	position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; padding: 0;
	border: 0; cursor: pointer; background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px;
}
.wwp-lb-thumbs { display: flex; gap: 6px; padding: 0 16px 16px; overflow-x: auto; }
.wwp-lb-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 0; cursor: pointer; opacity: .5; background: none; }
.wwp-lb-thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--wwp-akzent); }
.wwp-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.wwp-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.wwp-leer { padding: 16px; border: 1px dashed var(--wwp-linie, #ccc); }

@media (prefers-reduced-motion: reduce) {
	.wwp-hint i { animation: none; }
	.wwp *, .wwp-lb * { transition: none !important; scroll-behavior: auto !important; }
}
