
/* Upload-Box — Border via SVG-Zebra-Animation */
.g24-foto-dropzone {
    position: relative;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    overflow: visible;
}
.g24-foto-dropzone[data-state="dragover"] {
    background: #fff5e6;
}
.g24-zebra-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}





.g24-foto-dropzone[data-state="dragover"]::before {
	background: repeating-linear-gradient(
		45deg,
		#f39200 0px, #f39200 5px,
		#fff 5px, #fff 10px
	);
	background-size: 14.14px 14.14px;
	animation: g24-zebra-march 0.2s linear infinite;
}







:root{--g24-origin:"GT24-KICHECK-20260602"}
/*
 * G24 Foto-Suche Widget — mobile-first CSS
 * Klassen-Präfix: g24-foto-*
 * @copyright © 2026 Gerüstteile24 GmbH. Alle Rechte vorbehalten.
 * @watermark GT24-KICHECK-20260602
 * @created   2026-06-02
 */

.g24-foto-widget {
	max-width: 720px;
	margin: 0 auto;
	padding: 1.5rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	color: #1a1a1a;
	box-sizing: border-box;
}
.g24-foto-widget *, .g24-foto-widget *::before, .g24-foto-widget *::after { box-sizing: border-box; }

/* ── Header ─────────────────────────────────────────────────────── */
.g24-foto-header { text-align: center; margin-bottom: 1.5rem; }
.g24-foto-heading {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	line-height: 1.2;
}
.g24-foto-subheading {
	font-size: 1rem;
	color: #555;
	margin: 0;
}

/* ── Dropzone ───────────────────────────────────────────────────── */

	100% { background-position: 16px 16px; }
}
.g24-foto-dropzone[data-state="dragover"] {
	border-color: #f39200;
	background: linear-gradient(135deg, #fff9f0 0%, #fffbf5 100%);
	box-shadow: 0 12px 32px rgba(243, 146, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
	transform: scale(1.02);
}
.g24-foto-dropzone-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	position: relative;
	z-index: 1;
}
.g24-foto-icon {
	color: #444;
	margin-bottom: 0.5rem;
	width: 64px;
	height: 64px;
	transition: all 0.3s ease;
	animation: g24-icon-pulse 2s ease-in-out infinite;
}
@keyframes g24-icon-pulse {
	0%, 100% { transform: scale(1); opacity: 0.8; }
	50% { transform: scale(1.1); opacity: 1; }
}

	100% { background-position: 16px 16px; }
}
.g24-foto-dropzone[data-state="dragover"] .g24-foto-icon {
	color: #f39200;
	transform: scale(1.2);
	animation: none;
}
.g24-foto-hint {
	font-size: 0.9rem;
	color: #777;
	margin: 0;
}

/* ── Preview + 3-Felder-Grid (v0.5.0) ───────────────────────────── */
.g24-foto-preview {
	text-align: center;
}
.g24-foto-preview-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 1.5rem;
	align-items: start;
	margin-bottom: 1rem;
}
.g24-foto-preview-imgwrap {
	display: flex;
	align-items: center;
	justify-content: center;
}
.g24-foto-preview-img {
	max-width: 100%;
	max-height: 280px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.g24-foto-preview-fields {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	text-align: left;
}
.g24-foto-fields-intro {
	font-size: 0.92rem;
	color: #444;
	margin: 0 0 0.25rem;
	font-weight: 500;
	line-height: 1.35;
}
.g24-foto-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.g24-foto-field-label {
	font-size: 0.85rem;
	color: #333;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}
.g24-foto-field-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: #f39200;
	color: #fff;
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 700;
}
.g24-foto-field-required {
	color: #d32f2f;
	font-weight: 700;
}
.g24-foto-field-optional {
	color: #999;
	font-size: 0.78rem;
	font-weight: 400;
}
.g24-foto-input {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1.5px solid #d0d0d0;
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #fff;
	transition: border-color 0.15s;
	min-height: 40px;
}
.g24-foto-input:focus {
	outline: none;
	border-color: #f39200;
	box-shadow: 0 0 0 2px rgba(243, 146, 0, 0.15);
}
.g24-foto-input.g24-foto-input-invalid {
	border-color: #d32f2f;
	background: #fdecec;
}

/* ── v0.6.0: Einsatzzweck-Radio-Grid ────────────────────────────── */
.g24-foto-field-einsatz {
	gap: 0.4rem;
}
.g24-foto-einsatz-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem;
	margin-top: 0.15rem;
}
.g24-foto-einsatz-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.7rem;
	border: 1.5px solid #d0d0d0;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 0.88rem;
	color: #333;
	transition: border-color 0.15s, background 0.15s;
	min-height: 42px;
}
.g24-foto-einsatz-option:hover {
	border-color: #f39200;
	background: #fff8ee;
}
.g24-foto-einsatz-option input[type="radio"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #f39200;
	cursor: pointer;
}
.g24-foto-einsatz-option input[type="radio"]:checked + .g24-foto-einsatz-option-label {
	font-weight: 600;
	color: #1a1a1a;
}
.g24-foto-einsatz-option:has(input[type="radio"]:checked) {
	border-color: #f39200;
	background: #fff5e6;
}
.g24-foto-einsatz-option-label {
	line-height: 1.25;
}
.g24-foto-field-einsatz.g24-foto-field-invalid .g24-foto-einsatz-grid {
	outline: 2px solid #d32f2f;
	outline-offset: 4px;
	border-radius: 8px;
}
.g24-foto-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.75rem;
	margin: 0 auto 1rem;
	max-width: 560px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #e6e6e6;
	font-size: 0.85rem;
	color: #444;
	text-align: left;
	line-height: 1.4;
	cursor: pointer;
}
.g24-foto-consent input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 0.15rem;
	cursor: pointer;
}
.g24-foto-consent a { color: #f39200; text-decoration: underline; }
.g24-foto-preview-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}
.g24-foto-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.g24-foto-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, transform 0.05s;
}
.g24-foto-btn:active { transform: scale(0.98); }

