/**
 * SnapProcess – Frontend Kunden-Galerie.
 * Dunkles, aufgeräumtes Design im picdrop-Stil.
 */

:root {
	--sp-bg: #121212;
	--sp-surface: #1c1c1c;
	--sp-text: #f5f5f5;
	--sp-text-muted: #9a9a9a;
	--sp-accent: #ffffff;
	--sp-red: #e63946;
	--sp-orange: #f4a326;
	--sp-green: #2ecc71;
	--sp-radius: 6px;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	background: var(--sp-bg);
	color: var(--sp-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Hero-Bild */

.snapprocess-hero {
	width: 100%;
	height: 38vh;
	min-height: 220px;
	max-height: 420px;
	overflow: hidden;
}

.snapprocess-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 600px) {
	.snapprocess-hero {
		height: 26vh;
		min-height: 160px;
	}
}

/* Header */

.snapprocess-header {
	max-width: 1400px;
	margin: 0 auto;
	padding: 32px 32px 24px;
	text-align: center;
	position: relative;
}

.snapprocess-header__brand {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 24px;
}

.snapprocess-header__logo {
	max-height: 42px;
	max-width: 180px;
}

.snapprocess-header__brand-text {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sp-text-muted);
}

.snapprocess-header__title {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
}

.snapprocess-header__welcome {
	font-size: 15px;
	color: var(--sp-text-muted);
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.5;
}

/* Grid (Masonry via CSS Columns) */

.snapprocess-gallery {
	max-width: 1400px;
	margin: 0 auto;
	padding: 16px 24px 80px;
	column-count: 4;
	column-gap: 20px;
}

@media (max-width: 1100px) {
	.snapprocess-gallery {
		column-count: 3;
	}
}

@media (max-width: 768px) {
	.snapprocess-gallery {
		column-count: 2;
		column-gap: 16px;
		padding: 12px 12px 60px;
	}
}

@media (max-width: 480px) {
	.snapprocess-gallery {
		column-count: 1;
	}
}

/* Sind (z. B. durch den Ampel-Filter) nur noch 1-2 Bilder sichtbar, wird
   diese Klasse per JS gesetzt (siehe frontend-gallery.js): echtes
   CSS-Column-Masonry lässt sich grundsätzlich nicht zentrieren (Spalten
   füllen immer strikt von links nach rechts) - für diesen Sonderfall
   schalten wir stattdessen auf ein zentriertes Flex-Layout um. */
