/*
 * Hookwerk Galerie – Frontend
 * Alle Regeln unter .hwg, Variablen: --hwg-cols, --hwg-gap, --hwg-height.
 */

.hwg {
	isolation: isolate; /* eigene Ebene: Karten mit hohem z-index liegen nie über festen Theme-Kopfzeilen */
	--hwg-cols: 3;
	--hwg-cols-bento: 3;
	--hwg-cols-m: 2;
	--hwg-gap: 12px;
	--hwg-height: 480px;
	--hwg-ink: #111;
	--hwg-accent: #f2a65a;
	--hwg-paper: #fff;
	--hwg-line: currentColor;
	--hwg-radius: 10px;
	position: relative;
	margin-block: 1.5em;
	box-sizing: border-box;
}
.hwg *, .hwg *::before, .hwg *::after { box-sizing: inherit; }
.hwg-groups .hwg { margin-top: .75em; }
.hwg-group + .hwg-group { margin-top: 2.5em; }

.hwg-item { margin: 0; padding: 0; position: relative; }
.hwg .hwg-media { display: block; width: 100%; height: auto; max-width: none; border: 0; }
.hwg-link { display: block; cursor: zoom-in; color: inherit; }
.hwg-link:focus-visible,
.hwg button:focus-visible,
.hwg-track:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.hwg-caption { font-size: .8125em; line-height: 1.4; padding: .55em 0 0; margin: 0; opacity: .8; }
.hwg-caption__kicker { display: none; }
.hwg-caption__title { display: block; font-weight: 600; }
.hwg-caption__text { display: block; }
.hwg-caption__title + .hwg-caption__text { opacity: .8; }
.hwg .is-filtered { display: none !important; }
.hwg-empty { padding: 1em; border: 1px dashed currentColor; opacity: .7; }

/* Videos: Play-Symbol (YouTube) und Dauer (lokale Videos) */
.hwg-item--youtube::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 3;
	width: 58px;
	height: 58px;
	margin: -29px 0 0 -29px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 54% 50% / 46% no-repeat;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
	pointer-events: none;
	transition: transform .25s, background-color .25s;
}
.hwg-item--youtube:hover::before { transform: scale(1.1); background-color: rgba(0, 0, 0, .8); }
.hwg-item[data-duration]::after {
	content: attr(data-duration);
	position: absolute;
	top: .7em;
	right: .7em;
	z-index: 3;
	padding: .15em .55em;
	border-radius: 999px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: .75em;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

/* Eckenradius (Einstellungen, Page-Builder oder eigenes CSS über --hwg-radius) */
.hwg .hwg-item,
.hwg .hwg-media,
.hwg-filter__button,
.hwg-prev, .hwg-next, .hwg-more__button,
.hwg-thumb,
.hwg-project__open,
.hwg-stage { border-radius: var(--hwg-radius); }
.hwg .hwg-item { overflow: hidden; }
.hwg--masonry .hwg-item, .hwg--collage .hwg-item { overflow: visible; }

/* Gemeinsam: Bild füllt seine Kachel. */
.hwg--bento .hwg-item > *:not(figcaption),
.hwg--editorial .hwg-item > *:not(figcaption),
.hwg--asymmetric .hwg-item > *:not(figcaption),
.hwg--justified .hwg-item > *:not(figcaption),
.hwg--lightbox .hwg-item > *:not(figcaption),
.hwg--mixed .hwg-item > *:not(figcaption),
.hwg--perspective .hwg-item > *:not(figcaption),
.hwg--carousel .hwg-item > *:not(figcaption),
.hwg--coverflow .hwg-item > *:not(figcaption),
.hwg--stacked .hwg-item > *:not(figcaption),
.hwg--scrollsnap .hwg-item > *:not(figcaption),
.hwg--fullscreen .hwg-item > *:not(figcaption),
.hwg--split .hwg-item > *:not(figcaption) { height: 100%; }

.hwg--bento .hwg-media,
.hwg--editorial .hwg-media,
.hwg--asymmetric .hwg-media,
.hwg--justified .hwg-media,
.hwg--lightbox .hwg-media,
.hwg--mixed .hwg-media,
.hwg--perspective .hwg-media,
.hwg--carousel .hwg-media,
.hwg--coverflow .hwg-media,
.hwg--stacked .hwg-media,
.hwg--scrollsnap .hwg-media,
.hwg--fullscreen .hwg-media,
.hwg--project .hwg-media,
.hwg--parallax .hwg-media { height: 100%; object-fit: cover; }

/* Bildunterschrift als Overlay (Titel + Text) bei Karten- und Vollflächen-Layouts. */
.hwg--carousel .hwg-caption,
.hwg--coverflow .hwg-caption,
.hwg--stacked .hwg-caption,
.hwg--scrollsnap .hwg-caption,
.hwg--fullscreen .hwg-caption,
.hwg--sticky .hwg-caption,
.hwg--parallax .hwg-caption,
.hwg--bento .hwg-caption,
.hwg--mixed .hwg-caption,
.hwg--hero-thumbs .hwg-caption,
.hwg--filmstrip .hwg-caption,
.hwg--perspective .hwg-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2.6em 1.1em .95em;
	color: #fff;
	opacity: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
	pointer-events: none;
	z-index: 2;
}
.hwg--carousel .hwg-caption__title,
.hwg--coverflow .hwg-caption__title,
.hwg--stacked .hwg-caption__title,
.hwg--scrollsnap .hwg-caption__title,
.hwg--fullscreen .hwg-caption__title,
.hwg--sticky .hwg-caption__title,
.hwg--parallax .hwg-caption__title,
.hwg--bento .hwg-caption__title,
.hwg--mixed .hwg-caption__title,
.hwg--hero-thumbs .hwg-caption__title,
.hwg--filmstrip .hwg-caption__title,
.hwg--perspective .hwg-caption__title { display: block; font-weight: 600; font-size: 1.1em; line-height: 1.25; }
.hwg--bento .hwg-caption__text,
.hwg--mixed .hwg-caption__text,
.hwg--carousel .hwg-caption__text,
.hwg--coverflow .hwg-caption__text,
.hwg--stacked .hwg-caption__text,
.hwg--scrollsnap .hwg-caption__text,
.hwg--fullscreen .hwg-caption__text,
.hwg--sticky .hwg-caption__text,
.hwg--hero-thumbs .hwg-caption__text,
.hwg--filmstrip .hwg-caption__text,
.hwg--perspective .hwg-caption__text { font-size: .82em; opacity: .85; }
/* Im Overlay: Titel einzeilig (mit …), Text höchstens zwei Zeilen – nichts läuft unter den Pfeil oder aus der Kachel. */
.hwg--carousel .hwg-caption__title, .hwg--coverflow .hwg-caption__title, .hwg--stacked .hwg-caption__title,
.hwg--scrollsnap .hwg-caption__title, .hwg--fullscreen .hwg-caption__title, .hwg--sticky .hwg-caption__title,
.hwg--bento .hwg-caption__title, .hwg--mixed .hwg-caption__title, .hwg--hero-thumbs .hwg-caption__title,
.hwg--filmstrip .hwg-caption__title, .hwg--perspective .hwg-caption__title, .hwg--hover-reveal .hwg-caption__title,
.hwg--collage .hwg-caption__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hwg--bento .hwg-caption__text, .hwg--mixed .hwg-caption__text, .hwg--stacked .hwg-caption__text,
.hwg--perspective .hwg-caption__text, .hwg--hover-reveal .hwg-caption__text, .hwg--collage .hwg-caption__text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Steht der Zähler schon in der Karte, nicht noch einmal darunter. */
.hwg--captions.hwg--stacked .hwg-counter,
.hwg--captions.hwg--perspective .hwg-counter { display: none; }
/* Zähler "01 / 12" im Overlay (nur wo es passt) */
.hwg-caption__count { display: none; font-variant-numeric: tabular-nums; }
.hwg--stacked .hwg-caption__count,
.hwg--perspective .hwg-caption__count,
.hwg--scrollsnap .hwg-caption__count,
.hwg--fullscreen .hwg-caption__count,
.hwg--hero-thumbs .hwg-caption__count { display: block; position: absolute; right: 1.1em; bottom: .95em; font-size: .82em; opacity: .85; }
/* Kleiner runder Pfeil rechts unten (nur Optik, die ganze Kachel ist klickbar). */
.hwg--bento .hwg-caption::after,
.hwg--mixed .hwg-caption::after {
	content: "\203A";
	position: absolute;
	right: .9em;
	bottom: .85em;
	display: grid;
	place-items: center;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #111;
	font-size: 1.15em;
	line-height: 1;
}
.hwg--bento .hwg-caption, .hwg--mixed .hwg-caption { padding-right: 3.8em; }

/* Filter */
.hwg-filter { display: flex; flex-wrap: wrap; gap: var(--hwg-f-gap, .5em); margin-bottom: 1em; }
.hwg-filter__button {
	font: inherit;
	font-size: var(--hwg-f-size, .875em);
	font-weight: var(--hwg-f-weight, inherit);
	text-transform: var(--hwg-f-case, none);
	padding: var(--hwg-f-pady, .4em) var(--hwg-f-padx, .9em);
	border: var(--hwg-f-bw, 1px) solid var(--hwg-f-border, currentColor);
	background: var(--hwg-f-bg, transparent);
	color: var(--hwg-f-color, inherit);
	cursor: pointer;
	border-radius: 0;
}
.hwg .hwg-filter__button { border-radius: var(--hwg-f-radius, var(--hwg-radius)); }
.hwg-filter__button:hover { background: var(--hwg-f-bg-hover, var(--hwg-f-bg, transparent)); color: var(--hwg-f-color-hover, var(--hwg-f-color, inherit)); }
.hwg-filter--bottom { margin: 1em 0 0; }
.hwg--filter-center .hwg-filter { justify-content: center; }
.hwg--filter-end .hwg-filter { justify-content: flex-end; }
.hwg--filter-between .hwg-filter { justify-content: space-between; }
.hwg-filter__button.is-active { background: var(--hwg-f-bg-active, var(--hwg-ink)); color: var(--hwg-f-color-active, var(--hwg-paper)); border-color: var(--hwg-f-border-active, var(--hwg-ink)); }

/* Steuerung (Slider-Layouts): Pfeile + Anzeige */
.hwg-frame { position: relative; }
.hwg-controls { display: flex; align-items: center; justify-content: center; gap: 1em; margin-top: 1em; }
.hwg-more__button {
	font: inherit;
	min-width: 44px;
	min-height: 44px;
	padding: .3em .9em;
	border: 2px solid var(--hwg-ink);
	background: var(--hwg-paper);
	color: var(--hwg-ink);
	cursor: pointer;
	border-radius: 0;
}
.hwg-more__button:hover { background: var(--hwg-ink); color: var(--hwg-paper); }

/* Pfeile: Größe, Symbolgröße, Farben und Form über --hwg-a-* (Einstellungen → Pfeile, eigenes CSS) */
.hwg-prev, .hwg-next, .hwg-stage__prev, .hwg-stage__next {
	display: inline-grid;
	place-items: center;
	width: var(--hwg-a-size, 48px);
	height: var(--hwg-a-size, 48px);
	min-width: 0;
	min-height: 0;
	padding: 0;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s, color .2s, transform .2s, opacity .2s;
}
.hwg-arrow { display: block; width: var(--hwg-a-icon, 24px); height: var(--hwg-a-icon, 24px); }
.hwg-next .hwg-arrow, .hwg-stage__next .hwg-arrow { transform: scaleX(-1); }
.hwg-prev:active, .hwg-next:active, .hwg-stage__prev:active, .hwg-stage__next:active { transform: scale(.94); }
.hwg-counter { font-variant-numeric: tabular-nums; min-width: 5em; text-align: center; }
.hwg-more { text-align: center; margin-top: 1.5em; }
.hwg-more.is-loading .hwg-more__button { opacity: .5; pointer-events: none; }