.g24-foto-btn-primary {
	background: #f39200;          /* GT24-Orange */
	color: #fff;
}
.g24-foto-btn-primary:hover { background: #d97f00; }

.g24-foto-btn-ghost {
	background: transparent;
	color: #555;
	border: 1px solid #ccc;
}
.g24-foto-btn-ghost:hover { background: #f0f0f0; }

.g24-foto-btn-whatsapp {
	background: #25D366;
	color: #fff;
}
.g24-foto-btn-whatsapp:hover { background: #1ea854; }

/* ── Loading ────────────────────────────────────────────────────── */
.g24-foto-loading {
	text-align: center;
	padding: 2rem 1rem;
}
.g24-foto-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #f0f0f0;
	border-top-color: #f39200;
	border-radius: 50%;
	margin: 0 auto 1rem;
	animation: g24-spin 0.9s linear infinite;
}
@keyframes g24-spin { to { transform: rotate(360deg); } }

/* ── Results ────────────────────────────────────────────────────── */
.g24-foto-results-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 1.5rem 0 1rem;
	text-align: center;
}
.g24-foto-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}
.g24-foto-card {
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	transition: transform 0.15s, box-shadow 0.15s;
}
.g24-foto-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.g24-foto-card-img-wrap {
	aspect-ratio: 1;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.g24-foto-card-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.g24-foto-card-no-img {
	color: #aaa;
	font-size: 0.8rem;
}
.g24-foto-card-body {
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.4rem;
}
.g24-foto-card-name {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	min-height: 2.5em;
}
.g24-foto-card-sku {
	font-size: 0.8rem;
	color: #777;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.g24-foto-card-price {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a1a;
}
.g24-foto-card-score {
	display: inline-block;
	font-size: 0.75rem;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-weight: 600;
}
.g24-foto-score-high { background: #d4edda; color: #155724; }
.g24-foto-score-mid  { background: #fff3cd; color: #856404; }
.g24-foto-score-low  { background: #f8d7da; color: #721c24; }

.g24-foto-card-link {
	margin-top: auto;
	background: #f39200;
	color: #fff;
	text-align: center;
	padding: 0.6rem;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}
.g24-foto-card-link:hover { background: #d97f00; }

/* Out-of-Stock Markierung */
.g24-foto-card-oos { opacity: 0.7; }
.g24-foto-card-oos .g24-foto-card-img { filter: grayscale(0.3); }
.g24-foto-card-oos-label {
	display: inline-block;
	font-size: 0.75rem;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	background: #f8d7da;
	color: #721c24;
	font-weight: 600;
	align-self: flex-start;
}

.g24-foto-results-footer {
	margin-top: 1.5rem;
	text-align: center;
}

/* ── Fallback / Error ───────────────────────────────────────────── */
.g24-foto-fallback {
	text-align: center;
	padding: 2rem 1.5rem;
	background: #fff8e1;
	border: 1px solid #ffe0b2;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
}
.g24-foto-fallback-icon {
	color: #f39200;
}
.g24-foto-fallback-text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.4;
}
.g24-foto-fallback-contact {
	width: 100%;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.g24-foto-fallback-sent {
	padding: 0.75rem 1rem;
	background: #d4edda;
	color: #155724;
	border-radius: 6px;
	font-weight: 600;
}
.g24-foto-btn-whatsapp-small {
	font-size: 0.85rem;
	padding: 0.5rem 1rem;
	min-height: 36px;
}

/* v0.6.5: Fallback-WA-Button + Trenner */
.g24-foto-fallback-wa {
	min-width: 240px;
	justify-content: center;
}
.g24-foto-fallback-or {
	font-size: 0.82rem;
	color: #888;
	margin: 0.25rem 0 0.5rem;
	text-align: center;
}
.g24-foto-error {
	padding: 0.75rem 1rem;
	background: #f8d7da;
	color: #721c24;
	border-radius: 6px;
	margin-top: 1rem;
	font-size: 0.95rem;
}

.g24-foto-results-footer {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
}

/* ── Tablet ─────────────────────────────────────────────────────── */
@media (max-width: 760px) {
	.g24-foto-preview-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	.g24-foto-preview-imgwrap {
		max-width: 320px;
		margin: 0 auto;
	}
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.g24-foto-widget { padding: 1rem; }
	.g24-foto-heading { font-size: 1.4rem; }
	
	.g24-foto-cards { grid-template-columns: 1fr; }
	.g24-foto-fields-intro { font-size: 0.85rem; }
	.g24-foto-einsatz-grid { grid-template-columns: 1fr; }
}