.snapprocess-gallery.snapprocess-gallery--centered {
	column-count: unset;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.snapprocess-gallery.snapprocess-gallery--centered .snapprocess-card {
	break-inside: unset;
	margin: 0;
	flex: 0 1 320px;
}

.snapprocess-empty {
	text-align: center;
	color: var(--sp-text-muted);
	padding: 60px 20px;
}

.snapprocess-card {
	position: relative;
	margin: 0 0 20px;
	break-inside: avoid;
	border-radius: var(--sp-radius);
	overflow: hidden;
	background: var(--sp-surface);
	cursor: pointer;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.snapprocess-card:hover {
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
	transform: translateY(-2px);
}

.snapprocess-card__img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.snapprocess-card:hover .snapprocess-card__img {
	transform: scale(1.03);
}

.snapprocess-card__zoom-hint {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0);
	opacity: 0;
	transition: opacity 0.25s ease, background-color 0.25s ease;
	pointer-events: none;
}

.snapprocess-card:hover .snapprocess-card__zoom-hint {
	opacity: 1;
	background: rgba(0, 0, 0, 0.18);
}

.snapprocess-card__zoom-icon {
	width: 34px;
	height: 34px;
	fill: none;
	stroke: #ffffff;
	stroke-width: 2;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
	transform: scale(0.85);
	transition: transform 0.25s ease;
}

.snapprocess-card:hover .snapprocess-card__zoom-icon {
	transform: scale(1);
}

.snapprocess-card__filename {
	padding: 6px 4px 2px;
	font-size: 11px;
	color: var(--sp-text-muted);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Im Präsentations-Modus soll die Galerie rein als Portfolio wirken - keine Dateinamen. */
.snapprocess-mode-presentation .snapprocess-card__filename {
	display: none !important;
}

.snapprocess-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 10px;
	background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
	opacity: 0;
	transition: opacity 0.15s ease-in-out;
}

.snapprocess-card:hover .snapprocess-card__overlay,
.snapprocess-card:focus-within .snapprocess-card__overlay {
	opacity: 1;
}

/* Touch-Geräte haben kein zuverlässiges Hover: Overlay & Download-Button
   permanent sichtbar lassen, damit Buttons erreichbar bleiben. */
@media (hover: none) {
	.snapprocess-card__overlay,
	.snapprocess-download-btn {
		opacity: 1;
	}
}

/* Buttons */

.snapprocess-btn {
	border: none;
	cursor: pointer;
	background: rgba(20, 20, 20, 0.65);
	backdrop-filter: blur(4px);
	transition: transform 0.1s ease-in-out, background-color 0.15s ease-in-out;
}

.snapprocess-btn:hover {
	transform: scale(1.08);
}

.snapprocess-icon {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: var(--sp-text);
	stroke-width: 2;
}

.snapprocess-colors {
	display: flex;
	gap: 6px;
	padding: 4px 6px;
	border-radius: 20px;
	background: rgba(20, 20, 20, 0.65);
	backdrop-filter: blur(4px);
}

.snapprocess-btn--color {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	padding: 0;
	box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
}

.snapprocess-btn--color.is-active {
	box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px rgba(255,255,255,0.4);
}

.snapprocess-color--red    { background: var(--sp-red); }
.snapprocess-color--orange { background: var(--sp-orange); }
.snapprocess-color--green  { background: var(--sp-green); }

/* Lightbox */

.snapprocess-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 8, 0.97);
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	z-index: 9999;
}

.snapprocess-lightbox.is-open {
	display: flex;
}

.snapprocess-lightbox__body {
	flex: 1;
	width: 100%;
	display: flex;
	overflow: hidden;
}

.snapprocess-lightbox__stage {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px 20px;
	min-width: 0;
}

.snapprocess-lightbox__canvas-wrap {
	position: relative;
	max-width: 100%;
	max-height: 66vh;
	display: inline-block;
	transition: transform 0.2s ease-in-out;
}

.snapprocess-lightbox__zoom-viewport {
	max-width: 88vw;
	max-height: 66vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.snapprocess-lightbox__zoom-viewport.is-zoomed {
	overflow: auto;
	display: block;
	cursor: move;
}

.snapprocess-lightbox__img {
	display: block;
	max-width: 88vw;
	max-height: 66vh;
	object-fit: contain;
	border-radius: 4px;
}

.snapprocess-lightbox__zoom-viewport.is-zoomed .snapprocess-lightbox__img {
	max-width: none;
	max-height: 66vh;
}

.snapprocess-lightbox__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	cursor: default;
	touch-action: none;
}

.snapprocess-lightbox__canvas-wrap.is-drawing .snapprocess-lightbox__canvas {
	pointer-events: auto;
	cursor: crosshair;
}

.snapprocess-scribble-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	flex-wrap: wrap;
	justify-content: center;
}

.snapprocess-scribble-toolbar__divider {
	width: 1px;
	height: 20px;
	background: rgba(255, 255, 255, 0.15);
	margin: 0 2px;
}

.snapprocess-scribble-btn--zoom {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
}

.snapprocess-scribble-btn--zoom:disabled {
	opacity: 0.35;
	cursor: default;
}

.snapprocess-scribble-btn--zoom:disabled:hover {
	background: rgba(255, 255, 255, 0.06);
}

.snapprocess-zoom-level {
	font-size: 11px;
	color: var(--sp-text-muted);
}

.snapprocess-scribble-btn {
	padding: 8px 14px;
	font-size: 13px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
	color: var(--sp-text);
	cursor: pointer;
}

.snapprocess-scribble-btn:hover {
	background: rgba(255, 255, 255, 0.14);
}

.snapprocess-scribble-btn.is-active {
	background: var(--sp-red);
	border-color: var(--sp-red);
}

.snapprocess-scribble-btn--save {
	background: var(--sp-accent);
	color: #121212;
	border-color: var(--sp-accent);
}