/* Anzeige-Vorlagen (Standard: Punkte) */
.hwg-dots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.hwg-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	background: currentColor;
	color: inherit;
	opacity: .28;
	cursor: pointer;
	border-radius: 50%;
	transition: opacity .2s, transform .2s;
}
.hwg-dot:hover { opacity: .6; }
.hwg-dot.is-active { opacity: 1; transform: scale(1.25); }
.hwg--dots-squares .hwg-dot { width: 12px; height: 12px; border: 2px solid currentColor; background: transparent; border-radius: 0; opacity: 1; transform: none; }
.hwg--dots-squares .hwg-dot.is-active { background: currentColor; }
.hwg--dots-lines .hwg-dots { flex-wrap: nowrap; gap: 4px; max-width: 100%; padding-inline: 14px; }
.hwg--dots-lines .hwg-dot { flex: 0 1 28px; min-width: 6px; width: 28px; height: 4px; border-radius: 2px; }
.hwg--dots-lines .hwg-dot.is-active { transform: none; }
.hwg--dots-numbers .hwg-dots { counter-reset: hwgdot; gap: 2px; }
.hwg--dots-numbers .hwg-dot {
	counter-increment: hwgdot;
	width: auto;
	height: auto;
	min-width: 1.8em;
	padding: .2em .3em;
	border-radius: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	opacity: .55;
}
.hwg--dots-numbers .hwg-dot::before { content: counter(hwgdot); }
.hwg--dots-numbers .hwg-dot.is-active { opacity: 1; transform: none; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.hwg-strip { display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; margin-top: .9em; padding: 6px 4px; scrollbar-width: thin; }
.hwg-strip .hwg-dot {
	flex: 0 0 auto;
	width: calc(var(--hwg-thumb, 54px) * 1.44);
	height: var(--hwg-thumb, 54px);
	padding: 0;
	border: 0;
	border-radius: calc(var(--hwg-radius) * .6);
	overflow: hidden;
	opacity: .6;
	background: rgba(128, 128, 128, .25);
	transform: none;
}
.hwg-strip .hwg-dot:hover { opacity: 1; }
.hwg-strip .hwg-dot.is-active { opacity: 1; transform: none; outline: 2px solid var(--hwg-accent); outline-offset: 2px; }
.hwg-strip .hwg-thumb__video { display: grid; place-items: center; width: 100%; height: 100%; background: #222; color: #fff; }
.hwg-dot__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Pfeil-Vorlagen (Standard: rund, halbtransparent). Ein eigenes Pfeil-Design überschreibt alle Vorlagen. */
.hwg--arrows-round .hwg-prev, .hwg--arrows-round .hwg-next,
.hwg-stage__prev, .hwg-stage__next {
	border: var(--hwg-a-border, 0);
	border-radius: var(--hwg-a-radius, 50%);
	background: var(--hwg-a-bg, rgba(0, 0, 0, .55));
	color: var(--hwg-a-color, #fff);
	-webkit-backdrop-filter: var(--hwg-a-blur, blur(6px));
	backdrop-filter: var(--hwg-a-blur, blur(6px));
}
.hwg--arrows-round .hwg-prev:hover, .hwg--arrows-round .hwg-next:hover,
.hwg-stage__prev:hover, .hwg-stage__next:hover { background: var(--hwg-a-bg-hover, rgba(0, 0, 0, .8)); color: var(--hwg-a-color-hover, #fff); }
.hwg--arrows-boxed .hwg-prev, .hwg--arrows-boxed .hwg-next {
	border: var(--hwg-a-border, 2px solid var(--hwg-ink));
	border-radius: var(--hwg-a-radius, 0);
	background: var(--hwg-a-bg, var(--hwg-paper));
	color: var(--hwg-a-color, var(--hwg-ink));
}
.hwg--arrows-boxed .hwg-prev:hover, .hwg--arrows-boxed .hwg-next:hover { background: var(--hwg-a-bg-hover, var(--hwg-ink)); color: var(--hwg-a-color-hover, var(--hwg-paper)); }
.hwg--arrows-plain .hwg-prev, .hwg--arrows-plain .hwg-next,
.hwg--arrows-chevron .hwg-prev, .hwg--arrows-chevron .hwg-next,
.hwg--arrows-triangle .hwg-prev, .hwg--arrows-triangle .hwg-next {
	border: var(--hwg-a-border, 0);
	border-radius: var(--hwg-a-radius, 0);
	background: var(--hwg-a-bg, transparent);
	color: var(--hwg-a-color, currentColor);
}
.hwg--arrows-plain .hwg-prev:hover, .hwg--arrows-plain .hwg-next:hover,
.hwg--arrows-chevron .hwg-prev:hover, .hwg--arrows-chevron .hwg-next:hover,
.hwg--arrows-triangle .hwg-prev:hover, .hwg--arrows-triangle .hwg-next:hover { background: var(--hwg-a-bg-hover, transparent); color: var(--hwg-a-color-hover, currentColor); opacity: .7; }
.hwg--arrows-chevron { --hwg-a-icon-default: 30px; }
.hwg--arrows-chevron .hwg-arrow { width: var(--hwg-a-icon, 30px); height: var(--hwg-a-icon, 30px); }

/* 1 Masonry */
.hwg--masonry .hwg-track { column-count: var(--hwg-cols); column-gap: var(--hwg-gap); }
.hwg--masonry .hwg-item { break-inside: avoid; margin-bottom: var(--hwg-gap); }

/* 2 Bento Grid: wechselnde Mosaik-Blöcke aus großen, hohen, breiten und kleinen Kacheln.
   Die Aufteilung setzt das Skript (Spalte/Zeile je Kachel); ohne Skript gilt ein ruhiges Raster. */
.hwg--bento .hwg-track {
	display: grid;
	grid-template-columns: repeat(var(--hwg-cols-bento), 1fr);
	gap: var(--hwg-gap);
}
.hwg--bento .hwg-track:not(.is-laid-out) .hwg-item { aspect-ratio: 4 / 3; }
.hwg--bento .hwg-track.is-laid-out {
	grid-template-columns: repeat(var(--hwg-bento-cols, 6), minmax(0, 1fr));
	grid-auto-rows: var(--hwg-bento-row, 130px);
	grid-auto-flow: row;
}
.hwg--bento .is-laid-out .hwg-item { min-height: 0; }
.hwg--bento .hwg-media { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hwg--bento .hwg-item:hover .hwg-media { transform: scale(1.04); }
.hwg--bento .hwg-item.is-big .hwg-caption__title { font-size: 1.45em; }
.hwg--bento .hwg-item.is-big .hwg-caption { padding: 3.2em 4.2em 1.2em 1.3em; }
.hwg--bento .hwg-item.is-small .hwg-caption__text { display: none; }
.hwg--bento .hwg-item.is-small .hwg-caption::after { display: none; }
.hwg--bento .hwg-item.is-small .hwg-caption { padding: 2em .8em .7em; }
/* Schmale Kacheln: kein Pfeil-Knopf, damit der Titel Platz hat */
.hwg--bento .hwg-item.is-narrow .hwg-caption::after { display: none; }
.hwg--bento .hwg-item.is-narrow .hwg-caption { padding-right: .9em; }

/* 3 Justified */
.hwg--justified .hwg-track { display: flex; flex-wrap: wrap; gap: var(--hwg-gap); }
.hwg--justified .hwg-track::after { content: ""; flex-grow: 999999; }
.hwg--justified .hwg-item {
	--hwg-row: calc(var(--hwg-height) / 2.5);
	flex-grow: var(--hwg-ar);
	flex-basis: calc(var(--hwg-ar) * var(--hwg-row));
	height: var(--hwg-row);
	overflow: hidden;
}
.hwg--justified.hwg--captions .hwg-item { height: auto; }
.hwg--justified.hwg--captions .hwg-item > :not(figcaption) { height: var(--hwg-row); }

/* 4 Editorial Grid: Aufmacher, Textkarte, Bilder */
.hwg--editorial .hwg-track {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--hwg-gap);
	align-items: stretch;
}
.hwg--editorial .hwg-item { grid-column: span 2; aspect-ratio: 4 / 3; }
.hwg--editorial .hwg-ed__hero { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.hwg--editorial .hwg-ed__card {
	grid-column: span 4;
	aspect-ratio: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: .6em;
	padding: clamp(1em, 3vw, 2.2em);
	background: var(--hwg-paper);
	color: var(--hwg-ink);
	border: 1px solid color-mix(in srgb, var(--hwg-ink) 18%, transparent);
	overflow: visible;
}
.hwg--editorial .hwg-ed__card + .hwg-item { aspect-ratio: auto; min-height: 100%; }
.hwg-ed__kicker { font-size: .72em; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.hwg-ed__title { margin: 0; font-size: clamp(1.4rem, 3.2vw, 2.2rem); line-height: 1.1; }
.hwg-ed__text { margin: 0; max-width: 46ch; opacity: .8; }
.hwg-ed__more { align-self: flex-start; margin-top: .4em; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.hwg-ed__more:hover { text-decoration: underline; }

/* 5 Asymmetrisches Grid */
.hwg--asymmetric .hwg-track { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--hwg-gap); align-items: start; }
.hwg--asymmetric .hwg-item { overflow: hidden; }
.hwg--asymmetric .hwg-item { aspect-ratio: 4 / 3; }
.hwg--asymmetric .hwg-item:nth-child(4n + 1) { grid-column: 1 / span 5; aspect-ratio: 3 / 4; }
.hwg--asymmetric .hwg-item:nth-child(4n + 2) { grid-column: 6 / span 7; aspect-ratio: 16 / 9; }
.hwg--asymmetric .hwg-item:nth-child(4n + 3) { grid-column: 2 / span 4; margin-top: -3%; aspect-ratio: 3 / 4; }
.hwg--asymmetric .hwg-item:nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: 4%; }

/* 6 Full-Width */
.hwg--fullwidth .hwg-track { display: flex; flex-direction: column; gap: var(--hwg-gap); }
.hwg--fullwidth .hwg-item { overflow: hidden; }
.hwg--fullwidth .hwg-item > :not(figcaption) { aspect-ratio: 21 / 9; }
.hwg--fullwidth .hwg-media { height: 100%; object-fit: cover; }

/* 7 Horizontal Scroll */
.hwg--horizontal .hwg-track {
	display: flex;
	gap: var(--hwg-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	padding-bottom: 1.1em;
	scrollbar-width: thin;
	scrollbar-color: var(--hwg-ink) color-mix(in srgb, var(--hwg-ink) 14%, transparent);
	cursor: grab;
}
.hwg--horizontal .hwg-track::-webkit-scrollbar { height: 6px; }
.hwg--horizontal .hwg-track::-webkit-scrollbar-track { background: color-mix(in srgb, var(--hwg-ink) 14%, transparent); border-radius: 999px; }
.hwg--horizontal .hwg-track::-webkit-scrollbar-thumb { background: var(--hwg-ink); border-radius: 999px; }
.hwg--horizontal .hwg-track.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
/* Hochformat-Karten gleicher Größe; die nächste Karte schaut am Rand hervor. */
.hwg--horizontal { --hwg-card-w: min(calc(var(--hwg-height) * .75), 42%); }
.hwg--horizontal .hwg-item { flex: 0 0 var(--hwg-card-w); width: var(--hwg-card-w); scroll-snap-align: center; overflow: visible; }
.hwg--horizontal .hwg-item > :not(figcaption) { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--hwg-radius); }
@media (max-width: 700px) { .hwg--horizontal { --hwg-card-w: 70%; } }
.hwg--horizontal .hwg-media { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hwg--horizontal .hwg-item:hover .hwg-media { transform: scale(1.04); }

/* 8 Carousel / Slider (und Fullscreen, Scroll-Snap): Pfeile liegen im Bild, Anzeige darunter */
.hwg--carousel, .hwg--fullscreen, .hwg--scrollsnap { --hwg-slide-h: var(--hwg-height); }
.hwg--fullscreen { --hwg-slide-h: 100vh; --hwg-slide-h: 100svh; }
.hwg--carousel .hwg-track, .hwg--fullscreen .hwg-track { display: flex; overflow: hidden; height: var(--hwg-slide-h); touch-action: pan-y; border-radius: var(--hwg-radius); }
.hwg--carousel .hwg-item, .hwg--fullscreen .hwg-item { flex: 0 0 100%; height: 100%; border-radius: 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hwg--carousel .hwg-controls, .hwg--fullscreen .hwg-controls, .hwg--scrollsnap .hwg-controls { display: contents; }
.hwg--carousel .hwg-prev, .hwg--carousel .hwg-next,
.hwg--fullscreen .hwg-prev, .hwg--fullscreen .hwg-next,
.hwg--scrollsnap .hwg-prev, .hwg--scrollsnap .hwg-next { position: absolute; top: calc(var(--hwg-slide-h) / 2); margin-top: calc(var(--hwg-a-size, 48px) / -2); z-index: 5; }
.hwg--carousel .hwg-prev, .hwg--fullscreen .hwg-prev, .hwg--scrollsnap .hwg-prev { left: 14px; }
.hwg--carousel .hwg-next, .hwg--fullscreen .hwg-next, .hwg--scrollsnap .hwg-next { right: 14px; }
.hwg--carousel .hwg-dots, .hwg--carousel .hwg-counter,
.hwg--fullscreen .hwg-dots, .hwg--fullscreen .hwg-counter { display: flex; justify-content: center; margin-top: 1em; }

/* 9 Coverflow: Bilder stehen schräg im Raum und spiegeln sich */
.hwg--coverflow .hwg-track { position: relative; height: var(--hwg-height); perspective: 1400px; overflow: hidden; overflow-x: clip; overflow-y: visible; touch-action: pan-y; }
.hwg--coverflow .hwg-item {
	position: absolute;
	top: 4%;
	left: 50%;
	width: min(34%, calc(var(--hwg-height) * .7));
	height: 66%;
	margin-left: calc(min(34%, calc(var(--hwg-height) * .7)) / -2);
	overflow: visible;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .5s, filter .5s;
	will-change: transform;
	-webkit-box-reflect: below 6px linear-gradient(transparent 62%, rgba(255, 255, 255, .22));
}
.hwg--coverflow .hwg-item > * { border-radius: var(--hwg-radius); overflow: hidden; }
.hwg--coverflow .hwg-item:not(.is-active) { filter: brightness(.55); }
.hwg--coverflow .hwg-controls { margin-top: .4em; }
.hwg--coverflow .hwg-caption { display: none; }

/* 10 Stacked Cards: weitere Karten schauen rechts hinter der ersten hervor */
.hwg--stacked .hwg-track { position: relative; height: var(--hwg-height); max-width: min(100%, calc(var(--hwg-height) * 1.15)); margin-inline: auto; touch-action: pan-y; }
.hwg--stacked .hwg-item {
	position: absolute;
	inset: 0 26% 0 0;
	background: var(--hwg-paper);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
	transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s, filter .45s;
	transform-origin: 0 50%;
}
.hwg--stacked .hwg-item.is-leaving-left { transform: translateX(-115%) rotate(-14deg) !important; opacity: 0; }
.hwg--stacked .hwg-item.is-leaving-right { transform: translateX(115%) rotate(14deg) !important; opacity: 0; }

/* 11 Scroll-Snap: Bild für Bild einrasten, Linien-Anzeige unten im Bild */
.hwg--scrollsnap .hwg-track {
	height: var(--hwg-slide-h);
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	overscroll-behavior: contain;
	display: flex;
	flex-direction: column;
	gap: var(--hwg-gap);
	scrollbar-width: none;
	border-radius: var(--hwg-radius);
}
.hwg--scrollsnap .hwg-track::-webkit-scrollbar { display: none; }
.hwg--scrollsnap .hwg-item { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.hwg--scrollsnap .hwg-dots, .hwg--scrollsnap .hwg-counter {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 5;
	display: flex;
	justify-content: center;
	margin: 0;
	color: #fff;
}
.hwg--scrollsnap .hwg-dot.is-active { transform: none; }

/* 12 Fullscreen: Vollbild-Slider mit Overlay */
.hwg--fullscreen .hwg-caption__count { position: absolute; right: 1.1em; bottom: .95em; }

/* Große Zähler-Zeile "01 / 12" über dem Titel (Scroll-Snap, Fullscreen) */
.hwg--scrollsnap .hwg-caption, .hwg--fullscreen .hwg-caption { display: flex; flex-direction: column; padding-bottom: 2.6em; }
.hwg--scrollsnap .hwg-caption__count { order: -1; position: static; font-size: 1.7em; font-weight: 600; opacity: 1; margin-bottom: .15em; }

/* 13 Lightbox */
.hwg--lightbox .hwg-track { display: grid; grid-template-columns: repeat(var(--hwg-cols), 1fr); gap: var(--hwg-gap); }
.hwg--lightbox .hwg-item { aspect-ratio: 1; }
.hwg--lightbox .hwg-media { transition: transform .4s; }
.hwg--lightbox .hwg-link:hover .hwg-media,
.hwg--lightbox .hwg-link:focus-visible .hwg-media { transform: scale(1.05); }

/* 14 Hover-Reveal: Karten, Titel und Text fahren beim Darüberfahren ein */
.hwg--hover-reveal .hwg-track,
.hwg--cursor-follow .hwg-track { display: grid; grid-template-columns: repeat(var(--hwg-cols), 1fr); gap: var(--hwg-gap); }
.hwg--hover-reveal .hwg-item { aspect-ratio: .95; }
.hwg--hover-reveal .hwg-item > :not(figcaption) { height: 100%; }
.hwg--hover-reveal .hwg-media { height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hwg--hover-reveal .hwg-item:hover .hwg-media,
.hwg--hover-reveal .hwg-item:focus-within .hwg-media { transform: scale(1.06); }
.hwg--hover-reveal .hwg-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 3em 3.8em 1em 1.1em;
	color: #fff;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .3s, transform .35s;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
	pointer-events: none;
	z-index: 2;
}
.hwg--hover-reveal .hwg-item:hover .hwg-caption,
.hwg--hover-reveal .hwg-item:focus-within .hwg-caption { opacity: 1; transform: none; }
.hwg--hover-reveal .hwg-caption__title { display: block; font-weight: 600; font-size: 1.1em; line-height: 1.25; }
.hwg--hover-reveal .hwg-caption__text { font-size: .82em; opacity: .85; }
.hwg--hover-reveal .hwg-caption::after {
	content: "\203A";
	position: absolute;
	right: .9em;
	bottom: .85em;
	display: grid;
	place-items: center;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #111;
	font-size: 1.15em;
	line-height: 1;
}
@media (hover: none) {
	.hwg--hover-reveal .hwg-caption { opacity: 1; transform: none; }
}

/* 15 Cursor-Follow: übriges Raster wird unscharf, eine scharfe Vorschau folgt dem Mauszeiger */
.hwg--cursor-follow .hwg-item { aspect-ratio: 1; transition: filter .35s, opacity .35s; }
.hwg--cursor-follow .hwg-item > :not(figcaption) { height: 100%; }
.hwg--cursor-follow .hwg-media { height: 100%; object-fit: cover; }
.hwg--cursor-follow.is-following .hwg-item:not(.is-hot) { filter: blur(4px) brightness(.7); }
.hwg-cursor {
	position: fixed;
	left: 0;
	top: 0;
	width: 280px;
	padding: 4px;
	background: #fff;
	border-radius: calc(var(--hwg-radius) + 4px);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	transition: opacity .2s;
}
.hwg-cursor.is-visible { opacity: 1; }
.hwg-cursor .hwg-media { width: 100%; height: auto; border-radius: var(--hwg-radius); }

/* 16 Split-Screen: Textpanel links, großes Bild rechts */
.hwg-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--hwg-gap); align-items: stretch; }
.hwg-split__panel {
	display: flex;
	flex-direction: column;
	gap: .9em;
	padding: clamp(1em, 2.6vw, 2em);
	background: var(--hwg-paper);
	color: var(--hwg-ink);
	border: 1px solid color-mix(in srgb, var(--hwg-ink) 16%, transparent);
	border-radius: var(--hwg-radius);
	min-width: 0;
}
.hwg-split__count { font-size: .85em; font-variant-numeric: tabular-nums; opacity: .6; }
.hwg-split__info { flex: 1; }
.hwg-split__info[hidden] { display: none; }
.hwg-split__title { margin: 0 0 .4em; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.1; }
.hwg-split__text { margin: 0; max-width: 40ch; opacity: .75; }
.hwg-split__nav { display: flex; gap: .6em; }
.hwg-split .hwg-thumbs { display: grid; grid-template-columns: var(--hwg-thumb-grid, repeat(3, 1fr)); gap: 8px; margin: 0; max-height: calc(var(--hwg-thumb, 60px) * 3.4); overflow-y: auto; padding: 3px; scrollbar-width: thin; }
/* Höhe über einen Platzhalter statt aspect-ratio: In der scrollbaren Rasterliste würden die Zeilen sonst zu niedrig (Bilder überlappen). */
.hwg-split .hwg-thumb { position: relative; }
.hwg-split .hwg-thumb::before { content: ""; display: block; padding-top: 75%; }
.hwg-split .hwg-thumb > :is(.hwg-thumb__img, .hwg-thumb__video) { position: absolute; inset: 0; }
.hwg-split .hwg-thumb.is-active { outline: 2px solid var(--hwg-accent); outline-offset: 2px; }
.hwg-split .hwg-stage { min-height: var(--hwg-height); }
.hwg-split .hwg-stage__slide, .hwg-split .hwg-stage__slide .hwg-item { height: 100%; }
.hwg-split .hwg-stage__slide > .hwg-item > :not(figcaption) { height: 100%; }
.hwg-split .hwg-media { height: 100%; object-fit: cover; }

/* 17 Sticky: große Bühne links, Vorschauspalte rechts */
.hwg--sticky .hwg-stagewrap { display: grid; grid-template-columns: minmax(0, 1fr) var(--hwg-thumb-col, clamp(96px, 16%, 150px)); gap: var(--hwg-gap); align-items: start; }
.hwg--sticky .hwg-stage .hwg-item { height: var(--hwg-height); }
.hwg--sticky .hwg-thumbs { flex-direction: column; margin: 0; max-height: var(--hwg-height); overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.hwg--sticky .hwg-thumb { width: 100%; aspect-ratio: 4 / 3; flex: 0 0 auto; }
.hwg--sticky .hwg-thumb.is-active { outline: 2px solid var(--hwg-accent); outline-offset: 2px; }

/* 18 Infinite Scroll */
.hwg--infinite .hwg-track { column-count: var(--hwg-cols); column-gap: var(--hwg-gap); }
.hwg--infinite .hwg-item { break-inside: avoid; margin-bottom: var(--hwg-gap); }
.hwg--infinite .hwg-media { height: auto; }
.hwg--infinite .hwg-item.is-new { animation: hwg-in .5s both; }
@keyframes hwg-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes hwg-spin { to { transform: rotate(360deg); } }
.hwg-more.is-loading .hwg-more__button { display: inline-flex; flex-direction: column; align-items: center; gap: .6em; border: 0; background: none; color: inherit; opacity: .8; min-height: 0; }
.hwg-more.is-loading .hwg-more__button::before {
	content: "";
	width: 22px;
	height: 22px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: hwg-spin .8s linear infinite;
}

/* 19 Collage: Fotos mit gleichmäßigem weißen Rahmen in Reihen. Jedes Foto behält sein Seitenverhältnis,
   jede Reihe füllt die ganze Breite (kein Hintergrund). Reihen wechseln zwischen mehr und weniger Fotos,
   leicht verdreht und überlappend wirkt es wie eine Collage. Breite/Höhe je Foto rechnet das Skript
   (--cw, --ch); ohne Skript gilt ein einfaches Raster. */
.hwg--collage .hwg-track {
	display: grid;
	grid-template-columns: repeat(var(--hwg-cols), 1fr);
	gap: 10px;
	padding: 1.2%;
}
.hwg--collage .hwg-item {
	--r: 0deg;
	--z: 1;
	padding: var(--hwg-frame, clamp(4px, .6vw, 9px));
	background: #fff;
	color: #111;
	border: 0;
	border-radius: 2px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .34);
	z-index: var(--z);
	transition: transform .3s, box-shadow .3s;
}
.hwg--collage .hwg-track:not(.is-laid-out) .hwg-item > :not(figcaption) { aspect-ratio: var(--hwg-ar); }
.hwg--collage .hwg-item > :not(figcaption) { display: block; height: 100%; }
.hwg--collage .hwg-media { height: 100%; object-fit: cover; border-radius: 1px; }
.hwg--collage .hwg-caption {
	position: absolute;
	left: var(--hwg-frame, clamp(4px, .6vw, 9px));
	right: var(--hwg-frame, clamp(4px, .6vw, 9px));
	bottom: var(--hwg-frame, clamp(4px, .6vw, 9px));
	padding: 2.2em .9em .7em;
	background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
	color: #fff;
	opacity: 1;
	pointer-events: none;
}
.hwg--collage .hwg-caption__title { display: block; font-weight: 600; }
.hwg--collage .hwg-caption__text { font-size: .85em; opacity: .85; }
/* Schmale Fotos: nur der Titel, sehr schmale ganz ohne Beschriftung */
.hwg--collage .hwg-item { container-type: inline-size; }
@container (max-width: 170px) { .hwg--collage .hwg-caption__text { display: none; } .hwg--collage .hwg-caption { padding: 1.6em .6em .5em; font-size: .75em; } }
@container (max-width: 100px) { .hwg--collage .hwg-caption { display: none; } }
.hwg--collage .hwg-track.is-laid-out { display: flex; flex-wrap: wrap; gap: 0; padding: 1.2% 1.2% 1.6%; }
.hwg--collage .is-laid-out .hwg-item {
	flex: none;
	width: var(--cw);
	aspect-ratio: var(--car);
	/* leicht vergrößert und gedreht: die Rahmen überlappen sich, es bleibt keine Lücke */
	transform: rotate(var(--r)) scale(var(--s, 1.03));
}
.hwg--collage .hwg-item:hover,
.hwg--collage .hwg-item:focus-within { z-index: 30; transform: rotate(0deg) scale(1.08) !important; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
/* 20 Filmstrip und 21 Thumbnail + Hero: Bühne mit runden Pfeilen im Bild, Vorschauleiste darunter */
.hwg-stage { position: relative; }
.hwg-stage__slide[hidden] { display: none; }
.hwg-stage .hwg-item { overflow: hidden; }
.hwg-stage .hwg-item > :not(figcaption) { height: var(--hwg-height); }
.hwg-stage .hwg-media { height: 100%; object-fit: cover; }
.hwg-stage__prev, .hwg-stage__next { position: absolute; top: 50%; z-index: 5; margin-top: calc(var(--hwg-a-size, 48px) / -2); }
.hwg-stage__prev { left: 14px; }
.hwg-stage__next { right: 14px; }
.hwg-stage__prev.is-outline, .hwg-stage__next.is-outline { position: static; margin: 0; width: 44px; height: 44px; background: transparent; color: inherit; border: 1.5px solid currentColor; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hwg-stage__prev.is-outline .hwg-arrow, .hwg-stage__next.is-outline .hwg-arrow { width: 20px; height: 20px; }
.hwg-stage__prev.is-outline:hover, .hwg-stage__next.is-outline:hover { background: var(--hwg-ink); color: var(--hwg-paper); }

.hwg-thumbs { display: flex; gap: 8px; margin-top: var(--hwg-gap); }
.hwg-thumb {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	opacity: .6;
	overflow: hidden;
	transition: opacity .2s, outline-color .2s;
}
.hwg-thumb:hover, .hwg-thumb.is-active { opacity: 1; }
.hwg-thumb__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hwg-thumb__video { display: grid; place-items: center; width: 100%; height: 100%; background: #222; color: #fff; }

.hwg--filmstrip .hwg-thumbs { overflow-x: auto; padding: 6px 4px 10px; scrollbar-width: thin; scrollbar-color: var(--hwg-ink) color-mix(in srgb, var(--hwg-ink) 14%, transparent); }
.hwg--filmstrip .hwg-thumb { width: calc(var(--hwg-thumb, 80px) * 1.47); height: var(--hwg-thumb, 80px); }
.hwg--filmstrip .hwg-thumb.is-active { outline: 2px solid var(--hwg-accent); outline-offset: 2px; }

.hwg--hero-thumbs .hwg-thumbs { overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.hwg--hero-thumbs .hwg-thumb { width: calc(var(--hwg-thumb, 84px) * 1.15); aspect-ratio: 1.15; }
.hwg--hero-thumbs .hwg-thumb.is-active { outline: 2px solid #fff; outline-offset: -2px; box-shadow: 0 0 0 2px var(--hwg-ink); }

/* 22 Before/After */
.hwg--before-after .hwg-track { display: grid; grid-template-columns: repeat(var(--hwg-cols-m), 1fr); gap: var(--hwg-gap); }
.hwg-ba { position: relative; overflow: hidden; aspect-ratio: 3 / 2; user-select: none; }
/* Ein Paar allein: im eigenen Format; ein übriges Paar am Ende über die volle Breite */
.hwg-ba:only-child { aspect-ratio: var(--hwg-ar); grid-column: 1 / -1; }
.hwg-ba:last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.hwg-ba .hwg-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hwg-ba__after, .hwg-ba__before { position: absolute; inset: 0; }
.hwg-ba__before { clip-path: inset(0 calc(100% - var(--hwg-pos)) 0 0); }
.hwg-ba::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--hwg-pos);
	width: 2px;
	margin-left: -1px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
	pointer-events: none;
	z-index: 2;
}
.hwg-ba::before {
	content: "\2039 \203A";
	position: absolute;
	top: 50%;
	left: var(--hwg-pos);
	z-index: 3;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 1.35em;
	line-height: 1;
	letter-spacing: .1em;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
	pointer-events: none;
}
.hwg-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.hwg-ba:focus-within::after { width: 4px; margin-left: -2px; }
.hwg-ba__label { position: absolute; top: .8em; padding: .3em .8em; border-radius: 6px; font-size: .78em; background: rgba(0, 0, 0, .55); color: #fff; z-index: 3; pointer-events: none; }
.hwg-ba__label--before { left: .8em; }
.hwg-ba__label--after { right: .8em; }
.hwg-ba .hwg-caption__text { font-size: .85em; }
.hwg-ba .hwg-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 2em 1em .8em; background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0)); color: #fff; opacity: 1; z-index: 3; pointer-events: none; }

/* 23 Interactive Project: Kacheln mit Titel im Overlay, Klick öffnet Detailansicht */
.hwg--project .hwg-track { display: grid; grid-template-columns: repeat(var(--hwg-cols), 1fr); grid-auto-flow: dense; gap: var(--hwg-gap); }
.hwg-project { overflow: hidden; background: var(--hwg-paper); color: var(--hwg-ink); }
.hwg-project__open {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #000;
	color: #fff;
	font: inherit;
	text-align: left;
	cursor: pointer;
	border-radius: 0;
	overflow: hidden;
}
.hwg-project__open .hwg-media { aspect-ratio: 4 / 3; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hwg-project__open:hover .hwg-media { transform: scale(1.05); }
.hwg-project__meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: .15em;
	padding: 2.8em 3.8em .95em 1.1em;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
}
.hwg-project__meta::after {
	content: "\203A";
	position: absolute;
	right: .9em;
	bottom: .85em;
	display: grid;
	place-items: center;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #111;
	font-size: 1.15em;
	line-height: 1;
	transition: transform .3s;
}
.hwg-project.is-open .hwg-project__meta::after { transform: rotate(90deg); }
.hwg-project__rubrik { font-size: .72em; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.hwg-project__title { font-weight: 600; font-size: 1.1em; line-height: 1.25; }
.hwg-project.is-open { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.hwg-project.is-open .hwg-project__open .hwg-media { aspect-ratio: auto; min-height: 320px; }
.hwg-project__detail { display: flex; flex-direction: column; justify-content: center; gap: .6em; padding: clamp(1em, 3vw, 2em); }
.hwg-project__detail[hidden] { display: none; }
.hwg-project__detail p { margin: 0; opacity: .85; }
.hwg-project__zoom { align-self: flex-start; font-weight: 600; }

/* Interactive Project mit Punkten: Aufmacherbild, Punkte in Prozent (wandern mit), Karten daneben */
.hwg-hotspots { position: relative; container-type: inline-size; }
.hwg-hotspots > .hwg-media { display: block; width: 100%; height: auto; border-radius: var(--hwg-radius); }
.hwg-hp { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 2; }
.hwg-hp.is-open, .hwg-hp:hover, .hwg-hp:focus-within { z-index: 6; }
.hwg-hp__dot {
	position: absolute;
	left: -15px;
	top: -15px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font: inherit;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.hwg-hp__dot::after { content: ""; position: absolute; inset: -7px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%; animation: hwg-pulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes hwg-pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.hwg-hp__card {
	position: absolute;
	width: 250px;
	width: clamp(200px, 38cqw, 290px);
	font-size: 15px;
	translate: var(--nx, 0px) var(--ny, 0px);
	border-radius: calc(var(--hwg-radius) + 2px);
	background: rgba(14, 14, 18, .8);
	color: #fff;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.hwg-hp__link { display: flex; align-items: center; gap: .75em; padding: .6em .75em .6em .6em; color: inherit; text-decoration: none; cursor: pointer; }
.hwg-hp__thumb { flex: 0 0 auto; width: 58px; height: 58px; object-fit: cover; border-radius: var(--hwg-radius); }
.hwg-hp__text { display: flex; flex: 1; flex-direction: column; gap: .15em; min-width: 0; font-size: 13px; line-height: 1.35; }
.hwg-hp__title { font-weight: 600; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hwg-hp__caption { opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hwg-hp__card--text .hwg-hp__link { padding: .7em .9em; }
.hwg-hp__go { display: grid; place-items: center; flex: 0 0 auto; align-self: flex-end; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111; font-size: 15px; line-height: 1; }
/* Lage der Karte zum Punkt: Abstand --gap zum Rand des Punkts */
.hwg-hp--right .hwg-hp__card { left: calc(15px + var(--gap)); top: 0; transform: translateY(-50%); }
.hwg-hp--left .hwg-hp__card { right: calc(15px + var(--gap)); top: 0; transform: translateY(-50%); }
.hwg-hp--top .hwg-hp__card { bottom: calc(15px + var(--gap)); left: 0; transform: translateX(-50%); }
.hwg-hp--bottom .hwg-hp__card { top: calc(15px + var(--gap)); left: 0; transform: translateX(-50%); }
/* Nur per Klick: Karte erst nach Klick auf den Punkt (auf schmalen Bildschirmen immer so) */
.hwg-hotspots--click .hwg-hp__card { display: none; }
.hwg-hotspots .hwg-hp.is-open .hwg-hp__card { display: block; }
@media (max-width: 700px) {
	.hwg-hotspots .hwg-hp__card { display: none; }
	.hwg-hotspots .hwg-hp.is-open .hwg-hp__card { display: block; width: 210px; }
}
@media (prefers-reduced-motion: reduce) { .hwg-hp__dot::after { animation: none; } }

/* 24 3D / Perspective: Karten im Raum, mittlere vorn */
.hwg--perspective .hwg-track { position: relative; height: var(--hwg-height); perspective: 1500px; overflow: hidden; overflow-x: clip; overflow-y: visible; touch-action: pan-y; }
.hwg--perspective .hwg-item {
	position: absolute;
	top: 3%;
	left: 50%;
	height: 90%;
	width: calc(var(--hwg-height) * .9 * .72);
	margin-left: calc(var(--hwg-height) * .9 * .72 / -2);
	transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .5s, filter .5s;
	will-change: transform;
	/* Weicher Schatten, der nach unten bis in die Navigation ausläuft (nicht abgeschnitten). */
	box-shadow: 0 28px 48px -14px rgba(0, 0, 0, .6), 0 8px 18px rgba(0, 0, 0, .25);
	overflow: hidden;
}
.hwg--perspective .hwg-item:not(.is-active) { filter: brightness(.62); }
.hwg--perspective .hwg-controls { position: relative; z-index: 120; margin-top: 1.4em; }
.hwg--perspective .hwg-caption__count { position: absolute; right: 1.1em; bottom: .95em; }

/* 25 Parallax als Scroll-Geschichte: Die Bühne bleibt stehen, Bild und Text wechseln beim Scrollen,
   das Bild bewegt sich langsamer (Tiefenwirkung). Rechts ein Index mit allen Kapiteln. */
.hwg--parallax { --hwg-ph: min(100vh, max(var(--hwg-height), 560px)); --hwg-ph: min(100svh, max(var(--hwg-height), 560px)); }
.hwg-par { position: relative; height: calc(var(--hwg-n) * 70vh + var(--hwg-ph)); }
.hwg-par__sticky {
	position: sticky;
	top: max(0px, calc((100vh - var(--hwg-ph)) / 2));
	height: var(--hwg-ph);
	overflow: hidden;
	border-radius: var(--hwg-radius);
	background: #0d0f12;
	color: #fff;
}
.hwg-par__stage { position: absolute; inset: 0; }
.hwg-par__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hwg-par__slide.is-active { opacity: 1; pointer-events: auto; }
.hwg-par__slide .hwg-item { height: 100%; border-radius: 0; }
.hwg-par__slide .hwg-item > :not(figcaption) { height: 100%; overflow: hidden; }
.hwg-par__slide .hwg-media { height: 100%; object-fit: cover; transform: translate3d(0, var(--hwg-shift, 0%), 0) scale(var(--hwg-zoom, 1.08)); will-change: transform; }
.hwg-par__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 70%), linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 45%); pointer-events: none; }
.hwg-par__copy { position: absolute; left: clamp(1.2em, 5vw, 3.5em); right: 30%; bottom: clamp(1.4em, 7%, 3.5em); pointer-events: none; }
.hwg-par__text { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.hwg-par__text.is-active { position: relative; opacity: 1; transform: none; }
.hwg-par__kicker { display: block; margin-bottom: .9em; font-size: .72rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; opacity: .85; }
.hwg-par__title { margin: 0; color: inherit; font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 650; line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.hwg-par__lead { margin: .9em 0 0; max-width: 40ch; font-size: clamp(.95rem, 1.4vw, 1.1rem); line-height: 1.5; opacity: .85; }
.hwg-par__index { position: absolute; top: 50%; right: clamp(1em, 3vw, 2.4em); transform: translateY(-50%); }
.hwg-par__index ol { position: relative; display: grid; gap: 1.6em; margin: 0; padding: 0; list-style: none; }
.hwg-par__index ol::before { content: ""; position: absolute; top: .55em; bottom: .55em; left: .5em; width: 1px; background: rgba(255, 255, 255, .45); }
.hwg-par__index button { position: relative; display: flex; align-items: center; gap: .9em; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: .8rem; cursor: pointer; opacity: .65; transition: opacity .3s; }
.hwg-par__index button::before { content: ""; flex: 0 0 auto; width: 1rem; height: 1rem; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 50%; background: #0d0f12; box-sizing: border-box; transition: background .3s, box-shadow .3s; }
.hwg-par__index li.is-active button { opacity: 1; }
.hwg-par__index li.is-active button::before { background: #fff; box-shadow: inset 0 0 0 3px #0d0f12; }
.hwg-par__index button:hover, .hwg-par__index button:focus-visible { opacity: 1; }
.hwg-par__n { font-variant-numeric: tabular-nums; opacity: .8; }
.hwg-par__index li[hidden] { display: none; }
@media (max-width: 700px) {
	/* Handy: Kapitel als Punktreihe oben, der Text hat unten die volle Breite */
	.hwg-par__copy { right: 1.2em; }
	.hwg-par__t, .hwg-par__n { display: none; }
	.hwg-par__index { top: 1.1em; right: 1.1em; transform: none; }
	.hwg-par__index ol { display: flex; gap: .7em; }
	.hwg-par__index ol::before { top: 50%; bottom: auto; left: .5em; right: .5em; width: auto; height: 1px; }
	.hwg-par__index button::before { width: .8rem; height: .8rem; }
}

/* 26 Mixed Media */
.hwg--mixed .hwg-track {
	display: grid;
	grid-template-columns: repeat(var(--hwg-cols), 1fr);
	grid-auto-rows: calc(var(--hwg-height) / 2.4);
	grid-auto-flow: dense;
	gap: var(--hwg-gap);
}
.hwg--mixed .hwg-item { overflow: hidden; }
.hwg--mixed .hwg-item--video { grid-column: span 2; grid-row: span 2; }
.hwg--mixed .hwg-item--image:nth-child(5n + 3) { grid-row: span 2; }

/* Bildgröße in der Galerie (Einstellung): Die Stufe ist die ungefähre Bildbreite. Raster bekommen so viele
   Spalten, dass die Bilder etwa so breit sind (mindestens 75 % davon, wie bei der Collage gerundet). */
.hwg--tile:is(.hwg--masonry, .hwg--infinite) .hwg-track { column-count: auto; column-width: calc(var(--hwg-tile) * .75); }
.hwg--tile:is(.hwg--lightbox, .hwg--hover-reveal, .hwg--cursor-follow, .hwg--project, .hwg--mixed) .hwg-track,
.hwg--tile.hwg--collage .hwg-track:not(.is-laid-out) { grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--hwg-tile) * .75)), 1fr)); }

/* ==========================================================================
   Texte (Einstellungen → Texte, Block/Shortcode text_*): Lage im 3 x 3 Raster, Abstand,
   Hintergrund (Verlauf / Kasten / keiner), Schriftgrößen, Farbe, Seite der Textkarte.
   Ohne Einstellung bleibt alles wie im jeweiligen Layout vorgesehen.
   ========================================================================== */

/* Text im Bild: Beschriftung liegt über dem ganzen Bild und richtet sich nach der Lage aus. */
.hwg--tover.hwg--tpos .hwg-caption {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: .1em;
	margin: 0;
	padding: var(--hwg-t-off, 1.1em);
	color: #fff;
	text-align: left;
	background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0) 62%);
	pointer-events: none;
}
.hwg--tover.hwg--tpos:not(.hwg--hover-reveal) .hwg-caption { opacity: 1; }
.hwg--tover.hwg--tpos .hwg-caption > * { max-width: 100%; }
.hwg--collage.hwg--tpos .hwg-caption { inset: var(--hwg-frame, clamp(4px, .6vw, 9px)); }
.hwg--scrollsnap.hwg--tpos .hwg-caption { padding-bottom: calc(var(--hwg-t-off, 1.1em) + 1.6em); }
/* Platz für den kleinen runden Pfeil (Bento, Mixed, Hover-Reveal) */
.hwg--tpos:is(.hwg--bento, .hwg--mixed, .hwg--hover-reveal) .hwg-caption { padding-right: calc(var(--hwg-t-off, 1.1em) + 2.8em); }

.hwg--tover:is(.hwg--t-tl, .hwg--t-tc, .hwg--t-tr) .hwg-caption { justify-content: flex-start; background: linear-gradient(to bottom, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0) 62%); }
.hwg--tover:is(.hwg--t-ml, .hwg--t-mc, .hwg--t-mr) .hwg-caption { justify-content: center; background: rgba(0, 0, 0, .34); }
.hwg--tover:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc) .hwg-caption { align-items: center; text-align: center; }
.hwg--tover:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-caption { align-items: flex-end; text-align: right; }
/* Rechtsbündig: Pfeil und Zähler wechseln nach links */
.hwg--tpos:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br):is(.hwg--bento, .hwg--mixed, .hwg--hover-reveal) .hwg-caption { padding-right: var(--hwg-t-off, 1.1em); padding-left: calc(var(--hwg-t-off, 1.1em) + 2.8em); }
.hwg--tpos:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-caption::after { right: auto; left: .9em; }
.hwg--tpos:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-caption__count { right: auto; left: 1.1em; }
.hwg--tpos:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc) .hwg-caption::after { display: none; }
.hwg--tpos:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc):is(.hwg--bento, .hwg--mixed, .hwg--hover-reveal) .hwg-caption { padding-inline: var(--hwg-t-off, 1.1em); }

/* Hintergrund: Kasten hinter dem Text (Lage wie oben, Abstand = Abstand zum Rand) */
.hwg--tover.hwg--tshade-box .hwg-caption {
	--tx: 0%;
	--ty: 0%;
	position: absolute;
	inset: auto;
	top: auto;
	right: auto;
	bottom: var(--hwg-t-off, 1em);
	left: var(--hwg-t-off, 1em);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .1em;
	width: auto;
	max-width: calc(100% - 2 * var(--hwg-t-off, 1em));
	margin: 0;
	padding: .75em 1em;
	border-radius: calc(var(--hwg-radius) * .8);
	background: rgba(12, 12, 16, .62);
	color: #fff;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transform: translate(var(--tx), var(--ty));
	pointer-events: none;
}
.hwg--tover.hwg--tshade-box:not(.hwg--hover-reveal) .hwg-caption { opacity: 1; }
.hwg--tover.hwg--tshade-box.hwg--hover-reveal .hwg-caption { transform: translate(var(--tx), var(--ty)); }
.hwg--tshade-box:is(.hwg--bento, .hwg--mixed, .hwg--hover-reveal) .hwg-caption { padding-right: 3.2em; }
.hwg--tshade-box .hwg-caption::after { right: .55em; bottom: 50%; transform: translateY(50%); font-size: 1em; }
.hwg--tshade-box .hwg-caption__count { position: static; margin-top: .3em; }
.hwg--tover.hwg--tshade-box:is(.hwg--t-tl, .hwg--t-tc, .hwg--t-tr) .hwg-caption { top: var(--hwg-t-off, 1em); bottom: auto; }
.hwg--tover.hwg--tshade-box:is(.hwg--t-ml, .hwg--t-mc, .hwg--t-mr) .hwg-caption { top: 50%; bottom: auto; --ty: -50%; }
.hwg--tover.hwg--tshade-box:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc) .hwg-caption { left: 50%; --tx: -50%; align-items: center; text-align: center; }
.hwg--tover.hwg--tshade-box:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-caption { left: auto; right: var(--hwg-t-off, 1em); align-items: flex-end; text-align: right; }
.hwg--tshade-box:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br):is(.hwg--bento, .hwg--mixed, .hwg--hover-reveal) .hwg-caption { padding-right: 1em; padding-left: 3.2em; }
.hwg--tshade-box:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-caption::after { right: auto; left: .55em; }
.hwg--tshade-box.hwg--scrollsnap .hwg-caption { bottom: calc(var(--hwg-t-off, 1em) + 1.4em); }
.hwg--tshade-box.hwg--scrollsnap:is(.hwg--t-tl, .hwg--t-tc, .hwg--t-tr, .hwg--t-ml, .hwg--t-mc, .hwg--t-mr) .hwg-caption { bottom: auto; }
/* Schmale Bento-Kacheln im Kasten: kompakt, ohne Pfeil-Platz */
.hwg--tshade-box.hwg--bento .hwg-item:is(.is-narrow, .is-small) .hwg-caption { padding: .5em .65em; max-width: calc(100% - 1em); }
.hwg--tshade-box.hwg--bento .hwg-item:is(.is-narrow, .is-small) .hwg-caption::after { display: none; }
/* Hintergrund: keiner, Text mit Schatten */
.hwg--tover.hwg--tshade-none .hwg-caption { background: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .65), 0 0 14px rgba(0, 0, 0, .4); }

/* Text unter dem Bild: Ausrichtung und Abstand */
.hwg--t-uc .hwg-caption { text-align: center; }
.hwg--t-ur .hwg-caption { text-align: right; }
.hwg--toffset:is(.hwg--t-ul, .hwg--t-uc, .hwg--t-ur) .hwg-caption,
.hwg--toffset:not(.hwg--tover):not(.hwg--editorial):not(.hwg--split):not(.hwg--parallax) .hwg-caption { padding-top: var(--hwg-t-off); }

/* Schriftgrößen und Farbe (eigene Werte gehen vor) */
.hwg--ttitle :is(.hwg-caption__title, .hwg-ed__title, .hwg-split__title, .hwg-par__title) { font-size: var(--hwg-t-title) !important; line-height: 1.15; }
.hwg--tsize :is(.hwg-caption__text, .hwg-ed__text, .hwg-split__text, .hwg-par__lead) { font-size: var(--hwg-t-size) !important; }
.hwg--tcolor :is(.hwg-caption, .hwg-ed__card, .hwg-split__panel, .hwg-par__copy) { color: var(--hwg-t-color) !important; }

/* Editorial: Textkarte links oder rechts, Inhalt nach Lage ausgerichtet */
.hwg--editorial.hwg--tside-right .hwg-track { grid-auto-flow: dense; }
.hwg--editorial.hwg--tside-right .hwg-ed__card { grid-column: 3 / span 4; grid-row: 2; }
.hwg--editorial.hwg--tside-right .hwg-ed__card + .hwg-item { grid-column: 1 / span 2; grid-row: 2; }
.hwg--editorial.hwg--toffset .hwg-ed__card { padding: var(--hwg-t-off); }
.hwg--editorial:is(.hwg--t-tl, .hwg--t-tc, .hwg--t-tr) .hwg-ed__card { justify-content: flex-start; }
.hwg--editorial:is(.hwg--t-bl, .hwg--t-bc, .hwg--t-br) .hwg-ed__card { justify-content: flex-end; }
.hwg--editorial:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc) .hwg-ed__card { align-items: center; text-align: center; }
.hwg--editorial:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-ed__card { align-items: flex-end; text-align: right; }
.hwg--editorial.hwg--tpos .hwg-ed__more { align-self: auto; }

/* Split-Screen: Textpanel links oder rechts, Inhalt nach Lage ausgerichtet */
.hwg--split.hwg--tside-right .hwg-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hwg--split.hwg--tside-right .hwg-split__panel { order: 2; }
.hwg--split.hwg--toffset .hwg-split__panel { padding: var(--hwg-t-off); }
.hwg--split.hwg--tpos .hwg-split__info { flex: 0 0 auto; }
.hwg--split:is(.hwg--t-ml, .hwg--t-mc, .hwg--t-mr) .hwg-split__panel { justify-content: center; }
.hwg--split:is(.hwg--t-bl, .hwg--t-bc, .hwg--t-br) .hwg-split__panel { justify-content: flex-end; }
.hwg--split:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc) .hwg-split__panel { text-align: center; }
.hwg--split:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc) :is(.hwg-split__nav) { justify-content: center; }
.hwg--split:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc) .hwg-split__text { margin-inline: auto; }
.hwg--split:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-split__panel { text-align: right; }
.hwg--split:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-split__nav { justify-content: flex-end; }
.hwg--split:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-split__text { margin-left: auto; }

