/* ===== PDF Viewer Speisekarten mit Shadowbox ===== */

.pdf-viewer-container {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	    -ms-flex-wrap: wrap;
	        flex-wrap: wrap;
	gap: 25px;
	padding: 10px 0 25px 0;
}

.pdf-card {
	-webkit-flex: 1 1 320px;
	    -ms-flex: 1 1 320px;
	        flex: 1 1 320px;
	max-width: 480px;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e8e8e8;
	-webkit-box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	   -moz-box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	-webkit-transition: box-shadow 0.3s ease, transform 0.3s ease;
	   -moz-transition: box-shadow 0.3s ease, transform 0.3s ease;
	        transition: box-shadow 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.pdf-card:hover {
	-webkit-box-shadow: 0 8px 25px rgba(192,4,24,0.18);
	   -moz-box-shadow: 0 8px 25px rgba(192,4,24,0.18);
	        box-shadow: 0 8px 25px rgba(192,4,24,0.18);
	-webkit-transform: translateY(-3px);
	   -moz-transform: translateY(-3px);
	        transform: translateY(-3px);
}

.pdf-card-header {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: #fafafa;
	border-bottom: 1px solid #ededed;
}

.pdf-icon {
	width: 32px;
	height: 32px;
	-webkit-flex-shrink: 0;
	    -ms-flex-negative: 0;
	        flex-shrink: 0;
}

.pdf-card-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #222222;
	line-height: 1.3;
	font-family: 'Open Sans', sans-serif;
}

.pdf-card-preview {
	position: relative;
	height: 360px;
	background: #f4f4f4;
	overflow: hidden;
}

.pdf-preview-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	text-decoration: none;
	cursor: pointer;
}

.pdf-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}

/* Hover overlay on top of PDF preview */
.pdf-preview-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.03);
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-transition: background 0.3s ease;
	   -moz-transition: background 0.3s ease;
	        transition: background 0.3s ease;
}

.pdf-preview-click-hint {
	display: -webkit-inline-box;
	display: -webkit-inline-flex;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 8px;
	background: rgba(192, 4, 24, 0.92);
	color: #ffffff;
	padding: 10px 18px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	font-family: 'Open Sans', sans-serif;
	box-shadow: 0 4px 15px rgba(0,0,0,0.25);
	opacity: 0;
	-webkit-transform: scale(0.9);
	   -moz-transform: scale(0.9);
	        transform: scale(0.9);
	-webkit-transition: all 0.25s ease;
	   -moz-transition: all 0.25s ease;
	        transition: all 0.25s ease;
}

.pdf-preview-click-hint svg {
	width: 18px;
	height: 18px;
}

.pdf-preview-link:hover .pdf-preview-overlay {
	background: rgba(0, 0, 0, 0.25);
}

.pdf-preview-link:hover .pdf-preview-click-hint {
	opacity: 1;
	-webkit-transform: scale(1);
	   -moz-transform: scale(1);
	        transform: scale(1);
}

.pdf-card-actions {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	gap: 10px;
	padding: 14px 18px;
	background: #ffffff;
	border-top: 1px solid #ededed;
}

.pdf-btn {
	-webkit-flex: 1;
	    -ms-flex: 1;
	        flex: 1;
	display: -webkit-inline-box;
	display: -webkit-inline-flex;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	-webkit-transition: all 0.2s ease;
	   -moz-transition: all 0.2s ease;
	        transition: all 0.2s ease;
	font-family: 'Open Sans', sans-serif;
	text-align: center;
	white-space: nowrap;
}

.pdf-btn svg {
	width: 16px;
	height: 16px;
	-webkit-flex-shrink: 0;
	        flex-shrink: 0;
}

.pdf-btn-view {
	background: #c00418;
	color: #ffffff !important;
	border: 1px solid #c00418;
}

.pdf-btn-view:hover {
	background: #a00314;
	border-color: #a00314;
	color: #ffffff !important;
	-webkit-box-shadow: 0 3px 10px rgba(192,4,24,0.35);
	        box-shadow: 0 3px 10px rgba(192,4,24,0.35);
}

.pdf-btn-download {
	background: #f8f8f8;
	color: #444444 !important;
	border: 1px solid #cccccc;
}

.pdf-btn-download:hover {
	background: #eeeeee;
	color: #111111 !important;
	border-color: #999999;
}

.pdf-card-caption {
	padding: 12px 18px;
	font-size: 13px;
	color: #666666;
	line-height: 1.5;
	background: #fafafa;
	border-top: 1px solid #f0f0f0;
}

/* Shadowbox iframe styling tweaks */
#sb-body-inner iframe {
	width: 100% !important;
	height: 100% !important;
	border: none !important;
}

/* Responsive */
@media screen and (max-width: 720px) {
	.pdf-viewer-container {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-webkit-flex-direction: column;
		    -ms-flex-direction: column;
		        flex-direction: column;
	}
	
	.pdf-card {
		max-width: 100%;
	}
	
	.pdf-card-preview {
		height: 280px;
	}
	
	.pdf-preview-click-hint {
		opacity: 0.95;
		-webkit-transform: scale(0.9);
		        transform: scale(0.9);
	}
	
	.pdf-card-actions {
		-webkit-flex-direction: column;
		    -ms-flex-direction: column;
		        flex-direction: column;
	}
}