.snapprocess-scribble-status {
	font-size: 12px;
	color: var(--sp-green);
}

.snapprocess-lightbox__sidebar {
	width: 300px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	padding: 30px 24px 24px;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	overflow-y: auto;
}

.snapprocess-lightbox__filename {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sp-text);
	word-break: break-word;
}

@media (max-width: 900px) {
	.snapprocess-lightbox__body {
		flex-direction: column;
		overflow-y: auto;
	}

	.snapprocess-lightbox__sidebar {
		width: 100%;
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}
}

.snapprocess-comments {
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.snapprocess-comments__title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 10px;
}

.snapprocess-comments__list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 220px;
	overflow-y: auto;
}

.snapprocess-comments__item {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	padding: 8px 10px;
}

.snapprocess-comments__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	word-break: break-word;
}

.snapprocess-comments__empty {
	font-size: 13px;
	color: var(--sp-text-muted);
}

.snapprocess-comments__form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}

.snapprocess-comments__input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: #101010;
	color: var(--sp-text);
	font-size: 13px;
	resize: vertical;
}

.snapprocess-comments__input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.4);
}

.snapprocess-comments__submit {
	align-self: flex-end;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	border: none;
	border-radius: 20px;
	background: var(--sp-accent);
	color: #121212;
	cursor: pointer;
}

.snapprocess-comments__submit:hover {
	opacity: 0.85;
}

.snapprocess-comments__status {
	align-self: flex-end;
	font-size: 11.5px;
	color: var(--sp-green);
}

.snapprocess-lightbox__close {
	position: absolute;
	top: 18px;
	right: 22px;
	background: transparent;
	border: none;
	color: var(--sp-text);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.snapprocess-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.08);
	border: none;
	color: var(--sp-text);
	font-size: 34px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.snapprocess-lightbox__nav:hover {
	background: rgba(255,255,255,0.18);
}

.snapprocess-lightbox__nav--prev { left: 16px; }
.snapprocess-lightbox__nav--next { right: 16px; }

.snapprocess-lightbox__actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.snapprocess-colors--large {
	padding: 8px 12px;
	gap: 10px;
}

.snapprocess-btn--large.snapprocess-btn--color {
	width: 26px;
	height: 26px;
}

/* PIN-Gate */

.snapprocess-pin-body {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.snapprocess-pin-gate {
	max-width: 380px;
	width: 100%;
	padding: 40px 32px;
	margin: 20px;
	background: var(--sp-surface);
	border-radius: 12px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.snapprocess-pin-gate__title {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 10px;
}

.snapprocess-pin-gate__hint {
	font-size: 14px;
	color: var(--sp-text-muted);
	line-height: 1.5;
	margin: 0 0 28px;
}

.snapprocess-pin-gate__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.snapprocess-pin-gate__form.is-shaking {
	animation: snapprocess-shake 0.35s ease-in-out;
}

@keyframes snapprocess-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-6px); }
	75% { transform: translateX(6px); }
}

.snapprocess-pin-gate__input {
	width: 100%;
	padding: 14px 16px;
	font-size: 18px;
	text-align: center;
	letter-spacing: 0.15em;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: #101010;
	color: var(--sp-text);
}

.snapprocess-pin-gate__input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.4);
}

.snapprocess-pin-gate__submit {
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	background: var(--sp-accent);
	color: #121212;
	cursor: pointer;
	transition: opacity 0.15s ease-in-out;
}

.snapprocess-pin-gate__submit:hover {
	opacity: 0.85;
}

.snapprocess-pin-gate__submit:disabled {
	opacity: 0.5;
	cursor: default;
}

.snapprocess-pin-gate__error {
	color: var(--sp-red);
	font-size: 13px;
	margin: 4px 0 0;
}

.snapprocess-pin-gate__brand {
	margin-bottom: 20px;
}

.snapprocess-pin-gate__logo {
	max-width: 160px;
	max-height: 60px;
	margin: 0 auto;
}

.snapprocess-pin-gate__brand-text {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sp-text-muted);
}

.snapprocess-pin-gate__support {
	margin: 24px 0 0;
	font-size: 12.5px;
	color: var(--sp-text-muted);
}

