/* =========================================================================
   NAVOK QuickScan - Architectural Clean Design (Phase 7)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
	--navok-bg-main: #FAFAFA;
	/* Sehr weiches Off-White */
	--navok-text-main: #0f172a;
	/* Tiefes sattes Anthrazit (Slate-900) */
	--navok-text-muted: #64748b;
	/* Slate-500 für zurückhaltende Texte */
	--navok-accent-blue: #1a4b84;
	/* NAVOK Blau */
	--navok-accent-green: #00a32a;
	/* NAVOK Grün */

	--navok-shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.06);
	--navok-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.navok-quickscan-wrapper {
	max-width: 800px;
	/* Fokussiertes Magazin-Layout */
	margin: 0 auto;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	background: var(--navok-bg-main);
	color: var(--navok-text-main);
	border-radius: 12px;
	padding: 3rem;
	/* Enormes Whitespace */
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	/* Leichte Abhebung von der restlichen WP-Seite */
	position: relative;
	/* Removed overflow: hidden so that scrolling inside modal works on long content */
}

/* Base resets inside the wrapper */
.navok-quickscan-wrapper * {
	box-sizing: border-box;
}

/* Verhindere, dass das Theme Buttons überschreibt */
.navok-quickscan-wrapper button {
	outline: none;
}

/* =========================================================================
   Modal / Lightbox
   ========================================================================= */

.navok-quickscan-modal-trigger {
	display: inline-block;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.navok-quickscan-modal-trigger:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

/* Overlay – füllt den gesamten Viewport aus */
.navok-quickscan-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	animation: navokModalFadeIn 0.25s ease;
	overscroll-behavior: none;
}

/* Content-Box innerhalb des Overlays */
.navok-quickscan-modal-content {
	position: relative;
	width: 100%;
	max-width: 860px;
	max-height: 85vh;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
	animation: navokModalSlideUp 0.3s ease;
}

/* Inner wrapper reset – damit eingebetteter QuickScan keinen doppelten Schatten hat */
.navok-quickscan-modal-content .navok-quickscan-wrapper {
	box-shadow: none;
	border-radius: 0;
	max-width: 100%;
}

/* Close-Button */
.navok-quickscan-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	z-index: 10;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: var(--navok-text-muted, #64748b);
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s ease, color 0.2s ease;
}

.navok-quickscan-modal-close:hover {
	background: rgba(0, 0, 0, 0.06);
	color: var(--navok-text-main, #0f172a);
}

/* Animationen */
@keyframes navokModalFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes navokModalSlideUp {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
	.navok-quickscan-modal-overlay {
		padding: 1rem;
	}

	.navok-quickscan-modal-content {
		max-height: 95vh;
		border-radius: 12px;
	}

	.navok-quickscan-modal-content .navok-quickscan-wrapper {
		padding: 1.5rem;
	}
}