/* Parallax: großer Textblock an der gewählten Stelle, Kapitel-Index weicht aus */
.hwg--parallax.hwg--toffset .hwg-par__copy { left: var(--hwg-t-off); bottom: var(--hwg-t-off); }
.hwg--parallax:is(.hwg--t-tl, .hwg--t-tc, .hwg--t-tr) .hwg-par__copy { top: var(--hwg-t-off, clamp(1.4em, 7%, 3.5em)); bottom: auto; }
.hwg--parallax:is(.hwg--t-ml, .hwg--t-mc, .hwg--t-mr) .hwg-par__copy { top: 50%; bottom: auto; transform: translateY(-50%); }
.hwg--parallax:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc) .hwg-par__copy { left: 15%; right: 15%; text-align: center; }
.hwg--parallax:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc) .hwg-par__lead { margin-inline: auto; }
.hwg--parallax:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-par__copy { left: 30%; right: var(--hwg-t-off, clamp(1.2em, 5vw, 3.5em)); text-align: right; }
.hwg--parallax:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-par__lead { margin-left: auto; }
.hwg--parallax:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-par__index { right: auto; left: clamp(1em, 3vw, 2.4em); }
.hwg--parallax:is(.hwg--t-tr, .hwg--t-mr, .hwg--t-br) .hwg-par__shade { background: linear-gradient(270deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 70%), linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 45%); }
.hwg--parallax:is(.hwg--t-tc, .hwg--t-mc, .hwg--t-bc) .hwg-par__shade { background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 70%); }
.hwg--parallax:is(.hwg--t-tl, .hwg--t-tc, .hwg--t-tr) .hwg-par__shade { background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 55%); }