.snapprocess-pin-gate__support a {
	color: var(--sp-text);
	text-decoration: underline;
}

/* Präsentations-Modus */

.snapprocess-mode-presentation .snapprocess-card__overlay,
.snapprocess-mode-presentation .snapprocess-lightbox__sidebar,
.snapprocess-mode-presentation .snapprocess-scribble-toolbar,
.snapprocess-mode-presentation .snapprocess-lightbox__canvas {
	display: none !important;
}

.snapprocess-card.is-hidden-in-presentation {
	display: none;
}

.snapprocess-mode-toggle {
	margin-top: 18px;
	padding: 9px 18px;
	font-size: 12.5px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.05);
	color: var(--sp-text-muted);
	cursor: pointer;
}

.snapprocess-mode-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--sp-text);
}

.snapprocess-mode-toggle__to-presentation {
	display: none;
}

.snapprocess-mode-voting .snapprocess-mode-toggle__to-voting {
	display: none;
}

.snapprocess-header__downloads {
	margin-top: 14px;
	display: flex;
	justify-content: center;
}

.snapprocess-header__downloads .snapprocess-zip-downloads {
	justify-content: center;
}

.snapprocess-mode-voting .snapprocess-mode-toggle__to-presentation {
	display: inline;
}

/* Mode-Wechsel PIN-Modal */

.snapprocess-mode-pin-modal {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 8, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.snapprocess-mode-pin-modal.is-open {
	display: flex;
}

.snapprocess-mode-pin-modal__box {
	max-width: 320px;
	width: 100%;
	margin: 20px;
	padding: 28px 24px;
	background: var(--sp-surface);
	border-radius: 12px;
	text-align: center;
}

.snapprocess-mode-pin-modal__title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px;
}

.snapprocess-mode-pin-modal input {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	text-align: center;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: #101010;
	color: var(--sp-text);
	margin-bottom: 14px;
}

.snapprocess-mode-pin-modal__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.snapprocess-mode-pin-modal__error {
	color: var(--sp-red);
	font-size: 12.5px;
	margin: 10px 0 0;
}

/* Anleitungskarte */

.snapprocess-mode-presentation .snapprocess-guide {
	display: none !important;
}

.snapprocess-guide {
	position: relative;
	max-width: 1400px;
	margin: 0 auto 24px;
	padding: 20px 44px 20px 24px;
	background: var(--sp-surface);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	transition: opacity 0.2s ease-in-out, max-height 0.2s ease-in-out;
}

.snapprocess-guide.is-dismissed {
	display: none;
}

.snapprocess-guide__close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: none;
	color: var(--sp-text-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.snapprocess-guide__close:hover {
	color: var(--sp-text);
}

.snapprocess-guide__title {
	font-size: 14.5px;
	font-weight: 600;
	margin: 0 0 12px;
}

.snapprocess-guide__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.snapprocess-guide__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--sp-text-muted);
	line-height: 1.5;
}

.snapprocess-guide__list strong {
	color: var(--sp-text);
	font-weight: 600;
}

.snapprocess-guide__emoji {
	flex-shrink: 0;
	font-size: 15px;
	line-height: 1.5;
}

@media (max-width: 700px) {
	.snapprocess-guide {
		margin: 0 14px 20px;
		padding: 16px 40px 16px 16px;
	}
}

/* Filterleiste */

.snapprocess-mode-presentation .snapprocess-toolbar {
	display: none !important;
}

.snapprocess-toolbar {
	max-width: 1400px;
	margin: 0 auto 8px;
	padding: 0 24px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.snapprocess-toolbar__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

@media (max-width: 700px) {
	.snapprocess-toolbar {
		padding: 0 14px 16px;
		flex-wrap: nowrap;
		flex-direction: column;
		align-items: stretch;
	}

	.snapprocess-toolbar__filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.snapprocess-toolbar__filters::-webkit-scrollbar {
		display: none;
	}

	.snapprocess-filter-btn {
		flex-shrink: 0;
	}

	.snapprocess-toolbar__meta {
		justify-content: space-between;
	}
}

.snapprocess-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	font-size: 12.5px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: transparent;
	color: var(--sp-text-muted);
	cursor: pointer;
}