/* 27 Akkordeon: schmale Streifen nebeneinander, einer ist weit aufgeklappt (Maus, Tastatur, Tippen).
   In den schmalen Streifen steht der Titel senkrecht; auf dem Handy liegen die Streifen untereinander. */
.hwg--accordion .hwg-track { display: flex; gap: var(--hwg-gap); height: var(--hwg-height); }
.hwg--accordion .hwg-item { position: relative; flex: 1 1 0; min-width: 36px; overflow: hidden; cursor: pointer; transition: flex-grow .65s cubic-bezier(.2, .7, .2, 1); }
.hwg--accordion .hwg-item.is-open { flex-grow: 5.5; min-width: min(58%, 460px); cursor: default; }
/* Viele Bilder: die Streifen dürfen schmal werden, die Reihe scrollt notfalls seitlich */
.hwg--accordion .hwg-track { overflow-x: auto; scrollbar-width: thin; }
.hwg--accordion .hwg-item > :not(figcaption) { height: 100%; }
.hwg--accordion .hwg-media { height: 100%; object-fit: cover; transition: filter .5s, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.hwg--accordion .hwg-item:not(.is-open) .hwg-media { filter: brightness(.72) saturate(.85); }
.hwg--accordion .hwg-item.is-open .hwg-media { transform: scale(1.03); }
.hwg--accordion .hwg-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 3.2em 1.3em 1.2em;
	color: #fff;
	opacity: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
	pointer-events: none;
}
.hwg--accordion .hwg-caption__title { display: block; overflow: hidden; font-weight: 600; font-size: 1.3em; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.hwg--accordion .hwg-caption__text { display: block; max-width: 46ch; margin-top: .25em; font-size: .9em; opacity: .85; }
.hwg--accordion .hwg-item.is-open .hwg-caption > * { animation: hwg-acc-in .5s .2s both; }
@keyframes hwg-acc-in { from { opacity: 0; transform: translateY(10px); } }
/* Geschlossene Streifen: Titel senkrecht von unten nach oben */
.hwg--accordion .hwg-item:not(.is-open) .hwg-caption { top: 0; display: flex; align-items: flex-end; justify-content: center; padding: 1em .4em; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 55%); }
.hwg--accordion .hwg-item:not(.is-open) .hwg-caption__title { max-height: 100%; font-size: .95em; writing-mode: vertical-rl; transform: rotate(180deg); }
.hwg--accordion .hwg-item:not(.is-open) :is(.hwg-caption__text, .hwg-caption__count, .hwg-caption__kicker) { display: none; }
.hwg--accordion .hwg-item:focus-within { outline: 3px solid var(--hwg-accent); outline-offset: -3px; }
@media (max-width: 700px) {
	.hwg--accordion .hwg-track { flex-direction: column; height: auto; }
	.hwg--accordion .hwg-item { flex: none; height: 64px; transition: height .55s cubic-bezier(.2, .7, .2, 1); }
	.hwg--accordion .hwg-item.is-open { height: min(72vw, 440px); min-width: 0; }
	.hwg--accordion .hwg-track { overflow: visible; }
	.hwg--accordion .hwg-item:not(.is-open) .hwg-caption { align-items: center; justify-content: flex-start; padding: 0 1em; background: linear-gradient(to right, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
	.hwg--accordion .hwg-item:not(.is-open) .hwg-caption__title { writing-mode: horizontal-tb; transform: none; }
}

/* 28 Ken Burns: Überblendung mit langsamem Zoom zum Fokuspunkt; Pfeile/Anzeige wie beim Slider, Pause-Knopf */
.hwg--kenburns { --hwg-slide-h: var(--hwg-height); }
.hwg--kenburns .hwg-track { position: relative; height: var(--hwg-slide-h); overflow: hidden; border-radius: var(--hwg-radius); background: #0b0b0c; }
.hwg--kenburns .hwg-item { position: absolute; inset: 0; z-index: 0; border-radius: 0; opacity: 0; transition: opacity 1.4s ease; }
.hwg--kenburns .hwg-item.is-active { z-index: 1; opacity: 1; }
.hwg--kenburns .hwg-item.is-leaving { z-index: 0; }
.hwg--kenburns .hwg-item > :not(figcaption) { height: 100%; }
.hwg--kenburns .hwg-media { height: 100%; object-fit: cover; transform-origin: var(--hwg-focus, 50% 50%); will-change: transform; }
.hwg--kenburns .hwg-item:is(.is-active, .is-leaving) .hwg-media { animation: hwg-kb var(--hwg-kb-dur, 9s) linear both; }
.hwg--kenburns.is-paused .hwg-media { animation-play-state: paused !important; }
@keyframes hwg-kb {
	from { transform: scale(1.02) translate(0, 0); }
	to { transform: scale(var(--kb-s, 1.16)) translate(var(--kb-x, 0%), var(--kb-y, 0%)); }
}
.hwg--kenburns .hwg-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 4em clamp(1.2em, 4vw, 2.6em) clamp(2.4em, 5vw, 3.2em);
	color: #fff;
	opacity: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
	pointer-events: none;
}
.hwg--kenburns .hwg-caption__kicker { display: block; margin-bottom: .6em; font-size: .72em; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.hwg--kenburns .hwg-caption__title { display: block; max-width: 22ch; font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 650; line-height: 1.1; }
.hwg--kenburns .hwg-caption__text { display: block; max-width: 52ch; margin-top: .5em; font-size: clamp(.9rem, 1.3vw, 1.05rem); opacity: .88; }
.hwg--kenburns .hwg-item.is-active .hwg-caption > * { animation: hwg-acc-in .9s .5s both; }
.hwg--kenburns .hwg-controls { display: contents; }
.hwg--kenburns .hwg-prev, .hwg--kenburns .hwg-next { position: absolute; top: calc(var(--hwg-slide-h) / 2); z-index: 5; margin-top: calc(var(--hwg-a-size, 48px) / -2); opacity: 0; transition: opacity .3s, background-color .2s, color .2s; }
.hwg--kenburns .hwg-prev { left: 14px; }
.hwg--kenburns .hwg-next { right: 14px; }
.hwg--kenburns:is(:hover, :focus-within) :is(.hwg-prev, .hwg-next) { opacity: 1; }
@media (hover: none) { .hwg--kenburns :is(.hwg-prev, .hwg-next) { opacity: 1; } }
.hwg--kenburns .hwg-dots, .hwg--kenburns .hwg-counter { position: absolute; left: 0; right: 0; top: calc(var(--hwg-slide-h) - 26px); z-index: 5; display: flex; justify-content: center; margin: 0; color: #fff; }
.hwg--kenburns .hwg-dot.is-active { transform: none; }
.hwg--kenburns .hwg-strip { margin-top: .9em; }
.hwg-kb__pause { position: absolute; right: 14px; top: calc(var(--hwg-slide-h) - 50px); z-index: 6; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hwg-kb__pause:hover { background: rgba(0, 0, 0, .7); }
.hwg-kb__pause svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .hwg--kenburns .hwg-media { animation: none !important; } }

/* Endlos-Band: läuft von selbst (Kopien setzt das Skript), hält unter der Maus oder per Knopf an. */
.hwg--marquee { --hwg-mq-h: var(--hwg-height); }
.hwg--marquee.hwg--tile { --hwg-mq-h: calc(var(--hwg-tile) * .8); }
.hwg-mqwrap { position: relative; }
.hwg-mq { overflow: hidden; padding-block: 4px 16px; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.hwg--marquee .hwg-track { display: flex; gap: var(--hwg-gap); width: max-content; animation: hwg-mq var(--hwg-mq-dur, 40s) linear infinite; will-change: transform; }
@keyframes hwg-mq { to { transform: translate3d(var(--hwg-mq-shift, -50%), 0, 0); } }
.hwg--marquee .hwg-mq:is(:hover, :focus-within) .hwg-track,
.hwg--marquee.is-paused .hwg-track { animation-play-state: paused; }
.hwg--marquee .hwg-item { flex: 0 0 auto; width: min(calc(var(--hwg-mq-h) * var(--hwg-ar)), 80vw); }
.hwg--marquee .hwg-item > :not(figcaption) { height: var(--hwg-mq-h); }
.hwg--marquee .hwg-media { height: 100%; object-fit: cover; }
.hwg--marquee .hwg-item:hover .hwg-media { transform: scale(1.03); }
.hwg--marquee .hwg-media { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hwg--marquee .hwg-kb__pause { top: 8px; right: 8px; opacity: 0; transition: opacity .2s; }
.hwg--marquee .hwg-mqwrap:is(:hover, :focus-within) .hwg-kb__pause, .hwg--marquee.is-paused .hwg-kb__pause { opacity: 1; }
@media (hover: none) { .hwg--marquee .hwg-kb__pause { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.hwg-mq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.hwg--marquee .is-clone, .hwg--marquee .hwg-kb__pause { display: none; }
}

/* Stories: Hochformat-Karten, Nachbarn klein daneben, Fortschrittsbalken oben. */
.hwg--stories { --hwg-st-h: min(var(--hwg-height), 86vh); --hwg-st-w: min(calc(var(--hwg-st-h) * 9 / 16), 92%); }
.hwg--stories .hwg-track { position: relative; height: var(--hwg-st-h); overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hwg--stories .hwg-item {
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--hwg-st-w);
	height: 100%;
	border-radius: calc(var(--hwg-radius) + 6px);
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	cursor: pointer;
	transform: translateX(-50%) scale(.5);
	transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .45s, filter .45s;
}
.hwg--stories .hwg-item.is-active { z-index: 3; opacity: 1; pointer-events: auto; transform: translateX(-50%); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .65); }
.hwg--stories .hwg-item.is-prev { z-index: 2; opacity: .6; pointer-events: auto; filter: brightness(.65); transform: translateX(calc(-145% - var(--hwg-gap))) scale(.8); }
.hwg--stories .hwg-item.is-next { z-index: 2; opacity: .6; pointer-events: auto; filter: brightness(.65); transform: translateX(calc(45% + var(--hwg-gap))) scale(.8); }
.hwg--stories .hwg-item.is-prev2 { z-index: 1; opacity: .3; filter: brightness(.5); transform: translateX(calc(-215% - 2 * var(--hwg-gap))) scale(.6); }
.hwg--stories .hwg-item.is-next2 { z-index: 1; opacity: .3; filter: brightness(.5); transform: translateX(calc(115% + 2 * var(--hwg-gap))) scale(.6); }
.hwg--stories .hwg-item > :not(figcaption) { height: 100%; }
.hwg--stories .hwg-link { cursor: inherit; }
.hwg--stories .hwg-media { height: 100%; object-fit: cover; -webkit-user-drag: none; }
.hwg--stories .hwg-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 3.5em 1.1em 1.2em; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); opacity: 0; transition: opacity .4s .15s; pointer-events: none; }
.hwg--stories .hwg-item.is-active .hwg-caption { opacity: 1; }
.hwg--stories .hwg-caption__title { font-size: 1.15em; }
.hwg--stories .hwg-item::after { display: none; }
.hwg-st__bars { position: absolute; top: 10px; left: 50%; z-index: 4; display: flex; gap: 4px; width: calc(var(--hwg-st-w) - 20px); transform: translateX(-50%); pointer-events: none; }
.hwg-st__bar { flex: 1 1 0; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .38); }
.hwg-st__bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.hwg-st__bar.is-done i { transform: scaleX(1); }
.hwg-st__bar.is-active:not(.is-video) i { animation: hwg-st-fill var(--hwg-st-dur, 5s) linear forwards; }
@keyframes hwg-st-fill { to { transform: scaleX(1); } }
.hwg--stories:is(.is-paused, .is-away) .hwg-st__bar.is-active i { animation-play-state: paused; }
.hwg--stories .hwg-kb__pause { top: 22px; right: calc(50% - var(--hwg-st-w) / 2 + 10px); width: 32px; height: 32px; }
@media (prefers-reduced-motion: reduce) { .hwg-st__bar.is-active i { transform: scaleX(1); } }

/* Gegenläufige Spalten: ohne Skript wie Masonry, mit Skript Spalten, die beim Scrollen gegeneinander laufen. */
.hwg--counter-scroll .hwg-track { column-count: var(--hwg-cols); column-gap: var(--hwg-gap); }
.hwg--counter-scroll .hwg-track:not(.is-laid-out) .hwg-item { break-inside: avoid; margin-bottom: var(--hwg-gap); }
.hwg--counter-scroll .hwg-track.is-laid-out {
	display: grid;
	grid-template-columns: repeat(var(--hwg-cs-cols, 3), minmax(0, 1fr));
	align-items: start;
	gap: var(--hwg-gap);
	height: max(var(--hwg-height), 62vh);
	overflow: hidden;
	column-count: auto;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
}
.hwg--counter-scroll .hwg-track.is-static { height: auto !important; -webkit-mask-image: none; mask-image: none; }
.hwg-cs__col { display: flex; flex-direction: column; gap: var(--hwg-gap); min-width: 0; will-change: transform; }
.hwg--counter-scroll .hwg-item > :not(figcaption) { aspect-ratio: var(--hwg-ar); }
.hwg--counter-scroll .hwg-media { height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hwg--counter-scroll .hwg-item:hover .hwg-media { transform: scale(1.04); }

/* Zeitstrahl: Linie in der Mitte, Karten abwechselnd links/rechts, Zeitpunkt auf der anderen Seite. */
.hwg--timeline .hwg-track { --tl-x: 50%; position: relative; display: flex; flex-direction: column; gap: calc(var(--hwg-gap) + 10px); padding: .5em 0 1em; }
.hwg--timeline .hwg-track::before,
.hwg--timeline .hwg-track::after { content: ""; position: absolute; top: 0; left: var(--tl-x); width: 2px; margin-left: -1px; border-radius: 2px; }
.hwg--timeline .hwg-track::before { bottom: 0; background: color-mix(in srgb, currentColor 16%, transparent); }
.hwg--timeline .hwg-track::after { height: calc(var(--hwg-tl-progress, 1) * 100%); background: var(--hwg-accent); }
.hwg--timeline .hwg-item { display: flex; flex-direction: column; width: calc(50% - 46px); overflow: visible; color: var(--hwg-ink); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: var(--hwg-radius); background: var(--hwg-paper); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .45); }
.hwg--timeline .hwg-item.is-right { align-self: flex-end; }
/* Karten greifen ineinander: jede folgende beginnt neben der vorigen (Prozent = Anteil der Breite). */
@media (min-width: 782px) { .hwg--timeline .hwg-item.is-stack { margin-top: -13%; } }
.hwg--timeline .hwg-media { aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 0; }
.hwg--timeline .hwg-item > .hwg-link:first-child, .hwg--timeline .hwg-item > .hwg-media:first-child { border-radius: var(--hwg-radius) var(--hwg-radius) 0 0; overflow: hidden; }
.hwg--timeline .hwg-caption { padding: .85em 1.1em 1.1em; opacity: 1; }
.hwg--timeline .hwg-caption__title { font-size: 1.1em; }
/* Zeitpunkt als Kopfzeile der Karte, Punkt auf der Linie daneben. */
.hwg-when { position: relative; order: -1; display: block; padding: .7em .9em .6em; font-weight: 700; font-size: 1.05em; line-height: 1.2; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--hwg-ink); }
.hwg-when::before { content: ""; position: absolute; top: 50%; right: -53px; width: 14px; height: 14px; margin-top: -7px; border: 3px solid var(--hwg-accent); border-radius: 50%; background: var(--hwg-paper); box-sizing: border-box; }
.hwg-when::after { content: ""; position: absolute; top: 50%; right: -46px; width: 39px; height: 2px; margin-top: -1px; background: color-mix(in srgb, var(--hwg-accent) 45%, transparent); }
.hwg--timeline .hwg-item.is-right .hwg-when::before { right: auto; left: -53px; }
.hwg--timeline .hwg-item.is-right .hwg-when::after { right: auto; left: -46px; }
.hwg--timeline .hwg-when + .hwg-link, .hwg--timeline .hwg-when + .hwg-media { border-radius: 0; }
.hwg--timeline .hwg-item:has(.hwg-when) > .hwg-link:first-child { border-radius: 0; }
.hwg--timeline.is-reveal .hwg-item { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.hwg--timeline.is-reveal .hwg-item.is-in { opacity: 1; transform: none; }
@media (max-width: 781px) {
	.hwg--timeline .hwg-track { --tl-x: 12px; }
	.hwg--timeline .hwg-item, .hwg--timeline .hwg-item.is-right { align-self: flex-end; width: calc(100% - 36px); }
	.hwg--timeline .hwg-item .hwg-when::before, .hwg--timeline .hwg-item.is-right .hwg-when::before { right: auto; left: -32px; }
	.hwg--timeline .hwg-item .hwg-when::after, .hwg--timeline .hwg-item.is-right .hwg-when::after { right: auto; left: -25px; width: 24px; }
}

/* Lightbox: Weichzeichner-Hintergrund, abgerundetes Bild mit Beschriftung, Vorschaustreifen */
.hwg-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: 1fr auto;
	background: color-mix(in srgb, var(--hwg-lb-bg, #080808) 88%, transparent);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	color: #fff;
}
.hwg-lb[hidden] { display: none; }
.hwg-lb__stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 0; padding: 56px 18px 8px; }
.hwg-lb__frame { position: relative; margin: 0 auto; max-width: 100%; max-height: 100%; min-width: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); background: #000; line-height: 0; }
.hwg-lb__media { display: grid; place-items: center; }
.hwg-lb__media img, .hwg-lb__media video { display: block; max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; }
.hwg-lb__cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1em;
	padding: 2.4em 1.1em .9em;
	font-size: .9rem;
	line-height: 1.35;
	background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
	pointer-events: none;
}
.hwg-lb__count { font-variant-numeric: tabular-nums; opacity: .9; white-space: nowrap; }
.hwg-lb button {
	display: grid;
	place-items: center;
	font: inherit;
	min-width: 46px;
	min-height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.hwg-lb button:hover, .hwg-lb button:focus-visible { background: #fff; color: #000; outline: none; }
.hwg-lb .hwg-lb__prev, .hwg-lb .hwg-lb__next { width: 54px; height: 54px; }
.hwg-lb__prev .hwg-arrow, .hwg-lb__next .hwg-arrow { width: 26px; height: 26px; }
.hwg-lb__next .hwg-arrow { transform: scaleX(-1); }
.hwg-lb__close { position: absolute; top: 14px; right: 16px; z-index: 3; font-size: 1.1rem; }
.hwg-lb__thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 8px 18px 16px; scrollbar-width: thin; }
.hwg-lb__thumbs[hidden], .hwg-lb button[hidden] { display: none; }
.hwg-lb .hwg-lb__thumb { flex: 0 0 auto; width: calc(var(--hwg-thumb, 54px) * 1.44); height: var(--hwg-thumb, 54px); min-width: 0; min-height: 0; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .1); opacity: .6; font-size: .8rem; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hwg-lb .hwg-lb__thumb:hover { opacity: 1; background: rgba(255, 255, 255, .1); color: #fff; }
.hwg-lb .hwg-lb__thumb.is-active { opacity: 1; outline: 2px solid var(--hwg-accent, #f2a65a); outline-offset: 2px; }
.hwg-lb__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hwg-lb__frame:has(.hwg-lb__embed) .hwg-lb__cap { position: static; background: #000; padding: .7em 1.1em; }
.hwg-lb__embed { display: block; width: min(92vw, calc((100vh - 190px) * 1.7778)); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
html.hwg-lb-open { overflow: hidden; }

/* Mobil */
@media (max-width: 781px) {
	.hwg--masonry .hwg-track,
	.hwg--infinite .hwg-track { column-count: var(--hwg-cols-m); }
	.hwg--lightbox .hwg-track,
	.hwg--hover-reveal .hwg-track,
	.hwg--cursor-follow .hwg-track,
	.hwg--project .hwg-track,
	.hwg--mixed .hwg-track,
	.hwg--collage .hwg-track { grid-template-columns: repeat(var(--hwg-cols-m), 1fr); }
	.hwg--bento .hwg-track { grid-template-columns: repeat(2, 1fr); }
	.hwg--editorial .hwg-item,
	.hwg--editorial .hwg-item:nth-child(n) { grid-column: 1 / -1; grid-row: auto; }
	.hwg--asymmetric .hwg-item:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
	.hwg-split, .hwg--split.hwg--tside-right .hwg-split { grid-template-columns: 1fr; }
	.hwg--split.hwg--tside-right .hwg-split__panel { order: 0; }
	.hwg--editorial.hwg--tside-right .hwg-item:nth-child(n) { grid-column: 1 / -1; grid-row: auto; }
	.hwg-split .hwg-stage { order: -1; min-height: 56vw; }
	.hwg--sticky .hwg-stagewrap { grid-template-columns: 1fr; }
	.hwg--sticky .hwg-thumbs { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
	.hwg--sticky .hwg-thumb { width: calc(var(--hwg-thumb, 66px) * 1.45); }
	.hwg-project.is-open { grid-template-columns: 1fr; }
	.hwg--before-after .hwg-track { grid-template-columns: 1fr; }
	.hwg--coverflow .hwg-item { width: 60%; margin-left: -30%; }
	.hwg--perspective .hwg-item { width: 62%; margin-left: -31%; }
	.hwg-lb__stage { grid-template-columns: minmax(0, 1fr); padding: 56px 8px 4px; }
	.hwg-lb__prev, .hwg-lb__next { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); }
	.hwg-lb__prev { left: 12px; }
	.hwg-lb__next { right: 12px; }
}
@media (max-width: 480px) {
	.hwg--masonry .hwg-track,
	.hwg--infinite .hwg-track { column-count: 1; }
	.hwg--lightbox .hwg-track,
	.hwg--hover-reveal .hwg-track,
	.hwg--cursor-follow .hwg-track,
	.hwg--project .hwg-track { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.hwg *, .hwg-lb * { transition: none !important; animation: none !important; }
	.hwg-par__slide .hwg-media { transform: none; }
}

/* ==========================================================================
   Lightbox Pro: Werkzeugleiste (Zoom, Diashow, Vollbild, Download, Teilen),
   Fortschrittsbalken der Diashow, Hinweis „Link kopiert“.
   ========================================================================== */
.hwg-lb__tools { position: absolute; top: 14px; right: 74px; z-index: 3; display: flex; gap: 8px; }
.hwg-lb__tools[hidden] { display: none; }
.hwg-lb .hwg-lb__tool {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background-color .2s, color .2s, transform .2s;
}
.hwg-lb .hwg-lb__tool:hover, .hwg-lb .hwg-lb__tool:focus-visible { background: #fff; color: #000; outline: none; }
.hwg-lb .hwg-lb__tool:disabled { opacity: .35; cursor: default; background: rgba(255, 255, 255, .14); color: #fff; }
.hwg-lb a.hwg-lb__tool[hidden] { display: none; }
.hwg-lb__icon { display: block; width: 20px; height: 20px; }
.hwg-lb__tool--play[aria-pressed="true"] { background: rgba(255, 255, 255, .3); }
.hwg-lb__progress { position: absolute; top: 0; left: 0; right: 0; z-index: 4; height: 3px; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .3s; }
.hwg-lb__progress span { display: block; height: 100%; background: var(--hwg-lb-accent, #fff); transform: scaleX(0); transform-origin: 0 50%; }
.hwg-lb.is-playing:not(.is-waiting) .hwg-lb__progress { opacity: .9; }
.hwg-lb.is-playing:not(.is-waiting) .hwg-lb__progress span { animation: hwg-lb-progress var(--hwg-lb-speed, 4s) linear forwards; }
@keyframes hwg-lb-progress { to { transform: scaleX(1); } }
.hwg-lb.is-playing .hwg-lb__media img { animation: hwg-lb-fade .6s ease both; }
@keyframes hwg-lb-fade { from { opacity: 0; } }
.hwg-lb__toast {
	position: absolute;
	left: 50%;
	bottom: 96px;
	z-index: 5;
	padding: .55em 1.1em;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: #111;
	font-size: .875rem;
	line-height: 1.3;
	transform: translateX(-50%);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	pointer-events: none;
}
.hwg-lb__toast[hidden] { display: none; }
/* Zoom: Bild wächst im Rahmen, Ziehen verschiebt den Ausschnitt. */
.hwg-lb--pro .hwg-lb__media { touch-action: none; }
.hwg-lb--pro .hwg-lb__media img { transform-origin: 0 0; cursor: zoom-in; transition: transform .25s cubic-bezier(.2, .7, .2, 1); -webkit-user-select: none; user-select: none; }
.hwg-lb--pro.is-zoomed .hwg-lb__media img { cursor: grab; }
.hwg-lb--pro.is-dragging .hwg-lb__media img { cursor: grabbing; transition: none; }
.hwg-lb--pro.is-zoomed .hwg-lb__cap { opacity: 0; }
.hwg-lb__cap { transition: opacity .2s; }
/* Echtes Vollbild: mehr Platz für das Bild. */
.hwg-lb.is-fullscreen .hwg-lb__media img, .hwg-lb.is-fullscreen .hwg-lb__media video { max-height: calc(100vh - 150px); }
@media (max-width: 781px) {
	.hwg-lb__tools { top: 12px; left: 12px; right: 70px; gap: 6px; }
	.hwg-lb .hwg-lb__tool { width: 42px; height: 42px; }
}

/* ==========================================================================
   Spezial-Designs (.hwg--theme-*, .hwg-lb--theme-*): Effekte über Farben und Regler hinaus.
   Eigene Filter-/Pfeil-Designs (--hwg-f-*, --hwg-a-*) haben weiterhin Vorrang.
   ========================================================================== */
.hwg--fx {
	--fx-surface: rgba(255, 255, 255, .55);
	--fx-surface-strong: rgba(255, 255, 255, .78);
	--fx-border: rgba(255, 255, 255, .7);
	--fx-text: #1c1c1e;
	--fx-accent: #0a84ff;
	--fx-accent-ink: #fff;
	--fx-blur: blur(22px) saturate(180%);
	--fx-shadow: 0 10px 30px -10px rgba(15, 23, 42, .35);
	--fx-tile-shadow: 0 18px 40px -22px rgba(15, 23, 42, .55);
}
/* Feste Grundfarben je Design (stärker als die Farben aus den Einstellungen, schwächer als Block/Shortcode). */
.hwg.hwg--theme-glass { --hwg-paper: #f2f5fa; --hwg-ink: #1c1c1e; --hwg-accent: #0a84ff; }
.hwg.hwg--theme-glass-dark { --hwg-paper: #0b0d12; --hwg-ink: #f5f5f7; --hwg-accent: #64d2ff; }
.hwg.hwg--theme-aurora { --hwg-paper: #0f0a1f; --hwg-ink: #f8fafc; --hwg-accent: #f472b6; }
/* Bühne: Glas braucht etwas Farbe dahinter. */
.hwg--theme-glass, .hwg--theme-glass-dark, .hwg--theme-aurora {
	padding: clamp(14px, 2.4vw, 28px);
	border-radius: calc(var(--hwg-radius) + 10px);
	color: var(--hwg-ink);
	background: var(--hwg-paper);
}
.hwg--theme-glass::before, .hwg--theme-glass-dark::before, .hwg--theme-aurora::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
}
.hwg--theme-glass::before {
	background:
		radial-gradient(60% 50% at 12% 8%, rgba(10, 132, 255, .16), transparent 70%),
		radial-gradient(50% 45% at 92% 18%, rgba(191, 90, 242, .14), transparent 70%),
		radial-gradient(60% 55% at 60% 100%, rgba(255, 159, 10, .12), transparent 70%);
}
.hwg--theme-glass-dark {
	--fx-surface: rgba(40, 44, 56, .5);
	--fx-surface-strong: rgba(48, 52, 66, .72);
	--fx-border: rgba(255, 255, 255, .16);
	--fx-text: #f5f5f7;
	--fx-accent: #64d2ff;
	--fx-accent-ink: #0b0d12;
	--fx-shadow: 0 12px 34px -12px rgba(0, 0, 0, .7);
	--fx-tile-shadow: 0 22px 44px -24px rgba(0, 0, 0, .9);
}
.hwg--theme-glass-dark::before {
	background:
		radial-gradient(55% 50% at 10% 0%, rgba(100, 210, 255, .18), transparent 70%),
		radial-gradient(50% 50% at 95% 30%, rgba(94, 92, 230, .2), transparent 70%),
		radial-gradient(60% 50% at 40% 110%, rgba(48, 209, 88, .1), transparent 70%);
}
.hwg--theme-aurora {
	--fx-surface: rgba(255, 255, 255, .12);
	--fx-surface-strong: rgba(255, 255, 255, .2);
	--fx-border: rgba(255, 255, 255, .24);
	--fx-text: #fff;
	--fx-accent: linear-gradient(120deg, #7c3aed, #06b6d4 55%, #f472b6);
	--fx-accent-ink: #fff;
	--fx-shadow: 0 14px 40px -14px rgba(76, 29, 149, .8);
	--fx-tile-shadow: 0 24px 50px -26px rgba(124, 58, 237, .9);
	overflow: hidden;
}
.hwg--theme-aurora::before {
	inset: -20%;
	border-radius: 0;
	background:
		radial-gradient(35% 40% at 20% 25%, rgba(124, 58, 237, .75), transparent 70%),
		radial-gradient(35% 40% at 80% 20%, rgba(6, 182, 212, .6), transparent 70%),
		radial-gradient(40% 40% at 55% 85%, rgba(244, 114, 182, .55), transparent 70%),
		radial-gradient(30% 30% at 10% 90%, rgba(34, 197, 94, .35), transparent 70%);
	filter: blur(40px);
	animation: hwg-aurora 22s ease-in-out infinite alternate;
}
@keyframes hwg-aurora {
	0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
	50% { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); }
	100% { transform: translate3d(-4%, 3%, 0) rotate(-6deg) scale(1.04); }
}
.hwg--theme-brutal {
	--fx-surface: var(--hwg-paper);
	--fx-surface-strong: var(--hwg-paper);
	--fx-border: var(--hwg-ink);
	--fx-text: var(--hwg-ink);
	--fx-accent: #ffd400;
	--fx-accent-ink: #111;
	--fx-shadow: 4px 4px 0 var(--hwg-ink);
	--fx-tile-shadow: 6px 6px 0 var(--hwg-ink);
	--hwg-accent: #ffd400;
	padding: 0 8px 8px 0; /* Platz für die harten Schatten */
}

/* Kacheln */
.hwg--fx .hwg-item { box-shadow: var(--fx-tile-shadow); }
.hwg--fx:is(.hwg--masonry, .hwg--justified, .hwg--infinite, .hwg--collage, .hwg--editorial, .hwg--asymmetric, .hwg--lightbox, .hwg--cursor-follow, .hwg--horizontal, .hwg--marquee, .hwg--counter-scroll) .hwg-item { box-shadow: none; }
.hwg--fx:is(.hwg--masonry, .hwg--justified, .hwg--infinite, .hwg--editorial, .hwg--asymmetric, .hwg--lightbox, .hwg--cursor-follow, .hwg--horizontal, .hwg--marquee, .hwg--counter-scroll) .hwg-media { box-shadow: var(--fx-tile-shadow); }
.hwg--theme-brutal .hwg-item { border: 3px solid var(--hwg-ink); transition: transform .18s, box-shadow .18s; }
.hwg--theme-brutal:is(.hwg--masonry, .hwg--justified, .hwg--infinite, .hwg--editorial, .hwg--asymmetric, .hwg--lightbox, .hwg--cursor-follow, .hwg--horizontal, .hwg--marquee, .hwg--counter-scroll) .hwg-item { border: 0; }
.hwg--theme-brutal:is(.hwg--masonry, .hwg--justified, .hwg--infinite, .hwg--editorial, .hwg--asymmetric, .hwg--lightbox, .hwg--cursor-follow, .hwg--horizontal, .hwg--marquee, .hwg--counter-scroll) .hwg-media { border: 3px solid var(--hwg-ink); }
.hwg--theme-brutal:is(.hwg--lightbox, .hwg--bento, .hwg--mixed, .hwg--masonry, .hwg--justified) .hwg-item:hover { transform: translate(-2px, -2px); }
.hwg--theme-brutal:is(.hwg--bento, .hwg--mixed) .hwg-item:hover { box-shadow: 9px 9px 0 var(--hwg-ink); }
.hwg--theme-brutal .hwg-caption { opacity: 1; }

/* Texte im Bild: Glas- bzw. Effekt-Kasten */
.hwg--fx.hwg--tover.hwg--tshade-box .hwg-caption {
	background: var(--fx-surface);
	color: var(--fx-text);
	border: 1px solid var(--fx-border);
	box-shadow: var(--fx-shadow), inset 0 1px 0 rgba(255, 255, 255, .45);
	-webkit-backdrop-filter: var(--fx-blur);
	backdrop-filter: var(--fx-blur);
	text-shadow: none;
}
/* Glas über Fotos: klar, stark weichgezeichnet, leicht getönt – Text hell (wie Apple Liquid Glass). */
.hwg--fx:is(.hwg--theme-glass, .hwg--theme-glass-dark, .hwg--theme-aurora).hwg--tover.hwg--tshade-box .hwg-caption {
	background: linear-gradient(160deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06) 55%), rgba(18, 18, 22, .22);
	color: #fff;
	border-color: rgba(255, 255, 255, .38);
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(18px) saturate(190%);
	backdrop-filter: blur(18px) saturate(190%);
}
.hwg--theme-aurora.hwg--tover.hwg--tshade-box .hwg-caption { background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(124, 58, 237, .14) 60%), rgba(15, 10, 31, .2); }
.hwg--theme-brutal.hwg--tover.hwg--tshade-box .hwg-caption { border-width: 2px; border-radius: 4px; box-shadow: 4px 4px 0 var(--hwg-ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hwg--theme-brutal .hwg-caption__title { font-weight: 800; letter-spacing: .01em; }
.hwg--fx.hwg--tover.hwg--tshade-box .hwg-caption::after { color: inherit; }

/* Filter-Knöpfe */
.hwg--fx .hwg-filter__button {
	background: var(--hwg-f-bg, var(--fx-surface));
	color: var(--hwg-f-color, var(--fx-text));
	border: var(--hwg-f-bw, 1px) solid var(--hwg-f-border, var(--fx-border));
	box-shadow: var(--fx-shadow);
	-webkit-backdrop-filter: var(--fx-blur);
	backdrop-filter: var(--fx-blur);
	transition: background .2s, color .2s, transform .15s, box-shadow .15s;
}
.hwg--fx:not(.hwg--theme-brutal) .hwg-filter__button { border-radius: var(--hwg-f-radius, 999px); padding: var(--hwg-f-pady, .5em) var(--hwg-f-padx, 1.1em); }
.hwg--fx .hwg-filter__button:hover { background: var(--hwg-f-bg-hover, var(--fx-surface-strong)); color: var(--hwg-f-color-hover, var(--fx-text)); }
.hwg--fx .hwg-filter__button.is-active { background: var(--hwg-f-bg-active, var(--fx-accent)); color: var(--hwg-f-color-active, var(--fx-accent-ink)); border-color: var(--hwg-f-border-active, transparent); }
.hwg--theme-brutal .hwg-filter__button { border-width: var(--hwg-f-bw, 2px); border-radius: var(--hwg-f-radius, 4px); font-weight: var(--hwg-f-weight, 700); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hwg--theme-brutal .hwg-filter__button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--hwg-ink); }
.hwg--theme-brutal .hwg-filter__button.is-active { border-color: var(--hwg-f-border-active, var(--hwg-ink)); }
.hwg--theme-brutal .hwg-filter__button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--hwg-ink); }

/* Pfeile */
.hwg--fx:is(.hwg--arrows-round, .hwg--arrows-boxed) :is(.hwg-prev, .hwg-next),
.hwg--fx :is(.hwg-stage__prev, .hwg-stage__next):not(.is-outline) {
	background: var(--hwg-a-bg, var(--fx-surface-strong));
	color: var(--hwg-a-color, var(--fx-text));
	border: var(--hwg-a-border, 1px solid var(--fx-border));
	box-shadow: var(--fx-shadow), inset 0 1px 0 rgba(255, 255, 255, .45);
	-webkit-backdrop-filter: var(--fx-blur);
	backdrop-filter: var(--fx-blur);
}
.hwg--fx:is(.hwg--arrows-round, .hwg--arrows-boxed) :is(.hwg-prev, .hwg-next):hover,
.hwg--fx :is(.hwg-stage__prev, .hwg-stage__next):not(.is-outline):hover { background: var(--hwg-a-bg-hover, var(--fx-surface-strong)); color: var(--hwg-a-color-hover, var(--fx-text)); transform: scale(1.06); }
.hwg--theme-aurora:is(.hwg--arrows-round, .hwg--arrows-boxed) :is(.hwg-prev, .hwg-next):hover { background: var(--hwg-a-bg-hover, var(--fx-accent)); }
.hwg--theme-brutal:is(.hwg--arrows-round, .hwg--arrows-boxed) :is(.hwg-prev, .hwg-next),
.hwg--theme-brutal :is(.hwg-stage__prev, .hwg-stage__next):not(.is-outline) {
	background: var(--hwg-a-bg, var(--fx-accent));
	color: var(--hwg-a-color, #111);
	border: var(--hwg-a-border, 2.5px solid var(--hwg-ink));
	border-radius: var(--hwg-a-radius, 4px);
	box-shadow: 4px 4px 0 var(--hwg-ink);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.hwg--theme-brutal:is(.hwg--arrows-round, .hwg--arrows-boxed) :is(.hwg-prev, .hwg-next):hover,
.hwg--theme-brutal :is(.hwg-stage__prev, .hwg-stage__next):not(.is-outline):hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--hwg-ink); background: var(--hwg-a-bg-hover, var(--fx-accent)); }

/* Anzeige: Punkte in einer Glas-Kapsel, der aktive Punkt wird zur Pille (wie bei Apple). */
.hwg--fx:is(.hwg--dots-circles, .hwg--dots-squares, .hwg--dots-lines, .hwg--dots-numbers, .hwg--dots-counter) .hwg-dots {
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--fx-surface);
	color: var(--fx-text);
	border: 1px solid var(--fx-border);
	box-shadow: var(--fx-shadow);
	-webkit-backdrop-filter: var(--fx-blur);
	backdrop-filter: var(--fx-blur);
}
.hwg--fx.hwg--dots-circles .hwg-dot { width: 8px; height: 8px; transition: width .3s cubic-bezier(.2, .7, .2, 1), opacity .2s; }
.hwg--fx.hwg--dots-circles .hwg-dot.is-active { width: 22px; border-radius: 999px; transform: none; }
.hwg--theme-aurora.hwg--dots-circles .hwg-dot.is-active { background: var(--fx-accent); opacity: 1; }
.hwg--theme-brutal:is(.hwg--dots-circles, .hwg--dots-squares, .hwg--dots-lines, .hwg--dots-numbers, .hwg--dots-counter) .hwg-dots { border-width: 2px; border-radius: 4px; box-shadow: 4px 4px 0 var(--hwg-ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hwg--theme-brutal.hwg--dots-squares .hwg-dot.is-active { background: var(--fx-accent); border-color: var(--hwg-ink); }
.hwg--fx .hwg-strip .hwg-dot.is-active { outline-color: var(--hwg-ink); }

/* Weitere Knöpfe und Bühnen */
.hwg--fx .hwg-more__button { border-radius: 999px; border: 1px solid var(--fx-border); background: var(--fx-surface-strong); color: var(--fx-text); box-shadow: var(--fx-shadow); -webkit-backdrop-filter: var(--fx-blur); backdrop-filter: var(--fx-blur); }
.hwg--fx .hwg-more__button:hover { background: var(--fx-accent); color: var(--fx-accent-ink); }
.hwg--theme-brutal .hwg-more__button { border: 2.5px solid var(--hwg-ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--hwg-ink); background: var(--fx-accent); color: #111; font-weight: 700; }
.hwg--fx .hwg-split__panel, .hwg--fx .hwg-ed__card { border-radius: var(--hwg-radius); }
.hwg--theme-glass .hwg-ed__card, .hwg--theme-glass-dark .hwg-ed__card, .hwg--theme-aurora .hwg-ed__card { background: var(--fx-surface); border: 1px solid var(--fx-border); color: var(--fx-text); -webkit-backdrop-filter: var(--fx-blur); backdrop-filter: var(--fx-blur); }
.hwg--theme-brutal .hwg-ed__card { border: 3px solid var(--hwg-ink); box-shadow: 6px 6px 0 var(--hwg-ink); }
/* Neue Layouts im Spezial-Design */
.hwg--fx.hwg--timeline .hwg-item { border-color: var(--fx-border); }
:is(.hwg--theme-glass, .hwg--theme-glass-dark, .hwg--theme-aurora).hwg--timeline .hwg-item { background: var(--fx-surface); color: var(--fx-text); -webkit-backdrop-filter: var(--fx-blur); backdrop-filter: var(--fx-blur); }
.hwg--theme-brutal.hwg--timeline .hwg-item { border: 3px solid var(--hwg-ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--hwg-ink); }
.hwg--theme-brutal.hwg--timeline .hwg-when::before { border-radius: 2px; background: var(--fx-accent); border-color: var(--hwg-ink); }
.hwg--theme-aurora.hwg--timeline .hwg-track::after { background: linear-gradient(#7c3aed, #06b6d4, #f472b6); }
.hwg--fx .hwg-st__bar.is-active i, .hwg--fx .hwg-st__bar.is-done i { background: #fff; }
.hwg--theme-aurora .hwg-st__bar i { background: linear-gradient(90deg, #7c3aed, #06b6d4, #f472b6) !important; }
.hwg--theme-brutal.hwg--stories .hwg-item.is-active { border: 3px solid var(--hwg-ink); box-shadow: 8px 8px 0 var(--hwg-ink); }
.hwg--theme-brutal .hwg-st__bar i { background: var(--fx-accent) !important; }
:is(.hwg--theme-glass, .hwg--theme-glass-dark, .hwg--theme-aurora) .hwg-kb__pause { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }

/* Lightbox im Spezial-Design */
.hwg-lb--theme-glass, .hwg-lb--theme-glass-dark {
	background: color-mix(in srgb, var(--hwg-lb-bg, #080808) 62%, transparent);
	-webkit-backdrop-filter: blur(34px) saturate(180%);
	backdrop-filter: blur(34px) saturate(180%);
}
.hwg-lb--theme-glass .hwg-lb__frame, .hwg-lb--theme-glass-dark .hwg-lb__frame, .hwg-lb--theme-aurora .hwg-lb__frame { border-radius: 22px; border-color: rgba(255, 255, 255, .28); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.hwg-lb--fx:not(.hwg-lb--theme-brutal) button,
.hwg-lb--fx:not(.hwg-lb--theme-brutal) .hwg-lb__tool {
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .28);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px -10px rgba(0, 0, 0, .6);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	backdrop-filter: blur(20px) saturate(180%);
}
.hwg-lb--fx:not(.hwg-lb--theme-brutal) :is(button:not(.hwg-lb__thumb), .hwg-lb__tool):is(:hover, :focus-visible) { background: rgba(255, 255, 255, .9); color: #111; }
.hwg-lb--fx:not(.hwg-lb--theme-brutal) .hwg-lb__tool:disabled { background: rgba(255, 255, 255, .1); color: #fff; }
.hwg-lb--fx:not(.hwg-lb--theme-brutal) .hwg-lb__thumbs { width: fit-content; max-width: calc(100% - 24px); margin: 0 auto 14px; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.hwg-lb--fx:not(.hwg-lb--theme-brutal) .hwg-lb__thumbs[hidden] { display: none; }
.hwg-lb--fx .hwg-lb__thumb { border: 0 !important; box-shadow: none !important; }
.hwg-lb--fx:not(.hwg-lb--theme-brutal) .hwg-lb__cap { left: 12px; right: 12px; bottom: 12px; padding: .7em 1em; border-radius: 14px; background: rgba(20, 20, 24, .38); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.hwg-lb--fx .hwg-lb__cap:has(.hwg-lb__caption:empty) { left: auto; }
.hwg-lb--theme-glass .hwg-lb__thumb.is-active, .hwg-lb--theme-glass-dark .hwg-lb__thumb.is-active { outline-color: #fff; }
.hwg-lb--theme-glass-dark { --hwg-lb-accent: #64d2ff; }
.hwg-lb--theme-aurora {
	--hwg-lb-accent: #f472b6;
	background:
		radial-gradient(40% 45% at 15% 20%, rgba(124, 58, 237, .45), transparent 70%),
		radial-gradient(40% 45% at 85% 15%, rgba(6, 182, 212, .35), transparent 70%),
		radial-gradient(45% 45% at 55% 95%, rgba(244, 114, 182, .35), transparent 70%),
		color-mix(in srgb, var(--hwg-lb-bg, #080808) 86%, transparent);
	-webkit-backdrop-filter: blur(30px);
	backdrop-filter: blur(30px);
}
.hwg-lb--theme-aurora .hwg-lb__progress span { background: linear-gradient(90deg, #7c3aed, #06b6d4, #f472b6); }
.hwg-lb--theme-aurora .hwg-lb__thumb.is-active { outline-color: #f472b6; }
.hwg-lb--theme-brutal { --hwg-lb-accent: #ffd400; background: var(--hwg-lb-bg, #111); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hwg-lb--theme-brutal .hwg-lb__frame { border: 3px solid #fff; border-radius: 6px; box-shadow: 10px 10px 0 #ffd400; }
.hwg-lb--theme-brutal button,
.hwg-lb--theme-brutal .hwg-lb__tool { background: #ffd400; color: #111; border: 2.5px solid #fff; border-radius: 6px; box-shadow: 4px 4px 0 #fff; -webkit-backdrop-filter: none; backdrop-filter: none; font-weight: 700; }
.hwg-lb.hwg-lb--theme-brutal button:not(.hwg-lb__thumb):not(:disabled):hover, .hwg-lb.hwg-lb--theme-brutal .hwg-lb__tool:not(:disabled):hover { background: #fff; color: #111; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #ffd400; }
.hwg-lb--theme-brutal .hwg-lb__tool:disabled { background: #ffd400; color: #111; }
.hwg-lb--theme-brutal .hwg-lb__thumb { border-radius: 4px; }
.hwg-lb--theme-brutal .hwg-lb__thumb.is-active { outline: 3px solid #ffd400; }
.hwg-lb--theme-brutal .hwg-lb__cap { padding: .75em 1em; background: #111; border-top: 3px solid #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hwg-lb--theme-brutal .hwg-lb__toast { background: #ffd400; border: 2.5px solid #111; border-radius: 4px; box-shadow: 4px 4px 0 #fff; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	.hwg--theme-aurora::before { animation: none; }
	.hwg-lb.is-playing .hwg-lb__progress { display: none; }
}