.snapprocess-filter-btn:hover {
	color: var(--sp-text);
	border-color: rgba(255, 255, 255, 0.3);
}

.snapprocess-filter-btn.is-active {
	background: var(--sp-accent);
	border-color: var(--sp-accent);
	color: #121212;
	font-weight: 600;
}

.snapprocess-icon--small {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.snapprocess-export-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
}

.snapprocess-toolbar__meta {
	display: flex;
	align-items: center;
	gap: 14px;
}

.snapprocess-toolbar__counter {
	font-size: 12.5px;
	color: var(--sp-text-muted);
	white-space: nowrap;
}

.snapprocess-toolbar__complete-btn {
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 600;
	border: none;
	border-radius: 20px;
	background: var(--sp-green);
	color: #0c1f12;
	cursor: pointer;
	white-space: nowrap;
}

.snapprocess-toolbar__complete-btn:hover {
	opacity: 0.9;
}

.snapprocess-card.is-filtered-out {
	display: none;
}

.snapprocess-filter-btn__count {
	opacity: 0.7;
	font-size: 11.5px;
}

/* Download-Buttons */

.snapprocess-download-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 20, 20, 0.65);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.15s ease-in-out;
	text-decoration: none;
}

.snapprocess-card:hover .snapprocess-download-btn {
	opacity: 1;
}

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

.snapprocess-download-btn .snapprocess-icon {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: var(--sp-text);
	stroke-width: 2;
}

.snapprocess-btn--large.snapprocess-download-btn {
	position: static;
	width: 50px;
	height: 50px;
	opacity: 1;
}

.snapprocess-btn--large.snapprocess-download-btn .snapprocess-icon {
	width: 22px;
	height: 22px;
}

.snapprocess-zip-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.snapprocess-zip-downloads.is-hidden {
	display: none;
}

.snapprocess-zip-link {
	font-size: 12px;
	color: var(--sp-text-muted);
	text-decoration: underline;
	white-space: nowrap;
}

.snapprocess-zip-link:hover {
	color: var(--sp-text);
}

.snapprocess-zip-status {
	display: none;
	font-size: 12px;
	color: var(--sp-text-muted);
}

.snapprocess-zip-status.is-active {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.snapprocess-zip-status.is-active::before {
	content: "";
	width: 10px;
	height: 10px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	border-top-color: var(--sp-text);
	border-radius: 50%;
	animation: snapprocess-spin 0.7s linear infinite;
}

@keyframes snapprocess-spin {
	to { transform: rotate(360deg); }
}

/* Summary-Modal Erweiterungen */

.snapprocess-complete-modal__box {
	max-height: 88vh;
	overflow-y: auto;
}

.snapprocess-complete-modal__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 8px;
	margin-bottom: 16px;
	max-height: 200px;
	overflow-y: auto;
}

.snapprocess-complete-modal__empty {
	font-size: 13px;
	color: var(--sp-text-muted);
}

.snapprocess-complete-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
}

.snapprocess-complete-thumb.has-color-border.snapprocess-color--red    { border-color: var(--sp-red); }
.snapprocess-complete-thumb.has-color-border.snapprocess-color--orange { border-color: var(--sp-orange); }
.snapprocess-complete-thumb.has-color-border.snapprocess-color--green  { border-color: var(--sp-green); }

.snapprocess-complete-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.snapprocess-complete-thumb__badge {
	position: absolute;
	bottom: 3px;
	right: 3px;
	font-size: 12px;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 4px;
	padding: 1px 3px;
}

.snapprocess-complete-modal__actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.snapprocess-complete-modal__back {
	flex: 1;
	padding: 13px 16px;
	font-size: 13.5px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	color: var(--sp-text-muted);
	cursor: pointer;
}

.snapprocess-complete-modal__back:hover {
	color: var(--sp-text);
}

.snapprocess-complete-modal__submit {
	flex: 1;
	margin-top: 0;
}

/* "Auswahl abschliessen"-Modal */

.snapprocess-complete-modal {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 8, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
}

.snapprocess-complete-modal.is-open {
	display: flex;
}

.snapprocess-complete-modal__box {
	position: relative;
	max-width: 420px;
	width: 100%;
	padding: 32px 28px;
	background: var(--sp-surface);
	border-radius: 12px;
}

.snapprocess-complete-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: transparent;
	border: none;
	color: var(--sp-text-muted);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.snapprocess-complete-modal__title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 10px;
}

.snapprocess-complete-modal__summary {
	font-size: 14px;
	color: var(--sp-text-muted);
	margin: 0 0 20px;
}

#snapprocess-complete-form label {
	display: block;
	font-size: 12.5px;
	color: var(--sp-text-muted);
	margin: 14px 0 6px;
}

#snapprocess-complete-form input,
#snapprocess-complete-form textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: #101010;
	color: var(--sp-text);
	font-size: 13.5px;
	resize: vertical;
}

#snapprocess-complete-form input:focus,
#snapprocess-complete-form textarea:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.4);
}

.snapprocess-complete-modal__submit {
	width: 100%;
	margin-top: 20px;
	padding: 13px 16px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	background: var(--sp-green);
	color: #0c1f12;
	cursor: pointer;
}

.snapprocess-complete-modal__submit:hover {
	opacity: 0.9;
}

.snapprocess-complete-modal__submit:disabled {
	opacity: 0.5;
	cursor: default;
}

.snapprocess-complete-modal__error {
	color: var(--sp-red);
	font-size: 12.5px;
	margin: 10px 0 0;
}

#snapprocess-complete-success-view p {
	color: var(--sp-text-muted);
	font-size: 14px;
}

/* Footer (dynamischer Kontakt-/Rechtstext aus den Einstellungen) */

.snapprocess-footer {
	margin-top: 40px;
	padding: 28px 24px;
	background: #0a0a0a;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.snapprocess-footer__content {
	max-width: 1400px;
	margin: 0 auto;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--sp-text-muted);
	text-align: center;
}

.snapprocess-footer__content p {
	margin: 0 0 6px;
}

.snapprocess-footer__content p:last-child {
	margin-bottom: 0;
}

.snapprocess-footer__content a {
	color: var(--sp-text-muted);
	text-decoration: underline;
}

.snapprocess-footer__content a:hover {
	color: var(--sp-text);
}

@media (max-width: 600px) {
	.snapprocess-footer {
		padding: 22px 16px;
	}
}

/* Hilfe-Button & Hilfe-Modal */

.snapprocess-help-btn {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
	color: var(--sp-text);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.snapprocess-help-btn:hover {
	background: rgba(255, 255, 255, 0.14);
}

.snapprocess-help-modal {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 8, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10001;
	padding: 20px;
}

.snapprocess-help-modal.is-open {
	display: flex;
}

.snapprocess-help-modal__box {
	position: relative;
	max-width: 460px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 32px 28px;
	background: var(--sp-surface);
	border-radius: 12px;
}

.snapprocess-help-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: transparent;
	border: none;
	color: var(--sp-text-muted);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.snapprocess-help-modal__close:hover {
	color: var(--sp-text);
}

.snapprocess-help-modal__title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 20px;
	padding-right: 20px;
}

.snapprocess-help-modal__section {
	margin-bottom: 18px;
}

.snapprocess-help-modal__section:last-of-type {
	margin-bottom: 24px;
}

.snapprocess-help-modal__section-title {
	margin: 0 0 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sp-text);
}

.snapprocess-help-modal__text {
	margin: 0;
	font-size: 13px;
	color: var(--sp-text-muted);
	line-height: 1.55;
}

.snapprocess-help-modal__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.snapprocess-help-modal__list li {
	font-size: 13px;
	color: var(--sp-text-muted);
	line-height: 1.5;
}

.snapprocess-help-modal__list strong {
	color: var(--sp-text);
	font-weight: 600;
}

.snapprocess-help-modal__close-btn {
	width: 100%;
	padding: 12px 16px;
	font-size: 13.5px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--sp-text);
	cursor: pointer;
}

.snapprocess-help-modal__close-btn:hover {
	background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 600px) {
	.snapprocess-help-modal__box {
		padding: 26px 20px;
	}
}
